diff --git a/README.md b/README.md index 4d2fa1f0..d19393cf 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # intersight -This is the UCS Starship REST API +This is Intersight REST API This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: -- API version: 1.0.0 +- API version: 1.0.9-255 - Package version: 1.0.0 - Build package: io.swagger.codegen.languages.PythonClientCodegen @@ -53,19 +53,151 @@ from intersight.rest import ApiException from pprint import pprint # create an instance of the API class api_instance = intersight.AaaAuditRecordApi() -count = True # bool | The $count query option allows clients to request a count of the matching resources. (optional) -inlinecount = True # bool | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response (optional) -tags = True # bool | The 'tags' query option allows clients to request a document with tag usage summary. (optional) +count = true # bool | The $count query option allows clients to request a count of the matching resources. (optional) +inlinecount = 'inlinecount_example' # str | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response (optional) top = 56 # int | The max number of records to return (optional) skip = 56 # int | The number of records to skip (optional) filter = 'filter_example' # str | Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') (optional) select = 'select_example' # str | Specifies a subset of properties to return (optional) orderby = 'orderby_example' # str | Determines what values are used to order a collection of records (optional) expand = 'expand_example' # str | Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames (optional) +apply = 'apply_example' # str | Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) (optional) +at = 'at_example' # str | Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' (optional) +count2 = true # bool | The $count query option allows clients to request a count of the matching resources. (optional) +inlinecount2 = 'inlinecount_example' # str | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response (optional) +top2 = 56 # int | The max number of records to return (optional) +skip2 = 56 # int | The number of records to skip (optional) +filter2 = 'filter_example' # str | Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') (optional) +select2 = 'select_example' # str | Specifies a subset of properties to return (optional) +orderby2 = 'orderby_example' # str | Determines what values are used to order a collection of records (optional) +expand2 = 'expand_example' # str | Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames (optional) +apply2 = 'apply_example' # str | Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) (optional) +at2 = 'at_example' # str | Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' (optional) +count3 = true # bool | The $count query option allows clients to request a count of the matching resources. (optional) +inlinecount3 = 'inlinecount_example' # str | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response (optional) +top3 = 56 # int | The max number of records to return (optional) +skip3 = 56 # int | The number of records to skip (optional) +filter3 = 'filter_example' # str | Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') (optional) +select3 = 'select_example' # str | Specifies a subset of properties to return (optional) +orderby3 = 'orderby_example' # str | Determines what values are used to order a collection of records (optional) +expand3 = 'expand_example' # str | Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames (optional) +apply3 = 'apply_example' # str | Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) (optional) +at3 = 'at_example' # str | Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' (optional) +count4 = true # bool | The $count query option allows clients to request a count of the matching resources. (optional) +inlinecount4 = 'inlinecount_example' # str | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response (optional) +top4 = 56 # int | The max number of records to return (optional) +skip4 = 56 # int | The number of records to skip (optional) +filter4 = 'filter_example' # str | Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') (optional) +select4 = 'select_example' # str | Specifies a subset of properties to return (optional) +orderby4 = 'orderby_example' # str | Determines what values are used to order a collection of records (optional) +expand4 = 'expand_example' # str | Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames (optional) +apply4 = 'apply_example' # str | Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) (optional) +at4 = 'at_example' # str | Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' (optional) +count5 = true # bool | The $count query option allows clients to request a count of the matching resources. (optional) +inlinecount5 = 'inlinecount_example' # str | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response (optional) +top5 = 56 # int | The max number of records to return (optional) +skip5 = 56 # int | The number of records to skip (optional) +filter5 = 'filter_example' # str | Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') (optional) +select5 = 'select_example' # str | Specifies a subset of properties to return (optional) +orderby5 = 'orderby_example' # str | Determines what values are used to order a collection of records (optional) +expand5 = 'expand_example' # str | Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames (optional) +apply5 = 'apply_example' # str | Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) (optional) +at5 = 'at_example' # str | Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' (optional) +count6 = true # bool | The $count query option allows clients to request a count of the matching resources. (optional) +inlinecount6 = 'inlinecount_example' # str | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response (optional) +top6 = 56 # int | The max number of records to return (optional) +skip6 = 56 # int | The number of records to skip (optional) +filter6 = 'filter_example' # str | Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') (optional) +select6 = 'select_example' # str | Specifies a subset of properties to return (optional) +orderby6 = 'orderby_example' # str | Determines what values are used to order a collection of records (optional) +expand6 = 'expand_example' # str | Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames (optional) +apply6 = 'apply_example' # str | Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) (optional) +at6 = 'at_example' # str | Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' (optional) +count7 = true # bool | The $count query option allows clients to request a count of the matching resources. (optional) +inlinecount7 = 'inlinecount_example' # str | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response (optional) +top7 = 56 # int | The max number of records to return (optional) +skip7 = 56 # int | The number of records to skip (optional) +filter7 = 'filter_example' # str | Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') (optional) +select7 = 'select_example' # str | Specifies a subset of properties to return (optional) +orderby7 = 'orderby_example' # str | Determines what values are used to order a collection of records (optional) +expand7 = 'expand_example' # str | Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames (optional) +apply7 = 'apply_example' # str | Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) (optional) +count8 = true # bool | The $count query option allows clients to request a count of the matching resources. (optional) +inlinecount8 = 'inlinecount_example' # str | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response (optional) +top8 = 56 # int | The max number of records to return (optional) +skip8 = 56 # int | The number of records to skip (optional) +filter8 = 'filter_example' # str | Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') (optional) +select8 = 'select_example' # str | Specifies a subset of properties to return (optional) +orderby8 = 'orderby_example' # str | Determines what values are used to order a collection of records (optional) +expand8 = 'expand_example' # str | Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames (optional) +apply8 = 'apply_example' # str | Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) (optional) +count9 = true # bool | The $count query option allows clients to request a count of the matching resources. (optional) +inlinecount9 = 'inlinecount_example' # str | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response (optional) +top9 = 56 # int | The max number of records to return (optional) +skip9 = 56 # int | The number of records to skip (optional) +filter9 = 'filter_example' # str | Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') (optional) +select9 = 'select_example' # str | Specifies a subset of properties to return (optional) +orderby9 = 'orderby_example' # str | Determines what values are used to order a collection of records (optional) +expand9 = 'expand_example' # str | Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames (optional) +apply9 = 'apply_example' # str | Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) (optional) +count10 = true # bool | The $count query option allows clients to request a count of the matching resources. (optional) +inlinecount10 = 'inlinecount_example' # str | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response (optional) +top10 = 56 # int | The max number of records to return (optional) +skip10 = 56 # int | The number of records to skip (optional) +filter10 = 'filter_example' # str | Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') (optional) +select10 = 'select_example' # str | Specifies a subset of properties to return (optional) +orderby10 = 'orderby_example' # str | Determines what values are used to order a collection of records (optional) +expand10 = 'expand_example' # str | Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames (optional) +apply10 = 'apply_example' # str | Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) (optional) +count11 = true # bool | The $count query option allows clients to request a count of the matching resources. (optional) +inlinecount11 = 'inlinecount_example' # str | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response (optional) +top11 = 56 # int | The max number of records to return (optional) +skip11 = 56 # int | The number of records to skip (optional) +filter11 = 'filter_example' # str | Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') (optional) +select11 = 'select_example' # str | Specifies a subset of properties to return (optional) +orderby11 = 'orderby_example' # str | Determines what values are used to order a collection of records (optional) +expand11 = 'expand_example' # str | Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames (optional) +apply11 = 'apply_example' # str | Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) (optional) +count12 = true # bool | The $count query option allows clients to request a count of the matching resources. (optional) +inlinecount12 = 'inlinecount_example' # str | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response (optional) +top12 = 56 # int | The max number of records to return (optional) +skip12 = 56 # int | The number of records to skip (optional) +filter12 = 'filter_example' # str | Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') (optional) +select12 = 'select_example' # str | Specifies a subset of properties to return (optional) +orderby12 = 'orderby_example' # str | Determines what values are used to order a collection of records (optional) +expand12 = 'expand_example' # str | Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames (optional) +apply12 = 'apply_example' # str | Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) (optional) +count13 = true # bool | The $count query option allows clients to request a count of the matching resources. (optional) +inlinecount13 = 'inlinecount_example' # str | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response (optional) +top13 = 56 # int | The max number of records to return (optional) +skip13 = 56 # int | The number of records to skip (optional) +filter13 = 'filter_example' # str | Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') (optional) +select13 = 'select_example' # str | Specifies a subset of properties to return (optional) +orderby13 = 'orderby_example' # str | Determines what values are used to order a collection of records (optional) +expand13 = 'expand_example' # str | Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames (optional) +apply13 = 'apply_example' # str | Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) (optional) +count14 = true # bool | The $count query option allows clients to request a count of the matching resources. (optional) +inlinecount14 = 'inlinecount_example' # str | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response (optional) +top14 = 56 # int | The max number of records to return (optional) +skip14 = 56 # int | The number of records to skip (optional) +filter14 = 'filter_example' # str | Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') (optional) +select14 = 'select_example' # str | Specifies a subset of properties to return (optional) +orderby14 = 'orderby_example' # str | Determines what values are used to order a collection of records (optional) +expand14 = 'expand_example' # str | Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames (optional) +apply14 = 'apply_example' # str | Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) (optional) +count15 = true # bool | The $count query option allows clients to request a count of the matching resources. (optional) +inlinecount15 = 'inlinecount_example' # str | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response (optional) +top15 = 56 # int | The max number of records to return (optional) +skip15 = 56 # int | The number of records to skip (optional) +filter15 = 'filter_example' # str | Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') (optional) +select15 = 'select_example' # str | Specifies a subset of properties to return (optional) +orderby15 = 'orderby_example' # str | Determines what values are used to order a collection of records (optional) +expand15 = 'expand_example' # str | Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames (optional) +apply15 = 'apply_example' # str | Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) (optional) try: - # List of aaaAuditRecords - api_response = api_instance.aaa_audit_records_get(count=count, inlinecount=inlinecount, tags=tags, top=top, skip=skip, filter=filter, select=select, orderby=orderby, expand=expand) + # Get a list of 'aaaAuditRecord' instances + api_response = api_instance.aaa_audit_records_get(count=count, inlinecount=inlinecount, top=top, skip=skip, filter=filter, select=select, orderby=orderby, expand=expand, apply=apply, at=at, count2=count2, inlinecount2=inlinecount2, top2=top2, skip2=skip2, filter2=filter2, select2=select2, orderby2=orderby2, expand2=expand2, apply2=apply2, at2=at2, count3=count3, inlinecount3=inlinecount3, top3=top3, skip3=skip3, filter3=filter3, select3=select3, orderby3=orderby3, expand3=expand3, apply3=apply3, at3=at3, count4=count4, inlinecount4=inlinecount4, top4=top4, skip4=skip4, filter4=filter4, select4=select4, orderby4=orderby4, expand4=expand4, apply4=apply4, at4=at4, count5=count5, inlinecount5=inlinecount5, top5=top5, skip5=skip5, filter5=filter5, select5=select5, orderby5=orderby5, expand5=expand5, apply5=apply5, at5=at5, count6=count6, inlinecount6=inlinecount6, top6=top6, skip6=skip6, filter6=filter6, select6=select6, orderby6=orderby6, expand6=expand6, apply6=apply6, at6=at6, count7=count7, inlinecount7=inlinecount7, top7=top7, skip7=skip7, filter7=filter7, select7=select7, orderby7=orderby7, expand7=expand7, apply7=apply7, count8=count8, inlinecount8=inlinecount8, top8=top8, skip8=skip8, filter8=filter8, select8=select8, orderby8=orderby8, expand8=expand8, apply8=apply8, count9=count9, inlinecount9=inlinecount9, top9=top9, skip9=skip9, filter9=filter9, select9=select9, orderby9=orderby9, expand9=expand9, apply9=apply9, count10=count10, inlinecount10=inlinecount10, top10=top10, skip10=skip10, filter10=filter10, select10=select10, orderby10=orderby10, expand10=expand10, apply10=apply10, count11=count11, inlinecount11=inlinecount11, top11=top11, skip11=skip11, filter11=filter11, select11=select11, orderby11=orderby11, expand11=expand11, apply11=apply11, count12=count12, inlinecount12=inlinecount12, top12=top12, skip12=skip12, filter12=filter12, select12=select12, orderby12=orderby12, expand12=expand12, apply12=apply12, count13=count13, inlinecount13=inlinecount13, top13=top13, skip13=skip13, filter13=filter13, select13=select13, orderby13=orderby13, expand13=expand13, apply13=apply13, count14=count14, inlinecount14=inlinecount14, top14=top14, skip14=skip14, filter14=filter14, select14=select14, orderby14=orderby14, expand14=expand14, apply14=apply14, count15=count15, inlinecount15=inlinecount15, top15=top15, skip15=skip15, filter15=filter15, select15=select15, orderby15=orderby15, expand15=expand15, apply15=apply15) pprint(api_response) except ApiException as e: print("Exception when calling AaaAuditRecordApi->aaa_audit_records_get: %s\n" % e) @@ -74,583 +206,762 @@ except ApiException as e: ## Documentation for API Endpoints -All URIs are relative to *https://ucs.cisco.com/api/v1* +All URIs are relative to *https://intersight.com/api/v1* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AaaAuditRecordApi* | [**aaa_audit_records_get**](docs/AaaAuditRecordApi.md#aaa_audit_records_get) | **GET** /aaa/AuditRecords | List of aaaAuditRecords -*AaaAuditRecordApi* | [**aaa_audit_records_moid_get**](docs/AaaAuditRecordApi.md#aaa_audit_records_moid_get) | **GET** /aaa/AuditRecords/{moid} | A instance of aaaAuditRecord -*AdapterExtEthInterfaceApi* | [**adapter_ext_eth_interfaces_get**](docs/AdapterExtEthInterfaceApi.md#adapter_ext_eth_interfaces_get) | **GET** /adapter/ExtEthInterfaces | List of adapterExtEthInterfaces -*AdapterExtEthInterfaceApi* | [**adapter_ext_eth_interfaces_moid_get**](docs/AdapterExtEthInterfaceApi.md#adapter_ext_eth_interfaces_moid_get) | **GET** /adapter/ExtEthInterfaces/{moid} | A instance of adapterExtEthInterface -*AdapterHostEthInterfaceApi* | [**adapter_host_eth_interfaces_get**](docs/AdapterHostEthInterfaceApi.md#adapter_host_eth_interfaces_get) | **GET** /adapter/HostEthInterfaces | List of adapterHostEthInterfaces -*AdapterHostEthInterfaceApi* | [**adapter_host_eth_interfaces_moid_get**](docs/AdapterHostEthInterfaceApi.md#adapter_host_eth_interfaces_moid_get) | **GET** /adapter/HostEthInterfaces/{moid} | A instance of adapterHostEthInterface -*AdapterHostFcInterfaceApi* | [**adapter_host_fc_interfaces_get**](docs/AdapterHostFcInterfaceApi.md#adapter_host_fc_interfaces_get) | **GET** /adapter/HostFcInterfaces | List of adapterHostFcInterfaces -*AdapterHostFcInterfaceApi* | [**adapter_host_fc_interfaces_moid_get**](docs/AdapterHostFcInterfaceApi.md#adapter_host_fc_interfaces_moid_get) | **GET** /adapter/HostFcInterfaces/{moid} | A instance of adapterHostFcInterface -*AdapterHostIscsiInterfaceApi* | [**adapter_host_iscsi_interfaces_get**](docs/AdapterHostIscsiInterfaceApi.md#adapter_host_iscsi_interfaces_get) | **GET** /adapter/HostIscsiInterfaces | List of adapterHostIscsiInterfaces -*AdapterHostIscsiInterfaceApi* | [**adapter_host_iscsi_interfaces_moid_get**](docs/AdapterHostIscsiInterfaceApi.md#adapter_host_iscsi_interfaces_moid_get) | **GET** /adapter/HostIscsiInterfaces/{moid} | A instance of adapterHostIscsiInterface -*AdapterUnitApi* | [**adapter_units_get**](docs/AdapterUnitApi.md#adapter_units_get) | **GET** /adapter/Units | List of adapterUnits -*AdapterUnitApi* | [**adapter_units_moid_get**](docs/AdapterUnitApi.md#adapter_units_moid_get) | **GET** /adapter/Units/{moid} | A instance of adapterUnit -*AssetDeviceClaimApi* | [**asset_device_claims_moid_delete**](docs/AssetDeviceClaimApi.md#asset_device_claims_moid_delete) | **DELETE** /asset/DeviceClaims/{moid} | Delete an instance of assetDeviceClaim -*AssetDeviceClaimApi* | [**asset_device_claims_post**](docs/AssetDeviceClaimApi.md#asset_device_claims_post) | **POST** /asset/DeviceClaims | Create a assetDeviceClaim -*AssetDeviceRegistrationApi* | [**asset_device_registrations_get**](docs/AssetDeviceRegistrationApi.md#asset_device_registrations_get) | **GET** /asset/DeviceRegistrations | List of assetDeviceRegistrations -*AssetDeviceRegistrationApi* | [**asset_device_registrations_moid_delete**](docs/AssetDeviceRegistrationApi.md#asset_device_registrations_moid_delete) | **DELETE** /asset/DeviceRegistrations/{moid} | Delete an instance of assetDeviceRegistration -*AssetDeviceRegistrationApi* | [**asset_device_registrations_moid_get**](docs/AssetDeviceRegistrationApi.md#asset_device_registrations_moid_get) | **GET** /asset/DeviceRegistrations/{moid} | A instance of assetDeviceRegistration -*AssetDeviceRegistrationApi* | [**asset_device_registrations_moid_patch**](docs/AssetDeviceRegistrationApi.md#asset_device_registrations_moid_patch) | **PATCH** /asset/DeviceRegistrations/{moid} | Update an instance of assetDeviceRegistration -*AssetDeviceRegistrationApi* | [**asset_device_registrations_moid_post**](docs/AssetDeviceRegistrationApi.md#asset_device_registrations_moid_post) | **POST** /asset/DeviceRegistrations/{moid} | Update an instance of assetDeviceRegistration -*BiosPolicyApi* | [**bios_policies_get**](docs/BiosPolicyApi.md#bios_policies_get) | **GET** /bios/Policies | List of biosPolicies -*BiosPolicyApi* | [**bios_policies_moid_delete**](docs/BiosPolicyApi.md#bios_policies_moid_delete) | **DELETE** /bios/Policies/{moid} | Delete an instance of biosPolicy -*BiosPolicyApi* | [**bios_policies_moid_get**](docs/BiosPolicyApi.md#bios_policies_moid_get) | **GET** /bios/Policies/{moid} | A instance of biosPolicy -*BiosPolicyApi* | [**bios_policies_moid_patch**](docs/BiosPolicyApi.md#bios_policies_moid_patch) | **PATCH** /bios/Policies/{moid} | Update an instance of biosPolicy -*BiosPolicyApi* | [**bios_policies_moid_post**](docs/BiosPolicyApi.md#bios_policies_moid_post) | **POST** /bios/Policies/{moid} | Update an instance of biosPolicy -*BiosPolicyApi* | [**bios_policies_post**](docs/BiosPolicyApi.md#bios_policies_post) | **POST** /bios/Policies | Create a biosPolicy -*BiosUnitApi* | [**bios_units_get**](docs/BiosUnitApi.md#bios_units_get) | **GET** /bios/Units | List of biosUnits -*BiosUnitApi* | [**bios_units_moid_get**](docs/BiosUnitApi.md#bios_units_moid_get) | **GET** /bios/Units/{moid} | A instance of biosUnit -*BiosUnitApi* | [**bios_units_moid_patch**](docs/BiosUnitApi.md#bios_units_moid_patch) | **PATCH** /bios/Units/{moid} | Update an instance of biosUnit -*BiosUnitApi* | [**bios_units_moid_post**](docs/BiosUnitApi.md#bios_units_moid_post) | **POST** /bios/Units/{moid} | Update an instance of biosUnit -*BootPrecisionPolicyApi* | [**boot_precision_policies_get**](docs/BootPrecisionPolicyApi.md#boot_precision_policies_get) | **GET** /boot/PrecisionPolicies | List of bootPrecisionPolicies -*BootPrecisionPolicyApi* | [**boot_precision_policies_moid_delete**](docs/BootPrecisionPolicyApi.md#boot_precision_policies_moid_delete) | **DELETE** /boot/PrecisionPolicies/{moid} | Delete an instance of bootPrecisionPolicy -*BootPrecisionPolicyApi* | [**boot_precision_policies_moid_get**](docs/BootPrecisionPolicyApi.md#boot_precision_policies_moid_get) | **GET** /boot/PrecisionPolicies/{moid} | A instance of bootPrecisionPolicy -*BootPrecisionPolicyApi* | [**boot_precision_policies_moid_patch**](docs/BootPrecisionPolicyApi.md#boot_precision_policies_moid_patch) | **PATCH** /boot/PrecisionPolicies/{moid} | Update an instance of bootPrecisionPolicy -*BootPrecisionPolicyApi* | [**boot_precision_policies_moid_post**](docs/BootPrecisionPolicyApi.md#boot_precision_policies_moid_post) | **POST** /boot/PrecisionPolicies/{moid} | Update an instance of bootPrecisionPolicy -*BootPrecisionPolicyApi* | [**boot_precision_policies_post**](docs/BootPrecisionPolicyApi.md#boot_precision_policies_post) | **POST** /boot/PrecisionPolicies | Create a bootPrecisionPolicy -*ComputeBladeApi* | [**compute_blades_get**](docs/ComputeBladeApi.md#compute_blades_get) | **GET** /compute/Blades | List of computeBlades -*ComputeBladeApi* | [**compute_blades_moid_get**](docs/ComputeBladeApi.md#compute_blades_moid_get) | **GET** /compute/Blades/{moid} | A instance of computeBlade -*ComputeBladeApi* | [**compute_blades_moid_patch**](docs/ComputeBladeApi.md#compute_blades_moid_patch) | **PATCH** /compute/Blades/{moid} | Update an instance of computeBlade -*ComputeBladeApi* | [**compute_blades_moid_post**](docs/ComputeBladeApi.md#compute_blades_moid_post) | **POST** /compute/Blades/{moid} | Update an instance of computeBlade -*ComputeBoardApi* | [**compute_boards_get**](docs/ComputeBoardApi.md#compute_boards_get) | **GET** /compute/Boards | List of computeBoards -*ComputeBoardApi* | [**compute_boards_moid_get**](docs/ComputeBoardApi.md#compute_boards_moid_get) | **GET** /compute/Boards/{moid} | A instance of computeBoard -*ComputeBoardApi* | [**compute_boards_moid_patch**](docs/ComputeBoardApi.md#compute_boards_moid_patch) | **PATCH** /compute/Boards/{moid} | Update an instance of computeBoard -*ComputeBoardApi* | [**compute_boards_moid_post**](docs/ComputeBoardApi.md#compute_boards_moid_post) | **POST** /compute/Boards/{moid} | Update an instance of computeBoard -*ComputePhysicalSummaryApi* | [**compute_physical_summaries_get**](docs/ComputePhysicalSummaryApi.md#compute_physical_summaries_get) | **GET** /compute/PhysicalSummaries | List of computePhysicalSummaries -*ComputePhysicalSummaryApi* | [**compute_physical_summaries_moid_get**](docs/ComputePhysicalSummaryApi.md#compute_physical_summaries_moid_get) | **GET** /compute/PhysicalSummaries/{moid} | A instance of computePhysicalSummary -*ComputeRackUnitApi* | [**compute_rack_units_get**](docs/ComputeRackUnitApi.md#compute_rack_units_get) | **GET** /compute/RackUnits | List of computeRackUnits -*ComputeRackUnitApi* | [**compute_rack_units_moid_get**](docs/ComputeRackUnitApi.md#compute_rack_units_moid_get) | **GET** /compute/RackUnits/{moid} | A instance of computeRackUnit -*ComputeRackUnitApi* | [**compute_rack_units_moid_patch**](docs/ComputeRackUnitApi.md#compute_rack_units_moid_patch) | **PATCH** /compute/RackUnits/{moid} | Update an instance of computeRackUnit -*ComputeRackUnitApi* | [**compute_rack_units_moid_post**](docs/ComputeRackUnitApi.md#compute_rack_units_moid_post) | **POST** /compute/RackUnits/{moid} | Update an instance of computeRackUnit -*ComputeServerSettingApi* | [**compute_server_settings_get**](docs/ComputeServerSettingApi.md#compute_server_settings_get) | **GET** /compute/ServerSettings | List of computeServerSettings -*ComputeServerSettingApi* | [**compute_server_settings_moid_get**](docs/ComputeServerSettingApi.md#compute_server_settings_moid_get) | **GET** /compute/ServerSettings/{moid} | A instance of computeServerSetting -*ComputeServerSettingApi* | [**compute_server_settings_moid_patch**](docs/ComputeServerSettingApi.md#compute_server_settings_moid_patch) | **PATCH** /compute/ServerSettings/{moid} | Update an instance of computeServerSetting -*ComputeServerSettingApi* | [**compute_server_settings_moid_post**](docs/ComputeServerSettingApi.md#compute_server_settings_moid_post) | **POST** /compute/ServerSettings/{moid} | Update an instance of computeServerSetting -*CondAlarmApi* | [**cond_alarms_get**](docs/CondAlarmApi.md#cond_alarms_get) | **GET** /cond/Alarms | List of condAlarms -*CondAlarmApi* | [**cond_alarms_moid_get**](docs/CondAlarmApi.md#cond_alarms_moid_get) | **GET** /cond/Alarms/{moid} | A instance of condAlarm -*CondHclStatusApi* | [**cond_hcl_statuses_get**](docs/CondHclStatusApi.md#cond_hcl_statuses_get) | **GET** /cond/HclStatuses | List of condHclStatuses -*CondHclStatusApi* | [**cond_hcl_statuses_moid_get**](docs/CondHclStatusApi.md#cond_hcl_statuses_moid_get) | **GET** /cond/HclStatuses/{moid} | A instance of condHclStatus -*CondHclStatusActionApi* | [**cond_hcl_status_actions_get**](docs/CondHclStatusActionApi.md#cond_hcl_status_actions_get) | **GET** /cond/HclStatusActions | List of condHclStatusActions -*CondHclStatusActionApi* | [**cond_hcl_status_actions_moid_get**](docs/CondHclStatusActionApi.md#cond_hcl_status_actions_moid_get) | **GET** /cond/HclStatusActions/{moid} | A instance of condHclStatusAction -*CondHclStatusDetailApi* | [**cond_hcl_status_details_get**](docs/CondHclStatusDetailApi.md#cond_hcl_status_details_get) | **GET** /cond/HclStatusDetails | List of condHclStatusDetails -*CondHclStatusDetailApi* | [**cond_hcl_status_details_moid_get**](docs/CondHclStatusDetailApi.md#cond_hcl_status_details_moid_get) | **GET** /cond/HclStatusDetails/{moid} | A instance of condHclStatusDetail -*CondHclStatusJobApi* | [**cond_hcl_status_jobs_get**](docs/CondHclStatusJobApi.md#cond_hcl_status_jobs_get) | **GET** /cond/HclStatusJobs | List of condHclStatusJobs -*CondHclStatusJobApi* | [**cond_hcl_status_jobs_moid_get**](docs/CondHclStatusJobApi.md#cond_hcl_status_jobs_moid_get) | **GET** /cond/HclStatusJobs/{moid} | A instance of condHclStatusJob -*CryptEncryptionTokenApi* | [**crypt_encryption_tokens_get**](docs/CryptEncryptionTokenApi.md#crypt_encryption_tokens_get) | **GET** /crypt/EncryptionTokens | List of cryptEncryptionTokens -*CryptEncryptionTokenApi* | [**crypt_encryption_tokens_moid_get**](docs/CryptEncryptionTokenApi.md#crypt_encryption_tokens_moid_get) | **GET** /crypt/EncryptionTokens/{moid} | A instance of cryptEncryptionToken -*CryptEncryptionTokenApi* | [**crypt_encryption_tokens_moid_patch**](docs/CryptEncryptionTokenApi.md#crypt_encryption_tokens_moid_patch) | **PATCH** /crypt/EncryptionTokens/{moid} | Update an instance of cryptEncryptionToken -*CryptEncryptionTokenApi* | [**crypt_encryption_tokens_moid_post**](docs/CryptEncryptionTokenApi.md#crypt_encryption_tokens_moid_post) | **POST** /crypt/EncryptionTokens/{moid} | Update an instance of cryptEncryptionToken -*DeviceinfoSerialNumberInfoApi* | [**deviceinfo_serial_number_infos_get**](docs/DeviceinfoSerialNumberInfoApi.md#deviceinfo_serial_number_infos_get) | **GET** /deviceinfo/SerialNumberInfos | List of deviceinfoSerialNumberInfos -*DeviceinfoSerialNumberInfoApi* | [**deviceinfo_serial_number_infos_moid_get**](docs/DeviceinfoSerialNumberInfoApi.md#deviceinfo_serial_number_infos_moid_get) | **GET** /deviceinfo/SerialNumberInfos/{moid} | A instance of deviceinfoSerialNumberInfo -*EpansibleRunnerApi* | [**epansible_runners_get**](docs/EpansibleRunnerApi.md#epansible_runners_get) | **GET** /epansible/Runners | List of epansibleRunners -*EpansibleRunnerApi* | [**epansible_runners_moid_delete**](docs/EpansibleRunnerApi.md#epansible_runners_moid_delete) | **DELETE** /epansible/Runners/{moid} | Delete an instance of epansibleRunner -*EpansibleRunnerApi* | [**epansible_runners_moid_get**](docs/EpansibleRunnerApi.md#epansible_runners_moid_get) | **GET** /epansible/Runners/{moid} | A instance of epansibleRunner -*EpansibleRunnerApi* | [**epansible_runners_moid_patch**](docs/EpansibleRunnerApi.md#epansible_runners_moid_patch) | **PATCH** /epansible/Runners/{moid} | Update an instance of epansibleRunner -*EpansibleRunnerApi* | [**epansible_runners_moid_post**](docs/EpansibleRunnerApi.md#epansible_runners_moid_post) | **POST** /epansible/Runners/{moid} | Update an instance of epansibleRunner -*EpansibleRunnerApi* | [**epansible_runners_post**](docs/EpansibleRunnerApi.md#epansible_runners_post) | **POST** /epansible/Runners | Create a epansibleRunner -*EquipmentChassisApi* | [**equipment_chasses_get**](docs/EquipmentChassisApi.md#equipment_chasses_get) | **GET** /equipment/Chasses | List of equipmentChasses -*EquipmentChassisApi* | [**equipment_chasses_moid_get**](docs/EquipmentChassisApi.md#equipment_chasses_moid_get) | **GET** /equipment/Chasses/{moid} | A instance of equipmentChassis -*EquipmentChassisApi* | [**equipment_chasses_moid_patch**](docs/EquipmentChassisApi.md#equipment_chasses_moid_patch) | **PATCH** /equipment/Chasses/{moid} | Update an instance of equipmentChassis -*EquipmentChassisApi* | [**equipment_chasses_moid_post**](docs/EquipmentChassisApi.md#equipment_chasses_moid_post) | **POST** /equipment/Chasses/{moid} | Update an instance of equipmentChassis -*EquipmentDeviceSummaryApi* | [**equipment_device_summaries_get**](docs/EquipmentDeviceSummaryApi.md#equipment_device_summaries_get) | **GET** /equipment/DeviceSummaries | List of equipmentDeviceSummaries -*EquipmentDeviceSummaryApi* | [**equipment_device_summaries_moid_get**](docs/EquipmentDeviceSummaryApi.md#equipment_device_summaries_moid_get) | **GET** /equipment/DeviceSummaries/{moid} | A instance of equipmentDeviceSummary -*EquipmentFanApi* | [**equipment_fans_get**](docs/EquipmentFanApi.md#equipment_fans_get) | **GET** /equipment/Fans | List of equipmentFans -*EquipmentFanApi* | [**equipment_fans_moid_get**](docs/EquipmentFanApi.md#equipment_fans_moid_get) | **GET** /equipment/Fans/{moid} | A instance of equipmentFan -*EquipmentFanApi* | [**equipment_fans_moid_patch**](docs/EquipmentFanApi.md#equipment_fans_moid_patch) | **PATCH** /equipment/Fans/{moid} | Update an instance of equipmentFan -*EquipmentFanApi* | [**equipment_fans_moid_post**](docs/EquipmentFanApi.md#equipment_fans_moid_post) | **POST** /equipment/Fans/{moid} | Update an instance of equipmentFan -*EquipmentFanModuleApi* | [**equipment_fan_modules_get**](docs/EquipmentFanModuleApi.md#equipment_fan_modules_get) | **GET** /equipment/FanModules | List of equipmentFanModules -*EquipmentFanModuleApi* | [**equipment_fan_modules_moid_get**](docs/EquipmentFanModuleApi.md#equipment_fan_modules_moid_get) | **GET** /equipment/FanModules/{moid} | A instance of equipmentFanModule -*EquipmentFanModuleApi* | [**equipment_fan_modules_moid_patch**](docs/EquipmentFanModuleApi.md#equipment_fan_modules_moid_patch) | **PATCH** /equipment/FanModules/{moid} | Update an instance of equipmentFanModule -*EquipmentFanModuleApi* | [**equipment_fan_modules_moid_post**](docs/EquipmentFanModuleApi.md#equipment_fan_modules_moid_post) | **POST** /equipment/FanModules/{moid} | Update an instance of equipmentFanModule -*EquipmentFexApi* | [**equipment_fexes_get**](docs/EquipmentFexApi.md#equipment_fexes_get) | **GET** /equipment/Fexes | List of equipmentFexes -*EquipmentFexApi* | [**equipment_fexes_moid_get**](docs/EquipmentFexApi.md#equipment_fexes_moid_get) | **GET** /equipment/Fexes/{moid} | A instance of equipmentFex -*EquipmentFexApi* | [**equipment_fexes_moid_patch**](docs/EquipmentFexApi.md#equipment_fexes_moid_patch) | **PATCH** /equipment/Fexes/{moid} | Update an instance of equipmentFex -*EquipmentFexApi* | [**equipment_fexes_moid_post**](docs/EquipmentFexApi.md#equipment_fexes_moid_post) | **POST** /equipment/Fexes/{moid} | Update an instance of equipmentFex -*EquipmentIoCardApi* | [**equipment_io_cards_get**](docs/EquipmentIoCardApi.md#equipment_io_cards_get) | **GET** /equipment/IoCards | List of equipmentIoCards -*EquipmentIoCardApi* | [**equipment_io_cards_moid_get**](docs/EquipmentIoCardApi.md#equipment_io_cards_moid_get) | **GET** /equipment/IoCards/{moid} | A instance of equipmentIoCard -*EquipmentIoCardApi* | [**equipment_io_cards_moid_patch**](docs/EquipmentIoCardApi.md#equipment_io_cards_moid_patch) | **PATCH** /equipment/IoCards/{moid} | Update an instance of equipmentIoCard -*EquipmentIoCardApi* | [**equipment_io_cards_moid_post**](docs/EquipmentIoCardApi.md#equipment_io_cards_moid_post) | **POST** /equipment/IoCards/{moid} | Update an instance of equipmentIoCard -*EquipmentLocatorLedApi* | [**equipment_locator_leds_get**](docs/EquipmentLocatorLedApi.md#equipment_locator_leds_get) | **GET** /equipment/LocatorLeds | List of equipmentLocatorLeds -*EquipmentLocatorLedApi* | [**equipment_locator_leds_moid_get**](docs/EquipmentLocatorLedApi.md#equipment_locator_leds_moid_get) | **GET** /equipment/LocatorLeds/{moid} | A instance of equipmentLocatorLed -*EquipmentLocatorLedApi* | [**equipment_locator_leds_moid_patch**](docs/EquipmentLocatorLedApi.md#equipment_locator_leds_moid_patch) | **PATCH** /equipment/LocatorLeds/{moid} | Update an instance of equipmentLocatorLed -*EquipmentLocatorLedApi* | [**equipment_locator_leds_moid_post**](docs/EquipmentLocatorLedApi.md#equipment_locator_leds_moid_post) | **POST** /equipment/LocatorLeds/{moid} | Update an instance of equipmentLocatorLed -*EquipmentPsuApi* | [**equipment_psus_get**](docs/EquipmentPsuApi.md#equipment_psus_get) | **GET** /equipment/Psus | List of equipmentPsus -*EquipmentPsuApi* | [**equipment_psus_moid_get**](docs/EquipmentPsuApi.md#equipment_psus_moid_get) | **GET** /equipment/Psus/{moid} | A instance of equipmentPsu -*EquipmentPsuApi* | [**equipment_psus_moid_patch**](docs/EquipmentPsuApi.md#equipment_psus_moid_patch) | **PATCH** /equipment/Psus/{moid} | Update an instance of equipmentPsu -*EquipmentPsuApi* | [**equipment_psus_moid_post**](docs/EquipmentPsuApi.md#equipment_psus_moid_post) | **POST** /equipment/Psus/{moid} | Update an instance of equipmentPsu -*EquipmentSwitchCardApi* | [**equipment_switch_cards_get**](docs/EquipmentSwitchCardApi.md#equipment_switch_cards_get) | **GET** /equipment/SwitchCards | List of equipmentSwitchCards -*EquipmentSwitchCardApi* | [**equipment_switch_cards_moid_get**](docs/EquipmentSwitchCardApi.md#equipment_switch_cards_moid_get) | **GET** /equipment/SwitchCards/{moid} | A instance of equipmentSwitchCard -*EquipmentSwitchCardApi* | [**equipment_switch_cards_moid_patch**](docs/EquipmentSwitchCardApi.md#equipment_switch_cards_moid_patch) | **PATCH** /equipment/SwitchCards/{moid} | Update an instance of equipmentSwitchCard -*EquipmentSwitchCardApi* | [**equipment_switch_cards_moid_post**](docs/EquipmentSwitchCardApi.md#equipment_switch_cards_moid_post) | **POST** /equipment/SwitchCards/{moid} | Update an instance of equipmentSwitchCard -*EquipmentSystemIoControllerApi* | [**equipment_system_io_controllers_get**](docs/EquipmentSystemIoControllerApi.md#equipment_system_io_controllers_get) | **GET** /equipment/SystemIoControllers | List of equipmentSystemIoControllers -*EquipmentSystemIoControllerApi* | [**equipment_system_io_controllers_moid_get**](docs/EquipmentSystemIoControllerApi.md#equipment_system_io_controllers_moid_get) | **GET** /equipment/SystemIoControllers/{moid} | A instance of equipmentSystemIoController -*EquipmentSystemIoControllerApi* | [**equipment_system_io_controllers_moid_patch**](docs/EquipmentSystemIoControllerApi.md#equipment_system_io_controllers_moid_patch) | **PATCH** /equipment/SystemIoControllers/{moid} | Update an instance of equipmentSystemIoController -*EquipmentSystemIoControllerApi* | [**equipment_system_io_controllers_moid_post**](docs/EquipmentSystemIoControllerApi.md#equipment_system_io_controllers_moid_post) | **POST** /equipment/SystemIoControllers/{moid} | Update an instance of equipmentSystemIoController -*EtherPhysicalPortApi* | [**ether_physical_ports_get**](docs/EtherPhysicalPortApi.md#ether_physical_ports_get) | **GET** /ether/PhysicalPorts | List of etherPhysicalPorts -*EtherPhysicalPortApi* | [**ether_physical_ports_moid_get**](docs/EtherPhysicalPortApi.md#ether_physical_ports_moid_get) | **GET** /ether/PhysicalPorts/{moid} | A instance of etherPhysicalPort -*EtherPhysicalPortApi* | [**ether_physical_ports_moid_patch**](docs/EtherPhysicalPortApi.md#ether_physical_ports_moid_patch) | **PATCH** /ether/PhysicalPorts/{moid} | Update an instance of etherPhysicalPort -*EtherPhysicalPortApi* | [**ether_physical_ports_moid_post**](docs/EtherPhysicalPortApi.md#ether_physical_ports_moid_post) | **POST** /ether/PhysicalPorts/{moid} | Update an instance of etherPhysicalPort -*ExternalsiteAuthProfileApi* | [**externalsite_auth_profiles_get**](docs/ExternalsiteAuthProfileApi.md#externalsite_auth_profiles_get) | **GET** /externalsite/AuthProfiles | List of externalsiteAuthProfiles -*ExternalsiteAuthProfileApi* | [**externalsite_auth_profiles_moid_get**](docs/ExternalsiteAuthProfileApi.md#externalsite_auth_profiles_moid_get) | **GET** /externalsite/AuthProfiles/{moid} | A instance of externalsiteAuthProfile -*ExternalsiteAuthProfileApi* | [**externalsite_auth_profiles_moid_patch**](docs/ExternalsiteAuthProfileApi.md#externalsite_auth_profiles_moid_patch) | **PATCH** /externalsite/AuthProfiles/{moid} | Update an instance of externalsiteAuthProfile -*ExternalsiteAuthProfileApi* | [**externalsite_auth_profiles_moid_post**](docs/ExternalsiteAuthProfileApi.md#externalsite_auth_profiles_moid_post) | **POST** /externalsite/AuthProfiles/{moid} | Update an instance of externalsiteAuthProfile -*ExternalsiteAuthProfileApi* | [**externalsite_auth_profiles_post**](docs/ExternalsiteAuthProfileApi.md#externalsite_auth_profiles_post) | **POST** /externalsite/AuthProfiles | Create a externalsiteAuthProfile -*ExtsearchImportApi* | [**extsearch_imports_get**](docs/ExtsearchImportApi.md#extsearch_imports_get) | **GET** /extsearch/Imports | List of extsearchImports -*ExtsearchImportApi* | [**extsearch_imports_moid_get**](docs/ExtsearchImportApi.md#extsearch_imports_moid_get) | **GET** /extsearch/Imports/{moid} | A instance of extsearchImport -*ExtsearchImportApi* | [**extsearch_imports_post**](docs/ExtsearchImportApi.md#extsearch_imports_post) | **POST** /extsearch/Imports | Create a extsearchImport -*FaultInstanceApi* | [**fault_instances_get**](docs/FaultInstanceApi.md#fault_instances_get) | **GET** /fault/Instances | List of faultInstances -*FaultInstanceApi* | [**fault_instances_moid_get**](docs/FaultInstanceApi.md#fault_instances_moid_get) | **GET** /fault/Instances/{moid} | A instance of faultInstance -*FaultInstanceApi* | [**fault_instances_moid_patch**](docs/FaultInstanceApi.md#fault_instances_moid_patch) | **PATCH** /fault/Instances/{moid} | Update an instance of faultInstance -*FaultInstanceApi* | [**fault_instances_moid_post**](docs/FaultInstanceApi.md#fault_instances_moid_post) | **POST** /fault/Instances/{moid} | Update an instance of faultInstance -*FcPhysicalPortApi* | [**fc_physical_ports_get**](docs/FcPhysicalPortApi.md#fc_physical_ports_get) | **GET** /fc/PhysicalPorts | List of fcPhysicalPorts -*FcPhysicalPortApi* | [**fc_physical_ports_moid_get**](docs/FcPhysicalPortApi.md#fc_physical_ports_moid_get) | **GET** /fc/PhysicalPorts/{moid} | A instance of fcPhysicalPort -*FcPhysicalPortApi* | [**fc_physical_ports_moid_patch**](docs/FcPhysicalPortApi.md#fc_physical_ports_moid_patch) | **PATCH** /fc/PhysicalPorts/{moid} | Update an instance of fcPhysicalPort -*FcPhysicalPortApi* | [**fc_physical_ports_moid_post**](docs/FcPhysicalPortApi.md#fc_physical_ports_moid_post) | **POST** /fc/PhysicalPorts/{moid} | Update an instance of fcPhysicalPort -*FirmwareDistributableApi* | [**firmware_distributables_get**](docs/FirmwareDistributableApi.md#firmware_distributables_get) | **GET** /firmware/Distributables | List of firmwareDistributables -*FirmwareDistributableApi* | [**firmware_distributables_moid_get**](docs/FirmwareDistributableApi.md#firmware_distributables_moid_get) | **GET** /firmware/Distributables/{moid} | A instance of firmwareDistributable -*FirmwareEulaApi* | [**firmware_eulas_get**](docs/FirmwareEulaApi.md#firmware_eulas_get) | **GET** /firmware/Eulas | List of firmwareEulas -*FirmwareEulaApi* | [**firmware_eulas_moid_get**](docs/FirmwareEulaApi.md#firmware_eulas_moid_get) | **GET** /firmware/Eulas/{moid} | A instance of firmwareEula -*FirmwareEulaApi* | [**firmware_eulas_post**](docs/FirmwareEulaApi.md#firmware_eulas_post) | **POST** /firmware/Eulas | Create a firmwareEula -*FirmwareRunningFirmwareApi* | [**firmware_running_firmwares_get**](docs/FirmwareRunningFirmwareApi.md#firmware_running_firmwares_get) | **GET** /firmware/RunningFirmwares | List of firmwareRunningFirmwares -*FirmwareRunningFirmwareApi* | [**firmware_running_firmwares_moid_get**](docs/FirmwareRunningFirmwareApi.md#firmware_running_firmwares_moid_get) | **GET** /firmware/RunningFirmwares/{moid} | A instance of firmwareRunningFirmware -*FirmwareRunningFirmwareApi* | [**firmware_running_firmwares_moid_patch**](docs/FirmwareRunningFirmwareApi.md#firmware_running_firmwares_moid_patch) | **PATCH** /firmware/RunningFirmwares/{moid} | Update an instance of firmwareRunningFirmware -*FirmwareRunningFirmwareApi* | [**firmware_running_firmwares_moid_post**](docs/FirmwareRunningFirmwareApi.md#firmware_running_firmwares_moid_post) | **POST** /firmware/RunningFirmwares/{moid} | Update an instance of firmwareRunningFirmware -*FirmwareUpgradeApi* | [**firmware_upgrades_get**](docs/FirmwareUpgradeApi.md#firmware_upgrades_get) | **GET** /firmware/Upgrades | List of firmwareUpgrades -*FirmwareUpgradeApi* | [**firmware_upgrades_moid_delete**](docs/FirmwareUpgradeApi.md#firmware_upgrades_moid_delete) | **DELETE** /firmware/Upgrades/{moid} | Delete an instance of firmwareUpgrade -*FirmwareUpgradeApi* | [**firmware_upgrades_moid_get**](docs/FirmwareUpgradeApi.md#firmware_upgrades_moid_get) | **GET** /firmware/Upgrades/{moid} | A instance of firmwareUpgrade -*FirmwareUpgradeApi* | [**firmware_upgrades_post**](docs/FirmwareUpgradeApi.md#firmware_upgrades_post) | **POST** /firmware/Upgrades | Create a firmwareUpgrade -*FirmwareUpgradeStatusApi* | [**firmware_upgrade_statuses_get**](docs/FirmwareUpgradeStatusApi.md#firmware_upgrade_statuses_get) | **GET** /firmware/UpgradeStatuses | List of firmwareUpgradeStatuses -*FirmwareUpgradeStatusApi* | [**firmware_upgrade_statuses_moid_get**](docs/FirmwareUpgradeStatusApi.md#firmware_upgrade_statuses_moid_get) | **GET** /firmware/UpgradeStatuses/{moid} | A instance of firmwareUpgradeStatus -*GraphicsCardApi* | [**graphics_cards_get**](docs/GraphicsCardApi.md#graphics_cards_get) | **GET** /graphics/Cards | List of graphicsCards -*GraphicsCardApi* | [**graphics_cards_moid_get**](docs/GraphicsCardApi.md#graphics_cards_moid_get) | **GET** /graphics/Cards/{moid} | A instance of graphicsCard -*GraphicsCardApi* | [**graphics_cards_moid_patch**](docs/GraphicsCardApi.md#graphics_cards_moid_patch) | **PATCH** /graphics/Cards/{moid} | Update an instance of graphicsCard -*GraphicsCardApi* | [**graphics_cards_moid_post**](docs/GraphicsCardApi.md#graphics_cards_moid_post) | **POST** /graphics/Cards/{moid} | Update an instance of graphicsCard -*GraphicsControllerApi* | [**graphics_controllers_get**](docs/GraphicsControllerApi.md#graphics_controllers_get) | **GET** /graphics/Controllers | List of graphicsControllers -*GraphicsControllerApi* | [**graphics_controllers_moid_get**](docs/GraphicsControllerApi.md#graphics_controllers_moid_get) | **GET** /graphics/Controllers/{moid} | A instance of graphicsController -*GraphicsControllerApi* | [**graphics_controllers_moid_patch**](docs/GraphicsControllerApi.md#graphics_controllers_moid_patch) | **PATCH** /graphics/Controllers/{moid} | Update an instance of graphicsController -*GraphicsControllerApi* | [**graphics_controllers_moid_post**](docs/GraphicsControllerApi.md#graphics_controllers_moid_post) | **POST** /graphics/Controllers/{moid} | Update an instance of graphicsController -*HclCompatibilityInfoApi* | [**hcl_compatibility_infos_get**](docs/HclCompatibilityInfoApi.md#hcl_compatibility_infos_get) | **GET** /hcl/CompatibilityInfos | List of hclCompatibilityInfos -*HclCompatibilityInfoApi* | [**hcl_compatibility_infos_moid_get**](docs/HclCompatibilityInfoApi.md#hcl_compatibility_infos_moid_get) | **GET** /hcl/CompatibilityInfos/{moid} | A instance of hclCompatibilityInfo -*HclCompatibilityStatusApi* | [**hcl_compatibility_statuses_post**](docs/HclCompatibilityStatusApi.md#hcl_compatibility_statuses_post) | **POST** /hcl/CompatibilityStatuses | Create a hclCompatibilityStatus -*HclDataImportLogApi* | [**hcl_data_import_logs_get**](docs/HclDataImportLogApi.md#hcl_data_import_logs_get) | **GET** /hcl/DataImportLogs | List of hclDataImportLogs -*HclDataImportLogApi* | [**hcl_data_import_logs_moid_get**](docs/HclDataImportLogApi.md#hcl_data_import_logs_moid_get) | **GET** /hcl/DataImportLogs/{moid} | A instance of hclDataImportLog -*HclNoteApi* | [**hcl_notes_get**](docs/HclNoteApi.md#hcl_notes_get) | **GET** /hcl/Notes | List of hclNotes -*HclNoteApi* | [**hcl_notes_moid_get**](docs/HclNoteApi.md#hcl_notes_moid_get) | **GET** /hcl/Notes/{moid} | A instance of hclNote -*HclSupportedDriverNameApi* | [**hcl_supported_driver_names_post**](docs/HclSupportedDriverNameApi.md#hcl_supported_driver_names_post) | **POST** /hcl/SupportedDriverNames | Create a hclSupportedDriverName -*HyperflexAlarmApi* | [**hyperflex_alarms_get**](docs/HyperflexAlarmApi.md#hyperflex_alarms_get) | **GET** /hyperflex/Alarms | List of hyperflexAlarms -*HyperflexAlarmApi* | [**hyperflex_alarms_moid_delete**](docs/HyperflexAlarmApi.md#hyperflex_alarms_moid_delete) | **DELETE** /hyperflex/Alarms/{moid} | Delete an instance of hyperflexAlarm -*HyperflexAlarmApi* | [**hyperflex_alarms_moid_get**](docs/HyperflexAlarmApi.md#hyperflex_alarms_moid_get) | **GET** /hyperflex/Alarms/{moid} | A instance of hyperflexAlarm -*HyperflexAlarmApi* | [**hyperflex_alarms_post**](docs/HyperflexAlarmApi.md#hyperflex_alarms_post) | **POST** /hyperflex/Alarms | Create a hyperflexAlarm -*HyperflexAutoSupportPolicyApi* | [**hyperflex_auto_support_policies_get**](docs/HyperflexAutoSupportPolicyApi.md#hyperflex_auto_support_policies_get) | **GET** /hyperflex/AutoSupportPolicies | List of hyperflexAutoSupportPolicies -*HyperflexAutoSupportPolicyApi* | [**hyperflex_auto_support_policies_moid_delete**](docs/HyperflexAutoSupportPolicyApi.md#hyperflex_auto_support_policies_moid_delete) | **DELETE** /hyperflex/AutoSupportPolicies/{moid} | Delete an instance of hyperflexAutoSupportPolicy -*HyperflexAutoSupportPolicyApi* | [**hyperflex_auto_support_policies_moid_get**](docs/HyperflexAutoSupportPolicyApi.md#hyperflex_auto_support_policies_moid_get) | **GET** /hyperflex/AutoSupportPolicies/{moid} | A instance of hyperflexAutoSupportPolicy -*HyperflexAutoSupportPolicyApi* | [**hyperflex_auto_support_policies_moid_patch**](docs/HyperflexAutoSupportPolicyApi.md#hyperflex_auto_support_policies_moid_patch) | **PATCH** /hyperflex/AutoSupportPolicies/{moid} | Update an instance of hyperflexAutoSupportPolicy -*HyperflexAutoSupportPolicyApi* | [**hyperflex_auto_support_policies_moid_post**](docs/HyperflexAutoSupportPolicyApi.md#hyperflex_auto_support_policies_moid_post) | **POST** /hyperflex/AutoSupportPolicies/{moid} | Update an instance of hyperflexAutoSupportPolicy -*HyperflexAutoSupportPolicyApi* | [**hyperflex_auto_support_policies_post**](docs/HyperflexAutoSupportPolicyApi.md#hyperflex_auto_support_policies_post) | **POST** /hyperflex/AutoSupportPolicies | Create a hyperflexAutoSupportPolicy -*HyperflexClusterApi* | [**hyperflex_clusters_get**](docs/HyperflexClusterApi.md#hyperflex_clusters_get) | **GET** /hyperflex/Clusters | List of hyperflexClusters -*HyperflexClusterApi* | [**hyperflex_clusters_moid_delete**](docs/HyperflexClusterApi.md#hyperflex_clusters_moid_delete) | **DELETE** /hyperflex/Clusters/{moid} | Delete an instance of hyperflexCluster -*HyperflexClusterApi* | [**hyperflex_clusters_moid_get**](docs/HyperflexClusterApi.md#hyperflex_clusters_moid_get) | **GET** /hyperflex/Clusters/{moid} | A instance of hyperflexCluster -*HyperflexClusterApi* | [**hyperflex_clusters_moid_patch**](docs/HyperflexClusterApi.md#hyperflex_clusters_moid_patch) | **PATCH** /hyperflex/Clusters/{moid} | Update an instance of hyperflexCluster -*HyperflexClusterApi* | [**hyperflex_clusters_moid_post**](docs/HyperflexClusterApi.md#hyperflex_clusters_moid_post) | **POST** /hyperflex/Clusters/{moid} | Update an instance of hyperflexCluster -*HyperflexClusterNetworkPolicyApi* | [**hyperflex_cluster_network_policies_get**](docs/HyperflexClusterNetworkPolicyApi.md#hyperflex_cluster_network_policies_get) | **GET** /hyperflex/ClusterNetworkPolicies | List of hyperflexClusterNetworkPolicies -*HyperflexClusterNetworkPolicyApi* | [**hyperflex_cluster_network_policies_moid_delete**](docs/HyperflexClusterNetworkPolicyApi.md#hyperflex_cluster_network_policies_moid_delete) | **DELETE** /hyperflex/ClusterNetworkPolicies/{moid} | Delete an instance of hyperflexClusterNetworkPolicy -*HyperflexClusterNetworkPolicyApi* | [**hyperflex_cluster_network_policies_moid_get**](docs/HyperflexClusterNetworkPolicyApi.md#hyperflex_cluster_network_policies_moid_get) | **GET** /hyperflex/ClusterNetworkPolicies/{moid} | A instance of hyperflexClusterNetworkPolicy -*HyperflexClusterNetworkPolicyApi* | [**hyperflex_cluster_network_policies_moid_patch**](docs/HyperflexClusterNetworkPolicyApi.md#hyperflex_cluster_network_policies_moid_patch) | **PATCH** /hyperflex/ClusterNetworkPolicies/{moid} | Update an instance of hyperflexClusterNetworkPolicy -*HyperflexClusterNetworkPolicyApi* | [**hyperflex_cluster_network_policies_moid_post**](docs/HyperflexClusterNetworkPolicyApi.md#hyperflex_cluster_network_policies_moid_post) | **POST** /hyperflex/ClusterNetworkPolicies/{moid} | Update an instance of hyperflexClusterNetworkPolicy -*HyperflexClusterNetworkPolicyApi* | [**hyperflex_cluster_network_policies_post**](docs/HyperflexClusterNetworkPolicyApi.md#hyperflex_cluster_network_policies_post) | **POST** /hyperflex/ClusterNetworkPolicies | Create a hyperflexClusterNetworkPolicy -*HyperflexClusterProfileApi* | [**hyperflex_cluster_profiles_get**](docs/HyperflexClusterProfileApi.md#hyperflex_cluster_profiles_get) | **GET** /hyperflex/ClusterProfiles | List of hyperflexClusterProfiles -*HyperflexClusterProfileApi* | [**hyperflex_cluster_profiles_moid_delete**](docs/HyperflexClusterProfileApi.md#hyperflex_cluster_profiles_moid_delete) | **DELETE** /hyperflex/ClusterProfiles/{moid} | Delete an instance of hyperflexClusterProfile -*HyperflexClusterProfileApi* | [**hyperflex_cluster_profiles_moid_get**](docs/HyperflexClusterProfileApi.md#hyperflex_cluster_profiles_moid_get) | **GET** /hyperflex/ClusterProfiles/{moid} | A instance of hyperflexClusterProfile -*HyperflexClusterProfileApi* | [**hyperflex_cluster_profiles_moid_patch**](docs/HyperflexClusterProfileApi.md#hyperflex_cluster_profiles_moid_patch) | **PATCH** /hyperflex/ClusterProfiles/{moid} | Update an instance of hyperflexClusterProfile -*HyperflexClusterProfileApi* | [**hyperflex_cluster_profiles_moid_post**](docs/HyperflexClusterProfileApi.md#hyperflex_cluster_profiles_moid_post) | **POST** /hyperflex/ClusterProfiles/{moid} | Update an instance of hyperflexClusterProfile -*HyperflexClusterProfileApi* | [**hyperflex_cluster_profiles_post**](docs/HyperflexClusterProfileApi.md#hyperflex_cluster_profiles_post) | **POST** /hyperflex/ClusterProfiles | Create a hyperflexClusterProfile -*HyperflexClusterStoragePolicyApi* | [**hyperflex_cluster_storage_policies_get**](docs/HyperflexClusterStoragePolicyApi.md#hyperflex_cluster_storage_policies_get) | **GET** /hyperflex/ClusterStoragePolicies | List of hyperflexClusterStoragePolicies -*HyperflexClusterStoragePolicyApi* | [**hyperflex_cluster_storage_policies_moid_delete**](docs/HyperflexClusterStoragePolicyApi.md#hyperflex_cluster_storage_policies_moid_delete) | **DELETE** /hyperflex/ClusterStoragePolicies/{moid} | Delete an instance of hyperflexClusterStoragePolicy -*HyperflexClusterStoragePolicyApi* | [**hyperflex_cluster_storage_policies_moid_get**](docs/HyperflexClusterStoragePolicyApi.md#hyperflex_cluster_storage_policies_moid_get) | **GET** /hyperflex/ClusterStoragePolicies/{moid} | A instance of hyperflexClusterStoragePolicy -*HyperflexClusterStoragePolicyApi* | [**hyperflex_cluster_storage_policies_moid_patch**](docs/HyperflexClusterStoragePolicyApi.md#hyperflex_cluster_storage_policies_moid_patch) | **PATCH** /hyperflex/ClusterStoragePolicies/{moid} | Update an instance of hyperflexClusterStoragePolicy -*HyperflexClusterStoragePolicyApi* | [**hyperflex_cluster_storage_policies_moid_post**](docs/HyperflexClusterStoragePolicyApi.md#hyperflex_cluster_storage_policies_moid_post) | **POST** /hyperflex/ClusterStoragePolicies/{moid} | Update an instance of hyperflexClusterStoragePolicy -*HyperflexClusterStoragePolicyApi* | [**hyperflex_cluster_storage_policies_post**](docs/HyperflexClusterStoragePolicyApi.md#hyperflex_cluster_storage_policies_post) | **POST** /hyperflex/ClusterStoragePolicies | Create a hyperflexClusterStoragePolicy -*HyperflexConfigResultApi* | [**hyperflex_config_results_get**](docs/HyperflexConfigResultApi.md#hyperflex_config_results_get) | **GET** /hyperflex/ConfigResults | List of hyperflexConfigResults -*HyperflexConfigResultApi* | [**hyperflex_config_results_moid_get**](docs/HyperflexConfigResultApi.md#hyperflex_config_results_moid_get) | **GET** /hyperflex/ConfigResults/{moid} | A instance of hyperflexConfigResult -*HyperflexExtFcStoragePolicyApi* | [**hyperflex_ext_fc_storage_policies_get**](docs/HyperflexExtFcStoragePolicyApi.md#hyperflex_ext_fc_storage_policies_get) | **GET** /hyperflex/ExtFcStoragePolicies | List of hyperflexExtFcStoragePolicies -*HyperflexExtFcStoragePolicyApi* | [**hyperflex_ext_fc_storage_policies_moid_delete**](docs/HyperflexExtFcStoragePolicyApi.md#hyperflex_ext_fc_storage_policies_moid_delete) | **DELETE** /hyperflex/ExtFcStoragePolicies/{moid} | Delete an instance of hyperflexExtFcStoragePolicy -*HyperflexExtFcStoragePolicyApi* | [**hyperflex_ext_fc_storage_policies_moid_get**](docs/HyperflexExtFcStoragePolicyApi.md#hyperflex_ext_fc_storage_policies_moid_get) | **GET** /hyperflex/ExtFcStoragePolicies/{moid} | A instance of hyperflexExtFcStoragePolicy -*HyperflexExtFcStoragePolicyApi* | [**hyperflex_ext_fc_storage_policies_moid_patch**](docs/HyperflexExtFcStoragePolicyApi.md#hyperflex_ext_fc_storage_policies_moid_patch) | **PATCH** /hyperflex/ExtFcStoragePolicies/{moid} | Update an instance of hyperflexExtFcStoragePolicy -*HyperflexExtFcStoragePolicyApi* | [**hyperflex_ext_fc_storage_policies_moid_post**](docs/HyperflexExtFcStoragePolicyApi.md#hyperflex_ext_fc_storage_policies_moid_post) | **POST** /hyperflex/ExtFcStoragePolicies/{moid} | Update an instance of hyperflexExtFcStoragePolicy -*HyperflexExtFcStoragePolicyApi* | [**hyperflex_ext_fc_storage_policies_post**](docs/HyperflexExtFcStoragePolicyApi.md#hyperflex_ext_fc_storage_policies_post) | **POST** /hyperflex/ExtFcStoragePolicies | Create a hyperflexExtFcStoragePolicy -*HyperflexExtIscsiStoragePolicyApi* | [**hyperflex_ext_iscsi_storage_policies_get**](docs/HyperflexExtIscsiStoragePolicyApi.md#hyperflex_ext_iscsi_storage_policies_get) | **GET** /hyperflex/ExtIscsiStoragePolicies | List of hyperflexExtIscsiStoragePolicies -*HyperflexExtIscsiStoragePolicyApi* | [**hyperflex_ext_iscsi_storage_policies_moid_delete**](docs/HyperflexExtIscsiStoragePolicyApi.md#hyperflex_ext_iscsi_storage_policies_moid_delete) | **DELETE** /hyperflex/ExtIscsiStoragePolicies/{moid} | Delete an instance of hyperflexExtIscsiStoragePolicy -*HyperflexExtIscsiStoragePolicyApi* | [**hyperflex_ext_iscsi_storage_policies_moid_get**](docs/HyperflexExtIscsiStoragePolicyApi.md#hyperflex_ext_iscsi_storage_policies_moid_get) | **GET** /hyperflex/ExtIscsiStoragePolicies/{moid} | A instance of hyperflexExtIscsiStoragePolicy -*HyperflexExtIscsiStoragePolicyApi* | [**hyperflex_ext_iscsi_storage_policies_moid_patch**](docs/HyperflexExtIscsiStoragePolicyApi.md#hyperflex_ext_iscsi_storage_policies_moid_patch) | **PATCH** /hyperflex/ExtIscsiStoragePolicies/{moid} | Update an instance of hyperflexExtIscsiStoragePolicy -*HyperflexExtIscsiStoragePolicyApi* | [**hyperflex_ext_iscsi_storage_policies_moid_post**](docs/HyperflexExtIscsiStoragePolicyApi.md#hyperflex_ext_iscsi_storage_policies_moid_post) | **POST** /hyperflex/ExtIscsiStoragePolicies/{moid} | Update an instance of hyperflexExtIscsiStoragePolicy -*HyperflexExtIscsiStoragePolicyApi* | [**hyperflex_ext_iscsi_storage_policies_post**](docs/HyperflexExtIscsiStoragePolicyApi.md#hyperflex_ext_iscsi_storage_policies_post) | **POST** /hyperflex/ExtIscsiStoragePolicies | Create a hyperflexExtIscsiStoragePolicy -*HyperflexLocalCredentialPolicyApi* | [**hyperflex_local_credential_policies_get**](docs/HyperflexLocalCredentialPolicyApi.md#hyperflex_local_credential_policies_get) | **GET** /hyperflex/LocalCredentialPolicies | List of hyperflexLocalCredentialPolicies -*HyperflexLocalCredentialPolicyApi* | [**hyperflex_local_credential_policies_moid_delete**](docs/HyperflexLocalCredentialPolicyApi.md#hyperflex_local_credential_policies_moid_delete) | **DELETE** /hyperflex/LocalCredentialPolicies/{moid} | Delete an instance of hyperflexLocalCredentialPolicy -*HyperflexLocalCredentialPolicyApi* | [**hyperflex_local_credential_policies_moid_get**](docs/HyperflexLocalCredentialPolicyApi.md#hyperflex_local_credential_policies_moid_get) | **GET** /hyperflex/LocalCredentialPolicies/{moid} | A instance of hyperflexLocalCredentialPolicy -*HyperflexLocalCredentialPolicyApi* | [**hyperflex_local_credential_policies_moid_patch**](docs/HyperflexLocalCredentialPolicyApi.md#hyperflex_local_credential_policies_moid_patch) | **PATCH** /hyperflex/LocalCredentialPolicies/{moid} | Update an instance of hyperflexLocalCredentialPolicy -*HyperflexLocalCredentialPolicyApi* | [**hyperflex_local_credential_policies_moid_post**](docs/HyperflexLocalCredentialPolicyApi.md#hyperflex_local_credential_policies_moid_post) | **POST** /hyperflex/LocalCredentialPolicies/{moid} | Update an instance of hyperflexLocalCredentialPolicy -*HyperflexLocalCredentialPolicyApi* | [**hyperflex_local_credential_policies_post**](docs/HyperflexLocalCredentialPolicyApi.md#hyperflex_local_credential_policies_post) | **POST** /hyperflex/LocalCredentialPolicies | Create a hyperflexLocalCredentialPolicy -*HyperflexNodeConfigPolicyApi* | [**hyperflex_node_config_policies_get**](docs/HyperflexNodeConfigPolicyApi.md#hyperflex_node_config_policies_get) | **GET** /hyperflex/NodeConfigPolicies | List of hyperflexNodeConfigPolicies -*HyperflexNodeConfigPolicyApi* | [**hyperflex_node_config_policies_moid_delete**](docs/HyperflexNodeConfigPolicyApi.md#hyperflex_node_config_policies_moid_delete) | **DELETE** /hyperflex/NodeConfigPolicies/{moid} | Delete an instance of hyperflexNodeConfigPolicy -*HyperflexNodeConfigPolicyApi* | [**hyperflex_node_config_policies_moid_get**](docs/HyperflexNodeConfigPolicyApi.md#hyperflex_node_config_policies_moid_get) | **GET** /hyperflex/NodeConfigPolicies/{moid} | A instance of hyperflexNodeConfigPolicy -*HyperflexNodeConfigPolicyApi* | [**hyperflex_node_config_policies_moid_patch**](docs/HyperflexNodeConfigPolicyApi.md#hyperflex_node_config_policies_moid_patch) | **PATCH** /hyperflex/NodeConfigPolicies/{moid} | Update an instance of hyperflexNodeConfigPolicy -*HyperflexNodeConfigPolicyApi* | [**hyperflex_node_config_policies_moid_post**](docs/HyperflexNodeConfigPolicyApi.md#hyperflex_node_config_policies_moid_post) | **POST** /hyperflex/NodeConfigPolicies/{moid} | Update an instance of hyperflexNodeConfigPolicy -*HyperflexNodeConfigPolicyApi* | [**hyperflex_node_config_policies_post**](docs/HyperflexNodeConfigPolicyApi.md#hyperflex_node_config_policies_post) | **POST** /hyperflex/NodeConfigPolicies | Create a hyperflexNodeConfigPolicy -*HyperflexNodeProfileApi* | [**hyperflex_node_profiles_get**](docs/HyperflexNodeProfileApi.md#hyperflex_node_profiles_get) | **GET** /hyperflex/NodeProfiles | List of hyperflexNodeProfiles -*HyperflexNodeProfileApi* | [**hyperflex_node_profiles_moid_delete**](docs/HyperflexNodeProfileApi.md#hyperflex_node_profiles_moid_delete) | **DELETE** /hyperflex/NodeProfiles/{moid} | Delete an instance of hyperflexNodeProfile -*HyperflexNodeProfileApi* | [**hyperflex_node_profiles_moid_get**](docs/HyperflexNodeProfileApi.md#hyperflex_node_profiles_moid_get) | **GET** /hyperflex/NodeProfiles/{moid} | A instance of hyperflexNodeProfile -*HyperflexNodeProfileApi* | [**hyperflex_node_profiles_moid_patch**](docs/HyperflexNodeProfileApi.md#hyperflex_node_profiles_moid_patch) | **PATCH** /hyperflex/NodeProfiles/{moid} | Update an instance of hyperflexNodeProfile -*HyperflexNodeProfileApi* | [**hyperflex_node_profiles_moid_post**](docs/HyperflexNodeProfileApi.md#hyperflex_node_profiles_moid_post) | **POST** /hyperflex/NodeProfiles/{moid} | Update an instance of hyperflexNodeProfile -*HyperflexNodeProfileApi* | [**hyperflex_node_profiles_post**](docs/HyperflexNodeProfileApi.md#hyperflex_node_profiles_post) | **POST** /hyperflex/NodeProfiles | Create a hyperflexNodeProfile -*HyperflexSysConfigPolicyApi* | [**hyperflex_sys_config_policies_get**](docs/HyperflexSysConfigPolicyApi.md#hyperflex_sys_config_policies_get) | **GET** /hyperflex/SysConfigPolicies | List of hyperflexSysConfigPolicies -*HyperflexSysConfigPolicyApi* | [**hyperflex_sys_config_policies_moid_delete**](docs/HyperflexSysConfigPolicyApi.md#hyperflex_sys_config_policies_moid_delete) | **DELETE** /hyperflex/SysConfigPolicies/{moid} | Delete an instance of hyperflexSysConfigPolicy -*HyperflexSysConfigPolicyApi* | [**hyperflex_sys_config_policies_moid_get**](docs/HyperflexSysConfigPolicyApi.md#hyperflex_sys_config_policies_moid_get) | **GET** /hyperflex/SysConfigPolicies/{moid} | A instance of hyperflexSysConfigPolicy -*HyperflexSysConfigPolicyApi* | [**hyperflex_sys_config_policies_moid_patch**](docs/HyperflexSysConfigPolicyApi.md#hyperflex_sys_config_policies_moid_patch) | **PATCH** /hyperflex/SysConfigPolicies/{moid} | Update an instance of hyperflexSysConfigPolicy -*HyperflexSysConfigPolicyApi* | [**hyperflex_sys_config_policies_moid_post**](docs/HyperflexSysConfigPolicyApi.md#hyperflex_sys_config_policies_moid_post) | **POST** /hyperflex/SysConfigPolicies/{moid} | Update an instance of hyperflexSysConfigPolicy -*HyperflexSysConfigPolicyApi* | [**hyperflex_sys_config_policies_post**](docs/HyperflexSysConfigPolicyApi.md#hyperflex_sys_config_policies_post) | **POST** /hyperflex/SysConfigPolicies | Create a hyperflexSysConfigPolicy -*HyperflexUcsmConfigPolicyApi* | [**hyperflex_ucsm_config_policies_get**](docs/HyperflexUcsmConfigPolicyApi.md#hyperflex_ucsm_config_policies_get) | **GET** /hyperflex/UcsmConfigPolicies | List of hyperflexUcsmConfigPolicies -*HyperflexUcsmConfigPolicyApi* | [**hyperflex_ucsm_config_policies_moid_delete**](docs/HyperflexUcsmConfigPolicyApi.md#hyperflex_ucsm_config_policies_moid_delete) | **DELETE** /hyperflex/UcsmConfigPolicies/{moid} | Delete an instance of hyperflexUcsmConfigPolicy -*HyperflexUcsmConfigPolicyApi* | [**hyperflex_ucsm_config_policies_moid_get**](docs/HyperflexUcsmConfigPolicyApi.md#hyperflex_ucsm_config_policies_moid_get) | **GET** /hyperflex/UcsmConfigPolicies/{moid} | A instance of hyperflexUcsmConfigPolicy -*HyperflexUcsmConfigPolicyApi* | [**hyperflex_ucsm_config_policies_moid_patch**](docs/HyperflexUcsmConfigPolicyApi.md#hyperflex_ucsm_config_policies_moid_patch) | **PATCH** /hyperflex/UcsmConfigPolicies/{moid} | Update an instance of hyperflexUcsmConfigPolicy -*HyperflexUcsmConfigPolicyApi* | [**hyperflex_ucsm_config_policies_moid_post**](docs/HyperflexUcsmConfigPolicyApi.md#hyperflex_ucsm_config_policies_moid_post) | **POST** /hyperflex/UcsmConfigPolicies/{moid} | Update an instance of hyperflexUcsmConfigPolicy -*HyperflexUcsmConfigPolicyApi* | [**hyperflex_ucsm_config_policies_post**](docs/HyperflexUcsmConfigPolicyApi.md#hyperflex_ucsm_config_policies_post) | **POST** /hyperflex/UcsmConfigPolicies | Create a hyperflexUcsmConfigPolicy -*HyperflexVcenterConfigPolicyApi* | [**hyperflex_vcenter_config_policies_get**](docs/HyperflexVcenterConfigPolicyApi.md#hyperflex_vcenter_config_policies_get) | **GET** /hyperflex/VcenterConfigPolicies | List of hyperflexVcenterConfigPolicies -*HyperflexVcenterConfigPolicyApi* | [**hyperflex_vcenter_config_policies_moid_delete**](docs/HyperflexVcenterConfigPolicyApi.md#hyperflex_vcenter_config_policies_moid_delete) | **DELETE** /hyperflex/VcenterConfigPolicies/{moid} | Delete an instance of hyperflexVcenterConfigPolicy -*HyperflexVcenterConfigPolicyApi* | [**hyperflex_vcenter_config_policies_moid_get**](docs/HyperflexVcenterConfigPolicyApi.md#hyperflex_vcenter_config_policies_moid_get) | **GET** /hyperflex/VcenterConfigPolicies/{moid} | A instance of hyperflexVcenterConfigPolicy -*HyperflexVcenterConfigPolicyApi* | [**hyperflex_vcenter_config_policies_moid_patch**](docs/HyperflexVcenterConfigPolicyApi.md#hyperflex_vcenter_config_policies_moid_patch) | **PATCH** /hyperflex/VcenterConfigPolicies/{moid} | Update an instance of hyperflexVcenterConfigPolicy -*HyperflexVcenterConfigPolicyApi* | [**hyperflex_vcenter_config_policies_moid_post**](docs/HyperflexVcenterConfigPolicyApi.md#hyperflex_vcenter_config_policies_moid_post) | **POST** /hyperflex/VcenterConfigPolicies/{moid} | Update an instance of hyperflexVcenterConfigPolicy -*HyperflexVcenterConfigPolicyApi* | [**hyperflex_vcenter_config_policies_post**](docs/HyperflexVcenterConfigPolicyApi.md#hyperflex_vcenter_config_policies_post) | **POST** /hyperflex/VcenterConfigPolicies | Create a hyperflexVcenterConfigPolicy -*IamAccountApi* | [**iam_accounts_get**](docs/IamAccountApi.md#iam_accounts_get) | **GET** /iam/Accounts | List of iamAccounts -*IamAccountApi* | [**iam_accounts_moid_delete**](docs/IamAccountApi.md#iam_accounts_moid_delete) | **DELETE** /iam/Accounts/{moid} | Delete an instance of iamAccount -*IamAccountApi* | [**iam_accounts_moid_get**](docs/IamAccountApi.md#iam_accounts_moid_get) | **GET** /iam/Accounts/{moid} | A instance of iamAccount -*IamAccountApi* | [**iam_accounts_post**](docs/IamAccountApi.md#iam_accounts_post) | **POST** /iam/Accounts | Create a iamAccount -*IamApiKeyApi* | [**iam_api_keys_get**](docs/IamApiKeyApi.md#iam_api_keys_get) | **GET** /iam/ApiKeys | List of iamApiKeys -*IamApiKeyApi* | [**iam_api_keys_moid_delete**](docs/IamApiKeyApi.md#iam_api_keys_moid_delete) | **DELETE** /iam/ApiKeys/{moid} | Delete an instance of iamApiKey -*IamApiKeyApi* | [**iam_api_keys_moid_get**](docs/IamApiKeyApi.md#iam_api_keys_moid_get) | **GET** /iam/ApiKeys/{moid} | A instance of iamApiKey -*IamApiKeyApi* | [**iam_api_keys_moid_patch**](docs/IamApiKeyApi.md#iam_api_keys_moid_patch) | **PATCH** /iam/ApiKeys/{moid} | Update an instance of iamApiKey -*IamApiKeyApi* | [**iam_api_keys_moid_post**](docs/IamApiKeyApi.md#iam_api_keys_moid_post) | **POST** /iam/ApiKeys/{moid} | Update an instance of iamApiKey -*IamApiKeyApi* | [**iam_api_keys_post**](docs/IamApiKeyApi.md#iam_api_keys_post) | **POST** /iam/ApiKeys | Create a iamApiKey -*IamEndPointPrivilegeApi* | [**iam_end_point_privileges_get**](docs/IamEndPointPrivilegeApi.md#iam_end_point_privileges_get) | **GET** /iam/EndPointPrivileges | List of iamEndPointPrivileges -*IamEndPointPrivilegeApi* | [**iam_end_point_privileges_moid_get**](docs/IamEndPointPrivilegeApi.md#iam_end_point_privileges_moid_get) | **GET** /iam/EndPointPrivileges/{moid} | A instance of iamEndPointPrivilege -*IamEndPointRoleApi* | [**iam_end_point_roles_get**](docs/IamEndPointRoleApi.md#iam_end_point_roles_get) | **GET** /iam/EndPointRoles | List of iamEndPointRoles -*IamEndPointRoleApi* | [**iam_end_point_roles_moid_get**](docs/IamEndPointRoleApi.md#iam_end_point_roles_moid_get) | **GET** /iam/EndPointRoles/{moid} | A instance of iamEndPointRole -*IamEndPointUserApi* | [**iam_end_point_users_get**](docs/IamEndPointUserApi.md#iam_end_point_users_get) | **GET** /iam/EndPointUsers | List of iamEndPointUsers -*IamEndPointUserApi* | [**iam_end_point_users_moid_delete**](docs/IamEndPointUserApi.md#iam_end_point_users_moid_delete) | **DELETE** /iam/EndPointUsers/{moid} | Delete an instance of iamEndPointUser -*IamEndPointUserApi* | [**iam_end_point_users_moid_get**](docs/IamEndPointUserApi.md#iam_end_point_users_moid_get) | **GET** /iam/EndPointUsers/{moid} | A instance of iamEndPointUser -*IamEndPointUserApi* | [**iam_end_point_users_moid_patch**](docs/IamEndPointUserApi.md#iam_end_point_users_moid_patch) | **PATCH** /iam/EndPointUsers/{moid} | Update an instance of iamEndPointUser -*IamEndPointUserApi* | [**iam_end_point_users_moid_post**](docs/IamEndPointUserApi.md#iam_end_point_users_moid_post) | **POST** /iam/EndPointUsers/{moid} | Update an instance of iamEndPointUser -*IamEndPointUserApi* | [**iam_end_point_users_post**](docs/IamEndPointUserApi.md#iam_end_point_users_post) | **POST** /iam/EndPointUsers | Create a iamEndPointUser -*IamEndPointUserPolicyApi* | [**iam_end_point_user_policies_get**](docs/IamEndPointUserPolicyApi.md#iam_end_point_user_policies_get) | **GET** /iam/EndPointUserPolicies | List of iamEndPointUserPolicies -*IamEndPointUserPolicyApi* | [**iam_end_point_user_policies_moid_delete**](docs/IamEndPointUserPolicyApi.md#iam_end_point_user_policies_moid_delete) | **DELETE** /iam/EndPointUserPolicies/{moid} | Delete an instance of iamEndPointUserPolicy -*IamEndPointUserPolicyApi* | [**iam_end_point_user_policies_moid_get**](docs/IamEndPointUserPolicyApi.md#iam_end_point_user_policies_moid_get) | **GET** /iam/EndPointUserPolicies/{moid} | A instance of iamEndPointUserPolicy -*IamEndPointUserPolicyApi* | [**iam_end_point_user_policies_moid_patch**](docs/IamEndPointUserPolicyApi.md#iam_end_point_user_policies_moid_patch) | **PATCH** /iam/EndPointUserPolicies/{moid} | Update an instance of iamEndPointUserPolicy -*IamEndPointUserPolicyApi* | [**iam_end_point_user_policies_moid_post**](docs/IamEndPointUserPolicyApi.md#iam_end_point_user_policies_moid_post) | **POST** /iam/EndPointUserPolicies/{moid} | Update an instance of iamEndPointUserPolicy -*IamEndPointUserPolicyApi* | [**iam_end_point_user_policies_post**](docs/IamEndPointUserPolicyApi.md#iam_end_point_user_policies_post) | **POST** /iam/EndPointUserPolicies | Create a iamEndPointUserPolicy -*IamEndPointUserRoleApi* | [**iam_end_point_user_roles_get**](docs/IamEndPointUserRoleApi.md#iam_end_point_user_roles_get) | **GET** /iam/EndPointUserRoles | List of iamEndPointUserRoles -*IamEndPointUserRoleApi* | [**iam_end_point_user_roles_moid_delete**](docs/IamEndPointUserRoleApi.md#iam_end_point_user_roles_moid_delete) | **DELETE** /iam/EndPointUserRoles/{moid} | Delete an instance of iamEndPointUserRole -*IamEndPointUserRoleApi* | [**iam_end_point_user_roles_moid_get**](docs/IamEndPointUserRoleApi.md#iam_end_point_user_roles_moid_get) | **GET** /iam/EndPointUserRoles/{moid} | A instance of iamEndPointUserRole -*IamEndPointUserRoleApi* | [**iam_end_point_user_roles_moid_patch**](docs/IamEndPointUserRoleApi.md#iam_end_point_user_roles_moid_patch) | **PATCH** /iam/EndPointUserRoles/{moid} | Update an instance of iamEndPointUserRole -*IamEndPointUserRoleApi* | [**iam_end_point_user_roles_moid_post**](docs/IamEndPointUserRoleApi.md#iam_end_point_user_roles_moid_post) | **POST** /iam/EndPointUserRoles/{moid} | Update an instance of iamEndPointUserRole -*IamEndPointUserRoleApi* | [**iam_end_point_user_roles_post**](docs/IamEndPointUserRoleApi.md#iam_end_point_user_roles_post) | **POST** /iam/EndPointUserRoles | Create a iamEndPointUserRole -*IamIdpApi* | [**iam_idps_get**](docs/IamIdpApi.md#iam_idps_get) | **GET** /iam/Idps | List of iamIdps -*IamIdpApi* | [**iam_idps_moid_get**](docs/IamIdpApi.md#iam_idps_moid_get) | **GET** /iam/Idps/{moid} | A instance of iamIdp -*IamIdpReferenceApi* | [**iam_idp_references_get**](docs/IamIdpReferenceApi.md#iam_idp_references_get) | **GET** /iam/IdpReferences | List of iamIdpReferences -*IamIdpReferenceApi* | [**iam_idp_references_moid_get**](docs/IamIdpReferenceApi.md#iam_idp_references_moid_get) | **GET** /iam/IdpReferences/{moid} | A instance of iamIdpReference -*IamLdapGroupApi* | [**iam_ldap_groups_get**](docs/IamLdapGroupApi.md#iam_ldap_groups_get) | **GET** /iam/LdapGroups | List of iamLdapGroups -*IamLdapGroupApi* | [**iam_ldap_groups_moid_delete**](docs/IamLdapGroupApi.md#iam_ldap_groups_moid_delete) | **DELETE** /iam/LdapGroups/{moid} | Delete an instance of iamLdapGroup -*IamLdapGroupApi* | [**iam_ldap_groups_moid_get**](docs/IamLdapGroupApi.md#iam_ldap_groups_moid_get) | **GET** /iam/LdapGroups/{moid} | A instance of iamLdapGroup -*IamLdapGroupApi* | [**iam_ldap_groups_moid_patch**](docs/IamLdapGroupApi.md#iam_ldap_groups_moid_patch) | **PATCH** /iam/LdapGroups/{moid} | Update an instance of iamLdapGroup -*IamLdapGroupApi* | [**iam_ldap_groups_moid_post**](docs/IamLdapGroupApi.md#iam_ldap_groups_moid_post) | **POST** /iam/LdapGroups/{moid} | Update an instance of iamLdapGroup -*IamLdapGroupApi* | [**iam_ldap_groups_post**](docs/IamLdapGroupApi.md#iam_ldap_groups_post) | **POST** /iam/LdapGroups | Create a iamLdapGroup -*IamLdapPolicyApi* | [**iam_ldap_policies_get**](docs/IamLdapPolicyApi.md#iam_ldap_policies_get) | **GET** /iam/LdapPolicies | List of iamLdapPolicies -*IamLdapPolicyApi* | [**iam_ldap_policies_moid_delete**](docs/IamLdapPolicyApi.md#iam_ldap_policies_moid_delete) | **DELETE** /iam/LdapPolicies/{moid} | Delete an instance of iamLdapPolicy -*IamLdapPolicyApi* | [**iam_ldap_policies_moid_get**](docs/IamLdapPolicyApi.md#iam_ldap_policies_moid_get) | **GET** /iam/LdapPolicies/{moid} | A instance of iamLdapPolicy -*IamLdapPolicyApi* | [**iam_ldap_policies_moid_patch**](docs/IamLdapPolicyApi.md#iam_ldap_policies_moid_patch) | **PATCH** /iam/LdapPolicies/{moid} | Update an instance of iamLdapPolicy -*IamLdapPolicyApi* | [**iam_ldap_policies_moid_post**](docs/IamLdapPolicyApi.md#iam_ldap_policies_moid_post) | **POST** /iam/LdapPolicies/{moid} | Update an instance of iamLdapPolicy -*IamLdapPolicyApi* | [**iam_ldap_policies_post**](docs/IamLdapPolicyApi.md#iam_ldap_policies_post) | **POST** /iam/LdapPolicies | Create a iamLdapPolicy -*IamLdapProviderApi* | [**iam_ldap_providers_get**](docs/IamLdapProviderApi.md#iam_ldap_providers_get) | **GET** /iam/LdapProviders | List of iamLdapProviders -*IamLdapProviderApi* | [**iam_ldap_providers_moid_delete**](docs/IamLdapProviderApi.md#iam_ldap_providers_moid_delete) | **DELETE** /iam/LdapProviders/{moid} | Delete an instance of iamLdapProvider -*IamLdapProviderApi* | [**iam_ldap_providers_moid_get**](docs/IamLdapProviderApi.md#iam_ldap_providers_moid_get) | **GET** /iam/LdapProviders/{moid} | A instance of iamLdapProvider -*IamLdapProviderApi* | [**iam_ldap_providers_moid_patch**](docs/IamLdapProviderApi.md#iam_ldap_providers_moid_patch) | **PATCH** /iam/LdapProviders/{moid} | Update an instance of iamLdapProvider -*IamLdapProviderApi* | [**iam_ldap_providers_moid_post**](docs/IamLdapProviderApi.md#iam_ldap_providers_moid_post) | **POST** /iam/LdapProviders/{moid} | Update an instance of iamLdapProvider -*IamLdapProviderApi* | [**iam_ldap_providers_post**](docs/IamLdapProviderApi.md#iam_ldap_providers_post) | **POST** /iam/LdapProviders | Create a iamLdapProvider -*IamPermissionApi* | [**iam_permissions_get**](docs/IamPermissionApi.md#iam_permissions_get) | **GET** /iam/Permissions | List of iamPermissions -*IamPermissionApi* | [**iam_permissions_moid_delete**](docs/IamPermissionApi.md#iam_permissions_moid_delete) | **DELETE** /iam/Permissions/{moid} | Delete an instance of iamPermission -*IamPermissionApi* | [**iam_permissions_moid_get**](docs/IamPermissionApi.md#iam_permissions_moid_get) | **GET** /iam/Permissions/{moid} | A instance of iamPermission -*IamPermissionApi* | [**iam_permissions_moid_patch**](docs/IamPermissionApi.md#iam_permissions_moid_patch) | **PATCH** /iam/Permissions/{moid} | Update an instance of iamPermission -*IamPermissionApi* | [**iam_permissions_moid_post**](docs/IamPermissionApi.md#iam_permissions_moid_post) | **POST** /iam/Permissions/{moid} | Update an instance of iamPermission -*IamPermissionApi* | [**iam_permissions_post**](docs/IamPermissionApi.md#iam_permissions_post) | **POST** /iam/Permissions | Create a iamPermission -*IamPrivilegeApi* | [**iam_privileges_get**](docs/IamPrivilegeApi.md#iam_privileges_get) | **GET** /iam/Privileges | List of iamPrivileges -*IamPrivilegeApi* | [**iam_privileges_moid_get**](docs/IamPrivilegeApi.md#iam_privileges_moid_get) | **GET** /iam/Privileges/{moid} | A instance of iamPrivilege -*IamPrivilegeSetApi* | [**iam_privilege_sets_get**](docs/IamPrivilegeSetApi.md#iam_privilege_sets_get) | **GET** /iam/PrivilegeSets | List of iamPrivilegeSets -*IamPrivilegeSetApi* | [**iam_privilege_sets_moid_get**](docs/IamPrivilegeSetApi.md#iam_privilege_sets_moid_get) | **GET** /iam/PrivilegeSets/{moid} | A instance of iamPrivilegeSet -*IamQualifierApi* | [**iam_qualifiers_get**](docs/IamQualifierApi.md#iam_qualifiers_get) | **GET** /iam/Qualifiers | List of iamQualifiers -*IamQualifierApi* | [**iam_qualifiers_moid_get**](docs/IamQualifierApi.md#iam_qualifiers_moid_get) | **GET** /iam/Qualifiers/{moid} | A instance of iamQualifier -*IamResourceLimitsApi* | [**iam_resource_limits_get**](docs/IamResourceLimitsApi.md#iam_resource_limits_get) | **GET** /iam/ResourceLimits | List of iamResourceLimits -*IamResourceLimitsApi* | [**iam_resource_limits_moid_get**](docs/IamResourceLimitsApi.md#iam_resource_limits_moid_get) | **GET** /iam/ResourceLimits/{moid} | A instance of iamResourceLimits -*IamRoleApi* | [**iam_roles_get**](docs/IamRoleApi.md#iam_roles_get) | **GET** /iam/Roles | List of iamRoles -*IamRoleApi* | [**iam_roles_moid_get**](docs/IamRoleApi.md#iam_roles_moid_get) | **GET** /iam/Roles/{moid} | A instance of iamRole -*IamSessionApi* | [**iam_sessions_get**](docs/IamSessionApi.md#iam_sessions_get) | **GET** /iam/Sessions | List of iamSessions -*IamSessionApi* | [**iam_sessions_moid_delete**](docs/IamSessionApi.md#iam_sessions_moid_delete) | **DELETE** /iam/Sessions/{moid} | Delete an instance of iamSession -*IamSessionApi* | [**iam_sessions_moid_get**](docs/IamSessionApi.md#iam_sessions_moid_get) | **GET** /iam/Sessions/{moid} | A instance of iamSession -*IamSessionLimitsApi* | [**iam_session_limits_get**](docs/IamSessionLimitsApi.md#iam_session_limits_get) | **GET** /iam/SessionLimits | List of iamSessionLimits -*IamSessionLimitsApi* | [**iam_session_limits_moid_get**](docs/IamSessionLimitsApi.md#iam_session_limits_moid_get) | **GET** /iam/SessionLimits/{moid} | A instance of iamSessionLimits -*IamSystemApi* | [**iam_systems_get**](docs/IamSystemApi.md#iam_systems_get) | **GET** /iam/Systems | List of iamSystems -*IamSystemApi* | [**iam_systems_moid_get**](docs/IamSystemApi.md#iam_systems_moid_get) | **GET** /iam/Systems/{moid} | A instance of iamSystem -*IamUserApi* | [**iam_users_get**](docs/IamUserApi.md#iam_users_get) | **GET** /iam/Users | List of iamUsers -*IamUserApi* | [**iam_users_moid_delete**](docs/IamUserApi.md#iam_users_moid_delete) | **DELETE** /iam/Users/{moid} | Delete an instance of iamUser -*IamUserApi* | [**iam_users_moid_get**](docs/IamUserApi.md#iam_users_moid_get) | **GET** /iam/Users/{moid} | A instance of iamUser -*IamUserApi* | [**iam_users_post**](docs/IamUserApi.md#iam_users_post) | **POST** /iam/Users | Create a iamUser -*IamUserGroupApi* | [**iam_user_groups_get**](docs/IamUserGroupApi.md#iam_user_groups_get) | **GET** /iam/UserGroups | List of iamUserGroups -*IamUserGroupApi* | [**iam_user_groups_moid_get**](docs/IamUserGroupApi.md#iam_user_groups_moid_get) | **GET** /iam/UserGroups/{moid} | A instance of iamUserGroup -*IamUserPreferenceApi* | [**iam_user_preferences_get**](docs/IamUserPreferenceApi.md#iam_user_preferences_get) | **GET** /iam/UserPreferences | List of iamUserPreferences -*IamUserPreferenceApi* | [**iam_user_preferences_moid_get**](docs/IamUserPreferenceApi.md#iam_user_preferences_moid_get) | **GET** /iam/UserPreferences/{moid} | A instance of iamUserPreference -*IamUserPreferenceApi* | [**iam_user_preferences_moid_patch**](docs/IamUserPreferenceApi.md#iam_user_preferences_moid_patch) | **PATCH** /iam/UserPreferences/{moid} | Update an instance of iamUserPreference -*IamUserPreferenceApi* | [**iam_user_preferences_moid_post**](docs/IamUserPreferenceApi.md#iam_user_preferences_moid_post) | **POST** /iam/UserPreferences/{moid} | Update an instance of iamUserPreference -*InventoryDeviceInfoApi* | [**inventory_device_infos_get**](docs/InventoryDeviceInfoApi.md#inventory_device_infos_get) | **GET** /inventory/DeviceInfos | List of inventoryDeviceInfos -*InventoryDeviceInfoApi* | [**inventory_device_infos_moid_get**](docs/InventoryDeviceInfoApi.md#inventory_device_infos_moid_get) | **GET** /inventory/DeviceInfos/{moid} | A instance of inventoryDeviceInfo -*InventoryDnMoBindingApi* | [**inventory_dn_mo_bindings_get**](docs/InventoryDnMoBindingApi.md#inventory_dn_mo_bindings_get) | **GET** /inventory/DnMoBindings | List of inventoryDnMoBindings -*InventoryDnMoBindingApi* | [**inventory_dn_mo_bindings_moid_get**](docs/InventoryDnMoBindingApi.md#inventory_dn_mo_bindings_moid_get) | **GET** /inventory/DnMoBindings/{moid} | A instance of inventoryDnMoBinding -*InventoryGenericInventoryApi* | [**inventory_generic_inventories_get**](docs/InventoryGenericInventoryApi.md#inventory_generic_inventories_get) | **GET** /inventory/GenericInventories | List of inventoryGenericInventories -*InventoryGenericInventoryApi* | [**inventory_generic_inventories_moid_get**](docs/InventoryGenericInventoryApi.md#inventory_generic_inventories_moid_get) | **GET** /inventory/GenericInventories/{moid} | A instance of inventoryGenericInventory -*InventoryGenericInventoryApi* | [**inventory_generic_inventories_moid_patch**](docs/InventoryGenericInventoryApi.md#inventory_generic_inventories_moid_patch) | **PATCH** /inventory/GenericInventories/{moid} | Update an instance of inventoryGenericInventory -*InventoryGenericInventoryApi* | [**inventory_generic_inventories_moid_post**](docs/InventoryGenericInventoryApi.md#inventory_generic_inventories_moid_post) | **POST** /inventory/GenericInventories/{moid} | Update an instance of inventoryGenericInventory -*InventoryGenericInventoryHolderApi* | [**inventory_generic_inventory_holders_get**](docs/InventoryGenericInventoryHolderApi.md#inventory_generic_inventory_holders_get) | **GET** /inventory/GenericInventoryHolders | List of inventoryGenericInventoryHolders -*InventoryGenericInventoryHolderApi* | [**inventory_generic_inventory_holders_moid_get**](docs/InventoryGenericInventoryHolderApi.md#inventory_generic_inventory_holders_moid_get) | **GET** /inventory/GenericInventoryHolders/{moid} | A instance of inventoryGenericInventoryHolder -*InventoryGenericInventoryHolderApi* | [**inventory_generic_inventory_holders_moid_patch**](docs/InventoryGenericInventoryHolderApi.md#inventory_generic_inventory_holders_moid_patch) | **PATCH** /inventory/GenericInventoryHolders/{moid} | Update an instance of inventoryGenericInventoryHolder -*InventoryGenericInventoryHolderApi* | [**inventory_generic_inventory_holders_moid_post**](docs/InventoryGenericInventoryHolderApi.md#inventory_generic_inventory_holders_moid_post) | **POST** /inventory/GenericInventoryHolders/{moid} | Update an instance of inventoryGenericInventoryHolder -*IpmioverlanPolicyApi* | [**ipmioverlan_policies_get**](docs/IpmioverlanPolicyApi.md#ipmioverlan_policies_get) | **GET** /ipmioverlan/Policies | List of ipmioverlanPolicies -*IpmioverlanPolicyApi* | [**ipmioverlan_policies_moid_delete**](docs/IpmioverlanPolicyApi.md#ipmioverlan_policies_moid_delete) | **DELETE** /ipmioverlan/Policies/{moid} | Delete an instance of ipmioverlanPolicy -*IpmioverlanPolicyApi* | [**ipmioverlan_policies_moid_get**](docs/IpmioverlanPolicyApi.md#ipmioverlan_policies_moid_get) | **GET** /ipmioverlan/Policies/{moid} | A instance of ipmioverlanPolicy -*IpmioverlanPolicyApi* | [**ipmioverlan_policies_moid_patch**](docs/IpmioverlanPolicyApi.md#ipmioverlan_policies_moid_patch) | **PATCH** /ipmioverlan/Policies/{moid} | Update an instance of ipmioverlanPolicy -*IpmioverlanPolicyApi* | [**ipmioverlan_policies_moid_post**](docs/IpmioverlanPolicyApi.md#ipmioverlan_policies_moid_post) | **POST** /ipmioverlan/Policies/{moid} | Update an instance of ipmioverlanPolicy -*IpmioverlanPolicyApi* | [**ipmioverlan_policies_post**](docs/IpmioverlanPolicyApi.md#ipmioverlan_policies_post) | **POST** /ipmioverlan/Policies | Create a ipmioverlanPolicy -*KvmPolicyApi* | [**kvm_policies_get**](docs/KvmPolicyApi.md#kvm_policies_get) | **GET** /kvm/Policies | List of kvmPolicies -*KvmPolicyApi* | [**kvm_policies_moid_delete**](docs/KvmPolicyApi.md#kvm_policies_moid_delete) | **DELETE** /kvm/Policies/{moid} | Delete an instance of kvmPolicy -*KvmPolicyApi* | [**kvm_policies_moid_get**](docs/KvmPolicyApi.md#kvm_policies_moid_get) | **GET** /kvm/Policies/{moid} | A instance of kvmPolicy -*KvmPolicyApi* | [**kvm_policies_moid_patch**](docs/KvmPolicyApi.md#kvm_policies_moid_patch) | **PATCH** /kvm/Policies/{moid} | Update an instance of kvmPolicy -*KvmPolicyApi* | [**kvm_policies_moid_post**](docs/KvmPolicyApi.md#kvm_policies_moid_post) | **POST** /kvm/Policies/{moid} | Update an instance of kvmPolicy -*KvmPolicyApi* | [**kvm_policies_post**](docs/KvmPolicyApi.md#kvm_policies_post) | **POST** /kvm/Policies | Create a kvmPolicy -*LicenseAccountLicenseDataApi* | [**license_account_license_data_get**](docs/LicenseAccountLicenseDataApi.md#license_account_license_data_get) | **GET** /license/AccountLicenseData | List of licenseAccountLicenseData -*LicenseAccountLicenseDataApi* | [**license_account_license_data_moid_get**](docs/LicenseAccountLicenseDataApi.md#license_account_license_data_moid_get) | **GET** /license/AccountLicenseData/{moid} | A instance of licenseAccountLicenseData -*LicenseCustomerOpApi* | [**license_customer_ops_get**](docs/LicenseCustomerOpApi.md#license_customer_ops_get) | **GET** /license/CustomerOps | List of licenseCustomerOps -*LicenseCustomerOpApi* | [**license_customer_ops_moid_get**](docs/LicenseCustomerOpApi.md#license_customer_ops_moid_get) | **GET** /license/CustomerOps/{moid} | A instance of licenseCustomerOp -*LicenseCustomerOpApi* | [**license_customer_ops_moid_patch**](docs/LicenseCustomerOpApi.md#license_customer_ops_moid_patch) | **PATCH** /license/CustomerOps/{moid} | Update an instance of licenseCustomerOp -*LicenseCustomerOpApi* | [**license_customer_ops_moid_post**](docs/LicenseCustomerOpApi.md#license_customer_ops_moid_post) | **POST** /license/CustomerOps/{moid} | Update an instance of licenseCustomerOp -*LicenseLicenseInfoApi* | [**license_license_infos_get**](docs/LicenseLicenseInfoApi.md#license_license_infos_get) | **GET** /license/LicenseInfos | List of licenseLicenseInfos -*LicenseLicenseInfoApi* | [**license_license_infos_moid_get**](docs/LicenseLicenseInfoApi.md#license_license_infos_moid_get) | **GET** /license/LicenseInfos/{moid} | A instance of licenseLicenseInfo -*LicenseLicenseInfoApi* | [**license_license_infos_moid_patch**](docs/LicenseLicenseInfoApi.md#license_license_infos_moid_patch) | **PATCH** /license/LicenseInfos/{moid} | Update an instance of licenseLicenseInfo -*LicenseLicenseInfoApi* | [**license_license_infos_moid_post**](docs/LicenseLicenseInfoApi.md#license_license_infos_moid_post) | **POST** /license/LicenseInfos/{moid} | Update an instance of licenseLicenseInfo -*LicenseLicenseInfoApi* | [**license_license_infos_post**](docs/LicenseLicenseInfoApi.md#license_license_infos_post) | **POST** /license/LicenseInfos | Create a licenseLicenseInfo -*LicenseSmartlicenseTokenApi* | [**license_smartlicense_tokens_get**](docs/LicenseSmartlicenseTokenApi.md#license_smartlicense_tokens_get) | **GET** /license/SmartlicenseTokens | List of licenseSmartlicenseTokens -*LicenseSmartlicenseTokenApi* | [**license_smartlicense_tokens_moid_get**](docs/LicenseSmartlicenseTokenApi.md#license_smartlicense_tokens_moid_get) | **GET** /license/SmartlicenseTokens/{moid} | A instance of licenseSmartlicenseToken -*LicenseSmartlicenseTokenApi* | [**license_smartlicense_tokens_moid_patch**](docs/LicenseSmartlicenseTokenApi.md#license_smartlicense_tokens_moid_patch) | **PATCH** /license/SmartlicenseTokens/{moid} | Update an instance of licenseSmartlicenseToken -*LicenseSmartlicenseTokenApi* | [**license_smartlicense_tokens_moid_post**](docs/LicenseSmartlicenseTokenApi.md#license_smartlicense_tokens_moid_post) | **POST** /license/SmartlicenseTokens/{moid} | Update an instance of licenseSmartlicenseToken -*LsServiceProfileApi* | [**ls_service_profiles_get**](docs/LsServiceProfileApi.md#ls_service_profiles_get) | **GET** /ls/ServiceProfiles | List of lsServiceProfiles -*LsServiceProfileApi* | [**ls_service_profiles_moid_get**](docs/LsServiceProfileApi.md#ls_service_profiles_moid_get) | **GET** /ls/ServiceProfiles/{moid} | A instance of lsServiceProfile -*LsServiceProfileApi* | [**ls_service_profiles_moid_patch**](docs/LsServiceProfileApi.md#ls_service_profiles_moid_patch) | **PATCH** /ls/ServiceProfiles/{moid} | Update an instance of lsServiceProfile -*LsServiceProfileApi* | [**ls_service_profiles_moid_post**](docs/LsServiceProfileApi.md#ls_service_profiles_moid_post) | **POST** /ls/ServiceProfiles/{moid} | Update an instance of lsServiceProfile -*ManagementControllerApi* | [**management_controllers_get**](docs/ManagementControllerApi.md#management_controllers_get) | **GET** /management/Controllers | List of managementControllers -*ManagementControllerApi* | [**management_controllers_moid_get**](docs/ManagementControllerApi.md#management_controllers_moid_get) | **GET** /management/Controllers/{moid} | A instance of managementController -*ManagementControllerApi* | [**management_controllers_moid_patch**](docs/ManagementControllerApi.md#management_controllers_moid_patch) | **PATCH** /management/Controllers/{moid} | Update an instance of managementController -*ManagementControllerApi* | [**management_controllers_moid_post**](docs/ManagementControllerApi.md#management_controllers_moid_post) | **POST** /management/Controllers/{moid} | Update an instance of managementController -*ManagementEntityApi* | [**management_entities_get**](docs/ManagementEntityApi.md#management_entities_get) | **GET** /management/Entities | List of managementEntities -*ManagementEntityApi* | [**management_entities_moid_get**](docs/ManagementEntityApi.md#management_entities_moid_get) | **GET** /management/Entities/{moid} | A instance of managementEntity -*ManagementEntityApi* | [**management_entities_moid_patch**](docs/ManagementEntityApi.md#management_entities_moid_patch) | **PATCH** /management/Entities/{moid} | Update an instance of managementEntity -*ManagementEntityApi* | [**management_entities_moid_post**](docs/ManagementEntityApi.md#management_entities_moid_post) | **POST** /management/Entities/{moid} | Update an instance of managementEntity -*ManagementInterfaceApi* | [**management_interfaces_get**](docs/ManagementInterfaceApi.md#management_interfaces_get) | **GET** /management/Interfaces | List of managementInterfaces -*ManagementInterfaceApi* | [**management_interfaces_moid_get**](docs/ManagementInterfaceApi.md#management_interfaces_moid_get) | **GET** /management/Interfaces/{moid} | A instance of managementInterface -*ManagementInterfaceApi* | [**management_interfaces_moid_patch**](docs/ManagementInterfaceApi.md#management_interfaces_moid_patch) | **PATCH** /management/Interfaces/{moid} | Update an instance of managementInterface -*ManagementInterfaceApi* | [**management_interfaces_moid_post**](docs/ManagementInterfaceApi.md#management_interfaces_moid_post) | **POST** /management/Interfaces/{moid} | Update an instance of managementInterface -*MemoryArrayApi* | [**memory_arrays_get**](docs/MemoryArrayApi.md#memory_arrays_get) | **GET** /memory/Arrays | List of memoryArrays -*MemoryArrayApi* | [**memory_arrays_moid_get**](docs/MemoryArrayApi.md#memory_arrays_moid_get) | **GET** /memory/Arrays/{moid} | A instance of memoryArray -*MemoryArrayApi* | [**memory_arrays_moid_patch**](docs/MemoryArrayApi.md#memory_arrays_moid_patch) | **PATCH** /memory/Arrays/{moid} | Update an instance of memoryArray -*MemoryArrayApi* | [**memory_arrays_moid_post**](docs/MemoryArrayApi.md#memory_arrays_moid_post) | **POST** /memory/Arrays/{moid} | Update an instance of memoryArray -*MemoryUnitApi* | [**memory_units_get**](docs/MemoryUnitApi.md#memory_units_get) | **GET** /memory/Units | List of memoryUnits -*MemoryUnitApi* | [**memory_units_moid_get**](docs/MemoryUnitApi.md#memory_units_moid_get) | **GET** /memory/Units/{moid} | A instance of memoryUnit -*MemoryUnitApi* | [**memory_units_moid_patch**](docs/MemoryUnitApi.md#memory_units_moid_patch) | **PATCH** /memory/Units/{moid} | Update an instance of memoryUnit -*MemoryUnitApi* | [**memory_units_moid_post**](docs/MemoryUnitApi.md#memory_units_moid_post) | **POST** /memory/Units/{moid} | Update an instance of memoryUnit -*MetaDefinitionApi* | [**meta_definitions_get**](docs/MetaDefinitionApi.md#meta_definitions_get) | **GET** /meta/Definitions | List of metaDefinitions -*MetaDefinitionApi* | [**meta_definitions_moid_get**](docs/MetaDefinitionApi.md#meta_definitions_moid_get) | **GET** /meta/Definitions/{moid} | A instance of metaDefinition -*NetworkElementApi* | [**network_elements_get**](docs/NetworkElementApi.md#network_elements_get) | **GET** /network/Elements | List of networkElements -*NetworkElementApi* | [**network_elements_moid_get**](docs/NetworkElementApi.md#network_elements_moid_get) | **GET** /network/Elements/{moid} | A instance of networkElement -*NetworkElementApi* | [**network_elements_moid_patch**](docs/NetworkElementApi.md#network_elements_moid_patch) | **PATCH** /network/Elements/{moid} | Update an instance of networkElement -*NetworkElementApi* | [**network_elements_moid_post**](docs/NetworkElementApi.md#network_elements_moid_post) | **POST** /network/Elements/{moid} | Update an instance of networkElement -*NetworkElementSummaryApi* | [**network_element_summaries_get**](docs/NetworkElementSummaryApi.md#network_element_summaries_get) | **GET** /network/ElementSummaries | List of networkElementSummaries -*NetworkElementSummaryApi* | [**network_element_summaries_moid_get**](docs/NetworkElementSummaryApi.md#network_element_summaries_moid_get) | **GET** /network/ElementSummaries/{moid} | A instance of networkElementSummary -*NetworkconfigPolicyApi* | [**networkconfig_policies_get**](docs/NetworkconfigPolicyApi.md#networkconfig_policies_get) | **GET** /networkconfig/Policies | List of networkconfigPolicies -*NetworkconfigPolicyApi* | [**networkconfig_policies_moid_delete**](docs/NetworkconfigPolicyApi.md#networkconfig_policies_moid_delete) | **DELETE** /networkconfig/Policies/{moid} | Delete an instance of networkconfigPolicy -*NetworkconfigPolicyApi* | [**networkconfig_policies_moid_get**](docs/NetworkconfigPolicyApi.md#networkconfig_policies_moid_get) | **GET** /networkconfig/Policies/{moid} | A instance of networkconfigPolicy -*NetworkconfigPolicyApi* | [**networkconfig_policies_moid_patch**](docs/NetworkconfigPolicyApi.md#networkconfig_policies_moid_patch) | **PATCH** /networkconfig/Policies/{moid} | Update an instance of networkconfigPolicy -*NetworkconfigPolicyApi* | [**networkconfig_policies_moid_post**](docs/NetworkconfigPolicyApi.md#networkconfig_policies_moid_post) | **POST** /networkconfig/Policies/{moid} | Update an instance of networkconfigPolicy -*NetworkconfigPolicyApi* | [**networkconfig_policies_post**](docs/NetworkconfigPolicyApi.md#networkconfig_policies_post) | **POST** /networkconfig/Policies | Create a networkconfigPolicy -*NtpPolicyApi* | [**ntp_policies_get**](docs/NtpPolicyApi.md#ntp_policies_get) | **GET** /ntp/Policies | List of ntpPolicies -*NtpPolicyApi* | [**ntp_policies_moid_delete**](docs/NtpPolicyApi.md#ntp_policies_moid_delete) | **DELETE** /ntp/Policies/{moid} | Delete an instance of ntpPolicy -*NtpPolicyApi* | [**ntp_policies_moid_get**](docs/NtpPolicyApi.md#ntp_policies_moid_get) | **GET** /ntp/Policies/{moid} | A instance of ntpPolicy -*NtpPolicyApi* | [**ntp_policies_moid_patch**](docs/NtpPolicyApi.md#ntp_policies_moid_patch) | **PATCH** /ntp/Policies/{moid} | Update an instance of ntpPolicy -*NtpPolicyApi* | [**ntp_policies_moid_post**](docs/NtpPolicyApi.md#ntp_policies_moid_post) | **POST** /ntp/Policies/{moid} | Update an instance of ntpPolicy -*NtpPolicyApi* | [**ntp_policies_post**](docs/NtpPolicyApi.md#ntp_policies_post) | **POST** /ntp/Policies | Create a ntpPolicy -*PackagemanagementConnectorDeployPolicyApi* | [**packagemanagement_connector_deploy_policies_get**](docs/PackagemanagementConnectorDeployPolicyApi.md#packagemanagement_connector_deploy_policies_get) | **GET** /packagemanagement/ConnectorDeployPolicies | List of packagemanagementConnectorDeployPolicies -*PackagemanagementConnectorDeployPolicyApi* | [**packagemanagement_connector_deploy_policies_moid_delete**](docs/PackagemanagementConnectorDeployPolicyApi.md#packagemanagement_connector_deploy_policies_moid_delete) | **DELETE** /packagemanagement/ConnectorDeployPolicies/{moid} | Delete an instance of packagemanagementConnectorDeployPolicy -*PackagemanagementConnectorDeployPolicyApi* | [**packagemanagement_connector_deploy_policies_moid_get**](docs/PackagemanagementConnectorDeployPolicyApi.md#packagemanagement_connector_deploy_policies_moid_get) | **GET** /packagemanagement/ConnectorDeployPolicies/{moid} | A instance of packagemanagementConnectorDeployPolicy -*PackagemanagementConnectorDeployPolicyApi* | [**packagemanagement_connector_deploy_policies_moid_patch**](docs/PackagemanagementConnectorDeployPolicyApi.md#packagemanagement_connector_deploy_policies_moid_patch) | **PATCH** /packagemanagement/ConnectorDeployPolicies/{moid} | Update an instance of packagemanagementConnectorDeployPolicy -*PackagemanagementConnectorDeployPolicyApi* | [**packagemanagement_connector_deploy_policies_moid_post**](docs/PackagemanagementConnectorDeployPolicyApi.md#packagemanagement_connector_deploy_policies_moid_post) | **POST** /packagemanagement/ConnectorDeployPolicies/{moid} | Update an instance of packagemanagementConnectorDeployPolicy -*PackagemanagementConnectorDeployPolicyApi* | [**packagemanagement_connector_deploy_policies_post**](docs/PackagemanagementConnectorDeployPolicyApi.md#packagemanagement_connector_deploy_policies_post) | **POST** /packagemanagement/ConnectorDeployPolicies | Create a packagemanagementConnectorDeployPolicy -*PackagemanagementConnectorImageApi* | [**packagemanagement_connector_images_get**](docs/PackagemanagementConnectorImageApi.md#packagemanagement_connector_images_get) | **GET** /packagemanagement/ConnectorImages | List of packagemanagementConnectorImages -*PackagemanagementConnectorImageApi* | [**packagemanagement_connector_images_moid_delete**](docs/PackagemanagementConnectorImageApi.md#packagemanagement_connector_images_moid_delete) | **DELETE** /packagemanagement/ConnectorImages/{moid} | Delete an instance of packagemanagementConnectorImage -*PackagemanagementConnectorImageApi* | [**packagemanagement_connector_images_moid_get**](docs/PackagemanagementConnectorImageApi.md#packagemanagement_connector_images_moid_get) | **GET** /packagemanagement/ConnectorImages/{moid} | A instance of packagemanagementConnectorImage -*PackagemanagementConnectorImageApi* | [**packagemanagement_connector_images_post**](docs/PackagemanagementConnectorImageApi.md#packagemanagement_connector_images_post) | **POST** /packagemanagement/ConnectorImages | Create a packagemanagementConnectorImage -*PackagemanagementConnectorInstallApi* | [**packagemanagement_connector_installs_get**](docs/PackagemanagementConnectorInstallApi.md#packagemanagement_connector_installs_get) | **GET** /packagemanagement/ConnectorInstalls | List of packagemanagementConnectorInstalls -*PackagemanagementConnectorInstallApi* | [**packagemanagement_connector_installs_moid_delete**](docs/PackagemanagementConnectorInstallApi.md#packagemanagement_connector_installs_moid_delete) | **DELETE** /packagemanagement/ConnectorInstalls/{moid} | Delete an instance of packagemanagementConnectorInstall -*PackagemanagementConnectorInstallApi* | [**packagemanagement_connector_installs_moid_get**](docs/PackagemanagementConnectorInstallApi.md#packagemanagement_connector_installs_moid_get) | **GET** /packagemanagement/ConnectorInstalls/{moid} | A instance of packagemanagementConnectorInstall -*PackagemanagementConnectorInstallApi* | [**packagemanagement_connector_installs_moid_patch**](docs/PackagemanagementConnectorInstallApi.md#packagemanagement_connector_installs_moid_patch) | **PATCH** /packagemanagement/ConnectorInstalls/{moid} | Update an instance of packagemanagementConnectorInstall -*PackagemanagementConnectorInstallApi* | [**packagemanagement_connector_installs_moid_post**](docs/PackagemanagementConnectorInstallApi.md#packagemanagement_connector_installs_moid_post) | **POST** /packagemanagement/ConnectorInstalls/{moid} | Update an instance of packagemanagementConnectorInstall -*PackagemanagementConnectorInstallApi* | [**packagemanagement_connector_installs_post**](docs/PackagemanagementConnectorInstallApi.md#packagemanagement_connector_installs_post) | **POST** /packagemanagement/ConnectorInstalls | Create a packagemanagementConnectorInstall -*PolicyPolicyMetaApi* | [**policy_policy_meta_get**](docs/PolicyPolicyMetaApi.md#policy_policy_meta_get) | **GET** /policy/PolicyMeta | List of policyPolicyMeta -*PolicyPolicyMetaApi* | [**policy_policy_meta_moid_get**](docs/PolicyPolicyMetaApi.md#policy_policy_meta_moid_get) | **GET** /policy/PolicyMeta/{moid} | A instance of policyPolicyMeta -*PortGroupApi* | [**port_groups_get**](docs/PortGroupApi.md#port_groups_get) | **GET** /port/Groups | List of portGroups -*PortGroupApi* | [**port_groups_moid_get**](docs/PortGroupApi.md#port_groups_moid_get) | **GET** /port/Groups/{moid} | A instance of portGroup -*PortGroupApi* | [**port_groups_moid_patch**](docs/PortGroupApi.md#port_groups_moid_patch) | **PATCH** /port/Groups/{moid} | Update an instance of portGroup -*PortGroupApi* | [**port_groups_moid_post**](docs/PortGroupApi.md#port_groups_moid_post) | **POST** /port/Groups/{moid} | Update an instance of portGroup -*PortSubGroupApi* | [**port_sub_groups_get**](docs/PortSubGroupApi.md#port_sub_groups_get) | **GET** /port/SubGroups | List of portSubGroups -*PortSubGroupApi* | [**port_sub_groups_moid_get**](docs/PortSubGroupApi.md#port_sub_groups_moid_get) | **GET** /port/SubGroups/{moid} | A instance of portSubGroup -*PortSubGroupApi* | [**port_sub_groups_moid_patch**](docs/PortSubGroupApi.md#port_sub_groups_moid_patch) | **PATCH** /port/SubGroups/{moid} | Update an instance of portSubGroup -*PortSubGroupApi* | [**port_sub_groups_moid_post**](docs/PortSubGroupApi.md#port_sub_groups_moid_post) | **POST** /port/SubGroups/{moid} | Update an instance of portSubGroup -*ProcessorUnitApi* | [**processor_units_get**](docs/ProcessorUnitApi.md#processor_units_get) | **GET** /processor/Units | List of processorUnits -*ProcessorUnitApi* | [**processor_units_moid_get**](docs/ProcessorUnitApi.md#processor_units_moid_get) | **GET** /processor/Units/{moid} | A instance of processorUnit -*ProcessorUnitApi* | [**processor_units_moid_patch**](docs/ProcessorUnitApi.md#processor_units_moid_patch) | **PATCH** /processor/Units/{moid} | Update an instance of processorUnit -*ProcessorUnitApi* | [**processor_units_moid_post**](docs/ProcessorUnitApi.md#processor_units_moid_post) | **POST** /processor/Units/{moid} | Update an instance of processorUnit -*SearchSearchItemApi* | [**search_search_items_get**](docs/SearchSearchItemApi.md#search_search_items_get) | **GET** /search/SearchItems | List of searchSearchItems -*SearchSearchItemApi* | [**search_search_items_moid_get**](docs/SearchSearchItemApi.md#search_search_items_moid_get) | **GET** /search/SearchItems/{moid} | A instance of searchSearchItem -*SearchSuggestItemApi* | [**search_suggest_items_post**](docs/SearchSuggestItemApi.md#search_suggest_items_post) | **POST** /search/SuggestItems | Create a searchSuggestItem -*SearchTagItemApi* | [**search_tag_items_get**](docs/SearchTagItemApi.md#search_tag_items_get) | **GET** /search/TagItems | List of searchTagItems -*SearchTagItemApi* | [**search_tag_items_moid_get**](docs/SearchTagItemApi.md#search_tag_items_moid_get) | **GET** /search/TagItems/{moid} | A instance of searchTagItem -*SecurityUnitApi* | [**security_units_get**](docs/SecurityUnitApi.md#security_units_get) | **GET** /security/Units | List of securityUnits -*SecurityUnitApi* | [**security_units_moid_get**](docs/SecurityUnitApi.md#security_units_moid_get) | **GET** /security/Units/{moid} | A instance of securityUnit -*SecurityUnitApi* | [**security_units_moid_patch**](docs/SecurityUnitApi.md#security_units_moid_patch) | **PATCH** /security/Units/{moid} | Update an instance of securityUnit -*SecurityUnitApi* | [**security_units_moid_post**](docs/SecurityUnitApi.md#security_units_moid_post) | **POST** /security/Units/{moid} | Update an instance of securityUnit -*ServerConfigResultApi* | [**server_config_results_get**](docs/ServerConfigResultApi.md#server_config_results_get) | **GET** /server/ConfigResults | List of serverConfigResults -*ServerConfigResultApi* | [**server_config_results_moid_get**](docs/ServerConfigResultApi.md#server_config_results_moid_get) | **GET** /server/ConfigResults/{moid} | A instance of serverConfigResult -*ServerProfileApi* | [**server_profiles_get**](docs/ServerProfileApi.md#server_profiles_get) | **GET** /server/Profiles | List of serverProfiles -*ServerProfileApi* | [**server_profiles_moid_delete**](docs/ServerProfileApi.md#server_profiles_moid_delete) | **DELETE** /server/Profiles/{moid} | Delete an instance of serverProfile -*ServerProfileApi* | [**server_profiles_moid_get**](docs/ServerProfileApi.md#server_profiles_moid_get) | **GET** /server/Profiles/{moid} | A instance of serverProfile -*ServerProfileApi* | [**server_profiles_moid_patch**](docs/ServerProfileApi.md#server_profiles_moid_patch) | **PATCH** /server/Profiles/{moid} | Update an instance of serverProfile -*ServerProfileApi* | [**server_profiles_moid_post**](docs/ServerProfileApi.md#server_profiles_moid_post) | **POST** /server/Profiles/{moid} | Update an instance of serverProfile -*ServerProfileApi* | [**server_profiles_post**](docs/ServerProfileApi.md#server_profiles_post) | **POST** /server/Profiles | Create a serverProfile -*SmtpPolicyApi* | [**smtp_policies_get**](docs/SmtpPolicyApi.md#smtp_policies_get) | **GET** /smtp/Policies | List of smtpPolicies -*SmtpPolicyApi* | [**smtp_policies_moid_delete**](docs/SmtpPolicyApi.md#smtp_policies_moid_delete) | **DELETE** /smtp/Policies/{moid} | Delete an instance of smtpPolicy -*SmtpPolicyApi* | [**smtp_policies_moid_get**](docs/SmtpPolicyApi.md#smtp_policies_moid_get) | **GET** /smtp/Policies/{moid} | A instance of smtpPolicy -*SmtpPolicyApi* | [**smtp_policies_moid_patch**](docs/SmtpPolicyApi.md#smtp_policies_moid_patch) | **PATCH** /smtp/Policies/{moid} | Update an instance of smtpPolicy -*SmtpPolicyApi* | [**smtp_policies_moid_post**](docs/SmtpPolicyApi.md#smtp_policies_moid_post) | **POST** /smtp/Policies/{moid} | Update an instance of smtpPolicy -*SmtpPolicyApi* | [**smtp_policies_post**](docs/SmtpPolicyApi.md#smtp_policies_post) | **POST** /smtp/Policies | Create a smtpPolicy -*SnmpPolicyApi* | [**snmp_policies_get**](docs/SnmpPolicyApi.md#snmp_policies_get) | **GET** /snmp/Policies | List of snmpPolicies -*SnmpPolicyApi* | [**snmp_policies_moid_delete**](docs/SnmpPolicyApi.md#snmp_policies_moid_delete) | **DELETE** /snmp/Policies/{moid} | Delete an instance of snmpPolicy -*SnmpPolicyApi* | [**snmp_policies_moid_get**](docs/SnmpPolicyApi.md#snmp_policies_moid_get) | **GET** /snmp/Policies/{moid} | A instance of snmpPolicy -*SnmpPolicyApi* | [**snmp_policies_moid_patch**](docs/SnmpPolicyApi.md#snmp_policies_moid_patch) | **PATCH** /snmp/Policies/{moid} | Update an instance of snmpPolicy -*SnmpPolicyApi* | [**snmp_policies_moid_post**](docs/SnmpPolicyApi.md#snmp_policies_moid_post) | **POST** /snmp/Policies/{moid} | Update an instance of snmpPolicy -*SnmpPolicyApi* | [**snmp_policies_post**](docs/SnmpPolicyApi.md#snmp_policies_post) | **POST** /snmp/Policies | Create a snmpPolicy -*SolPolicyApi* | [**sol_policies_get**](docs/SolPolicyApi.md#sol_policies_get) | **GET** /sol/Policies | List of solPolicies -*SolPolicyApi* | [**sol_policies_moid_delete**](docs/SolPolicyApi.md#sol_policies_moid_delete) | **DELETE** /sol/Policies/{moid} | Delete an instance of solPolicy -*SolPolicyApi* | [**sol_policies_moid_get**](docs/SolPolicyApi.md#sol_policies_moid_get) | **GET** /sol/Policies/{moid} | A instance of solPolicy -*SolPolicyApi* | [**sol_policies_moid_patch**](docs/SolPolicyApi.md#sol_policies_moid_patch) | **PATCH** /sol/Policies/{moid} | Update an instance of solPolicy -*SolPolicyApi* | [**sol_policies_moid_post**](docs/SolPolicyApi.md#sol_policies_moid_post) | **POST** /sol/Policies/{moid} | Update an instance of solPolicy -*SolPolicyApi* | [**sol_policies_post**](docs/SolPolicyApi.md#sol_policies_post) | **POST** /sol/Policies | Create a solPolicy -*SshPolicyApi* | [**ssh_policies_get**](docs/SshPolicyApi.md#ssh_policies_get) | **GET** /ssh/Policies | List of sshPolicies -*SshPolicyApi* | [**ssh_policies_moid_delete**](docs/SshPolicyApi.md#ssh_policies_moid_delete) | **DELETE** /ssh/Policies/{moid} | Delete an instance of sshPolicy -*SshPolicyApi* | [**ssh_policies_moid_get**](docs/SshPolicyApi.md#ssh_policies_moid_get) | **GET** /ssh/Policies/{moid} | A instance of sshPolicy -*SshPolicyApi* | [**ssh_policies_moid_patch**](docs/SshPolicyApi.md#ssh_policies_moid_patch) | **PATCH** /ssh/Policies/{moid} | Update an instance of sshPolicy -*SshPolicyApi* | [**ssh_policies_moid_post**](docs/SshPolicyApi.md#ssh_policies_moid_post) | **POST** /ssh/Policies/{moid} | Update an instance of sshPolicy -*SshPolicyApi* | [**ssh_policies_post**](docs/SshPolicyApi.md#ssh_policies_post) | **POST** /ssh/Policies | Create a sshPolicy -*StorageControllerApi* | [**storage_controllers_get**](docs/StorageControllerApi.md#storage_controllers_get) | **GET** /storage/Controllers | List of storageControllers -*StorageControllerApi* | [**storage_controllers_moid_get**](docs/StorageControllerApi.md#storage_controllers_moid_get) | **GET** /storage/Controllers/{moid} | A instance of storageController -*StorageControllerApi* | [**storage_controllers_moid_patch**](docs/StorageControllerApi.md#storage_controllers_moid_patch) | **PATCH** /storage/Controllers/{moid} | Update an instance of storageController -*StorageControllerApi* | [**storage_controllers_moid_post**](docs/StorageControllerApi.md#storage_controllers_moid_post) | **POST** /storage/Controllers/{moid} | Update an instance of storageController -*StorageDiskGroupPolicyApi* | [**storage_disk_group_policies_get**](docs/StorageDiskGroupPolicyApi.md#storage_disk_group_policies_get) | **GET** /storage/DiskGroupPolicies | List of storageDiskGroupPolicies -*StorageDiskGroupPolicyApi* | [**storage_disk_group_policies_moid_delete**](docs/StorageDiskGroupPolicyApi.md#storage_disk_group_policies_moid_delete) | **DELETE** /storage/DiskGroupPolicies/{moid} | Delete an instance of storageDiskGroupPolicy -*StorageDiskGroupPolicyApi* | [**storage_disk_group_policies_moid_get**](docs/StorageDiskGroupPolicyApi.md#storage_disk_group_policies_moid_get) | **GET** /storage/DiskGroupPolicies/{moid} | A instance of storageDiskGroupPolicy -*StorageDiskGroupPolicyApi* | [**storage_disk_group_policies_moid_patch**](docs/StorageDiskGroupPolicyApi.md#storage_disk_group_policies_moid_patch) | **PATCH** /storage/DiskGroupPolicies/{moid} | Update an instance of storageDiskGroupPolicy -*StorageDiskGroupPolicyApi* | [**storage_disk_group_policies_moid_post**](docs/StorageDiskGroupPolicyApi.md#storage_disk_group_policies_moid_post) | **POST** /storage/DiskGroupPolicies/{moid} | Update an instance of storageDiskGroupPolicy -*StorageDiskGroupPolicyApi* | [**storage_disk_group_policies_post**](docs/StorageDiskGroupPolicyApi.md#storage_disk_group_policies_post) | **POST** /storage/DiskGroupPolicies | Create a storageDiskGroupPolicy -*StorageFlexFlashControllerApi* | [**storage_flex_flash_controllers_get**](docs/StorageFlexFlashControllerApi.md#storage_flex_flash_controllers_get) | **GET** /storage/FlexFlashControllers | List of storageFlexFlashControllers -*StorageFlexFlashControllerApi* | [**storage_flex_flash_controllers_moid_get**](docs/StorageFlexFlashControllerApi.md#storage_flex_flash_controllers_moid_get) | **GET** /storage/FlexFlashControllers/{moid} | A instance of storageFlexFlashController -*StorageFlexFlashControllerApi* | [**storage_flex_flash_controllers_moid_patch**](docs/StorageFlexFlashControllerApi.md#storage_flex_flash_controllers_moid_patch) | **PATCH** /storage/FlexFlashControllers/{moid} | Update an instance of storageFlexFlashController -*StorageFlexFlashControllerApi* | [**storage_flex_flash_controllers_moid_post**](docs/StorageFlexFlashControllerApi.md#storage_flex_flash_controllers_moid_post) | **POST** /storage/FlexFlashControllers/{moid} | Update an instance of storageFlexFlashController -*StorageFlexFlashPhysicalDriveApi* | [**storage_flex_flash_physical_drives_get**](docs/StorageFlexFlashPhysicalDriveApi.md#storage_flex_flash_physical_drives_get) | **GET** /storage/FlexFlashPhysicalDrives | List of storageFlexFlashPhysicalDrives -*StorageFlexFlashPhysicalDriveApi* | [**storage_flex_flash_physical_drives_moid_get**](docs/StorageFlexFlashPhysicalDriveApi.md#storage_flex_flash_physical_drives_moid_get) | **GET** /storage/FlexFlashPhysicalDrives/{moid} | A instance of storageFlexFlashPhysicalDrive -*StorageFlexFlashPhysicalDriveApi* | [**storage_flex_flash_physical_drives_moid_patch**](docs/StorageFlexFlashPhysicalDriveApi.md#storage_flex_flash_physical_drives_moid_patch) | **PATCH** /storage/FlexFlashPhysicalDrives/{moid} | Update an instance of storageFlexFlashPhysicalDrive -*StorageFlexFlashPhysicalDriveApi* | [**storage_flex_flash_physical_drives_moid_post**](docs/StorageFlexFlashPhysicalDriveApi.md#storage_flex_flash_physical_drives_moid_post) | **POST** /storage/FlexFlashPhysicalDrives/{moid} | Update an instance of storageFlexFlashPhysicalDrive -*StorageFlexUtilControllerApi* | [**storage_flex_util_controllers_get**](docs/StorageFlexUtilControllerApi.md#storage_flex_util_controllers_get) | **GET** /storage/FlexUtilControllers | List of storageFlexUtilControllers -*StorageFlexUtilControllerApi* | [**storage_flex_util_controllers_moid_get**](docs/StorageFlexUtilControllerApi.md#storage_flex_util_controllers_moid_get) | **GET** /storage/FlexUtilControllers/{moid} | A instance of storageFlexUtilController -*StorageFlexUtilControllerApi* | [**storage_flex_util_controllers_moid_patch**](docs/StorageFlexUtilControllerApi.md#storage_flex_util_controllers_moid_patch) | **PATCH** /storage/FlexUtilControllers/{moid} | Update an instance of storageFlexUtilController -*StorageFlexUtilControllerApi* | [**storage_flex_util_controllers_moid_post**](docs/StorageFlexUtilControllerApi.md#storage_flex_util_controllers_moid_post) | **POST** /storage/FlexUtilControllers/{moid} | Update an instance of storageFlexUtilController -*StoragePhysicalDiskApi* | [**storage_physical_disks_get**](docs/StoragePhysicalDiskApi.md#storage_physical_disks_get) | **GET** /storage/PhysicalDisks | List of storagePhysicalDisks -*StoragePhysicalDiskApi* | [**storage_physical_disks_moid_get**](docs/StoragePhysicalDiskApi.md#storage_physical_disks_moid_get) | **GET** /storage/PhysicalDisks/{moid} | A instance of storagePhysicalDisk -*StoragePhysicalDiskApi* | [**storage_physical_disks_moid_patch**](docs/StoragePhysicalDiskApi.md#storage_physical_disks_moid_patch) | **PATCH** /storage/PhysicalDisks/{moid} | Update an instance of storagePhysicalDisk -*StoragePhysicalDiskApi* | [**storage_physical_disks_moid_post**](docs/StoragePhysicalDiskApi.md#storage_physical_disks_moid_post) | **POST** /storage/PhysicalDisks/{moid} | Update an instance of storagePhysicalDisk -*StoragePhysicalDiskUsageApi* | [**storage_physical_disk_usages_get**](docs/StoragePhysicalDiskUsageApi.md#storage_physical_disk_usages_get) | **GET** /storage/PhysicalDiskUsages | List of storagePhysicalDiskUsages -*StoragePhysicalDiskUsageApi* | [**storage_physical_disk_usages_moid_get**](docs/StoragePhysicalDiskUsageApi.md#storage_physical_disk_usages_moid_get) | **GET** /storage/PhysicalDiskUsages/{moid} | A instance of storagePhysicalDiskUsage -*StoragePhysicalDiskUsageApi* | [**storage_physical_disk_usages_moid_patch**](docs/StoragePhysicalDiskUsageApi.md#storage_physical_disk_usages_moid_patch) | **PATCH** /storage/PhysicalDiskUsages/{moid} | Update an instance of storagePhysicalDiskUsage -*StoragePhysicalDiskUsageApi* | [**storage_physical_disk_usages_moid_post**](docs/StoragePhysicalDiskUsageApi.md#storage_physical_disk_usages_moid_post) | **POST** /storage/PhysicalDiskUsages/{moid} | Update an instance of storagePhysicalDiskUsage -*StorageSasExpanderApi* | [**storage_sas_expanders_get**](docs/StorageSasExpanderApi.md#storage_sas_expanders_get) | **GET** /storage/SasExpanders | List of storageSasExpanders -*StorageSasExpanderApi* | [**storage_sas_expanders_moid_get**](docs/StorageSasExpanderApi.md#storage_sas_expanders_moid_get) | **GET** /storage/SasExpanders/{moid} | A instance of storageSasExpander -*StorageSasExpanderApi* | [**storage_sas_expanders_moid_patch**](docs/StorageSasExpanderApi.md#storage_sas_expanders_moid_patch) | **PATCH** /storage/SasExpanders/{moid} | Update an instance of storageSasExpander -*StorageSasExpanderApi* | [**storage_sas_expanders_moid_post**](docs/StorageSasExpanderApi.md#storage_sas_expanders_moid_post) | **POST** /storage/SasExpanders/{moid} | Update an instance of storageSasExpander -*StorageStoragePolicyApi* | [**storage_storage_policies_get**](docs/StorageStoragePolicyApi.md#storage_storage_policies_get) | **GET** /storage/StoragePolicies | List of storageStoragePolicies -*StorageStoragePolicyApi* | [**storage_storage_policies_moid_delete**](docs/StorageStoragePolicyApi.md#storage_storage_policies_moid_delete) | **DELETE** /storage/StoragePolicies/{moid} | Delete an instance of storageStoragePolicy -*StorageStoragePolicyApi* | [**storage_storage_policies_moid_get**](docs/StorageStoragePolicyApi.md#storage_storage_policies_moid_get) | **GET** /storage/StoragePolicies/{moid} | A instance of storageStoragePolicy -*StorageStoragePolicyApi* | [**storage_storage_policies_moid_patch**](docs/StorageStoragePolicyApi.md#storage_storage_policies_moid_patch) | **PATCH** /storage/StoragePolicies/{moid} | Update an instance of storageStoragePolicy -*StorageStoragePolicyApi* | [**storage_storage_policies_moid_post**](docs/StorageStoragePolicyApi.md#storage_storage_policies_moid_post) | **POST** /storage/StoragePolicies/{moid} | Update an instance of storageStoragePolicy -*StorageStoragePolicyApi* | [**storage_storage_policies_post**](docs/StorageStoragePolicyApi.md#storage_storage_policies_post) | **POST** /storage/StoragePolicies | Create a storageStoragePolicy -*StorageVdMemberEpApi* | [**storage_vd_member_eps_get**](docs/StorageVdMemberEpApi.md#storage_vd_member_eps_get) | **GET** /storage/VdMemberEps | List of storageVdMemberEps -*StorageVdMemberEpApi* | [**storage_vd_member_eps_moid_get**](docs/StorageVdMemberEpApi.md#storage_vd_member_eps_moid_get) | **GET** /storage/VdMemberEps/{moid} | A instance of storageVdMemberEp -*StorageVdMemberEpApi* | [**storage_vd_member_eps_moid_patch**](docs/StorageVdMemberEpApi.md#storage_vd_member_eps_moid_patch) | **PATCH** /storage/VdMemberEps/{moid} | Update an instance of storageVdMemberEp -*StorageVdMemberEpApi* | [**storage_vd_member_eps_moid_post**](docs/StorageVdMemberEpApi.md#storage_vd_member_eps_moid_post) | **POST** /storage/VdMemberEps/{moid} | Update an instance of storageVdMemberEp -*StorageVirtualDriveApi* | [**storage_virtual_drives_get**](docs/StorageVirtualDriveApi.md#storage_virtual_drives_get) | **GET** /storage/VirtualDrives | List of storageVirtualDrives -*StorageVirtualDriveApi* | [**storage_virtual_drives_moid_get**](docs/StorageVirtualDriveApi.md#storage_virtual_drives_moid_get) | **GET** /storage/VirtualDrives/{moid} | A instance of storageVirtualDrive -*StorageVirtualDriveApi* | [**storage_virtual_drives_moid_patch**](docs/StorageVirtualDriveApi.md#storage_virtual_drives_moid_patch) | **PATCH** /storage/VirtualDrives/{moid} | Update an instance of storageVirtualDrive -*StorageVirtualDriveApi* | [**storage_virtual_drives_moid_post**](docs/StorageVirtualDriveApi.md#storage_virtual_drives_moid_post) | **POST** /storage/VirtualDrives/{moid} | Update an instance of storageVirtualDrive -*TaskWorkflowActionApi* | [**task_workflow_actions_get**](docs/TaskWorkflowActionApi.md#task_workflow_actions_get) | **GET** /task/WorkflowActions | List of taskWorkflowActions -*TaskWorkflowActionApi* | [**task_workflow_actions_moid_get**](docs/TaskWorkflowActionApi.md#task_workflow_actions_moid_get) | **GET** /task/WorkflowActions/{moid} | A instance of taskWorkflowAction -*TaskWorkflowActionApi* | [**task_workflow_actions_moid_patch**](docs/TaskWorkflowActionApi.md#task_workflow_actions_moid_patch) | **PATCH** /task/WorkflowActions/{moid} | Update an instance of taskWorkflowAction -*TaskWorkflowActionApi* | [**task_workflow_actions_moid_post**](docs/TaskWorkflowActionApi.md#task_workflow_actions_moid_post) | **POST** /task/WorkflowActions/{moid} | Update an instance of taskWorkflowAction -*TaskWorkflowActionApi* | [**task_workflow_actions_post**](docs/TaskWorkflowActionApi.md#task_workflow_actions_post) | **POST** /task/WorkflowActions | Create a taskWorkflowAction -*TechsupportmanagementDownloadApi* | [**techsupportmanagement_downloads_get**](docs/TechsupportmanagementDownloadApi.md#techsupportmanagement_downloads_get) | **GET** /techsupportmanagement/Downloads | List of techsupportmanagementDownloads -*TechsupportmanagementDownloadApi* | [**techsupportmanagement_downloads_moid_get**](docs/TechsupportmanagementDownloadApi.md#techsupportmanagement_downloads_moid_get) | **GET** /techsupportmanagement/Downloads/{moid} | A instance of techsupportmanagementDownload -*TechsupportmanagementTechSupportBundleApi* | [**techsupportmanagement_tech_support_bundles_get**](docs/TechsupportmanagementTechSupportBundleApi.md#techsupportmanagement_tech_support_bundles_get) | **GET** /techsupportmanagement/TechSupportBundles | List of techsupportmanagementTechSupportBundles -*TechsupportmanagementTechSupportBundleApi* | [**techsupportmanagement_tech_support_bundles_moid_delete**](docs/TechsupportmanagementTechSupportBundleApi.md#techsupportmanagement_tech_support_bundles_moid_delete) | **DELETE** /techsupportmanagement/TechSupportBundles/{moid} | Delete an instance of techsupportmanagementTechSupportBundle -*TechsupportmanagementTechSupportBundleApi* | [**techsupportmanagement_tech_support_bundles_moid_get**](docs/TechsupportmanagementTechSupportBundleApi.md#techsupportmanagement_tech_support_bundles_moid_get) | **GET** /techsupportmanagement/TechSupportBundles/{moid} | A instance of techsupportmanagementTechSupportBundle -*TechsupportmanagementTechSupportBundleApi* | [**techsupportmanagement_tech_support_bundles_post**](docs/TechsupportmanagementTechSupportBundleApi.md#techsupportmanagement_tech_support_bundles_post) | **POST** /techsupportmanagement/TechSupportBundles | Create a techsupportmanagementTechSupportBundle -*TechsupportmanagementTechSupportStatusApi* | [**techsupportmanagement_tech_support_statuses_get**](docs/TechsupportmanagementTechSupportStatusApi.md#techsupportmanagement_tech_support_statuses_get) | **GET** /techsupportmanagement/TechSupportStatuses | List of techsupportmanagementTechSupportStatuses -*TechsupportmanagementTechSupportStatusApi* | [**techsupportmanagement_tech_support_statuses_moid_get**](docs/TechsupportmanagementTechSupportStatusApi.md#techsupportmanagement_tech_support_statuses_moid_get) | **GET** /techsupportmanagement/TechSupportStatuses/{moid} | A instance of techsupportmanagementTechSupportStatus -*TerminalAuditLogApi* | [**terminal_audit_logs_get**](docs/TerminalAuditLogApi.md#terminal_audit_logs_get) | **GET** /terminal/AuditLogs | List of terminalAuditLogs -*TerminalAuditLogApi* | [**terminal_audit_logs_moid_get**](docs/TerminalAuditLogApi.md#terminal_audit_logs_moid_get) | **GET** /terminal/AuditLogs/{moid} | A instance of terminalAuditLog -*TopSystemApi* | [**top_systems_get**](docs/TopSystemApi.md#top_systems_get) | **GET** /top/Systems | List of topSystems -*TopSystemApi* | [**top_systems_moid_get**](docs/TopSystemApi.md#top_systems_moid_get) | **GET** /top/Systems/{moid} | A instance of topSystem -*TopSystemApi* | [**top_systems_moid_patch**](docs/TopSystemApi.md#top_systems_moid_patch) | **PATCH** /top/Systems/{moid} | Update an instance of topSystem -*TopSystemApi* | [**top_systems_moid_post**](docs/TopSystemApi.md#top_systems_moid_post) | **POST** /top/Systems/{moid} | Update an instance of topSystem -*VmediaPolicyApi* | [**vmedia_policies_get**](docs/VmediaPolicyApi.md#vmedia_policies_get) | **GET** /vmedia/Policies | List of vmediaPolicies -*VmediaPolicyApi* | [**vmedia_policies_moid_delete**](docs/VmediaPolicyApi.md#vmedia_policies_moid_delete) | **DELETE** /vmedia/Policies/{moid} | Delete an instance of vmediaPolicy -*VmediaPolicyApi* | [**vmedia_policies_moid_get**](docs/VmediaPolicyApi.md#vmedia_policies_moid_get) | **GET** /vmedia/Policies/{moid} | A instance of vmediaPolicy -*VmediaPolicyApi* | [**vmedia_policies_moid_patch**](docs/VmediaPolicyApi.md#vmedia_policies_moid_patch) | **PATCH** /vmedia/Policies/{moid} | Update an instance of vmediaPolicy -*VmediaPolicyApi* | [**vmedia_policies_moid_post**](docs/VmediaPolicyApi.md#vmedia_policies_moid_post) | **POST** /vmedia/Policies/{moid} | Update an instance of vmediaPolicy -*VmediaPolicyApi* | [**vmedia_policies_post**](docs/VmediaPolicyApi.md#vmedia_policies_post) | **POST** /vmedia/Policies | Create a vmediaPolicy -*WorkflowBuildTaskMetaApi* | [**workflow_build_task_meta_get**](docs/WorkflowBuildTaskMetaApi.md#workflow_build_task_meta_get) | **GET** /workflow/BuildTaskMeta | List of workflowBuildTaskMeta -*WorkflowBuildTaskMetaApi* | [**workflow_build_task_meta_moid_get**](docs/WorkflowBuildTaskMetaApi.md#workflow_build_task_meta_moid_get) | **GET** /workflow/BuildTaskMeta/{moid} | A instance of workflowBuildTaskMeta -*WorkflowTaskInfoApi* | [**workflow_task_infos_get**](docs/WorkflowTaskInfoApi.md#workflow_task_infos_get) | **GET** /workflow/TaskInfos | List of workflowTaskInfos -*WorkflowTaskInfoApi* | [**workflow_task_infos_moid_get**](docs/WorkflowTaskInfoApi.md#workflow_task_infos_moid_get) | **GET** /workflow/TaskInfos/{moid} | A instance of workflowTaskInfo -*WorkflowTaskMetaApi* | [**workflow_task_meta_get**](docs/WorkflowTaskMetaApi.md#workflow_task_meta_get) | **GET** /workflow/TaskMeta | List of workflowTaskMeta -*WorkflowTaskMetaApi* | [**workflow_task_meta_moid_get**](docs/WorkflowTaskMetaApi.md#workflow_task_meta_moid_get) | **GET** /workflow/TaskMeta/{moid} | A instance of workflowTaskMeta -*WorkflowWorkflowInfoApi* | [**workflow_workflow_infos_get**](docs/WorkflowWorkflowInfoApi.md#workflow_workflow_infos_get) | **GET** /workflow/WorkflowInfos | List of workflowWorkflowInfos -*WorkflowWorkflowInfoApi* | [**workflow_workflow_infos_moid_get**](docs/WorkflowWorkflowInfoApi.md#workflow_workflow_infos_moid_get) | **GET** /workflow/WorkflowInfos/{moid} | A instance of workflowWorkflowInfo -*WorkflowWorkflowMetaApi* | [**workflow_workflow_meta_get**](docs/WorkflowWorkflowMetaApi.md#workflow_workflow_meta_get) | **GET** /workflow/WorkflowMeta | List of workflowWorkflowMeta -*WorkflowWorkflowMetaApi* | [**workflow_workflow_meta_moid_get**](docs/WorkflowWorkflowMetaApi.md#workflow_workflow_meta_moid_get) | **GET** /workflow/WorkflowMeta/{moid} | A instance of workflowWorkflowMeta -*WorkflowWorkflowTaskApi* | [**workflow_workflow_tasks_get**](docs/WorkflowWorkflowTaskApi.md#workflow_workflow_tasks_get) | **GET** /workflow/WorkflowTasks | List of workflowWorkflowTasks -*WorkflowWorkflowTaskApi* | [**workflow_workflow_tasks_moid_get**](docs/WorkflowWorkflowTaskApi.md#workflow_workflow_tasks_moid_get) | **GET** /workflow/WorkflowTasks/{moid} | A instance of workflowWorkflowTask +*AaaAuditRecordApi* | [**aaa_audit_records_get**](docs/AaaAuditRecordApi.md#aaa_audit_records_get) | **GET** /aaa/AuditRecords | Get a list of 'aaaAuditRecord' instances +*AaaAuditRecordApi* | [**aaa_audit_records_moid_get**](docs/AaaAuditRecordApi.md#aaa_audit_records_moid_get) | **GET** /aaa/AuditRecords/{moid} | Get a specific instance of 'aaaAuditRecord' +*AdapterExtEthInterfaceApi* | [**adapter_ext_eth_interfaces_get**](docs/AdapterExtEthInterfaceApi.md#adapter_ext_eth_interfaces_get) | **GET** /adapter/ExtEthInterfaces | Get a list of 'adapterExtEthInterface' instances +*AdapterExtEthInterfaceApi* | [**adapter_ext_eth_interfaces_moid_get**](docs/AdapterExtEthInterfaceApi.md#adapter_ext_eth_interfaces_moid_get) | **GET** /adapter/ExtEthInterfaces/{moid} | Get a specific instance of 'adapterExtEthInterface' +*AdapterHostEthInterfaceApi* | [**adapter_host_eth_interfaces_get**](docs/AdapterHostEthInterfaceApi.md#adapter_host_eth_interfaces_get) | **GET** /adapter/HostEthInterfaces | Get a list of 'adapterHostEthInterface' instances +*AdapterHostEthInterfaceApi* | [**adapter_host_eth_interfaces_moid_get**](docs/AdapterHostEthInterfaceApi.md#adapter_host_eth_interfaces_moid_get) | **GET** /adapter/HostEthInterfaces/{moid} | Get a specific instance of 'adapterHostEthInterface' +*AdapterHostFcInterfaceApi* | [**adapter_host_fc_interfaces_get**](docs/AdapterHostFcInterfaceApi.md#adapter_host_fc_interfaces_get) | **GET** /adapter/HostFcInterfaces | Get a list of 'adapterHostFcInterface' instances +*AdapterHostFcInterfaceApi* | [**adapter_host_fc_interfaces_moid_get**](docs/AdapterHostFcInterfaceApi.md#adapter_host_fc_interfaces_moid_get) | **GET** /adapter/HostFcInterfaces/{moid} | Get a specific instance of 'adapterHostFcInterface' +*AdapterHostIscsiInterfaceApi* | [**adapter_host_iscsi_interfaces_get**](docs/AdapterHostIscsiInterfaceApi.md#adapter_host_iscsi_interfaces_get) | **GET** /adapter/HostIscsiInterfaces | Get a list of 'adapterHostIscsiInterface' instances +*AdapterHostIscsiInterfaceApi* | [**adapter_host_iscsi_interfaces_moid_get**](docs/AdapterHostIscsiInterfaceApi.md#adapter_host_iscsi_interfaces_moid_get) | **GET** /adapter/HostIscsiInterfaces/{moid} | Get a specific instance of 'adapterHostIscsiInterface' +*AdapterUnitApi* | [**adapter_units_get**](docs/AdapterUnitApi.md#adapter_units_get) | **GET** /adapter/Units | Get a list of 'adapterUnit' instances +*AdapterUnitApi* | [**adapter_units_moid_get**](docs/AdapterUnitApi.md#adapter_units_moid_get) | **GET** /adapter/Units/{moid} | Get a specific instance of 'adapterUnit' +*AssetClusterMemberApi* | [**asset_cluster_members_get**](docs/AssetClusterMemberApi.md#asset_cluster_members_get) | **GET** /asset/ClusterMembers | Get a list of 'assetClusterMember' instances +*AssetClusterMemberApi* | [**asset_cluster_members_moid_get**](docs/AssetClusterMemberApi.md#asset_cluster_members_moid_get) | **GET** /asset/ClusterMembers/{moid} | Get a specific instance of 'assetClusterMember' +*AssetDeviceClaimApi* | [**asset_device_claims_moid_delete**](docs/AssetDeviceClaimApi.md#asset_device_claims_moid_delete) | **DELETE** /asset/DeviceClaims/{moid} | Delete an instance of 'assetDeviceClaim' +*AssetDeviceClaimApi* | [**asset_device_claims_post**](docs/AssetDeviceClaimApi.md#asset_device_claims_post) | **POST** /asset/DeviceClaims | Create an instance of 'assetDeviceClaim' +*AssetDeviceConfigurationApi* | [**asset_device_configurations_get**](docs/AssetDeviceConfigurationApi.md#asset_device_configurations_get) | **GET** /asset/DeviceConfigurations | Get a list of 'assetDeviceConfiguration' instances +*AssetDeviceConfigurationApi* | [**asset_device_configurations_moid_get**](docs/AssetDeviceConfigurationApi.md#asset_device_configurations_moid_get) | **GET** /asset/DeviceConfigurations/{moid} | Get a specific instance of 'assetDeviceConfiguration' +*AssetDeviceConfigurationApi* | [**asset_device_configurations_moid_patch**](docs/AssetDeviceConfigurationApi.md#asset_device_configurations_moid_patch) | **PATCH** /asset/DeviceConfigurations/{moid} | Update an instance of 'assetDeviceConfiguration' +*AssetDeviceConfigurationApi* | [**asset_device_configurations_moid_post**](docs/AssetDeviceConfigurationApi.md#asset_device_configurations_moid_post) | **POST** /asset/DeviceConfigurations/{moid} | Update an instance of 'assetDeviceConfiguration' +*AssetDeviceRegistrationApi* | [**asset_device_registrations_get**](docs/AssetDeviceRegistrationApi.md#asset_device_registrations_get) | **GET** /asset/DeviceRegistrations | Get a list of 'assetDeviceRegistration' instances +*AssetDeviceRegistrationApi* | [**asset_device_registrations_moid_delete**](docs/AssetDeviceRegistrationApi.md#asset_device_registrations_moid_delete) | **DELETE** /asset/DeviceRegistrations/{moid} | Deletes the resource representing the device connector. All associated REST resources will be deleted. In particular, inventory and operational data associated with this device will be deleted. +*AssetDeviceRegistrationApi* | [**asset_device_registrations_moid_get**](docs/AssetDeviceRegistrationApi.md#asset_device_registrations_moid_get) | **GET** /asset/DeviceRegistrations/{moid} | Get a specific instance of 'assetDeviceRegistration' +*AssetDeviceRegistrationApi* | [**asset_device_registrations_moid_patch**](docs/AssetDeviceRegistrationApi.md#asset_device_registrations_moid_patch) | **PATCH** /asset/DeviceRegistrations/{moid} | Updates the resource representing the device connector. For example, this can be used to annotate the device connector resource with user-specified tags. +*AssetDeviceRegistrationApi* | [**asset_device_registrations_moid_post**](docs/AssetDeviceRegistrationApi.md#asset_device_registrations_moid_post) | **POST** /asset/DeviceRegistrations/{moid} | Updates the resource representing the device connector. For example, this can be used to annotate the device connector resource with user-specified tags. +*BiosPolicyApi* | [**bios_policies_get**](docs/BiosPolicyApi.md#bios_policies_get) | **GET** /bios/Policies | Get a list of 'biosPolicy' instances +*BiosPolicyApi* | [**bios_policies_moid_delete**](docs/BiosPolicyApi.md#bios_policies_moid_delete) | **DELETE** /bios/Policies/{moid} | Delete an instance of 'biosPolicy' +*BiosPolicyApi* | [**bios_policies_moid_get**](docs/BiosPolicyApi.md#bios_policies_moid_get) | **GET** /bios/Policies/{moid} | Get a specific instance of 'biosPolicy' +*BiosPolicyApi* | [**bios_policies_moid_patch**](docs/BiosPolicyApi.md#bios_policies_moid_patch) | **PATCH** /bios/Policies/{moid} | Update an instance of 'biosPolicy' +*BiosPolicyApi* | [**bios_policies_moid_post**](docs/BiosPolicyApi.md#bios_policies_moid_post) | **POST** /bios/Policies/{moid} | Update an instance of 'biosPolicy' +*BiosPolicyApi* | [**bios_policies_post**](docs/BiosPolicyApi.md#bios_policies_post) | **POST** /bios/Policies | Create an instance of 'biosPolicy' +*BiosUnitApi* | [**bios_units_get**](docs/BiosUnitApi.md#bios_units_get) | **GET** /bios/Units | Get a list of 'biosUnit' instances +*BiosUnitApi* | [**bios_units_moid_get**](docs/BiosUnitApi.md#bios_units_moid_get) | **GET** /bios/Units/{moid} | Get a specific instance of 'biosUnit' +*BiosUnitApi* | [**bios_units_moid_patch**](docs/BiosUnitApi.md#bios_units_moid_patch) | **PATCH** /bios/Units/{moid} | Update an instance of 'biosUnit' +*BiosUnitApi* | [**bios_units_moid_post**](docs/BiosUnitApi.md#bios_units_moid_post) | **POST** /bios/Units/{moid} | Update an instance of 'biosUnit' +*BootPrecisionPolicyApi* | [**boot_precision_policies_get**](docs/BootPrecisionPolicyApi.md#boot_precision_policies_get) | **GET** /boot/PrecisionPolicies | Get a list of 'bootPrecisionPolicy' instances +*BootPrecisionPolicyApi* | [**boot_precision_policies_moid_delete**](docs/BootPrecisionPolicyApi.md#boot_precision_policies_moid_delete) | **DELETE** /boot/PrecisionPolicies/{moid} | Delete an instance of 'bootPrecisionPolicy' +*BootPrecisionPolicyApi* | [**boot_precision_policies_moid_get**](docs/BootPrecisionPolicyApi.md#boot_precision_policies_moid_get) | **GET** /boot/PrecisionPolicies/{moid} | Get a specific instance of 'bootPrecisionPolicy' +*BootPrecisionPolicyApi* | [**boot_precision_policies_moid_patch**](docs/BootPrecisionPolicyApi.md#boot_precision_policies_moid_patch) | **PATCH** /boot/PrecisionPolicies/{moid} | Update an instance of 'bootPrecisionPolicy' +*BootPrecisionPolicyApi* | [**boot_precision_policies_moid_post**](docs/BootPrecisionPolicyApi.md#boot_precision_policies_moid_post) | **POST** /boot/PrecisionPolicies/{moid} | Update an instance of 'bootPrecisionPolicy' +*BootPrecisionPolicyApi* | [**boot_precision_policies_post**](docs/BootPrecisionPolicyApi.md#boot_precision_policies_post) | **POST** /boot/PrecisionPolicies | Create an instance of 'bootPrecisionPolicy' +*ComputeBladeApi* | [**compute_blades_get**](docs/ComputeBladeApi.md#compute_blades_get) | **GET** /compute/Blades | Get a list of 'computeBlade' instances +*ComputeBladeApi* | [**compute_blades_moid_get**](docs/ComputeBladeApi.md#compute_blades_moid_get) | **GET** /compute/Blades/{moid} | Get a specific instance of 'computeBlade' +*ComputeBladeApi* | [**compute_blades_moid_patch**](docs/ComputeBladeApi.md#compute_blades_moid_patch) | **PATCH** /compute/Blades/{moid} | Update an instance of 'computeBlade' +*ComputeBladeApi* | [**compute_blades_moid_post**](docs/ComputeBladeApi.md#compute_blades_moid_post) | **POST** /compute/Blades/{moid} | Update an instance of 'computeBlade' +*ComputeBoardApi* | [**compute_boards_get**](docs/ComputeBoardApi.md#compute_boards_get) | **GET** /compute/Boards | Get a list of 'computeBoard' instances +*ComputeBoardApi* | [**compute_boards_moid_get**](docs/ComputeBoardApi.md#compute_boards_moid_get) | **GET** /compute/Boards/{moid} | Get a specific instance of 'computeBoard' +*ComputeBoardApi* | [**compute_boards_moid_patch**](docs/ComputeBoardApi.md#compute_boards_moid_patch) | **PATCH** /compute/Boards/{moid} | Update an instance of 'computeBoard' +*ComputeBoardApi* | [**compute_boards_moid_post**](docs/ComputeBoardApi.md#compute_boards_moid_post) | **POST** /compute/Boards/{moid} | Update an instance of 'computeBoard' +*ComputePhysicalSummaryApi* | [**compute_physical_summaries_get**](docs/ComputePhysicalSummaryApi.md#compute_physical_summaries_get) | **GET** /compute/PhysicalSummaries | Get a list of 'computePhysicalSummary' instances +*ComputePhysicalSummaryApi* | [**compute_physical_summaries_moid_get**](docs/ComputePhysicalSummaryApi.md#compute_physical_summaries_moid_get) | **GET** /compute/PhysicalSummaries/{moid} | Get a specific instance of 'computePhysicalSummary' +*ComputeRackUnitApi* | [**compute_rack_units_get**](docs/ComputeRackUnitApi.md#compute_rack_units_get) | **GET** /compute/RackUnits | Get a list of 'computeRackUnit' instances +*ComputeRackUnitApi* | [**compute_rack_units_moid_get**](docs/ComputeRackUnitApi.md#compute_rack_units_moid_get) | **GET** /compute/RackUnits/{moid} | Get a specific instance of 'computeRackUnit' +*ComputeRackUnitApi* | [**compute_rack_units_moid_patch**](docs/ComputeRackUnitApi.md#compute_rack_units_moid_patch) | **PATCH** /compute/RackUnits/{moid} | Update an instance of 'computeRackUnit' +*ComputeRackUnitApi* | [**compute_rack_units_moid_post**](docs/ComputeRackUnitApi.md#compute_rack_units_moid_post) | **POST** /compute/RackUnits/{moid} | Update an instance of 'computeRackUnit' +*ComputeServerSettingApi* | [**compute_server_settings_get**](docs/ComputeServerSettingApi.md#compute_server_settings_get) | **GET** /compute/ServerSettings | Get a list of 'computeServerSetting' instances +*ComputeServerSettingApi* | [**compute_server_settings_moid_get**](docs/ComputeServerSettingApi.md#compute_server_settings_moid_get) | **GET** /compute/ServerSettings/{moid} | Get a specific instance of 'computeServerSetting' +*ComputeServerSettingApi* | [**compute_server_settings_moid_patch**](docs/ComputeServerSettingApi.md#compute_server_settings_moid_patch) | **PATCH** /compute/ServerSettings/{moid} | Update an instance of 'computeServerSetting' +*ComputeServerSettingApi* | [**compute_server_settings_moid_post**](docs/ComputeServerSettingApi.md#compute_server_settings_moid_post) | **POST** /compute/ServerSettings/{moid} | Update an instance of 'computeServerSetting' +*CondAlarmApi* | [**cond_alarms_get**](docs/CondAlarmApi.md#cond_alarms_get) | **GET** /cond/Alarms | Get a list of 'condAlarm' instances +*CondAlarmApi* | [**cond_alarms_moid_get**](docs/CondAlarmApi.md#cond_alarms_moid_get) | **GET** /cond/Alarms/{moid} | Get a specific instance of 'condAlarm' +*CondHclStatusApi* | [**cond_hcl_statuses_get**](docs/CondHclStatusApi.md#cond_hcl_statuses_get) | **GET** /cond/HclStatuses | Get a list of 'condHclStatus' instances +*CondHclStatusApi* | [**cond_hcl_statuses_moid_get**](docs/CondHclStatusApi.md#cond_hcl_statuses_moid_get) | **GET** /cond/HclStatuses/{moid} | Get a specific instance of 'condHclStatus' +*CondHclStatusDetailApi* | [**cond_hcl_status_details_get**](docs/CondHclStatusDetailApi.md#cond_hcl_status_details_get) | **GET** /cond/HclStatusDetails | Get a list of 'condHclStatusDetail' instances +*CondHclStatusDetailApi* | [**cond_hcl_status_details_moid_get**](docs/CondHclStatusDetailApi.md#cond_hcl_status_details_moid_get) | **GET** /cond/HclStatusDetails/{moid} | Get a specific instance of 'condHclStatusDetail' +*CondHclStatusJobApi* | [**cond_hcl_status_jobs_get**](docs/CondHclStatusJobApi.md#cond_hcl_status_jobs_get) | **GET** /cond/HclStatusJobs | Get a list of 'condHclStatusJob' instances +*CondHclStatusJobApi* | [**cond_hcl_status_jobs_moid_get**](docs/CondHclStatusJobApi.md#cond_hcl_status_jobs_moid_get) | **GET** /cond/HclStatusJobs/{moid} | Get a specific instance of 'condHclStatusJob' +*CryptEncryptionTokenApi* | [**crypt_encryption_tokens_get**](docs/CryptEncryptionTokenApi.md#crypt_encryption_tokens_get) | **GET** /crypt/EncryptionTokens | Get a list of 'cryptEncryptionToken' instances +*CryptEncryptionTokenApi* | [**crypt_encryption_tokens_moid_get**](docs/CryptEncryptionTokenApi.md#crypt_encryption_tokens_moid_get) | **GET** /crypt/EncryptionTokens/{moid} | Get a specific instance of 'cryptEncryptionToken' +*CryptEncryptionTokenApi* | [**crypt_encryption_tokens_moid_patch**](docs/CryptEncryptionTokenApi.md#crypt_encryption_tokens_moid_patch) | **PATCH** /crypt/EncryptionTokens/{moid} | Update an instance of 'cryptEncryptionToken' +*CryptEncryptionTokenApi* | [**crypt_encryption_tokens_moid_post**](docs/CryptEncryptionTokenApi.md#crypt_encryption_tokens_moid_post) | **POST** /crypt/EncryptionTokens/{moid} | Update an instance of 'cryptEncryptionToken' +*CvdDeploymentTaskApi* | [**cvd_deployment_tasks_get**](docs/CvdDeploymentTaskApi.md#cvd_deployment_tasks_get) | **GET** /cvd/DeploymentTasks | Get a list of 'cvdDeploymentTask' instances +*CvdDeploymentTaskApi* | [**cvd_deployment_tasks_moid_delete**](docs/CvdDeploymentTaskApi.md#cvd_deployment_tasks_moid_delete) | **DELETE** /cvd/DeploymentTasks/{moid} | Delete an instance of 'cvdDeploymentTask' +*CvdDeploymentTaskApi* | [**cvd_deployment_tasks_moid_get**](docs/CvdDeploymentTaskApi.md#cvd_deployment_tasks_moid_get) | **GET** /cvd/DeploymentTasks/{moid} | Get a specific instance of 'cvdDeploymentTask' +*CvdDeploymentTaskApi* | [**cvd_deployment_tasks_moid_patch**](docs/CvdDeploymentTaskApi.md#cvd_deployment_tasks_moid_patch) | **PATCH** /cvd/DeploymentTasks/{moid} | Update an instance of 'cvdDeploymentTask' +*CvdDeploymentTaskApi* | [**cvd_deployment_tasks_moid_post**](docs/CvdDeploymentTaskApi.md#cvd_deployment_tasks_moid_post) | **POST** /cvd/DeploymentTasks/{moid} | Update an instance of 'cvdDeploymentTask' +*CvdDeploymentTaskApi* | [**cvd_deployment_tasks_post**](docs/CvdDeploymentTaskApi.md#cvd_deployment_tasks_post) | **POST** /cvd/DeploymentTasks | Create an instance of 'cvdDeploymentTask' +*CvdTemplateApi* | [**cvd_templates_get**](docs/CvdTemplateApi.md#cvd_templates_get) | **GET** /cvd/Templates | Get a list of 'cvdTemplate' instances +*CvdTemplateApi* | [**cvd_templates_moid_delete**](docs/CvdTemplateApi.md#cvd_templates_moid_delete) | **DELETE** /cvd/Templates/{moid} | Delete an instance of 'cvdTemplate' +*CvdTemplateApi* | [**cvd_templates_moid_get**](docs/CvdTemplateApi.md#cvd_templates_moid_get) | **GET** /cvd/Templates/{moid} | Get a specific instance of 'cvdTemplate' +*CvdTemplateApi* | [**cvd_templates_moid_patch**](docs/CvdTemplateApi.md#cvd_templates_moid_patch) | **PATCH** /cvd/Templates/{moid} | Update an instance of 'cvdTemplate' +*CvdTemplateApi* | [**cvd_templates_moid_post**](docs/CvdTemplateApi.md#cvd_templates_moid_post) | **POST** /cvd/Templates/{moid} | Update an instance of 'cvdTemplate' +*CvdTemplateApi* | [**cvd_templates_post**](docs/CvdTemplateApi.md#cvd_templates_post) | **POST** /cvd/Templates | Create an instance of 'cvdTemplate' +*CvdValidationTaskApi* | [**cvd_validation_tasks_get**](docs/CvdValidationTaskApi.md#cvd_validation_tasks_get) | **GET** /cvd/ValidationTasks | Get a list of 'cvdValidationTask' instances +*CvdValidationTaskApi* | [**cvd_validation_tasks_moid_delete**](docs/CvdValidationTaskApi.md#cvd_validation_tasks_moid_delete) | **DELETE** /cvd/ValidationTasks/{moid} | Delete an instance of 'cvdValidationTask' +*CvdValidationTaskApi* | [**cvd_validation_tasks_moid_get**](docs/CvdValidationTaskApi.md#cvd_validation_tasks_moid_get) | **GET** /cvd/ValidationTasks/{moid} | Get a specific instance of 'cvdValidationTask' +*CvdValidationTaskApi* | [**cvd_validation_tasks_moid_patch**](docs/CvdValidationTaskApi.md#cvd_validation_tasks_moid_patch) | **PATCH** /cvd/ValidationTasks/{moid} | Update an instance of 'cvdValidationTask' +*CvdValidationTaskApi* | [**cvd_validation_tasks_moid_post**](docs/CvdValidationTaskApi.md#cvd_validation_tasks_moid_post) | **POST** /cvd/ValidationTasks/{moid} | Update an instance of 'cvdValidationTask' +*CvdValidationTaskApi* | [**cvd_validation_tasks_post**](docs/CvdValidationTaskApi.md#cvd_validation_tasks_post) | **POST** /cvd/ValidationTasks | Create an instance of 'cvdValidationTask' +*DeviceconnectorPolicyApi* | [**deviceconnector_policies_get**](docs/DeviceconnectorPolicyApi.md#deviceconnector_policies_get) | **GET** /deviceconnector/Policies | Get a list of 'deviceconnectorPolicy' instances +*DeviceconnectorPolicyApi* | [**deviceconnector_policies_moid_delete**](docs/DeviceconnectorPolicyApi.md#deviceconnector_policies_moid_delete) | **DELETE** /deviceconnector/Policies/{moid} | Delete an instance of 'deviceconnectorPolicy' +*DeviceconnectorPolicyApi* | [**deviceconnector_policies_moid_get**](docs/DeviceconnectorPolicyApi.md#deviceconnector_policies_moid_get) | **GET** /deviceconnector/Policies/{moid} | Get a specific instance of 'deviceconnectorPolicy' +*DeviceconnectorPolicyApi* | [**deviceconnector_policies_moid_patch**](docs/DeviceconnectorPolicyApi.md#deviceconnector_policies_moid_patch) | **PATCH** /deviceconnector/Policies/{moid} | Update an instance of 'deviceconnectorPolicy' +*DeviceconnectorPolicyApi* | [**deviceconnector_policies_moid_post**](docs/DeviceconnectorPolicyApi.md#deviceconnector_policies_moid_post) | **POST** /deviceconnector/Policies/{moid} | Update an instance of 'deviceconnectorPolicy' +*DeviceconnectorPolicyApi* | [**deviceconnector_policies_post**](docs/DeviceconnectorPolicyApi.md#deviceconnector_policies_post) | **POST** /deviceconnector/Policies | Create an instance of 'deviceconnectorPolicy' +*DeviceinfoSerialNumberInfoApi* | [**deviceinfo_serial_number_infos_get**](docs/DeviceinfoSerialNumberInfoApi.md#deviceinfo_serial_number_infos_get) | **GET** /deviceinfo/SerialNumberInfos | Get a list of 'deviceinfoSerialNumberInfo' instances +*DeviceinfoSerialNumberInfoApi* | [**deviceinfo_serial_number_infos_moid_get**](docs/DeviceinfoSerialNumberInfoApi.md#deviceinfo_serial_number_infos_moid_get) | **GET** /deviceinfo/SerialNumberInfos/{moid} | Get a specific instance of 'deviceinfoSerialNumberInfo' +*EquipmentChassisApi* | [**equipment_chasses_get**](docs/EquipmentChassisApi.md#equipment_chasses_get) | **GET** /equipment/Chasses | Get a list of 'equipmentChassis' instances +*EquipmentChassisApi* | [**equipment_chasses_moid_get**](docs/EquipmentChassisApi.md#equipment_chasses_moid_get) | **GET** /equipment/Chasses/{moid} | Get a specific instance of 'equipmentChassis' +*EquipmentChassisApi* | [**equipment_chasses_moid_patch**](docs/EquipmentChassisApi.md#equipment_chasses_moid_patch) | **PATCH** /equipment/Chasses/{moid} | Update an instance of 'equipmentChassis' +*EquipmentChassisApi* | [**equipment_chasses_moid_post**](docs/EquipmentChassisApi.md#equipment_chasses_moid_post) | **POST** /equipment/Chasses/{moid} | Update an instance of 'equipmentChassis' +*EquipmentDeviceSummaryApi* | [**equipment_device_summaries_get**](docs/EquipmentDeviceSummaryApi.md#equipment_device_summaries_get) | **GET** /equipment/DeviceSummaries | Get a list of 'equipmentDeviceSummary' instances +*EquipmentDeviceSummaryApi* | [**equipment_device_summaries_moid_get**](docs/EquipmentDeviceSummaryApi.md#equipment_device_summaries_moid_get) | **GET** /equipment/DeviceSummaries/{moid} | Get a specific instance of 'equipmentDeviceSummary' +*EquipmentFanApi* | [**equipment_fans_get**](docs/EquipmentFanApi.md#equipment_fans_get) | **GET** /equipment/Fans | Get a list of 'equipmentFan' instances +*EquipmentFanApi* | [**equipment_fans_moid_get**](docs/EquipmentFanApi.md#equipment_fans_moid_get) | **GET** /equipment/Fans/{moid} | Get a specific instance of 'equipmentFan' +*EquipmentFanApi* | [**equipment_fans_moid_patch**](docs/EquipmentFanApi.md#equipment_fans_moid_patch) | **PATCH** /equipment/Fans/{moid} | Update an instance of 'equipmentFan' +*EquipmentFanApi* | [**equipment_fans_moid_post**](docs/EquipmentFanApi.md#equipment_fans_moid_post) | **POST** /equipment/Fans/{moid} | Update an instance of 'equipmentFan' +*EquipmentFanModuleApi* | [**equipment_fan_modules_get**](docs/EquipmentFanModuleApi.md#equipment_fan_modules_get) | **GET** /equipment/FanModules | Get a list of 'equipmentFanModule' instances +*EquipmentFanModuleApi* | [**equipment_fan_modules_moid_get**](docs/EquipmentFanModuleApi.md#equipment_fan_modules_moid_get) | **GET** /equipment/FanModules/{moid} | Get a specific instance of 'equipmentFanModule' +*EquipmentFanModuleApi* | [**equipment_fan_modules_moid_patch**](docs/EquipmentFanModuleApi.md#equipment_fan_modules_moid_patch) | **PATCH** /equipment/FanModules/{moid} | Update an instance of 'equipmentFanModule' +*EquipmentFanModuleApi* | [**equipment_fan_modules_moid_post**](docs/EquipmentFanModuleApi.md#equipment_fan_modules_moid_post) | **POST** /equipment/FanModules/{moid} | Update an instance of 'equipmentFanModule' +*EquipmentFexApi* | [**equipment_fexes_get**](docs/EquipmentFexApi.md#equipment_fexes_get) | **GET** /equipment/Fexes | Get a list of 'equipmentFex' instances +*EquipmentFexApi* | [**equipment_fexes_moid_get**](docs/EquipmentFexApi.md#equipment_fexes_moid_get) | **GET** /equipment/Fexes/{moid} | Get a specific instance of 'equipmentFex' +*EquipmentFexApi* | [**equipment_fexes_moid_patch**](docs/EquipmentFexApi.md#equipment_fexes_moid_patch) | **PATCH** /equipment/Fexes/{moid} | Update an instance of 'equipmentFex' +*EquipmentFexApi* | [**equipment_fexes_moid_post**](docs/EquipmentFexApi.md#equipment_fexes_moid_post) | **POST** /equipment/Fexes/{moid} | Update an instance of 'equipmentFex' +*EquipmentIoCardApi* | [**equipment_io_cards_get**](docs/EquipmentIoCardApi.md#equipment_io_cards_get) | **GET** /equipment/IoCards | Get a list of 'equipmentIoCard' instances +*EquipmentIoCardApi* | [**equipment_io_cards_moid_get**](docs/EquipmentIoCardApi.md#equipment_io_cards_moid_get) | **GET** /equipment/IoCards/{moid} | Get a specific instance of 'equipmentIoCard' +*EquipmentIoCardApi* | [**equipment_io_cards_moid_patch**](docs/EquipmentIoCardApi.md#equipment_io_cards_moid_patch) | **PATCH** /equipment/IoCards/{moid} | Update an instance of 'equipmentIoCard' +*EquipmentIoCardApi* | [**equipment_io_cards_moid_post**](docs/EquipmentIoCardApi.md#equipment_io_cards_moid_post) | **POST** /equipment/IoCards/{moid} | Update an instance of 'equipmentIoCard' +*EquipmentIoExpanderApi* | [**equipment_io_expanders_get**](docs/EquipmentIoExpanderApi.md#equipment_io_expanders_get) | **GET** /equipment/IoExpanders | Get a list of 'equipmentIoExpander' instances +*EquipmentIoExpanderApi* | [**equipment_io_expanders_moid_get**](docs/EquipmentIoExpanderApi.md#equipment_io_expanders_moid_get) | **GET** /equipment/IoExpanders/{moid} | Get a specific instance of 'equipmentIoExpander' +*EquipmentIoExpanderApi* | [**equipment_io_expanders_moid_patch**](docs/EquipmentIoExpanderApi.md#equipment_io_expanders_moid_patch) | **PATCH** /equipment/IoExpanders/{moid} | Update an instance of 'equipmentIoExpander' +*EquipmentIoExpanderApi* | [**equipment_io_expanders_moid_post**](docs/EquipmentIoExpanderApi.md#equipment_io_expanders_moid_post) | **POST** /equipment/IoExpanders/{moid} | Update an instance of 'equipmentIoExpander' +*EquipmentLocatorLedApi* | [**equipment_locator_leds_get**](docs/EquipmentLocatorLedApi.md#equipment_locator_leds_get) | **GET** /equipment/LocatorLeds | Get a list of 'equipmentLocatorLed' instances +*EquipmentLocatorLedApi* | [**equipment_locator_leds_moid_get**](docs/EquipmentLocatorLedApi.md#equipment_locator_leds_moid_get) | **GET** /equipment/LocatorLeds/{moid} | Get a specific instance of 'equipmentLocatorLed' +*EquipmentLocatorLedApi* | [**equipment_locator_leds_moid_patch**](docs/EquipmentLocatorLedApi.md#equipment_locator_leds_moid_patch) | **PATCH** /equipment/LocatorLeds/{moid} | Update an instance of 'equipmentLocatorLed' +*EquipmentLocatorLedApi* | [**equipment_locator_leds_moid_post**](docs/EquipmentLocatorLedApi.md#equipment_locator_leds_moid_post) | **POST** /equipment/LocatorLeds/{moid} | Update an instance of 'equipmentLocatorLed' +*EquipmentPsuApi* | [**equipment_psus_get**](docs/EquipmentPsuApi.md#equipment_psus_get) | **GET** /equipment/Psus | Get a list of 'equipmentPsu' instances +*EquipmentPsuApi* | [**equipment_psus_moid_get**](docs/EquipmentPsuApi.md#equipment_psus_moid_get) | **GET** /equipment/Psus/{moid} | Get a specific instance of 'equipmentPsu' +*EquipmentPsuApi* | [**equipment_psus_moid_patch**](docs/EquipmentPsuApi.md#equipment_psus_moid_patch) | **PATCH** /equipment/Psus/{moid} | Update an instance of 'equipmentPsu' +*EquipmentPsuApi* | [**equipment_psus_moid_post**](docs/EquipmentPsuApi.md#equipment_psus_moid_post) | **POST** /equipment/Psus/{moid} | Update an instance of 'equipmentPsu' +*EquipmentRackEnclosureApi* | [**equipment_rack_enclosures_get**](docs/EquipmentRackEnclosureApi.md#equipment_rack_enclosures_get) | **GET** /equipment/RackEnclosures | Get a list of 'equipmentRackEnclosure' instances +*EquipmentRackEnclosureApi* | [**equipment_rack_enclosures_moid_get**](docs/EquipmentRackEnclosureApi.md#equipment_rack_enclosures_moid_get) | **GET** /equipment/RackEnclosures/{moid} | Get a specific instance of 'equipmentRackEnclosure' +*EquipmentRackEnclosureApi* | [**equipment_rack_enclosures_moid_patch**](docs/EquipmentRackEnclosureApi.md#equipment_rack_enclosures_moid_patch) | **PATCH** /equipment/RackEnclosures/{moid} | Update an instance of 'equipmentRackEnclosure' +*EquipmentRackEnclosureApi* | [**equipment_rack_enclosures_moid_post**](docs/EquipmentRackEnclosureApi.md#equipment_rack_enclosures_moid_post) | **POST** /equipment/RackEnclosures/{moid} | Update an instance of 'equipmentRackEnclosure' +*EquipmentRackEnclosureSlotApi* | [**equipment_rack_enclosure_slots_get**](docs/EquipmentRackEnclosureSlotApi.md#equipment_rack_enclosure_slots_get) | **GET** /equipment/RackEnclosureSlots | Get a list of 'equipmentRackEnclosureSlot' instances +*EquipmentRackEnclosureSlotApi* | [**equipment_rack_enclosure_slots_moid_get**](docs/EquipmentRackEnclosureSlotApi.md#equipment_rack_enclosure_slots_moid_get) | **GET** /equipment/RackEnclosureSlots/{moid} | Get a specific instance of 'equipmentRackEnclosureSlot' +*EquipmentRackEnclosureSlotApi* | [**equipment_rack_enclosure_slots_moid_patch**](docs/EquipmentRackEnclosureSlotApi.md#equipment_rack_enclosure_slots_moid_patch) | **PATCH** /equipment/RackEnclosureSlots/{moid} | Update an instance of 'equipmentRackEnclosureSlot' +*EquipmentRackEnclosureSlotApi* | [**equipment_rack_enclosure_slots_moid_post**](docs/EquipmentRackEnclosureSlotApi.md#equipment_rack_enclosure_slots_moid_post) | **POST** /equipment/RackEnclosureSlots/{moid} | Update an instance of 'equipmentRackEnclosureSlot' +*EquipmentSwitchCardApi* | [**equipment_switch_cards_get**](docs/EquipmentSwitchCardApi.md#equipment_switch_cards_get) | **GET** /equipment/SwitchCards | Get a list of 'equipmentSwitchCard' instances +*EquipmentSwitchCardApi* | [**equipment_switch_cards_moid_get**](docs/EquipmentSwitchCardApi.md#equipment_switch_cards_moid_get) | **GET** /equipment/SwitchCards/{moid} | Get a specific instance of 'equipmentSwitchCard' +*EquipmentSwitchCardApi* | [**equipment_switch_cards_moid_patch**](docs/EquipmentSwitchCardApi.md#equipment_switch_cards_moid_patch) | **PATCH** /equipment/SwitchCards/{moid} | Update an instance of 'equipmentSwitchCard' +*EquipmentSwitchCardApi* | [**equipment_switch_cards_moid_post**](docs/EquipmentSwitchCardApi.md#equipment_switch_cards_moid_post) | **POST** /equipment/SwitchCards/{moid} | Update an instance of 'equipmentSwitchCard' +*EquipmentSystemIoControllerApi* | [**equipment_system_io_controllers_get**](docs/EquipmentSystemIoControllerApi.md#equipment_system_io_controllers_get) | **GET** /equipment/SystemIoControllers | Get a list of 'equipmentSystemIoController' instances +*EquipmentSystemIoControllerApi* | [**equipment_system_io_controllers_moid_get**](docs/EquipmentSystemIoControllerApi.md#equipment_system_io_controllers_moid_get) | **GET** /equipment/SystemIoControllers/{moid} | Get a specific instance of 'equipmentSystemIoController' +*EquipmentSystemIoControllerApi* | [**equipment_system_io_controllers_moid_patch**](docs/EquipmentSystemIoControllerApi.md#equipment_system_io_controllers_moid_patch) | **PATCH** /equipment/SystemIoControllers/{moid} | Update an instance of 'equipmentSystemIoController' +*EquipmentSystemIoControllerApi* | [**equipment_system_io_controllers_moid_post**](docs/EquipmentSystemIoControllerApi.md#equipment_system_io_controllers_moid_post) | **POST** /equipment/SystemIoControllers/{moid} | Update an instance of 'equipmentSystemIoController' +*EquipmentTpmApi* | [**equipment_tpms_get**](docs/EquipmentTpmApi.md#equipment_tpms_get) | **GET** /equipment/Tpms | Get a list of 'equipmentTpm' instances +*EquipmentTpmApi* | [**equipment_tpms_moid_get**](docs/EquipmentTpmApi.md#equipment_tpms_moid_get) | **GET** /equipment/Tpms/{moid} | Get a specific instance of 'equipmentTpm' +*EquipmentTpmApi* | [**equipment_tpms_moid_patch**](docs/EquipmentTpmApi.md#equipment_tpms_moid_patch) | **PATCH** /equipment/Tpms/{moid} | Update an instance of 'equipmentTpm' +*EquipmentTpmApi* | [**equipment_tpms_moid_post**](docs/EquipmentTpmApi.md#equipment_tpms_moid_post) | **POST** /equipment/Tpms/{moid} | Update an instance of 'equipmentTpm' +*EtherPhysicalPortApi* | [**ether_physical_ports_get**](docs/EtherPhysicalPortApi.md#ether_physical_ports_get) | **GET** /ether/PhysicalPorts | Get a list of 'etherPhysicalPort' instances +*EtherPhysicalPortApi* | [**ether_physical_ports_moid_get**](docs/EtherPhysicalPortApi.md#ether_physical_ports_moid_get) | **GET** /ether/PhysicalPorts/{moid} | Get a specific instance of 'etherPhysicalPort' +*EtherPhysicalPortApi* | [**ether_physical_ports_moid_patch**](docs/EtherPhysicalPortApi.md#ether_physical_ports_moid_patch) | **PATCH** /ether/PhysicalPorts/{moid} | Update an instance of 'etherPhysicalPort' +*EtherPhysicalPortApi* | [**ether_physical_ports_moid_post**](docs/EtherPhysicalPortApi.md#ether_physical_ports_moid_post) | **POST** /ether/PhysicalPorts/{moid} | Update an instance of 'etherPhysicalPort' +*ExternalsiteAuthorizationApi* | [**externalsite_authorizations_get**](docs/ExternalsiteAuthorizationApi.md#externalsite_authorizations_get) | **GET** /externalsite/Authorizations | Get a list of 'externalsiteAuthorization' instances +*ExternalsiteAuthorizationApi* | [**externalsite_authorizations_moid_get**](docs/ExternalsiteAuthorizationApi.md#externalsite_authorizations_moid_get) | **GET** /externalsite/Authorizations/{moid} | Get a specific instance of 'externalsiteAuthorization' +*ExternalsiteAuthorizationApi* | [**externalsite_authorizations_moid_patch**](docs/ExternalsiteAuthorizationApi.md#externalsite_authorizations_moid_patch) | **PATCH** /externalsite/Authorizations/{moid} | Update an instance of 'externalsiteAuthorization' +*ExternalsiteAuthorizationApi* | [**externalsite_authorizations_moid_post**](docs/ExternalsiteAuthorizationApi.md#externalsite_authorizations_moid_post) | **POST** /externalsite/Authorizations/{moid} | Update an instance of 'externalsiteAuthorization' +*ExternalsiteAuthorizationApi* | [**externalsite_authorizations_post**](docs/ExternalsiteAuthorizationApi.md#externalsite_authorizations_post) | **POST** /externalsite/Authorizations | Create an instance of 'externalsiteAuthorization' +*FaultInstanceApi* | [**fault_instances_get**](docs/FaultInstanceApi.md#fault_instances_get) | **GET** /fault/Instances | Get a list of 'faultInstance' instances +*FaultInstanceApi* | [**fault_instances_moid_get**](docs/FaultInstanceApi.md#fault_instances_moid_get) | **GET** /fault/Instances/{moid} | Get a specific instance of 'faultInstance' +*FaultInstanceApi* | [**fault_instances_moid_patch**](docs/FaultInstanceApi.md#fault_instances_moid_patch) | **PATCH** /fault/Instances/{moid} | Update an instance of 'faultInstance' +*FaultInstanceApi* | [**fault_instances_moid_post**](docs/FaultInstanceApi.md#fault_instances_moid_post) | **POST** /fault/Instances/{moid} | Update an instance of 'faultInstance' +*FcPhysicalPortApi* | [**fc_physical_ports_get**](docs/FcPhysicalPortApi.md#fc_physical_ports_get) | **GET** /fc/PhysicalPorts | Get a list of 'fcPhysicalPort' instances +*FcPhysicalPortApi* | [**fc_physical_ports_moid_get**](docs/FcPhysicalPortApi.md#fc_physical_ports_moid_get) | **GET** /fc/PhysicalPorts/{moid} | Get a specific instance of 'fcPhysicalPort' +*FcPhysicalPortApi* | [**fc_physical_ports_moid_patch**](docs/FcPhysicalPortApi.md#fc_physical_ports_moid_patch) | **PATCH** /fc/PhysicalPorts/{moid} | Update an instance of 'fcPhysicalPort' +*FcPhysicalPortApi* | [**fc_physical_ports_moid_post**](docs/FcPhysicalPortApi.md#fc_physical_ports_moid_post) | **POST** /fc/PhysicalPorts/{moid} | Update an instance of 'fcPhysicalPort' +*FeedbackFeedbackPostApi* | [**feedback_feedback_posts_post**](docs/FeedbackFeedbackPostApi.md#feedback_feedback_posts_post) | **POST** /feedback/FeedbackPosts | Create an instance of 'feedbackFeedbackPost' +*FirmwareDistributableApi* | [**firmware_distributables_get**](docs/FirmwareDistributableApi.md#firmware_distributables_get) | **GET** /firmware/Distributables | Get a list of 'firmwareDistributable' instances +*FirmwareDistributableApi* | [**firmware_distributables_moid_get**](docs/FirmwareDistributableApi.md#firmware_distributables_moid_get) | **GET** /firmware/Distributables/{moid} | Get a specific instance of 'firmwareDistributable' +*FirmwareEulaApi* | [**firmware_eulas_get**](docs/FirmwareEulaApi.md#firmware_eulas_get) | **GET** /firmware/Eulas | Get a list of 'firmwareEula' instances +*FirmwareEulaApi* | [**firmware_eulas_moid_get**](docs/FirmwareEulaApi.md#firmware_eulas_moid_get) | **GET** /firmware/Eulas/{moid} | Get a specific instance of 'firmwareEula' +*FirmwareEulaApi* | [**firmware_eulas_post**](docs/FirmwareEulaApi.md#firmware_eulas_post) | **POST** /firmware/Eulas | Create an instance of 'firmwareEula' +*FirmwareRunningFirmwareApi* | [**firmware_running_firmwares_get**](docs/FirmwareRunningFirmwareApi.md#firmware_running_firmwares_get) | **GET** /firmware/RunningFirmwares | Get a list of 'firmwareRunningFirmware' instances +*FirmwareRunningFirmwareApi* | [**firmware_running_firmwares_moid_get**](docs/FirmwareRunningFirmwareApi.md#firmware_running_firmwares_moid_get) | **GET** /firmware/RunningFirmwares/{moid} | Get a specific instance of 'firmwareRunningFirmware' +*FirmwareRunningFirmwareApi* | [**firmware_running_firmwares_moid_patch**](docs/FirmwareRunningFirmwareApi.md#firmware_running_firmwares_moid_patch) | **PATCH** /firmware/RunningFirmwares/{moid} | Update an instance of 'firmwareRunningFirmware' +*FirmwareRunningFirmwareApi* | [**firmware_running_firmwares_moid_post**](docs/FirmwareRunningFirmwareApi.md#firmware_running_firmwares_moid_post) | **POST** /firmware/RunningFirmwares/{moid} | Update an instance of 'firmwareRunningFirmware' +*FirmwareUpgradeApi* | [**firmware_upgrades_get**](docs/FirmwareUpgradeApi.md#firmware_upgrades_get) | **GET** /firmware/Upgrades | Get a list of 'firmwareUpgrade' instances +*FirmwareUpgradeApi* | [**firmware_upgrades_moid_delete**](docs/FirmwareUpgradeApi.md#firmware_upgrades_moid_delete) | **DELETE** /firmware/Upgrades/{moid} | Delete an instance of 'firmwareUpgrade' +*FirmwareUpgradeApi* | [**firmware_upgrades_moid_get**](docs/FirmwareUpgradeApi.md#firmware_upgrades_moid_get) | **GET** /firmware/Upgrades/{moid} | Get a specific instance of 'firmwareUpgrade' +*FirmwareUpgradeApi* | [**firmware_upgrades_post**](docs/FirmwareUpgradeApi.md#firmware_upgrades_post) | **POST** /firmware/Upgrades | Create an instance of 'firmwareUpgrade' +*FirmwareUpgradeStatusApi* | [**firmware_upgrade_statuses_get**](docs/FirmwareUpgradeStatusApi.md#firmware_upgrade_statuses_get) | **GET** /firmware/UpgradeStatuses | Get a list of 'firmwareUpgradeStatus' instances +*FirmwareUpgradeStatusApi* | [**firmware_upgrade_statuses_moid_get**](docs/FirmwareUpgradeStatusApi.md#firmware_upgrade_statuses_moid_get) | **GET** /firmware/UpgradeStatuses/{moid} | Get a specific instance of 'firmwareUpgradeStatus' +*GraphicsCardApi* | [**graphics_cards_get**](docs/GraphicsCardApi.md#graphics_cards_get) | **GET** /graphics/Cards | Get a list of 'graphicsCard' instances +*GraphicsCardApi* | [**graphics_cards_moid_get**](docs/GraphicsCardApi.md#graphics_cards_moid_get) | **GET** /graphics/Cards/{moid} | Get a specific instance of 'graphicsCard' +*GraphicsCardApi* | [**graphics_cards_moid_patch**](docs/GraphicsCardApi.md#graphics_cards_moid_patch) | **PATCH** /graphics/Cards/{moid} | Update an instance of 'graphicsCard' +*GraphicsCardApi* | [**graphics_cards_moid_post**](docs/GraphicsCardApi.md#graphics_cards_moid_post) | **POST** /graphics/Cards/{moid} | Update an instance of 'graphicsCard' +*GraphicsControllerApi* | [**graphics_controllers_get**](docs/GraphicsControllerApi.md#graphics_controllers_get) | **GET** /graphics/Controllers | Get a list of 'graphicsController' instances +*GraphicsControllerApi* | [**graphics_controllers_moid_get**](docs/GraphicsControllerApi.md#graphics_controllers_moid_get) | **GET** /graphics/Controllers/{moid} | Get a specific instance of 'graphicsController' +*GraphicsControllerApi* | [**graphics_controllers_moid_patch**](docs/GraphicsControllerApi.md#graphics_controllers_moid_patch) | **PATCH** /graphics/Controllers/{moid} | Update an instance of 'graphicsController' +*GraphicsControllerApi* | [**graphics_controllers_moid_post**](docs/GraphicsControllerApi.md#graphics_controllers_moid_post) | **POST** /graphics/Controllers/{moid} | Update an instance of 'graphicsController' +*HclCompatibilityStatusApi* | [**hcl_compatibility_statuses_post**](docs/HclCompatibilityStatusApi.md#hcl_compatibility_statuses_post) | **POST** /hcl/CompatibilityStatuses | Create an instance of 'hclCompatibilityStatus' +*HclDriverImageApi* | [**hcl_driver_images_get**](docs/HclDriverImageApi.md#hcl_driver_images_get) | **GET** /hcl/DriverImages | Get a list of 'hclDriverImage' instances +*HclDriverImageApi* | [**hcl_driver_images_moid_get**](docs/HclDriverImageApi.md#hcl_driver_images_moid_get) | **GET** /hcl/DriverImages/{moid} | Get a specific instance of 'hclDriverImage' +*HclOperatingSystemApi* | [**hcl_operating_systems_get**](docs/HclOperatingSystemApi.md#hcl_operating_systems_get) | **GET** /hcl/OperatingSystems | Get a list of 'hclOperatingSystem' instances +*HclOperatingSystemApi* | [**hcl_operating_systems_moid_get**](docs/HclOperatingSystemApi.md#hcl_operating_systems_moid_get) | **GET** /hcl/OperatingSystems/{moid} | Get a specific instance of 'hclOperatingSystem' +*HclOperatingSystemVendorApi* | [**hcl_operating_system_vendors_get**](docs/HclOperatingSystemVendorApi.md#hcl_operating_system_vendors_get) | **GET** /hcl/OperatingSystemVendors | Get a list of 'hclOperatingSystemVendor' instances +*HclOperatingSystemVendorApi* | [**hcl_operating_system_vendors_moid_get**](docs/HclOperatingSystemVendorApi.md#hcl_operating_system_vendors_moid_get) | **GET** /hcl/OperatingSystemVendors/{moid} | Get a specific instance of 'hclOperatingSystemVendor' +*HclServiceStatusApi* | [**hcl_service_statuses_get**](docs/HclServiceStatusApi.md#hcl_service_statuses_get) | **GET** /hcl/ServiceStatuses | Get a list of 'hclServiceStatus' instances +*HclServiceStatusApi* | [**hcl_service_statuses_moid_get**](docs/HclServiceStatusApi.md#hcl_service_statuses_moid_get) | **GET** /hcl/ServiceStatuses/{moid} | Get a specific instance of 'hclServiceStatus' +*HclSupportedDriverNameApi* | [**hcl_supported_driver_names_post**](docs/HclSupportedDriverNameApi.md#hcl_supported_driver_names_post) | **POST** /hcl/SupportedDriverNames | Create an instance of 'hclSupportedDriverName' +*HyperflexAlarmApi* | [**hyperflex_alarms_get**](docs/HyperflexAlarmApi.md#hyperflex_alarms_get) | **GET** /hyperflex/Alarms | Get a list of 'hyperflexAlarm' instances +*HyperflexAlarmApi* | [**hyperflex_alarms_moid_delete**](docs/HyperflexAlarmApi.md#hyperflex_alarms_moid_delete) | **DELETE** /hyperflex/Alarms/{moid} | Delete an instance of 'hyperflexAlarm' +*HyperflexAlarmApi* | [**hyperflex_alarms_moid_get**](docs/HyperflexAlarmApi.md#hyperflex_alarms_moid_get) | **GET** /hyperflex/Alarms/{moid} | Get a specific instance of 'hyperflexAlarm' +*HyperflexAlarmApi* | [**hyperflex_alarms_post**](docs/HyperflexAlarmApi.md#hyperflex_alarms_post) | **POST** /hyperflex/Alarms | Create an instance of 'hyperflexAlarm' +*HyperflexAppCatalogApi* | [**hyperflex_app_catalogs_get**](docs/HyperflexAppCatalogApi.md#hyperflex_app_catalogs_get) | **GET** /hyperflex/AppCatalogs | Get a list of 'hyperflexAppCatalog' instances +*HyperflexAppCatalogApi* | [**hyperflex_app_catalogs_moid_delete**](docs/HyperflexAppCatalogApi.md#hyperflex_app_catalogs_moid_delete) | **DELETE** /hyperflex/AppCatalogs/{moid} | Delete an instance of 'hyperflexAppCatalog' +*HyperflexAppCatalogApi* | [**hyperflex_app_catalogs_moid_get**](docs/HyperflexAppCatalogApi.md#hyperflex_app_catalogs_moid_get) | **GET** /hyperflex/AppCatalogs/{moid} | Get a specific instance of 'hyperflexAppCatalog' +*HyperflexAppCatalogApi* | [**hyperflex_app_catalogs_moid_patch**](docs/HyperflexAppCatalogApi.md#hyperflex_app_catalogs_moid_patch) | **PATCH** /hyperflex/AppCatalogs/{moid} | Update an instance of 'hyperflexAppCatalog' +*HyperflexAppCatalogApi* | [**hyperflex_app_catalogs_moid_post**](docs/HyperflexAppCatalogApi.md#hyperflex_app_catalogs_moid_post) | **POST** /hyperflex/AppCatalogs/{moid} | Update an instance of 'hyperflexAppCatalog' +*HyperflexAppCatalogApi* | [**hyperflex_app_catalogs_post**](docs/HyperflexAppCatalogApi.md#hyperflex_app_catalogs_post) | **POST** /hyperflex/AppCatalogs | Create an instance of 'hyperflexAppCatalog' +*HyperflexAutoSupportPolicyApi* | [**hyperflex_auto_support_policies_get**](docs/HyperflexAutoSupportPolicyApi.md#hyperflex_auto_support_policies_get) | **GET** /hyperflex/AutoSupportPolicies | Get a list of 'hyperflexAutoSupportPolicy' instances +*HyperflexAutoSupportPolicyApi* | [**hyperflex_auto_support_policies_moid_delete**](docs/HyperflexAutoSupportPolicyApi.md#hyperflex_auto_support_policies_moid_delete) | **DELETE** /hyperflex/AutoSupportPolicies/{moid} | Delete an instance of 'hyperflexAutoSupportPolicy' +*HyperflexAutoSupportPolicyApi* | [**hyperflex_auto_support_policies_moid_get**](docs/HyperflexAutoSupportPolicyApi.md#hyperflex_auto_support_policies_moid_get) | **GET** /hyperflex/AutoSupportPolicies/{moid} | Get a specific instance of 'hyperflexAutoSupportPolicy' +*HyperflexAutoSupportPolicyApi* | [**hyperflex_auto_support_policies_moid_patch**](docs/HyperflexAutoSupportPolicyApi.md#hyperflex_auto_support_policies_moid_patch) | **PATCH** /hyperflex/AutoSupportPolicies/{moid} | Update an instance of 'hyperflexAutoSupportPolicy' +*HyperflexAutoSupportPolicyApi* | [**hyperflex_auto_support_policies_moid_post**](docs/HyperflexAutoSupportPolicyApi.md#hyperflex_auto_support_policies_moid_post) | **POST** /hyperflex/AutoSupportPolicies/{moid} | Update an instance of 'hyperflexAutoSupportPolicy' +*HyperflexAutoSupportPolicyApi* | [**hyperflex_auto_support_policies_post**](docs/HyperflexAutoSupportPolicyApi.md#hyperflex_auto_support_policies_post) | **POST** /hyperflex/AutoSupportPolicies | Create an instance of 'hyperflexAutoSupportPolicy' +*HyperflexClusterApi* | [**hyperflex_clusters_get**](docs/HyperflexClusterApi.md#hyperflex_clusters_get) | **GET** /hyperflex/Clusters | Get a list of 'hyperflexCluster' instances +*HyperflexClusterApi* | [**hyperflex_clusters_moid_delete**](docs/HyperflexClusterApi.md#hyperflex_clusters_moid_delete) | **DELETE** /hyperflex/Clusters/{moid} | Delete an instance of 'hyperflexCluster' +*HyperflexClusterApi* | [**hyperflex_clusters_moid_get**](docs/HyperflexClusterApi.md#hyperflex_clusters_moid_get) | **GET** /hyperflex/Clusters/{moid} | Get a specific instance of 'hyperflexCluster' +*HyperflexClusterApi* | [**hyperflex_clusters_moid_patch**](docs/HyperflexClusterApi.md#hyperflex_clusters_moid_patch) | **PATCH** /hyperflex/Clusters/{moid} | Update an instance of 'hyperflexCluster' +*HyperflexClusterApi* | [**hyperflex_clusters_moid_post**](docs/HyperflexClusterApi.md#hyperflex_clusters_moid_post) | **POST** /hyperflex/Clusters/{moid} | Update an instance of 'hyperflexCluster' +*HyperflexClusterNetworkPolicyApi* | [**hyperflex_cluster_network_policies_get**](docs/HyperflexClusterNetworkPolicyApi.md#hyperflex_cluster_network_policies_get) | **GET** /hyperflex/ClusterNetworkPolicies | Get a list of 'hyperflexClusterNetworkPolicy' instances +*HyperflexClusterNetworkPolicyApi* | [**hyperflex_cluster_network_policies_moid_delete**](docs/HyperflexClusterNetworkPolicyApi.md#hyperflex_cluster_network_policies_moid_delete) | **DELETE** /hyperflex/ClusterNetworkPolicies/{moid} | Delete an instance of 'hyperflexClusterNetworkPolicy' +*HyperflexClusterNetworkPolicyApi* | [**hyperflex_cluster_network_policies_moid_get**](docs/HyperflexClusterNetworkPolicyApi.md#hyperflex_cluster_network_policies_moid_get) | **GET** /hyperflex/ClusterNetworkPolicies/{moid} | Get a specific instance of 'hyperflexClusterNetworkPolicy' +*HyperflexClusterNetworkPolicyApi* | [**hyperflex_cluster_network_policies_moid_patch**](docs/HyperflexClusterNetworkPolicyApi.md#hyperflex_cluster_network_policies_moid_patch) | **PATCH** /hyperflex/ClusterNetworkPolicies/{moid} | Update an instance of 'hyperflexClusterNetworkPolicy' +*HyperflexClusterNetworkPolicyApi* | [**hyperflex_cluster_network_policies_moid_post**](docs/HyperflexClusterNetworkPolicyApi.md#hyperflex_cluster_network_policies_moid_post) | **POST** /hyperflex/ClusterNetworkPolicies/{moid} | Update an instance of 'hyperflexClusterNetworkPolicy' +*HyperflexClusterNetworkPolicyApi* | [**hyperflex_cluster_network_policies_post**](docs/HyperflexClusterNetworkPolicyApi.md#hyperflex_cluster_network_policies_post) | **POST** /hyperflex/ClusterNetworkPolicies | Create an instance of 'hyperflexClusterNetworkPolicy' +*HyperflexClusterProfileApi* | [**hyperflex_cluster_profiles_get**](docs/HyperflexClusterProfileApi.md#hyperflex_cluster_profiles_get) | **GET** /hyperflex/ClusterProfiles | Get a list of 'hyperflexClusterProfile' instances +*HyperflexClusterProfileApi* | [**hyperflex_cluster_profiles_moid_delete**](docs/HyperflexClusterProfileApi.md#hyperflex_cluster_profiles_moid_delete) | **DELETE** /hyperflex/ClusterProfiles/{moid} | Delete an instance of 'hyperflexClusterProfile' +*HyperflexClusterProfileApi* | [**hyperflex_cluster_profiles_moid_get**](docs/HyperflexClusterProfileApi.md#hyperflex_cluster_profiles_moid_get) | **GET** /hyperflex/ClusterProfiles/{moid} | Get a specific instance of 'hyperflexClusterProfile' +*HyperflexClusterProfileApi* | [**hyperflex_cluster_profiles_moid_patch**](docs/HyperflexClusterProfileApi.md#hyperflex_cluster_profiles_moid_patch) | **PATCH** /hyperflex/ClusterProfiles/{moid} | Update an instance of 'hyperflexClusterProfile' +*HyperflexClusterProfileApi* | [**hyperflex_cluster_profiles_moid_post**](docs/HyperflexClusterProfileApi.md#hyperflex_cluster_profiles_moid_post) | **POST** /hyperflex/ClusterProfiles/{moid} | Update an instance of 'hyperflexClusterProfile' +*HyperflexClusterProfileApi* | [**hyperflex_cluster_profiles_post**](docs/HyperflexClusterProfileApi.md#hyperflex_cluster_profiles_post) | **POST** /hyperflex/ClusterProfiles | Create an instance of 'hyperflexClusterProfile' +*HyperflexClusterStoragePolicyApi* | [**hyperflex_cluster_storage_policies_get**](docs/HyperflexClusterStoragePolicyApi.md#hyperflex_cluster_storage_policies_get) | **GET** /hyperflex/ClusterStoragePolicies | Get a list of 'hyperflexClusterStoragePolicy' instances +*HyperflexClusterStoragePolicyApi* | [**hyperflex_cluster_storage_policies_moid_delete**](docs/HyperflexClusterStoragePolicyApi.md#hyperflex_cluster_storage_policies_moid_delete) | **DELETE** /hyperflex/ClusterStoragePolicies/{moid} | Delete an instance of 'hyperflexClusterStoragePolicy' +*HyperflexClusterStoragePolicyApi* | [**hyperflex_cluster_storage_policies_moid_get**](docs/HyperflexClusterStoragePolicyApi.md#hyperflex_cluster_storage_policies_moid_get) | **GET** /hyperflex/ClusterStoragePolicies/{moid} | Get a specific instance of 'hyperflexClusterStoragePolicy' +*HyperflexClusterStoragePolicyApi* | [**hyperflex_cluster_storage_policies_moid_patch**](docs/HyperflexClusterStoragePolicyApi.md#hyperflex_cluster_storage_policies_moid_patch) | **PATCH** /hyperflex/ClusterStoragePolicies/{moid} | Update an instance of 'hyperflexClusterStoragePolicy' +*HyperflexClusterStoragePolicyApi* | [**hyperflex_cluster_storage_policies_moid_post**](docs/HyperflexClusterStoragePolicyApi.md#hyperflex_cluster_storage_policies_moid_post) | **POST** /hyperflex/ClusterStoragePolicies/{moid} | Update an instance of 'hyperflexClusterStoragePolicy' +*HyperflexClusterStoragePolicyApi* | [**hyperflex_cluster_storage_policies_post**](docs/HyperflexClusterStoragePolicyApi.md#hyperflex_cluster_storage_policies_post) | **POST** /hyperflex/ClusterStoragePolicies | Create an instance of 'hyperflexClusterStoragePolicy' +*HyperflexConfigResultApi* | [**hyperflex_config_results_get**](docs/HyperflexConfigResultApi.md#hyperflex_config_results_get) | **GET** /hyperflex/ConfigResults | Get a list of 'hyperflexConfigResult' instances +*HyperflexConfigResultApi* | [**hyperflex_config_results_moid_get**](docs/HyperflexConfigResultApi.md#hyperflex_config_results_moid_get) | **GET** /hyperflex/ConfigResults/{moid} | Get a specific instance of 'hyperflexConfigResult' +*HyperflexConfigResultEntryApi* | [**hyperflex_config_result_entries_get**](docs/HyperflexConfigResultEntryApi.md#hyperflex_config_result_entries_get) | **GET** /hyperflex/ConfigResultEntries | Get a list of 'hyperflexConfigResultEntry' instances +*HyperflexConfigResultEntryApi* | [**hyperflex_config_result_entries_moid_get**](docs/HyperflexConfigResultEntryApi.md#hyperflex_config_result_entries_moid_get) | **GET** /hyperflex/ConfigResultEntries/{moid} | Get a specific instance of 'hyperflexConfigResultEntry' +*HyperflexExtFcStoragePolicyApi* | [**hyperflex_ext_fc_storage_policies_get**](docs/HyperflexExtFcStoragePolicyApi.md#hyperflex_ext_fc_storage_policies_get) | **GET** /hyperflex/ExtFcStoragePolicies | Get a list of 'hyperflexExtFcStoragePolicy' instances +*HyperflexExtFcStoragePolicyApi* | [**hyperflex_ext_fc_storage_policies_moid_delete**](docs/HyperflexExtFcStoragePolicyApi.md#hyperflex_ext_fc_storage_policies_moid_delete) | **DELETE** /hyperflex/ExtFcStoragePolicies/{moid} | Delete an instance of 'hyperflexExtFcStoragePolicy' +*HyperflexExtFcStoragePolicyApi* | [**hyperflex_ext_fc_storage_policies_moid_get**](docs/HyperflexExtFcStoragePolicyApi.md#hyperflex_ext_fc_storage_policies_moid_get) | **GET** /hyperflex/ExtFcStoragePolicies/{moid} | Get a specific instance of 'hyperflexExtFcStoragePolicy' +*HyperflexExtFcStoragePolicyApi* | [**hyperflex_ext_fc_storage_policies_moid_patch**](docs/HyperflexExtFcStoragePolicyApi.md#hyperflex_ext_fc_storage_policies_moid_patch) | **PATCH** /hyperflex/ExtFcStoragePolicies/{moid} | Update an instance of 'hyperflexExtFcStoragePolicy' +*HyperflexExtFcStoragePolicyApi* | [**hyperflex_ext_fc_storage_policies_moid_post**](docs/HyperflexExtFcStoragePolicyApi.md#hyperflex_ext_fc_storage_policies_moid_post) | **POST** /hyperflex/ExtFcStoragePolicies/{moid} | Update an instance of 'hyperflexExtFcStoragePolicy' +*HyperflexExtFcStoragePolicyApi* | [**hyperflex_ext_fc_storage_policies_post**](docs/HyperflexExtFcStoragePolicyApi.md#hyperflex_ext_fc_storage_policies_post) | **POST** /hyperflex/ExtFcStoragePolicies | Create an instance of 'hyperflexExtFcStoragePolicy' +*HyperflexExtIscsiStoragePolicyApi* | [**hyperflex_ext_iscsi_storage_policies_get**](docs/HyperflexExtIscsiStoragePolicyApi.md#hyperflex_ext_iscsi_storage_policies_get) | **GET** /hyperflex/ExtIscsiStoragePolicies | Get a list of 'hyperflexExtIscsiStoragePolicy' instances +*HyperflexExtIscsiStoragePolicyApi* | [**hyperflex_ext_iscsi_storage_policies_moid_delete**](docs/HyperflexExtIscsiStoragePolicyApi.md#hyperflex_ext_iscsi_storage_policies_moid_delete) | **DELETE** /hyperflex/ExtIscsiStoragePolicies/{moid} | Delete an instance of 'hyperflexExtIscsiStoragePolicy' +*HyperflexExtIscsiStoragePolicyApi* | [**hyperflex_ext_iscsi_storage_policies_moid_get**](docs/HyperflexExtIscsiStoragePolicyApi.md#hyperflex_ext_iscsi_storage_policies_moid_get) | **GET** /hyperflex/ExtIscsiStoragePolicies/{moid} | Get a specific instance of 'hyperflexExtIscsiStoragePolicy' +*HyperflexExtIscsiStoragePolicyApi* | [**hyperflex_ext_iscsi_storage_policies_moid_patch**](docs/HyperflexExtIscsiStoragePolicyApi.md#hyperflex_ext_iscsi_storage_policies_moid_patch) | **PATCH** /hyperflex/ExtIscsiStoragePolicies/{moid} | Update an instance of 'hyperflexExtIscsiStoragePolicy' +*HyperflexExtIscsiStoragePolicyApi* | [**hyperflex_ext_iscsi_storage_policies_moid_post**](docs/HyperflexExtIscsiStoragePolicyApi.md#hyperflex_ext_iscsi_storage_policies_moid_post) | **POST** /hyperflex/ExtIscsiStoragePolicies/{moid} | Update an instance of 'hyperflexExtIscsiStoragePolicy' +*HyperflexExtIscsiStoragePolicyApi* | [**hyperflex_ext_iscsi_storage_policies_post**](docs/HyperflexExtIscsiStoragePolicyApi.md#hyperflex_ext_iscsi_storage_policies_post) | **POST** /hyperflex/ExtIscsiStoragePolicies | Create an instance of 'hyperflexExtIscsiStoragePolicy' +*HyperflexFeatureLimitExternalApi* | [**hyperflex_feature_limit_externals_get**](docs/HyperflexFeatureLimitExternalApi.md#hyperflex_feature_limit_externals_get) | **GET** /hyperflex/FeatureLimitExternals | Get a list of 'hyperflexFeatureLimitExternal' instances +*HyperflexFeatureLimitExternalApi* | [**hyperflex_feature_limit_externals_moid_delete**](docs/HyperflexFeatureLimitExternalApi.md#hyperflex_feature_limit_externals_moid_delete) | **DELETE** /hyperflex/FeatureLimitExternals/{moid} | Delete an instance of 'hyperflexFeatureLimitExternal' +*HyperflexFeatureLimitExternalApi* | [**hyperflex_feature_limit_externals_moid_get**](docs/HyperflexFeatureLimitExternalApi.md#hyperflex_feature_limit_externals_moid_get) | **GET** /hyperflex/FeatureLimitExternals/{moid} | Get a specific instance of 'hyperflexFeatureLimitExternal' +*HyperflexFeatureLimitExternalApi* | [**hyperflex_feature_limit_externals_moid_patch**](docs/HyperflexFeatureLimitExternalApi.md#hyperflex_feature_limit_externals_moid_patch) | **PATCH** /hyperflex/FeatureLimitExternals/{moid} | Update an instance of 'hyperflexFeatureLimitExternal' +*HyperflexFeatureLimitExternalApi* | [**hyperflex_feature_limit_externals_moid_post**](docs/HyperflexFeatureLimitExternalApi.md#hyperflex_feature_limit_externals_moid_post) | **POST** /hyperflex/FeatureLimitExternals/{moid} | Update an instance of 'hyperflexFeatureLimitExternal' +*HyperflexFeatureLimitExternalApi* | [**hyperflex_feature_limit_externals_post**](docs/HyperflexFeatureLimitExternalApi.md#hyperflex_feature_limit_externals_post) | **POST** /hyperflex/FeatureLimitExternals | Create an instance of 'hyperflexFeatureLimitExternal' +*HyperflexFeatureLimitInternalApi* | [**hyperflex_feature_limit_internals_get**](docs/HyperflexFeatureLimitInternalApi.md#hyperflex_feature_limit_internals_get) | **GET** /hyperflex/FeatureLimitInternals | Get a list of 'hyperflexFeatureLimitInternal' instances +*HyperflexFeatureLimitInternalApi* | [**hyperflex_feature_limit_internals_moid_delete**](docs/HyperflexFeatureLimitInternalApi.md#hyperflex_feature_limit_internals_moid_delete) | **DELETE** /hyperflex/FeatureLimitInternals/{moid} | Delete an instance of 'hyperflexFeatureLimitInternal' +*HyperflexFeatureLimitInternalApi* | [**hyperflex_feature_limit_internals_moid_get**](docs/HyperflexFeatureLimitInternalApi.md#hyperflex_feature_limit_internals_moid_get) | **GET** /hyperflex/FeatureLimitInternals/{moid} | Get a specific instance of 'hyperflexFeatureLimitInternal' +*HyperflexFeatureLimitInternalApi* | [**hyperflex_feature_limit_internals_moid_patch**](docs/HyperflexFeatureLimitInternalApi.md#hyperflex_feature_limit_internals_moid_patch) | **PATCH** /hyperflex/FeatureLimitInternals/{moid} | Update an instance of 'hyperflexFeatureLimitInternal' +*HyperflexFeatureLimitInternalApi* | [**hyperflex_feature_limit_internals_moid_post**](docs/HyperflexFeatureLimitInternalApi.md#hyperflex_feature_limit_internals_moid_post) | **POST** /hyperflex/FeatureLimitInternals/{moid} | Update an instance of 'hyperflexFeatureLimitInternal' +*HyperflexFeatureLimitInternalApi* | [**hyperflex_feature_limit_internals_post**](docs/HyperflexFeatureLimitInternalApi.md#hyperflex_feature_limit_internals_post) | **POST** /hyperflex/FeatureLimitInternals | Create an instance of 'hyperflexFeatureLimitInternal' +*HyperflexHxdpVersionApi* | [**hyperflex_hxdp_versions_get**](docs/HyperflexHxdpVersionApi.md#hyperflex_hxdp_versions_get) | **GET** /hyperflex/HxdpVersions | Get a list of 'hyperflexHxdpVersion' instances +*HyperflexHxdpVersionApi* | [**hyperflex_hxdp_versions_moid_delete**](docs/HyperflexHxdpVersionApi.md#hyperflex_hxdp_versions_moid_delete) | **DELETE** /hyperflex/HxdpVersions/{moid} | Delete an instance of 'hyperflexHxdpVersion' +*HyperflexHxdpVersionApi* | [**hyperflex_hxdp_versions_moid_get**](docs/HyperflexHxdpVersionApi.md#hyperflex_hxdp_versions_moid_get) | **GET** /hyperflex/HxdpVersions/{moid} | Get a specific instance of 'hyperflexHxdpVersion' +*HyperflexHxdpVersionApi* | [**hyperflex_hxdp_versions_moid_patch**](docs/HyperflexHxdpVersionApi.md#hyperflex_hxdp_versions_moid_patch) | **PATCH** /hyperflex/HxdpVersions/{moid} | Update an instance of 'hyperflexHxdpVersion' +*HyperflexHxdpVersionApi* | [**hyperflex_hxdp_versions_moid_post**](docs/HyperflexHxdpVersionApi.md#hyperflex_hxdp_versions_moid_post) | **POST** /hyperflex/HxdpVersions/{moid} | Update an instance of 'hyperflexHxdpVersion' +*HyperflexHxdpVersionApi* | [**hyperflex_hxdp_versions_post**](docs/HyperflexHxdpVersionApi.md#hyperflex_hxdp_versions_post) | **POST** /hyperflex/HxdpVersions | Create an instance of 'hyperflexHxdpVersion' +*HyperflexLocalCredentialPolicyApi* | [**hyperflex_local_credential_policies_get**](docs/HyperflexLocalCredentialPolicyApi.md#hyperflex_local_credential_policies_get) | **GET** /hyperflex/LocalCredentialPolicies | Get a list of 'hyperflexLocalCredentialPolicy' instances +*HyperflexLocalCredentialPolicyApi* | [**hyperflex_local_credential_policies_moid_delete**](docs/HyperflexLocalCredentialPolicyApi.md#hyperflex_local_credential_policies_moid_delete) | **DELETE** /hyperflex/LocalCredentialPolicies/{moid} | Delete an instance of 'hyperflexLocalCredentialPolicy' +*HyperflexLocalCredentialPolicyApi* | [**hyperflex_local_credential_policies_moid_get**](docs/HyperflexLocalCredentialPolicyApi.md#hyperflex_local_credential_policies_moid_get) | **GET** /hyperflex/LocalCredentialPolicies/{moid} | Get a specific instance of 'hyperflexLocalCredentialPolicy' +*HyperflexLocalCredentialPolicyApi* | [**hyperflex_local_credential_policies_moid_patch**](docs/HyperflexLocalCredentialPolicyApi.md#hyperflex_local_credential_policies_moid_patch) | **PATCH** /hyperflex/LocalCredentialPolicies/{moid} | Update an instance of 'hyperflexLocalCredentialPolicy' +*HyperflexLocalCredentialPolicyApi* | [**hyperflex_local_credential_policies_moid_post**](docs/HyperflexLocalCredentialPolicyApi.md#hyperflex_local_credential_policies_moid_post) | **POST** /hyperflex/LocalCredentialPolicies/{moid} | Update an instance of 'hyperflexLocalCredentialPolicy' +*HyperflexLocalCredentialPolicyApi* | [**hyperflex_local_credential_policies_post**](docs/HyperflexLocalCredentialPolicyApi.md#hyperflex_local_credential_policies_post) | **POST** /hyperflex/LocalCredentialPolicies | Create an instance of 'hyperflexLocalCredentialPolicy' +*HyperflexNodeApi* | [**hyperflex_nodes_get**](docs/HyperflexNodeApi.md#hyperflex_nodes_get) | **GET** /hyperflex/Nodes | Get a list of 'hyperflexNode' instances +*HyperflexNodeApi* | [**hyperflex_nodes_moid_get**](docs/HyperflexNodeApi.md#hyperflex_nodes_moid_get) | **GET** /hyperflex/Nodes/{moid} | Get a specific instance of 'hyperflexNode' +*HyperflexNodeConfigPolicyApi* | [**hyperflex_node_config_policies_get**](docs/HyperflexNodeConfigPolicyApi.md#hyperflex_node_config_policies_get) | **GET** /hyperflex/NodeConfigPolicies | Get a list of 'hyperflexNodeConfigPolicy' instances +*HyperflexNodeConfigPolicyApi* | [**hyperflex_node_config_policies_moid_delete**](docs/HyperflexNodeConfigPolicyApi.md#hyperflex_node_config_policies_moid_delete) | **DELETE** /hyperflex/NodeConfigPolicies/{moid} | Delete an instance of 'hyperflexNodeConfigPolicy' +*HyperflexNodeConfigPolicyApi* | [**hyperflex_node_config_policies_moid_get**](docs/HyperflexNodeConfigPolicyApi.md#hyperflex_node_config_policies_moid_get) | **GET** /hyperflex/NodeConfigPolicies/{moid} | Get a specific instance of 'hyperflexNodeConfigPolicy' +*HyperflexNodeConfigPolicyApi* | [**hyperflex_node_config_policies_moid_patch**](docs/HyperflexNodeConfigPolicyApi.md#hyperflex_node_config_policies_moid_patch) | **PATCH** /hyperflex/NodeConfigPolicies/{moid} | Update an instance of 'hyperflexNodeConfigPolicy' +*HyperflexNodeConfigPolicyApi* | [**hyperflex_node_config_policies_moid_post**](docs/HyperflexNodeConfigPolicyApi.md#hyperflex_node_config_policies_moid_post) | **POST** /hyperflex/NodeConfigPolicies/{moid} | Update an instance of 'hyperflexNodeConfigPolicy' +*HyperflexNodeConfigPolicyApi* | [**hyperflex_node_config_policies_post**](docs/HyperflexNodeConfigPolicyApi.md#hyperflex_node_config_policies_post) | **POST** /hyperflex/NodeConfigPolicies | Create an instance of 'hyperflexNodeConfigPolicy' +*HyperflexNodeProfileApi* | [**hyperflex_node_profiles_get**](docs/HyperflexNodeProfileApi.md#hyperflex_node_profiles_get) | **GET** /hyperflex/NodeProfiles | Get a list of 'hyperflexNodeProfile' instances +*HyperflexNodeProfileApi* | [**hyperflex_node_profiles_moid_delete**](docs/HyperflexNodeProfileApi.md#hyperflex_node_profiles_moid_delete) | **DELETE** /hyperflex/NodeProfiles/{moid} | Delete an instance of 'hyperflexNodeProfile' +*HyperflexNodeProfileApi* | [**hyperflex_node_profiles_moid_get**](docs/HyperflexNodeProfileApi.md#hyperflex_node_profiles_moid_get) | **GET** /hyperflex/NodeProfiles/{moid} | Get a specific instance of 'hyperflexNodeProfile' +*HyperflexNodeProfileApi* | [**hyperflex_node_profiles_moid_patch**](docs/HyperflexNodeProfileApi.md#hyperflex_node_profiles_moid_patch) | **PATCH** /hyperflex/NodeProfiles/{moid} | Update an instance of 'hyperflexNodeProfile' +*HyperflexNodeProfileApi* | [**hyperflex_node_profiles_moid_post**](docs/HyperflexNodeProfileApi.md#hyperflex_node_profiles_moid_post) | **POST** /hyperflex/NodeProfiles/{moid} | Update an instance of 'hyperflexNodeProfile' +*HyperflexNodeProfileApi* | [**hyperflex_node_profiles_post**](docs/HyperflexNodeProfileApi.md#hyperflex_node_profiles_post) | **POST** /hyperflex/NodeProfiles | Create an instance of 'hyperflexNodeProfile' +*HyperflexProxySettingPolicyApi* | [**hyperflex_proxy_setting_policies_get**](docs/HyperflexProxySettingPolicyApi.md#hyperflex_proxy_setting_policies_get) | **GET** /hyperflex/ProxySettingPolicies | Get a list of 'hyperflexProxySettingPolicy' instances +*HyperflexProxySettingPolicyApi* | [**hyperflex_proxy_setting_policies_moid_delete**](docs/HyperflexProxySettingPolicyApi.md#hyperflex_proxy_setting_policies_moid_delete) | **DELETE** /hyperflex/ProxySettingPolicies/{moid} | Delete an instance of 'hyperflexProxySettingPolicy' +*HyperflexProxySettingPolicyApi* | [**hyperflex_proxy_setting_policies_moid_get**](docs/HyperflexProxySettingPolicyApi.md#hyperflex_proxy_setting_policies_moid_get) | **GET** /hyperflex/ProxySettingPolicies/{moid} | Get a specific instance of 'hyperflexProxySettingPolicy' +*HyperflexProxySettingPolicyApi* | [**hyperflex_proxy_setting_policies_moid_patch**](docs/HyperflexProxySettingPolicyApi.md#hyperflex_proxy_setting_policies_moid_patch) | **PATCH** /hyperflex/ProxySettingPolicies/{moid} | Update an instance of 'hyperflexProxySettingPolicy' +*HyperflexProxySettingPolicyApi* | [**hyperflex_proxy_setting_policies_moid_post**](docs/HyperflexProxySettingPolicyApi.md#hyperflex_proxy_setting_policies_moid_post) | **POST** /hyperflex/ProxySettingPolicies/{moid} | Update an instance of 'hyperflexProxySettingPolicy' +*HyperflexProxySettingPolicyApi* | [**hyperflex_proxy_setting_policies_post**](docs/HyperflexProxySettingPolicyApi.md#hyperflex_proxy_setting_policies_post) | **POST** /hyperflex/ProxySettingPolicies | Create an instance of 'hyperflexProxySettingPolicy' +*HyperflexServerFirmwareVersionApi* | [**hyperflex_server_firmware_versions_get**](docs/HyperflexServerFirmwareVersionApi.md#hyperflex_server_firmware_versions_get) | **GET** /hyperflex/ServerFirmwareVersions | Get a list of 'hyperflexServerFirmwareVersion' instances +*HyperflexServerFirmwareVersionApi* | [**hyperflex_server_firmware_versions_moid_delete**](docs/HyperflexServerFirmwareVersionApi.md#hyperflex_server_firmware_versions_moid_delete) | **DELETE** /hyperflex/ServerFirmwareVersions/{moid} | Delete an instance of 'hyperflexServerFirmwareVersion' +*HyperflexServerFirmwareVersionApi* | [**hyperflex_server_firmware_versions_moid_get**](docs/HyperflexServerFirmwareVersionApi.md#hyperflex_server_firmware_versions_moid_get) | **GET** /hyperflex/ServerFirmwareVersions/{moid} | Get a specific instance of 'hyperflexServerFirmwareVersion' +*HyperflexServerFirmwareVersionApi* | [**hyperflex_server_firmware_versions_moid_patch**](docs/HyperflexServerFirmwareVersionApi.md#hyperflex_server_firmware_versions_moid_patch) | **PATCH** /hyperflex/ServerFirmwareVersions/{moid} | Update an instance of 'hyperflexServerFirmwareVersion' +*HyperflexServerFirmwareVersionApi* | [**hyperflex_server_firmware_versions_moid_post**](docs/HyperflexServerFirmwareVersionApi.md#hyperflex_server_firmware_versions_moid_post) | **POST** /hyperflex/ServerFirmwareVersions/{moid} | Update an instance of 'hyperflexServerFirmwareVersion' +*HyperflexServerFirmwareVersionApi* | [**hyperflex_server_firmware_versions_post**](docs/HyperflexServerFirmwareVersionApi.md#hyperflex_server_firmware_versions_post) | **POST** /hyperflex/ServerFirmwareVersions | Create an instance of 'hyperflexServerFirmwareVersion' +*HyperflexServerModelApi* | [**hyperflex_server_models_get**](docs/HyperflexServerModelApi.md#hyperflex_server_models_get) | **GET** /hyperflex/ServerModels | Get a list of 'hyperflexServerModel' instances +*HyperflexServerModelApi* | [**hyperflex_server_models_moid_delete**](docs/HyperflexServerModelApi.md#hyperflex_server_models_moid_delete) | **DELETE** /hyperflex/ServerModels/{moid} | Delete an instance of 'hyperflexServerModel' +*HyperflexServerModelApi* | [**hyperflex_server_models_moid_get**](docs/HyperflexServerModelApi.md#hyperflex_server_models_moid_get) | **GET** /hyperflex/ServerModels/{moid} | Get a specific instance of 'hyperflexServerModel' +*HyperflexServerModelApi* | [**hyperflex_server_models_moid_patch**](docs/HyperflexServerModelApi.md#hyperflex_server_models_moid_patch) | **PATCH** /hyperflex/ServerModels/{moid} | Update an instance of 'hyperflexServerModel' +*HyperflexServerModelApi* | [**hyperflex_server_models_moid_post**](docs/HyperflexServerModelApi.md#hyperflex_server_models_moid_post) | **POST** /hyperflex/ServerModels/{moid} | Update an instance of 'hyperflexServerModel' +*HyperflexServerModelApi* | [**hyperflex_server_models_post**](docs/HyperflexServerModelApi.md#hyperflex_server_models_post) | **POST** /hyperflex/ServerModels | Create an instance of 'hyperflexServerModel' +*HyperflexSysConfigPolicyApi* | [**hyperflex_sys_config_policies_get**](docs/HyperflexSysConfigPolicyApi.md#hyperflex_sys_config_policies_get) | **GET** /hyperflex/SysConfigPolicies | Get a list of 'hyperflexSysConfigPolicy' instances +*HyperflexSysConfigPolicyApi* | [**hyperflex_sys_config_policies_moid_delete**](docs/HyperflexSysConfigPolicyApi.md#hyperflex_sys_config_policies_moid_delete) | **DELETE** /hyperflex/SysConfigPolicies/{moid} | Delete an instance of 'hyperflexSysConfigPolicy' +*HyperflexSysConfigPolicyApi* | [**hyperflex_sys_config_policies_moid_get**](docs/HyperflexSysConfigPolicyApi.md#hyperflex_sys_config_policies_moid_get) | **GET** /hyperflex/SysConfigPolicies/{moid} | Get a specific instance of 'hyperflexSysConfigPolicy' +*HyperflexSysConfigPolicyApi* | [**hyperflex_sys_config_policies_moid_patch**](docs/HyperflexSysConfigPolicyApi.md#hyperflex_sys_config_policies_moid_patch) | **PATCH** /hyperflex/SysConfigPolicies/{moid} | Update an instance of 'hyperflexSysConfigPolicy' +*HyperflexSysConfigPolicyApi* | [**hyperflex_sys_config_policies_moid_post**](docs/HyperflexSysConfigPolicyApi.md#hyperflex_sys_config_policies_moid_post) | **POST** /hyperflex/SysConfigPolicies/{moid} | Update an instance of 'hyperflexSysConfigPolicy' +*HyperflexSysConfigPolicyApi* | [**hyperflex_sys_config_policies_post**](docs/HyperflexSysConfigPolicyApi.md#hyperflex_sys_config_policies_post) | **POST** /hyperflex/SysConfigPolicies | Create an instance of 'hyperflexSysConfigPolicy' +*HyperflexUcsmConfigPolicyApi* | [**hyperflex_ucsm_config_policies_get**](docs/HyperflexUcsmConfigPolicyApi.md#hyperflex_ucsm_config_policies_get) | **GET** /hyperflex/UcsmConfigPolicies | Get a list of 'hyperflexUcsmConfigPolicy' instances +*HyperflexUcsmConfigPolicyApi* | [**hyperflex_ucsm_config_policies_moid_delete**](docs/HyperflexUcsmConfigPolicyApi.md#hyperflex_ucsm_config_policies_moid_delete) | **DELETE** /hyperflex/UcsmConfigPolicies/{moid} | Delete an instance of 'hyperflexUcsmConfigPolicy' +*HyperflexUcsmConfigPolicyApi* | [**hyperflex_ucsm_config_policies_moid_get**](docs/HyperflexUcsmConfigPolicyApi.md#hyperflex_ucsm_config_policies_moid_get) | **GET** /hyperflex/UcsmConfigPolicies/{moid} | Get a specific instance of 'hyperflexUcsmConfigPolicy' +*HyperflexUcsmConfigPolicyApi* | [**hyperflex_ucsm_config_policies_moid_patch**](docs/HyperflexUcsmConfigPolicyApi.md#hyperflex_ucsm_config_policies_moid_patch) | **PATCH** /hyperflex/UcsmConfigPolicies/{moid} | Update an instance of 'hyperflexUcsmConfigPolicy' +*HyperflexUcsmConfigPolicyApi* | [**hyperflex_ucsm_config_policies_moid_post**](docs/HyperflexUcsmConfigPolicyApi.md#hyperflex_ucsm_config_policies_moid_post) | **POST** /hyperflex/UcsmConfigPolicies/{moid} | Update an instance of 'hyperflexUcsmConfigPolicy' +*HyperflexUcsmConfigPolicyApi* | [**hyperflex_ucsm_config_policies_post**](docs/HyperflexUcsmConfigPolicyApi.md#hyperflex_ucsm_config_policies_post) | **POST** /hyperflex/UcsmConfigPolicies | Create an instance of 'hyperflexUcsmConfigPolicy' +*HyperflexVcenterConfigPolicyApi* | [**hyperflex_vcenter_config_policies_get**](docs/HyperflexVcenterConfigPolicyApi.md#hyperflex_vcenter_config_policies_get) | **GET** /hyperflex/VcenterConfigPolicies | Get a list of 'hyperflexVcenterConfigPolicy' instances +*HyperflexVcenterConfigPolicyApi* | [**hyperflex_vcenter_config_policies_moid_delete**](docs/HyperflexVcenterConfigPolicyApi.md#hyperflex_vcenter_config_policies_moid_delete) | **DELETE** /hyperflex/VcenterConfigPolicies/{moid} | Delete an instance of 'hyperflexVcenterConfigPolicy' +*HyperflexVcenterConfigPolicyApi* | [**hyperflex_vcenter_config_policies_moid_get**](docs/HyperflexVcenterConfigPolicyApi.md#hyperflex_vcenter_config_policies_moid_get) | **GET** /hyperflex/VcenterConfigPolicies/{moid} | Get a specific instance of 'hyperflexVcenterConfigPolicy' +*HyperflexVcenterConfigPolicyApi* | [**hyperflex_vcenter_config_policies_moid_patch**](docs/HyperflexVcenterConfigPolicyApi.md#hyperflex_vcenter_config_policies_moid_patch) | **PATCH** /hyperflex/VcenterConfigPolicies/{moid} | Update an instance of 'hyperflexVcenterConfigPolicy' +*HyperflexVcenterConfigPolicyApi* | [**hyperflex_vcenter_config_policies_moid_post**](docs/HyperflexVcenterConfigPolicyApi.md#hyperflex_vcenter_config_policies_moid_post) | **POST** /hyperflex/VcenterConfigPolicies/{moid} | Update an instance of 'hyperflexVcenterConfigPolicy' +*HyperflexVcenterConfigPolicyApi* | [**hyperflex_vcenter_config_policies_post**](docs/HyperflexVcenterConfigPolicyApi.md#hyperflex_vcenter_config_policies_post) | **POST** /hyperflex/VcenterConfigPolicies | Create an instance of 'hyperflexVcenterConfigPolicy' +*IaasConnectorPackApi* | [**iaas_connector_packs_get**](docs/IaasConnectorPackApi.md#iaas_connector_packs_get) | **GET** /iaas/ConnectorPacks | Get a list of 'iaasConnectorPack' instances +*IaasConnectorPackApi* | [**iaas_connector_packs_moid_get**](docs/IaasConnectorPackApi.md#iaas_connector_packs_moid_get) | **GET** /iaas/ConnectorPacks/{moid} | Get a specific instance of 'iaasConnectorPack' +*IaasDeviceStatusApi* | [**iaas_device_statuses_get**](docs/IaasDeviceStatusApi.md#iaas_device_statuses_get) | **GET** /iaas/DeviceStatuses | Get a list of 'iaasDeviceStatus' instances +*IaasDeviceStatusApi* | [**iaas_device_statuses_moid_get**](docs/IaasDeviceStatusApi.md#iaas_device_statuses_moid_get) | **GET** /iaas/DeviceStatuses/{moid} | Get a specific instance of 'iaasDeviceStatus' +*IaasLicenseInfoApi* | [**iaas_license_infos_get**](docs/IaasLicenseInfoApi.md#iaas_license_infos_get) | **GET** /iaas/LicenseInfos | Get a list of 'iaasLicenseInfo' instances +*IaasLicenseInfoApi* | [**iaas_license_infos_moid_get**](docs/IaasLicenseInfoApi.md#iaas_license_infos_moid_get) | **GET** /iaas/LicenseInfos/{moid} | Get a specific instance of 'iaasLicenseInfo' +*IaasMostRunTasksApi* | [**iaas_most_run_tasks_get**](docs/IaasMostRunTasksApi.md#iaas_most_run_tasks_get) | **GET** /iaas/MostRunTasks | Get a list of 'iaasMostRunTasks' instances +*IaasMostRunTasksApi* | [**iaas_most_run_tasks_moid_get**](docs/IaasMostRunTasksApi.md#iaas_most_run_tasks_moid_get) | **GET** /iaas/MostRunTasks/{moid} | Get a specific instance of 'iaasMostRunTasks' +*IaasUcsdInfoApi* | [**iaas_ucsd_infos_get**](docs/IaasUcsdInfoApi.md#iaas_ucsd_infos_get) | **GET** /iaas/UcsdInfos | Get a list of 'iaasUcsdInfo' instances +*IaasUcsdInfoApi* | [**iaas_ucsd_infos_moid_get**](docs/IaasUcsdInfoApi.md#iaas_ucsd_infos_moid_get) | **GET** /iaas/UcsdInfos/{moid} | Get a specific instance of 'iaasUcsdInfo' +*IaasUcsdManagedInfraApi* | [**iaas_ucsd_managed_infras_get**](docs/IaasUcsdManagedInfraApi.md#iaas_ucsd_managed_infras_get) | **GET** /iaas/UcsdManagedInfras | Get a list of 'iaasUcsdManagedInfra' instances +*IaasUcsdManagedInfraApi* | [**iaas_ucsd_managed_infras_moid_get**](docs/IaasUcsdManagedInfraApi.md#iaas_ucsd_managed_infras_moid_get) | **GET** /iaas/UcsdManagedInfras/{moid} | Get a specific instance of 'iaasUcsdManagedInfra' +*IamAccountApi* | [**iam_accounts_get**](docs/IamAccountApi.md#iam_accounts_get) | **GET** /iam/Accounts | Get a list of 'iamAccount' instances +*IamAccountApi* | [**iam_accounts_moid_delete**](docs/IamAccountApi.md#iam_accounts_moid_delete) | **DELETE** /iam/Accounts/{moid} | Delete an instance of 'iamAccount' +*IamAccountApi* | [**iam_accounts_moid_get**](docs/IamAccountApi.md#iam_accounts_moid_get) | **GET** /iam/Accounts/{moid} | Get a specific instance of 'iamAccount' +*IamAccountApi* | [**iam_accounts_moid_patch**](docs/IamAccountApi.md#iam_accounts_moid_patch) | **PATCH** /iam/Accounts/{moid} | Update an instance of 'iamAccount' +*IamAccountApi* | [**iam_accounts_moid_post**](docs/IamAccountApi.md#iam_accounts_moid_post) | **POST** /iam/Accounts/{moid} | Update an instance of 'iamAccount' +*IamAccountApi* | [**iam_accounts_post**](docs/IamAccountApi.md#iam_accounts_post) | **POST** /iam/Accounts | Create an instance of 'iamAccount' +*IamApiKeyApi* | [**iam_api_keys_get**](docs/IamApiKeyApi.md#iam_api_keys_get) | **GET** /iam/ApiKeys | Get a list of 'iamApiKey' instances +*IamApiKeyApi* | [**iam_api_keys_moid_delete**](docs/IamApiKeyApi.md#iam_api_keys_moid_delete) | **DELETE** /iam/ApiKeys/{moid} | Delete an instance of 'iamApiKey' +*IamApiKeyApi* | [**iam_api_keys_moid_get**](docs/IamApiKeyApi.md#iam_api_keys_moid_get) | **GET** /iam/ApiKeys/{moid} | Get a specific instance of 'iamApiKey' +*IamApiKeyApi* | [**iam_api_keys_moid_patch**](docs/IamApiKeyApi.md#iam_api_keys_moid_patch) | **PATCH** /iam/ApiKeys/{moid} | Update an instance of 'iamApiKey' +*IamApiKeyApi* | [**iam_api_keys_moid_post**](docs/IamApiKeyApi.md#iam_api_keys_moid_post) | **POST** /iam/ApiKeys/{moid} | Update an instance of 'iamApiKey' +*IamApiKeyApi* | [**iam_api_keys_post**](docs/IamApiKeyApi.md#iam_api_keys_post) | **POST** /iam/ApiKeys | Create an instance of 'iamApiKey' +*IamDomainGroupApi* | [**iam_domain_groups_get**](docs/IamDomainGroupApi.md#iam_domain_groups_get) | **GET** /iam/DomainGroups | Get a list of 'iamDomainGroup' instances +*IamDomainGroupApi* | [**iam_domain_groups_moid_get**](docs/IamDomainGroupApi.md#iam_domain_groups_moid_get) | **GET** /iam/DomainGroups/{moid} | Get a specific instance of 'iamDomainGroup' +*IamEndPointPrivilegeApi* | [**iam_end_point_privileges_get**](docs/IamEndPointPrivilegeApi.md#iam_end_point_privileges_get) | **GET** /iam/EndPointPrivileges | Get a list of 'iamEndPointPrivilege' instances +*IamEndPointPrivilegeApi* | [**iam_end_point_privileges_moid_get**](docs/IamEndPointPrivilegeApi.md#iam_end_point_privileges_moid_get) | **GET** /iam/EndPointPrivileges/{moid} | Get a specific instance of 'iamEndPointPrivilege' +*IamEndPointRoleApi* | [**iam_end_point_roles_get**](docs/IamEndPointRoleApi.md#iam_end_point_roles_get) | **GET** /iam/EndPointRoles | Get a list of 'iamEndPointRole' instances +*IamEndPointRoleApi* | [**iam_end_point_roles_moid_get**](docs/IamEndPointRoleApi.md#iam_end_point_roles_moid_get) | **GET** /iam/EndPointRoles/{moid} | Get a specific instance of 'iamEndPointRole' +*IamEndPointUserApi* | [**iam_end_point_users_get**](docs/IamEndPointUserApi.md#iam_end_point_users_get) | **GET** /iam/EndPointUsers | Get a list of 'iamEndPointUser' instances +*IamEndPointUserApi* | [**iam_end_point_users_moid_delete**](docs/IamEndPointUserApi.md#iam_end_point_users_moid_delete) | **DELETE** /iam/EndPointUsers/{moid} | Delete an instance of 'iamEndPointUser' +*IamEndPointUserApi* | [**iam_end_point_users_moid_get**](docs/IamEndPointUserApi.md#iam_end_point_users_moid_get) | **GET** /iam/EndPointUsers/{moid} | Get a specific instance of 'iamEndPointUser' +*IamEndPointUserApi* | [**iam_end_point_users_moid_patch**](docs/IamEndPointUserApi.md#iam_end_point_users_moid_patch) | **PATCH** /iam/EndPointUsers/{moid} | Update an instance of 'iamEndPointUser' +*IamEndPointUserApi* | [**iam_end_point_users_moid_post**](docs/IamEndPointUserApi.md#iam_end_point_users_moid_post) | **POST** /iam/EndPointUsers/{moid} | Update an instance of 'iamEndPointUser' +*IamEndPointUserApi* | [**iam_end_point_users_post**](docs/IamEndPointUserApi.md#iam_end_point_users_post) | **POST** /iam/EndPointUsers | Create an instance of 'iamEndPointUser' +*IamEndPointUserPolicyApi* | [**iam_end_point_user_policies_get**](docs/IamEndPointUserPolicyApi.md#iam_end_point_user_policies_get) | **GET** /iam/EndPointUserPolicies | Get a list of 'iamEndPointUserPolicy' instances +*IamEndPointUserPolicyApi* | [**iam_end_point_user_policies_moid_delete**](docs/IamEndPointUserPolicyApi.md#iam_end_point_user_policies_moid_delete) | **DELETE** /iam/EndPointUserPolicies/{moid} | Delete an instance of 'iamEndPointUserPolicy' +*IamEndPointUserPolicyApi* | [**iam_end_point_user_policies_moid_get**](docs/IamEndPointUserPolicyApi.md#iam_end_point_user_policies_moid_get) | **GET** /iam/EndPointUserPolicies/{moid} | Get a specific instance of 'iamEndPointUserPolicy' +*IamEndPointUserPolicyApi* | [**iam_end_point_user_policies_moid_patch**](docs/IamEndPointUserPolicyApi.md#iam_end_point_user_policies_moid_patch) | **PATCH** /iam/EndPointUserPolicies/{moid} | Update an instance of 'iamEndPointUserPolicy' +*IamEndPointUserPolicyApi* | [**iam_end_point_user_policies_moid_post**](docs/IamEndPointUserPolicyApi.md#iam_end_point_user_policies_moid_post) | **POST** /iam/EndPointUserPolicies/{moid} | Update an instance of 'iamEndPointUserPolicy' +*IamEndPointUserPolicyApi* | [**iam_end_point_user_policies_post**](docs/IamEndPointUserPolicyApi.md#iam_end_point_user_policies_post) | **POST** /iam/EndPointUserPolicies | Create an instance of 'iamEndPointUserPolicy' +*IamEndPointUserRoleApi* | [**iam_end_point_user_roles_get**](docs/IamEndPointUserRoleApi.md#iam_end_point_user_roles_get) | **GET** /iam/EndPointUserRoles | Get a list of 'iamEndPointUserRole' instances +*IamEndPointUserRoleApi* | [**iam_end_point_user_roles_moid_delete**](docs/IamEndPointUserRoleApi.md#iam_end_point_user_roles_moid_delete) | **DELETE** /iam/EndPointUserRoles/{moid} | Delete an instance of 'iamEndPointUserRole' +*IamEndPointUserRoleApi* | [**iam_end_point_user_roles_moid_get**](docs/IamEndPointUserRoleApi.md#iam_end_point_user_roles_moid_get) | **GET** /iam/EndPointUserRoles/{moid} | Get a specific instance of 'iamEndPointUserRole' +*IamEndPointUserRoleApi* | [**iam_end_point_user_roles_moid_patch**](docs/IamEndPointUserRoleApi.md#iam_end_point_user_roles_moid_patch) | **PATCH** /iam/EndPointUserRoles/{moid} | Update an instance of 'iamEndPointUserRole' +*IamEndPointUserRoleApi* | [**iam_end_point_user_roles_moid_post**](docs/IamEndPointUserRoleApi.md#iam_end_point_user_roles_moid_post) | **POST** /iam/EndPointUserRoles/{moid} | Update an instance of 'iamEndPointUserRole' +*IamEndPointUserRoleApi* | [**iam_end_point_user_roles_post**](docs/IamEndPointUserRoleApi.md#iam_end_point_user_roles_post) | **POST** /iam/EndPointUserRoles | Create an instance of 'iamEndPointUserRole' +*IamIdpApi* | [**iam_idps_get**](docs/IamIdpApi.md#iam_idps_get) | **GET** /iam/Idps | Get a list of 'iamIdp' instances +*IamIdpApi* | [**iam_idps_moid_delete**](docs/IamIdpApi.md#iam_idps_moid_delete) | **DELETE** /iam/Idps/{moid} | Delete an instance of 'iamIdp' +*IamIdpApi* | [**iam_idps_moid_get**](docs/IamIdpApi.md#iam_idps_moid_get) | **GET** /iam/Idps/{moid} | Get a specific instance of 'iamIdp' +*IamIdpApi* | [**iam_idps_moid_patch**](docs/IamIdpApi.md#iam_idps_moid_patch) | **PATCH** /iam/Idps/{moid} | Update an instance of 'iamIdp' +*IamIdpApi* | [**iam_idps_moid_post**](docs/IamIdpApi.md#iam_idps_moid_post) | **POST** /iam/Idps/{moid} | Update an instance of 'iamIdp' +*IamIdpApi* | [**iam_idps_post**](docs/IamIdpApi.md#iam_idps_post) | **POST** /iam/Idps | Create an instance of 'iamIdp' +*IamIdpReferenceApi* | [**iam_idp_references_get**](docs/IamIdpReferenceApi.md#iam_idp_references_get) | **GET** /iam/IdpReferences | Get a list of 'iamIdpReference' instances +*IamIdpReferenceApi* | [**iam_idp_references_moid_get**](docs/IamIdpReferenceApi.md#iam_idp_references_moid_get) | **GET** /iam/IdpReferences/{moid} | Get a specific instance of 'iamIdpReference' +*IamLdapGroupApi* | [**iam_ldap_groups_get**](docs/IamLdapGroupApi.md#iam_ldap_groups_get) | **GET** /iam/LdapGroups | Get a list of 'iamLdapGroup' instances +*IamLdapGroupApi* | [**iam_ldap_groups_moid_delete**](docs/IamLdapGroupApi.md#iam_ldap_groups_moid_delete) | **DELETE** /iam/LdapGroups/{moid} | Delete an instance of 'iamLdapGroup' +*IamLdapGroupApi* | [**iam_ldap_groups_moid_get**](docs/IamLdapGroupApi.md#iam_ldap_groups_moid_get) | **GET** /iam/LdapGroups/{moid} | Get a specific instance of 'iamLdapGroup' +*IamLdapGroupApi* | [**iam_ldap_groups_moid_patch**](docs/IamLdapGroupApi.md#iam_ldap_groups_moid_patch) | **PATCH** /iam/LdapGroups/{moid} | Update an instance of 'iamLdapGroup' +*IamLdapGroupApi* | [**iam_ldap_groups_moid_post**](docs/IamLdapGroupApi.md#iam_ldap_groups_moid_post) | **POST** /iam/LdapGroups/{moid} | Update an instance of 'iamLdapGroup' +*IamLdapGroupApi* | [**iam_ldap_groups_post**](docs/IamLdapGroupApi.md#iam_ldap_groups_post) | **POST** /iam/LdapGroups | Create an instance of 'iamLdapGroup' +*IamLdapPolicyApi* | [**iam_ldap_policies_get**](docs/IamLdapPolicyApi.md#iam_ldap_policies_get) | **GET** /iam/LdapPolicies | Get a list of 'iamLdapPolicy' instances +*IamLdapPolicyApi* | [**iam_ldap_policies_moid_delete**](docs/IamLdapPolicyApi.md#iam_ldap_policies_moid_delete) | **DELETE** /iam/LdapPolicies/{moid} | Delete an instance of 'iamLdapPolicy' +*IamLdapPolicyApi* | [**iam_ldap_policies_moid_get**](docs/IamLdapPolicyApi.md#iam_ldap_policies_moid_get) | **GET** /iam/LdapPolicies/{moid} | Get a specific instance of 'iamLdapPolicy' +*IamLdapPolicyApi* | [**iam_ldap_policies_moid_patch**](docs/IamLdapPolicyApi.md#iam_ldap_policies_moid_patch) | **PATCH** /iam/LdapPolicies/{moid} | Update an instance of 'iamLdapPolicy' +*IamLdapPolicyApi* | [**iam_ldap_policies_moid_post**](docs/IamLdapPolicyApi.md#iam_ldap_policies_moid_post) | **POST** /iam/LdapPolicies/{moid} | Update an instance of 'iamLdapPolicy' +*IamLdapPolicyApi* | [**iam_ldap_policies_post**](docs/IamLdapPolicyApi.md#iam_ldap_policies_post) | **POST** /iam/LdapPolicies | Create an instance of 'iamLdapPolicy' +*IamLdapProviderApi* | [**iam_ldap_providers_get**](docs/IamLdapProviderApi.md#iam_ldap_providers_get) | **GET** /iam/LdapProviders | Get a list of 'iamLdapProvider' instances +*IamLdapProviderApi* | [**iam_ldap_providers_moid_delete**](docs/IamLdapProviderApi.md#iam_ldap_providers_moid_delete) | **DELETE** /iam/LdapProviders/{moid} | Delete an instance of 'iamLdapProvider' +*IamLdapProviderApi* | [**iam_ldap_providers_moid_get**](docs/IamLdapProviderApi.md#iam_ldap_providers_moid_get) | **GET** /iam/LdapProviders/{moid} | Get a specific instance of 'iamLdapProvider' +*IamLdapProviderApi* | [**iam_ldap_providers_moid_patch**](docs/IamLdapProviderApi.md#iam_ldap_providers_moid_patch) | **PATCH** /iam/LdapProviders/{moid} | Update an instance of 'iamLdapProvider' +*IamLdapProviderApi* | [**iam_ldap_providers_moid_post**](docs/IamLdapProviderApi.md#iam_ldap_providers_moid_post) | **POST** /iam/LdapProviders/{moid} | Update an instance of 'iamLdapProvider' +*IamLdapProviderApi* | [**iam_ldap_providers_post**](docs/IamLdapProviderApi.md#iam_ldap_providers_post) | **POST** /iam/LdapProviders | Create an instance of 'iamLdapProvider' +*IamPermissionApi* | [**iam_permissions_get**](docs/IamPermissionApi.md#iam_permissions_get) | **GET** /iam/Permissions | Get a list of 'iamPermission' instances +*IamPermissionApi* | [**iam_permissions_moid_get**](docs/IamPermissionApi.md#iam_permissions_moid_get) | **GET** /iam/Permissions/{moid} | Get a specific instance of 'iamPermission' +*IamPrivilegeApi* | [**iam_privileges_get**](docs/IamPrivilegeApi.md#iam_privileges_get) | **GET** /iam/Privileges | Get a list of 'iamPrivilege' instances +*IamPrivilegeApi* | [**iam_privileges_moid_get**](docs/IamPrivilegeApi.md#iam_privileges_moid_get) | **GET** /iam/Privileges/{moid} | Get a specific instance of 'iamPrivilege' +*IamPrivilegeSetApi* | [**iam_privilege_sets_get**](docs/IamPrivilegeSetApi.md#iam_privilege_sets_get) | **GET** /iam/PrivilegeSets | Get a list of 'iamPrivilegeSet' instances +*IamPrivilegeSetApi* | [**iam_privilege_sets_moid_get**](docs/IamPrivilegeSetApi.md#iam_privilege_sets_moid_get) | **GET** /iam/PrivilegeSets/{moid} | Get a specific instance of 'iamPrivilegeSet' +*IamQualifierApi* | [**iam_qualifiers_get**](docs/IamQualifierApi.md#iam_qualifiers_get) | **GET** /iam/Qualifiers | Get a list of 'iamQualifier' instances +*IamQualifierApi* | [**iam_qualifiers_moid_delete**](docs/IamQualifierApi.md#iam_qualifiers_moid_delete) | **DELETE** /iam/Qualifiers/{moid} | Delete an instance of 'iamQualifier' +*IamQualifierApi* | [**iam_qualifiers_moid_get**](docs/IamQualifierApi.md#iam_qualifiers_moid_get) | **GET** /iam/Qualifiers/{moid} | Get a specific instance of 'iamQualifier' +*IamQualifierApi* | [**iam_qualifiers_moid_patch**](docs/IamQualifierApi.md#iam_qualifiers_moid_patch) | **PATCH** /iam/Qualifiers/{moid} | Update an instance of 'iamQualifier' +*IamQualifierApi* | [**iam_qualifiers_moid_post**](docs/IamQualifierApi.md#iam_qualifiers_moid_post) | **POST** /iam/Qualifiers/{moid} | Update an instance of 'iamQualifier' +*IamQualifierApi* | [**iam_qualifiers_post**](docs/IamQualifierApi.md#iam_qualifiers_post) | **POST** /iam/Qualifiers | Create an instance of 'iamQualifier' +*IamResourceLimitsApi* | [**iam_resource_limits_get**](docs/IamResourceLimitsApi.md#iam_resource_limits_get) | **GET** /iam/ResourceLimits | Get a list of 'iamResourceLimits' instances +*IamResourceLimitsApi* | [**iam_resource_limits_moid_get**](docs/IamResourceLimitsApi.md#iam_resource_limits_moid_get) | **GET** /iam/ResourceLimits/{moid} | Get a specific instance of 'iamResourceLimits' +*IamRoleApi* | [**iam_roles_get**](docs/IamRoleApi.md#iam_roles_get) | **GET** /iam/Roles | Get a list of 'iamRole' instances +*IamRoleApi* | [**iam_roles_moid_get**](docs/IamRoleApi.md#iam_roles_moid_get) | **GET** /iam/Roles/{moid} | Get a specific instance of 'iamRole' +*IamServiceProviderApi* | [**iam_service_providers_get**](docs/IamServiceProviderApi.md#iam_service_providers_get) | **GET** /iam/ServiceProviders | Get a list of 'iamServiceProvider' instances +*IamServiceProviderApi* | [**iam_service_providers_moid_get**](docs/IamServiceProviderApi.md#iam_service_providers_moid_get) | **GET** /iam/ServiceProviders/{moid} | Get a specific instance of 'iamServiceProvider' +*IamSessionApi* | [**iam_sessions_get**](docs/IamSessionApi.md#iam_sessions_get) | **GET** /iam/Sessions | Get a list of 'iamSession' instances +*IamSessionApi* | [**iam_sessions_moid_delete**](docs/IamSessionApi.md#iam_sessions_moid_delete) | **DELETE** /iam/Sessions/{moid} | Delete an instance of 'iamSession' +*IamSessionApi* | [**iam_sessions_moid_get**](docs/IamSessionApi.md#iam_sessions_moid_get) | **GET** /iam/Sessions/{moid} | Get a specific instance of 'iamSession' +*IamSessionLimitsApi* | [**iam_session_limits_get**](docs/IamSessionLimitsApi.md#iam_session_limits_get) | **GET** /iam/SessionLimits | Get a list of 'iamSessionLimits' instances +*IamSessionLimitsApi* | [**iam_session_limits_moid_get**](docs/IamSessionLimitsApi.md#iam_session_limits_moid_get) | **GET** /iam/SessionLimits/{moid} | Get a specific instance of 'iamSessionLimits' +*IamSystemApi* | [**iam_systems_get**](docs/IamSystemApi.md#iam_systems_get) | **GET** /iam/Systems | Get a list of 'iamSystem' instances +*IamSystemApi* | [**iam_systems_moid_get**](docs/IamSystemApi.md#iam_systems_moid_get) | **GET** /iam/Systems/{moid} | Get a specific instance of 'iamSystem' +*IamUserApi* | [**iam_users_get**](docs/IamUserApi.md#iam_users_get) | **GET** /iam/Users | Get a list of 'iamUser' instances +*IamUserApi* | [**iam_users_moid_delete**](docs/IamUserApi.md#iam_users_moid_delete) | **DELETE** /iam/Users/{moid} | Delete an instance of 'iamUser' +*IamUserApi* | [**iam_users_moid_get**](docs/IamUserApi.md#iam_users_moid_get) | **GET** /iam/Users/{moid} | Get a specific instance of 'iamUser' +*IamUserApi* | [**iam_users_moid_patch**](docs/IamUserApi.md#iam_users_moid_patch) | **PATCH** /iam/Users/{moid} | Update an instance of 'iamUser' +*IamUserApi* | [**iam_users_moid_post**](docs/IamUserApi.md#iam_users_moid_post) | **POST** /iam/Users/{moid} | Update an instance of 'iamUser' +*IamUserApi* | [**iam_users_post**](docs/IamUserApi.md#iam_users_post) | **POST** /iam/Users | Create an instance of 'iamUser' +*IamUserGroupApi* | [**iam_user_groups_get**](docs/IamUserGroupApi.md#iam_user_groups_get) | **GET** /iam/UserGroups | Get a list of 'iamUserGroup' instances +*IamUserGroupApi* | [**iam_user_groups_moid_delete**](docs/IamUserGroupApi.md#iam_user_groups_moid_delete) | **DELETE** /iam/UserGroups/{moid} | Delete an instance of 'iamUserGroup' +*IamUserGroupApi* | [**iam_user_groups_moid_get**](docs/IamUserGroupApi.md#iam_user_groups_moid_get) | **GET** /iam/UserGroups/{moid} | Get a specific instance of 'iamUserGroup' +*IamUserGroupApi* | [**iam_user_groups_moid_patch**](docs/IamUserGroupApi.md#iam_user_groups_moid_patch) | **PATCH** /iam/UserGroups/{moid} | Update an instance of 'iamUserGroup' +*IamUserGroupApi* | [**iam_user_groups_moid_post**](docs/IamUserGroupApi.md#iam_user_groups_moid_post) | **POST** /iam/UserGroups/{moid} | Update an instance of 'iamUserGroup' +*IamUserGroupApi* | [**iam_user_groups_post**](docs/IamUserGroupApi.md#iam_user_groups_post) | **POST** /iam/UserGroups | Create an instance of 'iamUserGroup' +*IamUserPreferenceApi* | [**iam_user_preferences_get**](docs/IamUserPreferenceApi.md#iam_user_preferences_get) | **GET** /iam/UserPreferences | Get a list of 'iamUserPreference' instances +*IamUserPreferenceApi* | [**iam_user_preferences_moid_get**](docs/IamUserPreferenceApi.md#iam_user_preferences_moid_get) | **GET** /iam/UserPreferences/{moid} | Get a specific instance of 'iamUserPreference' +*IamUserPreferenceApi* | [**iam_user_preferences_moid_patch**](docs/IamUserPreferenceApi.md#iam_user_preferences_moid_patch) | **PATCH** /iam/UserPreferences/{moid} | Update an instance of 'iamUserPreference' +*IamUserPreferenceApi* | [**iam_user_preferences_moid_post**](docs/IamUserPreferenceApi.md#iam_user_preferences_moid_post) | **POST** /iam/UserPreferences/{moid} | Update an instance of 'iamUserPreference' +*InventoryDeviceInfoApi* | [**inventory_device_infos_get**](docs/InventoryDeviceInfoApi.md#inventory_device_infos_get) | **GET** /inventory/DeviceInfos | Get a list of 'inventoryDeviceInfo' instances +*InventoryDeviceInfoApi* | [**inventory_device_infos_moid_get**](docs/InventoryDeviceInfoApi.md#inventory_device_infos_moid_get) | **GET** /inventory/DeviceInfos/{moid} | Get a specific instance of 'inventoryDeviceInfo' +*InventoryDnMoBindingApi* | [**inventory_dn_mo_bindings_get**](docs/InventoryDnMoBindingApi.md#inventory_dn_mo_bindings_get) | **GET** /inventory/DnMoBindings | Get a list of 'inventoryDnMoBinding' instances +*InventoryDnMoBindingApi* | [**inventory_dn_mo_bindings_moid_get**](docs/InventoryDnMoBindingApi.md#inventory_dn_mo_bindings_moid_get) | **GET** /inventory/DnMoBindings/{moid} | Get a specific instance of 'inventoryDnMoBinding' +*InventoryGenericInventoryApi* | [**inventory_generic_inventories_get**](docs/InventoryGenericInventoryApi.md#inventory_generic_inventories_get) | **GET** /inventory/GenericInventories | Get a list of 'inventoryGenericInventory' instances +*InventoryGenericInventoryApi* | [**inventory_generic_inventories_moid_get**](docs/InventoryGenericInventoryApi.md#inventory_generic_inventories_moid_get) | **GET** /inventory/GenericInventories/{moid} | Get a specific instance of 'inventoryGenericInventory' +*InventoryGenericInventoryApi* | [**inventory_generic_inventories_moid_patch**](docs/InventoryGenericInventoryApi.md#inventory_generic_inventories_moid_patch) | **PATCH** /inventory/GenericInventories/{moid} | Update an instance of 'inventoryGenericInventory' +*InventoryGenericInventoryApi* | [**inventory_generic_inventories_moid_post**](docs/InventoryGenericInventoryApi.md#inventory_generic_inventories_moid_post) | **POST** /inventory/GenericInventories/{moid} | Update an instance of 'inventoryGenericInventory' +*InventoryGenericInventoryHolderApi* | [**inventory_generic_inventory_holders_get**](docs/InventoryGenericInventoryHolderApi.md#inventory_generic_inventory_holders_get) | **GET** /inventory/GenericInventoryHolders | Get a list of 'inventoryGenericInventoryHolder' instances +*InventoryGenericInventoryHolderApi* | [**inventory_generic_inventory_holders_moid_get**](docs/InventoryGenericInventoryHolderApi.md#inventory_generic_inventory_holders_moid_get) | **GET** /inventory/GenericInventoryHolders/{moid} | Get a specific instance of 'inventoryGenericInventoryHolder' +*InventoryGenericInventoryHolderApi* | [**inventory_generic_inventory_holders_moid_patch**](docs/InventoryGenericInventoryHolderApi.md#inventory_generic_inventory_holders_moid_patch) | **PATCH** /inventory/GenericInventoryHolders/{moid} | Update an instance of 'inventoryGenericInventoryHolder' +*InventoryGenericInventoryHolderApi* | [**inventory_generic_inventory_holders_moid_post**](docs/InventoryGenericInventoryHolderApi.md#inventory_generic_inventory_holders_moid_post) | **POST** /inventory/GenericInventoryHolders/{moid} | Update an instance of 'inventoryGenericInventoryHolder' +*InventoryRequestApi* | [**inventory_requests_post**](docs/InventoryRequestApi.md#inventory_requests_post) | **POST** /inventory/Requests | Create an instance of 'inventoryRequest' +*IpmioverlanPolicyApi* | [**ipmioverlan_policies_get**](docs/IpmioverlanPolicyApi.md#ipmioverlan_policies_get) | **GET** /ipmioverlan/Policies | Get a list of 'ipmioverlanPolicy' instances +*IpmioverlanPolicyApi* | [**ipmioverlan_policies_moid_delete**](docs/IpmioverlanPolicyApi.md#ipmioverlan_policies_moid_delete) | **DELETE** /ipmioverlan/Policies/{moid} | Delete an instance of 'ipmioverlanPolicy' +*IpmioverlanPolicyApi* | [**ipmioverlan_policies_moid_get**](docs/IpmioverlanPolicyApi.md#ipmioverlan_policies_moid_get) | **GET** /ipmioverlan/Policies/{moid} | Get a specific instance of 'ipmioverlanPolicy' +*IpmioverlanPolicyApi* | [**ipmioverlan_policies_moid_patch**](docs/IpmioverlanPolicyApi.md#ipmioverlan_policies_moid_patch) | **PATCH** /ipmioverlan/Policies/{moid} | Update an instance of 'ipmioverlanPolicy' +*IpmioverlanPolicyApi* | [**ipmioverlan_policies_moid_post**](docs/IpmioverlanPolicyApi.md#ipmioverlan_policies_moid_post) | **POST** /ipmioverlan/Policies/{moid} | Update an instance of 'ipmioverlanPolicy' +*IpmioverlanPolicyApi* | [**ipmioverlan_policies_post**](docs/IpmioverlanPolicyApi.md#ipmioverlan_policies_post) | **POST** /ipmioverlan/Policies | Create an instance of 'ipmioverlanPolicy' +*KvmPolicyApi* | [**kvm_policies_get**](docs/KvmPolicyApi.md#kvm_policies_get) | **GET** /kvm/Policies | Get a list of 'kvmPolicy' instances +*KvmPolicyApi* | [**kvm_policies_moid_delete**](docs/KvmPolicyApi.md#kvm_policies_moid_delete) | **DELETE** /kvm/Policies/{moid} | Delete an instance of 'kvmPolicy' +*KvmPolicyApi* | [**kvm_policies_moid_get**](docs/KvmPolicyApi.md#kvm_policies_moid_get) | **GET** /kvm/Policies/{moid} | Get a specific instance of 'kvmPolicy' +*KvmPolicyApi* | [**kvm_policies_moid_patch**](docs/KvmPolicyApi.md#kvm_policies_moid_patch) | **PATCH** /kvm/Policies/{moid} | Update an instance of 'kvmPolicy' +*KvmPolicyApi* | [**kvm_policies_moid_post**](docs/KvmPolicyApi.md#kvm_policies_moid_post) | **POST** /kvm/Policies/{moid} | Update an instance of 'kvmPolicy' +*KvmPolicyApi* | [**kvm_policies_post**](docs/KvmPolicyApi.md#kvm_policies_post) | **POST** /kvm/Policies | Create an instance of 'kvmPolicy' +*LicenseAccountLicenseDataApi* | [**license_account_license_data_get**](docs/LicenseAccountLicenseDataApi.md#license_account_license_data_get) | **GET** /license/AccountLicenseData | Get a list of 'licenseAccountLicenseData' instances +*LicenseAccountLicenseDataApi* | [**license_account_license_data_moid_get**](docs/LicenseAccountLicenseDataApi.md#license_account_license_data_moid_get) | **GET** /license/AccountLicenseData/{moid} | Get a specific instance of 'licenseAccountLicenseData' +*LicenseCustomerOpApi* | [**license_customer_ops_get**](docs/LicenseCustomerOpApi.md#license_customer_ops_get) | **GET** /license/CustomerOps | Get a list of 'licenseCustomerOp' instances +*LicenseCustomerOpApi* | [**license_customer_ops_moid_get**](docs/LicenseCustomerOpApi.md#license_customer_ops_moid_get) | **GET** /license/CustomerOps/{moid} | Get a specific instance of 'licenseCustomerOp' +*LicenseCustomerOpApi* | [**license_customer_ops_moid_patch**](docs/LicenseCustomerOpApi.md#license_customer_ops_moid_patch) | **PATCH** /license/CustomerOps/{moid} | Update an instance of 'licenseCustomerOp' +*LicenseCustomerOpApi* | [**license_customer_ops_moid_post**](docs/LicenseCustomerOpApi.md#license_customer_ops_moid_post) | **POST** /license/CustomerOps/{moid} | Update an instance of 'licenseCustomerOp' +*LicenseLicenseInfoApi* | [**license_license_infos_get**](docs/LicenseLicenseInfoApi.md#license_license_infos_get) | **GET** /license/LicenseInfos | Get a list of 'licenseLicenseInfo' instances +*LicenseLicenseInfoApi* | [**license_license_infos_moid_get**](docs/LicenseLicenseInfoApi.md#license_license_infos_moid_get) | **GET** /license/LicenseInfos/{moid} | Get a specific instance of 'licenseLicenseInfo' +*LicenseLicenseInfoApi* | [**license_license_infos_moid_patch**](docs/LicenseLicenseInfoApi.md#license_license_infos_moid_patch) | **PATCH** /license/LicenseInfos/{moid} | Update an instance of 'licenseLicenseInfo' +*LicenseLicenseInfoApi* | [**license_license_infos_moid_post**](docs/LicenseLicenseInfoApi.md#license_license_infos_moid_post) | **POST** /license/LicenseInfos/{moid} | Update an instance of 'licenseLicenseInfo' +*LicenseLicenseInfoApi* | [**license_license_infos_post**](docs/LicenseLicenseInfoApi.md#license_license_infos_post) | **POST** /license/LicenseInfos | Create an instance of 'licenseLicenseInfo' +*LicenseSmartlicenseTokenApi* | [**license_smartlicense_tokens_get**](docs/LicenseSmartlicenseTokenApi.md#license_smartlicense_tokens_get) | **GET** /license/SmartlicenseTokens | Get a list of 'licenseSmartlicenseToken' instances +*LicenseSmartlicenseTokenApi* | [**license_smartlicense_tokens_moid_get**](docs/LicenseSmartlicenseTokenApi.md#license_smartlicense_tokens_moid_get) | **GET** /license/SmartlicenseTokens/{moid} | Get a specific instance of 'licenseSmartlicenseToken' +*LicenseSmartlicenseTokenApi* | [**license_smartlicense_tokens_moid_patch**](docs/LicenseSmartlicenseTokenApi.md#license_smartlicense_tokens_moid_patch) | **PATCH** /license/SmartlicenseTokens/{moid} | Update an instance of 'licenseSmartlicenseToken' +*LicenseSmartlicenseTokenApi* | [**license_smartlicense_tokens_moid_post**](docs/LicenseSmartlicenseTokenApi.md#license_smartlicense_tokens_moid_post) | **POST** /license/SmartlicenseTokens/{moid} | Update an instance of 'licenseSmartlicenseToken' +*LsServiceProfileApi* | [**ls_service_profiles_get**](docs/LsServiceProfileApi.md#ls_service_profiles_get) | **GET** /ls/ServiceProfiles | Get a list of 'lsServiceProfile' instances +*LsServiceProfileApi* | [**ls_service_profiles_moid_get**](docs/LsServiceProfileApi.md#ls_service_profiles_moid_get) | **GET** /ls/ServiceProfiles/{moid} | Get a specific instance of 'lsServiceProfile' +*LsServiceProfileApi* | [**ls_service_profiles_moid_patch**](docs/LsServiceProfileApi.md#ls_service_profiles_moid_patch) | **PATCH** /ls/ServiceProfiles/{moid} | Update an instance of 'lsServiceProfile' +*LsServiceProfileApi* | [**ls_service_profiles_moid_post**](docs/LsServiceProfileApi.md#ls_service_profiles_moid_post) | **POST** /ls/ServiceProfiles/{moid} | Update an instance of 'lsServiceProfile' +*ManagementControllerApi* | [**management_controllers_get**](docs/ManagementControllerApi.md#management_controllers_get) | **GET** /management/Controllers | Get a list of 'managementController' instances +*ManagementControllerApi* | [**management_controllers_moid_get**](docs/ManagementControllerApi.md#management_controllers_moid_get) | **GET** /management/Controllers/{moid} | Get a specific instance of 'managementController' +*ManagementControllerApi* | [**management_controllers_moid_patch**](docs/ManagementControllerApi.md#management_controllers_moid_patch) | **PATCH** /management/Controllers/{moid} | Update an instance of 'managementController' +*ManagementControllerApi* | [**management_controllers_moid_post**](docs/ManagementControllerApi.md#management_controllers_moid_post) | **POST** /management/Controllers/{moid} | Update an instance of 'managementController' +*ManagementEntityApi* | [**management_entities_get**](docs/ManagementEntityApi.md#management_entities_get) | **GET** /management/Entities | Get a list of 'managementEntity' instances +*ManagementEntityApi* | [**management_entities_moid_get**](docs/ManagementEntityApi.md#management_entities_moid_get) | **GET** /management/Entities/{moid} | Get a specific instance of 'managementEntity' +*ManagementEntityApi* | [**management_entities_moid_patch**](docs/ManagementEntityApi.md#management_entities_moid_patch) | **PATCH** /management/Entities/{moid} | Update an instance of 'managementEntity' +*ManagementEntityApi* | [**management_entities_moid_post**](docs/ManagementEntityApi.md#management_entities_moid_post) | **POST** /management/Entities/{moid} | Update an instance of 'managementEntity' +*ManagementInterfaceApi* | [**management_interfaces_get**](docs/ManagementInterfaceApi.md#management_interfaces_get) | **GET** /management/Interfaces | Get a list of 'managementInterface' instances +*ManagementInterfaceApi* | [**management_interfaces_moid_get**](docs/ManagementInterfaceApi.md#management_interfaces_moid_get) | **GET** /management/Interfaces/{moid} | Get a specific instance of 'managementInterface' +*ManagementInterfaceApi* | [**management_interfaces_moid_patch**](docs/ManagementInterfaceApi.md#management_interfaces_moid_patch) | **PATCH** /management/Interfaces/{moid} | Update an instance of 'managementInterface' +*ManagementInterfaceApi* | [**management_interfaces_moid_post**](docs/ManagementInterfaceApi.md#management_interfaces_moid_post) | **POST** /management/Interfaces/{moid} | Update an instance of 'managementInterface' +*MemoryArrayApi* | [**memory_arrays_get**](docs/MemoryArrayApi.md#memory_arrays_get) | **GET** /memory/Arrays | Get a list of 'memoryArray' instances +*MemoryArrayApi* | [**memory_arrays_moid_get**](docs/MemoryArrayApi.md#memory_arrays_moid_get) | **GET** /memory/Arrays/{moid} | Get a specific instance of 'memoryArray' +*MemoryArrayApi* | [**memory_arrays_moid_patch**](docs/MemoryArrayApi.md#memory_arrays_moid_patch) | **PATCH** /memory/Arrays/{moid} | Update an instance of 'memoryArray' +*MemoryArrayApi* | [**memory_arrays_moid_post**](docs/MemoryArrayApi.md#memory_arrays_moid_post) | **POST** /memory/Arrays/{moid} | Update an instance of 'memoryArray' +*MemoryUnitApi* | [**memory_units_get**](docs/MemoryUnitApi.md#memory_units_get) | **GET** /memory/Units | Get a list of 'memoryUnit' instances +*MemoryUnitApi* | [**memory_units_moid_get**](docs/MemoryUnitApi.md#memory_units_moid_get) | **GET** /memory/Units/{moid} | Get a specific instance of 'memoryUnit' +*MemoryUnitApi* | [**memory_units_moid_patch**](docs/MemoryUnitApi.md#memory_units_moid_patch) | **PATCH** /memory/Units/{moid} | Update an instance of 'memoryUnit' +*MemoryUnitApi* | [**memory_units_moid_post**](docs/MemoryUnitApi.md#memory_units_moid_post) | **POST** /memory/Units/{moid} | Update an instance of 'memoryUnit' +*MetaDefinitionApi* | [**meta_definitions_get**](docs/MetaDefinitionApi.md#meta_definitions_get) | **GET** /meta/Definitions | Get a list of 'metaDefinition' instances +*MetaDefinitionApi* | [**meta_definitions_moid_delete**](docs/MetaDefinitionApi.md#meta_definitions_moid_delete) | **DELETE** /meta/Definitions/{moid} | Delete an instance of 'metaDefinition' +*MetaDefinitionApi* | [**meta_definitions_moid_get**](docs/MetaDefinitionApi.md#meta_definitions_moid_get) | **GET** /meta/Definitions/{moid} | Get a specific instance of 'metaDefinition' +*NetworkElementApi* | [**network_elements_get**](docs/NetworkElementApi.md#network_elements_get) | **GET** /network/Elements | Get a list of 'networkElement' instances +*NetworkElementApi* | [**network_elements_moid_get**](docs/NetworkElementApi.md#network_elements_moid_get) | **GET** /network/Elements/{moid} | Get a specific instance of 'networkElement' +*NetworkElementApi* | [**network_elements_moid_patch**](docs/NetworkElementApi.md#network_elements_moid_patch) | **PATCH** /network/Elements/{moid} | Update an instance of 'networkElement' +*NetworkElementApi* | [**network_elements_moid_post**](docs/NetworkElementApi.md#network_elements_moid_post) | **POST** /network/Elements/{moid} | Update an instance of 'networkElement' +*NetworkElementSummaryApi* | [**network_element_summaries_get**](docs/NetworkElementSummaryApi.md#network_element_summaries_get) | **GET** /network/ElementSummaries | Get a list of 'networkElementSummary' instances +*NetworkElementSummaryApi* | [**network_element_summaries_moid_get**](docs/NetworkElementSummaryApi.md#network_element_summaries_moid_get) | **GET** /network/ElementSummaries/{moid} | Get a specific instance of 'networkElementSummary' +*NetworkconfigPolicyApi* | [**networkconfig_policies_get**](docs/NetworkconfigPolicyApi.md#networkconfig_policies_get) | **GET** /networkconfig/Policies | Get a list of 'networkconfigPolicy' instances +*NetworkconfigPolicyApi* | [**networkconfig_policies_moid_delete**](docs/NetworkconfigPolicyApi.md#networkconfig_policies_moid_delete) | **DELETE** /networkconfig/Policies/{moid} | Delete an instance of 'networkconfigPolicy' +*NetworkconfigPolicyApi* | [**networkconfig_policies_moid_get**](docs/NetworkconfigPolicyApi.md#networkconfig_policies_moid_get) | **GET** /networkconfig/Policies/{moid} | Get a specific instance of 'networkconfigPolicy' +*NetworkconfigPolicyApi* | [**networkconfig_policies_moid_patch**](docs/NetworkconfigPolicyApi.md#networkconfig_policies_moid_patch) | **PATCH** /networkconfig/Policies/{moid} | Update an instance of 'networkconfigPolicy' +*NetworkconfigPolicyApi* | [**networkconfig_policies_moid_post**](docs/NetworkconfigPolicyApi.md#networkconfig_policies_moid_post) | **POST** /networkconfig/Policies/{moid} | Update an instance of 'networkconfigPolicy' +*NetworkconfigPolicyApi* | [**networkconfig_policies_post**](docs/NetworkconfigPolicyApi.md#networkconfig_policies_post) | **POST** /networkconfig/Policies | Create an instance of 'networkconfigPolicy' +*NtpPolicyApi* | [**ntp_policies_get**](docs/NtpPolicyApi.md#ntp_policies_get) | **GET** /ntp/Policies | Get a list of 'ntpPolicy' instances +*NtpPolicyApi* | [**ntp_policies_moid_delete**](docs/NtpPolicyApi.md#ntp_policies_moid_delete) | **DELETE** /ntp/Policies/{moid} | Delete an instance of 'ntpPolicy' +*NtpPolicyApi* | [**ntp_policies_moid_get**](docs/NtpPolicyApi.md#ntp_policies_moid_get) | **GET** /ntp/Policies/{moid} | Get a specific instance of 'ntpPolicy' +*NtpPolicyApi* | [**ntp_policies_moid_patch**](docs/NtpPolicyApi.md#ntp_policies_moid_patch) | **PATCH** /ntp/Policies/{moid} | Update an instance of 'ntpPolicy' +*NtpPolicyApi* | [**ntp_policies_moid_post**](docs/NtpPolicyApi.md#ntp_policies_moid_post) | **POST** /ntp/Policies/{moid} | Update an instance of 'ntpPolicy' +*NtpPolicyApi* | [**ntp_policies_post**](docs/NtpPolicyApi.md#ntp_policies_post) | **POST** /ntp/Policies | Create an instance of 'ntpPolicy' +*OauthOauthUserApi* | [**oauth_oauth_users_get**](docs/OauthOauthUserApi.md#oauth_oauth_users_get) | **GET** /oauth/OauthUsers | Get a list of 'oauthOauthUser' instances +*OauthOauthUserApi* | [**oauth_oauth_users_moid_delete**](docs/OauthOauthUserApi.md#oauth_oauth_users_moid_delete) | **DELETE** /oauth/OauthUsers/{moid} | Delete an instance of 'oauthOauthUser' +*OauthOauthUserApi* | [**oauth_oauth_users_moid_get**](docs/OauthOauthUserApi.md#oauth_oauth_users_moid_get) | **GET** /oauth/OauthUsers/{moid} | Get a specific instance of 'oauthOauthUser' +*OauthOauthUserApi* | [**oauth_oauth_users_moid_patch**](docs/OauthOauthUserApi.md#oauth_oauth_users_moid_patch) | **PATCH** /oauth/OauthUsers/{moid} | Update an instance of 'oauthOauthUser' +*OauthOauthUserApi* | [**oauth_oauth_users_moid_post**](docs/OauthOauthUserApi.md#oauth_oauth_users_moid_post) | **POST** /oauth/OauthUsers/{moid} | Update an instance of 'oauthOauthUser' +*OauthOauthUserApi* | [**oauth_oauth_users_post**](docs/OauthOauthUserApi.md#oauth_oauth_users_post) | **POST** /oauth/OauthUsers | Create an instance of 'oauthOauthUser' +*PciDeviceApi* | [**pci_devices_get**](docs/PciDeviceApi.md#pci_devices_get) | **GET** /pci/Devices | Get a list of 'pciDevice' instances +*PciDeviceApi* | [**pci_devices_moid_get**](docs/PciDeviceApi.md#pci_devices_moid_get) | **GET** /pci/Devices/{moid} | Get a specific instance of 'pciDevice' +*PciDeviceApi* | [**pci_devices_moid_patch**](docs/PciDeviceApi.md#pci_devices_moid_patch) | **PATCH** /pci/Devices/{moid} | Update an instance of 'pciDevice' +*PciDeviceApi* | [**pci_devices_moid_post**](docs/PciDeviceApi.md#pci_devices_moid_post) | **POST** /pci/Devices/{moid} | Update an instance of 'pciDevice' +*PortGroupApi* | [**port_groups_get**](docs/PortGroupApi.md#port_groups_get) | **GET** /port/Groups | Get a list of 'portGroup' instances +*PortGroupApi* | [**port_groups_moid_get**](docs/PortGroupApi.md#port_groups_moid_get) | **GET** /port/Groups/{moid} | Get a specific instance of 'portGroup' +*PortGroupApi* | [**port_groups_moid_patch**](docs/PortGroupApi.md#port_groups_moid_patch) | **PATCH** /port/Groups/{moid} | Update an instance of 'portGroup' +*PortGroupApi* | [**port_groups_moid_post**](docs/PortGroupApi.md#port_groups_moid_post) | **POST** /port/Groups/{moid} | Update an instance of 'portGroup' +*PortSubGroupApi* | [**port_sub_groups_get**](docs/PortSubGroupApi.md#port_sub_groups_get) | **GET** /port/SubGroups | Get a list of 'portSubGroup' instances +*PortSubGroupApi* | [**port_sub_groups_moid_get**](docs/PortSubGroupApi.md#port_sub_groups_moid_get) | **GET** /port/SubGroups/{moid} | Get a specific instance of 'portSubGroup' +*PortSubGroupApi* | [**port_sub_groups_moid_patch**](docs/PortSubGroupApi.md#port_sub_groups_moid_patch) | **PATCH** /port/SubGroups/{moid} | Update an instance of 'portSubGroup' +*PortSubGroupApi* | [**port_sub_groups_moid_post**](docs/PortSubGroupApi.md#port_sub_groups_moid_post) | **POST** /port/SubGroups/{moid} | Update an instance of 'portSubGroup' +*ProcessorUnitApi* | [**processor_units_get**](docs/ProcessorUnitApi.md#processor_units_get) | **GET** /processor/Units | Get a list of 'processorUnit' instances +*ProcessorUnitApi* | [**processor_units_moid_get**](docs/ProcessorUnitApi.md#processor_units_moid_get) | **GET** /processor/Units/{moid} | Get a specific instance of 'processorUnit' +*ProcessorUnitApi* | [**processor_units_moid_patch**](docs/ProcessorUnitApi.md#processor_units_moid_patch) | **PATCH** /processor/Units/{moid} | Update an instance of 'processorUnit' +*ProcessorUnitApi* | [**processor_units_moid_post**](docs/ProcessorUnitApi.md#processor_units_moid_post) | **POST** /processor/Units/{moid} | Update an instance of 'processorUnit' +*ResourceGroupApi* | [**resource_groups_get**](docs/ResourceGroupApi.md#resource_groups_get) | **GET** /resource/Groups | Get a list of 'resourceGroup' instances +*ResourceGroupApi* | [**resource_groups_moid_delete**](docs/ResourceGroupApi.md#resource_groups_moid_delete) | **DELETE** /resource/Groups/{moid} | Delete an instance of 'resourceGroup' +*ResourceGroupApi* | [**resource_groups_moid_get**](docs/ResourceGroupApi.md#resource_groups_moid_get) | **GET** /resource/Groups/{moid} | Get a specific instance of 'resourceGroup' +*ResourceGroupApi* | [**resource_groups_moid_patch**](docs/ResourceGroupApi.md#resource_groups_moid_patch) | **PATCH** /resource/Groups/{moid} | Update an instance of 'resourceGroup' +*ResourceGroupApi* | [**resource_groups_moid_post**](docs/ResourceGroupApi.md#resource_groups_moid_post) | **POST** /resource/Groups/{moid} | Update an instance of 'resourceGroup' +*ResourceGroupApi* | [**resource_groups_post**](docs/ResourceGroupApi.md#resource_groups_post) | **POST** /resource/Groups | Create an instance of 'resourceGroup' +*SdcardPolicyApi* | [**sdcard_policies_get**](docs/SdcardPolicyApi.md#sdcard_policies_get) | **GET** /sdcard/Policies | Get a list of 'sdcardPolicy' instances +*SdcardPolicyApi* | [**sdcard_policies_moid_delete**](docs/SdcardPolicyApi.md#sdcard_policies_moid_delete) | **DELETE** /sdcard/Policies/{moid} | Delete an instance of 'sdcardPolicy' +*SdcardPolicyApi* | [**sdcard_policies_moid_get**](docs/SdcardPolicyApi.md#sdcard_policies_moid_get) | **GET** /sdcard/Policies/{moid} | Get a specific instance of 'sdcardPolicy' +*SdcardPolicyApi* | [**sdcard_policies_moid_patch**](docs/SdcardPolicyApi.md#sdcard_policies_moid_patch) | **PATCH** /sdcard/Policies/{moid} | Update an instance of 'sdcardPolicy' +*SdcardPolicyApi* | [**sdcard_policies_moid_post**](docs/SdcardPolicyApi.md#sdcard_policies_moid_post) | **POST** /sdcard/Policies/{moid} | Update an instance of 'sdcardPolicy' +*SdcardPolicyApi* | [**sdcard_policies_post**](docs/SdcardPolicyApi.md#sdcard_policies_post) | **POST** /sdcard/Policies | Create an instance of 'sdcardPolicy' +*SearchSearchItemApi* | [**search_search_items_get**](docs/SearchSearchItemApi.md#search_search_items_get) | **GET** /search/SearchItems | Get a list of 'searchSearchItem' instances +*SearchSearchItemApi* | [**search_search_items_moid_get**](docs/SearchSearchItemApi.md#search_search_items_moid_get) | **GET** /search/SearchItems/{moid} | Get a specific instance of 'searchSearchItem' +*SearchSuggestItemApi* | [**search_suggest_items_post**](docs/SearchSuggestItemApi.md#search_suggest_items_post) | **POST** /search/SuggestItems | Create an instance of 'searchSuggestItem' +*SearchTagItemApi* | [**search_tag_items_get**](docs/SearchTagItemApi.md#search_tag_items_get) | **GET** /search/TagItems | Get a list of 'searchTagItem' instances +*SearchTagItemApi* | [**search_tag_items_moid_get**](docs/SearchTagItemApi.md#search_tag_items_moid_get) | **GET** /search/TagItems/{moid} | Get a specific instance of 'searchTagItem' +*SecurityUnitApi* | [**security_units_get**](docs/SecurityUnitApi.md#security_units_get) | **GET** /security/Units | Get a list of 'securityUnit' instances +*SecurityUnitApi* | [**security_units_moid_get**](docs/SecurityUnitApi.md#security_units_moid_get) | **GET** /security/Units/{moid} | Get a specific instance of 'securityUnit' +*SecurityUnitApi* | [**security_units_moid_patch**](docs/SecurityUnitApi.md#security_units_moid_patch) | **PATCH** /security/Units/{moid} | Update an instance of 'securityUnit' +*SecurityUnitApi* | [**security_units_moid_post**](docs/SecurityUnitApi.md#security_units_moid_post) | **POST** /security/Units/{moid} | Update an instance of 'securityUnit' +*ServerConfigChangeDetailApi* | [**server_config_change_details_get**](docs/ServerConfigChangeDetailApi.md#server_config_change_details_get) | **GET** /server/ConfigChangeDetails | Get a list of 'serverConfigChangeDetail' instances +*ServerConfigChangeDetailApi* | [**server_config_change_details_moid_get**](docs/ServerConfigChangeDetailApi.md#server_config_change_details_moid_get) | **GET** /server/ConfigChangeDetails/{moid} | Get a specific instance of 'serverConfigChangeDetail' +*ServerConfigResultApi* | [**server_config_results_get**](docs/ServerConfigResultApi.md#server_config_results_get) | **GET** /server/ConfigResults | Get a list of 'serverConfigResult' instances +*ServerConfigResultApi* | [**server_config_results_moid_get**](docs/ServerConfigResultApi.md#server_config_results_moid_get) | **GET** /server/ConfigResults/{moid} | Get a specific instance of 'serverConfigResult' +*ServerConfigResultEntryApi* | [**server_config_result_entries_get**](docs/ServerConfigResultEntryApi.md#server_config_result_entries_get) | **GET** /server/ConfigResultEntries | Get a list of 'serverConfigResultEntry' instances +*ServerConfigResultEntryApi* | [**server_config_result_entries_moid_get**](docs/ServerConfigResultEntryApi.md#server_config_result_entries_moid_get) | **GET** /server/ConfigResultEntries/{moid} | Get a specific instance of 'serverConfigResultEntry' +*ServerProfileApi* | [**server_profiles_get**](docs/ServerProfileApi.md#server_profiles_get) | **GET** /server/Profiles | Get a list of 'serverProfile' instances +*ServerProfileApi* | [**server_profiles_moid_delete**](docs/ServerProfileApi.md#server_profiles_moid_delete) | **DELETE** /server/Profiles/{moid} | Delete an instance of 'serverProfile' +*ServerProfileApi* | [**server_profiles_moid_get**](docs/ServerProfileApi.md#server_profiles_moid_get) | **GET** /server/Profiles/{moid} | Get a specific instance of 'serverProfile' +*ServerProfileApi* | [**server_profiles_moid_patch**](docs/ServerProfileApi.md#server_profiles_moid_patch) | **PATCH** /server/Profiles/{moid} | Update an instance of 'serverProfile' +*ServerProfileApi* | [**server_profiles_moid_post**](docs/ServerProfileApi.md#server_profiles_moid_post) | **POST** /server/Profiles/{moid} | Update an instance of 'serverProfile' +*ServerProfileApi* | [**server_profiles_post**](docs/ServerProfileApi.md#server_profiles_post) | **POST** /server/Profiles | Create an instance of 'serverProfile' +*SmtpPolicyApi* | [**smtp_policies_get**](docs/SmtpPolicyApi.md#smtp_policies_get) | **GET** /smtp/Policies | Get a list of 'smtpPolicy' instances +*SmtpPolicyApi* | [**smtp_policies_moid_delete**](docs/SmtpPolicyApi.md#smtp_policies_moid_delete) | **DELETE** /smtp/Policies/{moid} | Delete an instance of 'smtpPolicy' +*SmtpPolicyApi* | [**smtp_policies_moid_get**](docs/SmtpPolicyApi.md#smtp_policies_moid_get) | **GET** /smtp/Policies/{moid} | Get a specific instance of 'smtpPolicy' +*SmtpPolicyApi* | [**smtp_policies_moid_patch**](docs/SmtpPolicyApi.md#smtp_policies_moid_patch) | **PATCH** /smtp/Policies/{moid} | Update an instance of 'smtpPolicy' +*SmtpPolicyApi* | [**smtp_policies_moid_post**](docs/SmtpPolicyApi.md#smtp_policies_moid_post) | **POST** /smtp/Policies/{moid} | Update an instance of 'smtpPolicy' +*SmtpPolicyApi* | [**smtp_policies_post**](docs/SmtpPolicyApi.md#smtp_policies_post) | **POST** /smtp/Policies | Create an instance of 'smtpPolicy' +*SnmpPolicyApi* | [**snmp_policies_get**](docs/SnmpPolicyApi.md#snmp_policies_get) | **GET** /snmp/Policies | Get a list of 'snmpPolicy' instances +*SnmpPolicyApi* | [**snmp_policies_moid_delete**](docs/SnmpPolicyApi.md#snmp_policies_moid_delete) | **DELETE** /snmp/Policies/{moid} | Delete an instance of 'snmpPolicy' +*SnmpPolicyApi* | [**snmp_policies_moid_get**](docs/SnmpPolicyApi.md#snmp_policies_moid_get) | **GET** /snmp/Policies/{moid} | Get a specific instance of 'snmpPolicy' +*SnmpPolicyApi* | [**snmp_policies_moid_patch**](docs/SnmpPolicyApi.md#snmp_policies_moid_patch) | **PATCH** /snmp/Policies/{moid} | Update an instance of 'snmpPolicy' +*SnmpPolicyApi* | [**snmp_policies_moid_post**](docs/SnmpPolicyApi.md#snmp_policies_moid_post) | **POST** /snmp/Policies/{moid} | Update an instance of 'snmpPolicy' +*SnmpPolicyApi* | [**snmp_policies_post**](docs/SnmpPolicyApi.md#snmp_policies_post) | **POST** /snmp/Policies | Create an instance of 'snmpPolicy' +*SoftwarerepositoryAuthorizationApi* | [**softwarerepository_authorizations_get**](docs/SoftwarerepositoryAuthorizationApi.md#softwarerepository_authorizations_get) | **GET** /softwarerepository/Authorizations | Get a list of 'softwarerepositoryAuthorization' instances +*SoftwarerepositoryAuthorizationApi* | [**softwarerepository_authorizations_moid_get**](docs/SoftwarerepositoryAuthorizationApi.md#softwarerepository_authorizations_moid_get) | **GET** /softwarerepository/Authorizations/{moid} | Get a specific instance of 'softwarerepositoryAuthorization' +*SoftwarerepositoryAuthorizationApi* | [**softwarerepository_authorizations_moid_patch**](docs/SoftwarerepositoryAuthorizationApi.md#softwarerepository_authorizations_moid_patch) | **PATCH** /softwarerepository/Authorizations/{moid} | Update an instance of 'softwarerepositoryAuthorization' +*SoftwarerepositoryAuthorizationApi* | [**softwarerepository_authorizations_moid_post**](docs/SoftwarerepositoryAuthorizationApi.md#softwarerepository_authorizations_moid_post) | **POST** /softwarerepository/Authorizations/{moid} | Update an instance of 'softwarerepositoryAuthorization' +*SoftwarerepositoryAuthorizationApi* | [**softwarerepository_authorizations_post**](docs/SoftwarerepositoryAuthorizationApi.md#softwarerepository_authorizations_post) | **POST** /softwarerepository/Authorizations | Create an instance of 'softwarerepositoryAuthorization' +*SolPolicyApi* | [**sol_policies_get**](docs/SolPolicyApi.md#sol_policies_get) | **GET** /sol/Policies | Get a list of 'solPolicy' instances +*SolPolicyApi* | [**sol_policies_moid_delete**](docs/SolPolicyApi.md#sol_policies_moid_delete) | **DELETE** /sol/Policies/{moid} | Delete an instance of 'solPolicy' +*SolPolicyApi* | [**sol_policies_moid_get**](docs/SolPolicyApi.md#sol_policies_moid_get) | **GET** /sol/Policies/{moid} | Get a specific instance of 'solPolicy' +*SolPolicyApi* | [**sol_policies_moid_patch**](docs/SolPolicyApi.md#sol_policies_moid_patch) | **PATCH** /sol/Policies/{moid} | Update an instance of 'solPolicy' +*SolPolicyApi* | [**sol_policies_moid_post**](docs/SolPolicyApi.md#sol_policies_moid_post) | **POST** /sol/Policies/{moid} | Update an instance of 'solPolicy' +*SolPolicyApi* | [**sol_policies_post**](docs/SolPolicyApi.md#sol_policies_post) | **POST** /sol/Policies | Create an instance of 'solPolicy' +*SshPolicyApi* | [**ssh_policies_get**](docs/SshPolicyApi.md#ssh_policies_get) | **GET** /ssh/Policies | Get a list of 'sshPolicy' instances +*SshPolicyApi* | [**ssh_policies_moid_delete**](docs/SshPolicyApi.md#ssh_policies_moid_delete) | **DELETE** /ssh/Policies/{moid} | Delete an instance of 'sshPolicy' +*SshPolicyApi* | [**ssh_policies_moid_get**](docs/SshPolicyApi.md#ssh_policies_moid_get) | **GET** /ssh/Policies/{moid} | Get a specific instance of 'sshPolicy' +*SshPolicyApi* | [**ssh_policies_moid_patch**](docs/SshPolicyApi.md#ssh_policies_moid_patch) | **PATCH** /ssh/Policies/{moid} | Update an instance of 'sshPolicy' +*SshPolicyApi* | [**ssh_policies_moid_post**](docs/SshPolicyApi.md#ssh_policies_moid_post) | **POST** /ssh/Policies/{moid} | Update an instance of 'sshPolicy' +*SshPolicyApi* | [**ssh_policies_post**](docs/SshPolicyApi.md#ssh_policies_post) | **POST** /ssh/Policies | Create an instance of 'sshPolicy' +*StorageControllerApi* | [**storage_controllers_get**](docs/StorageControllerApi.md#storage_controllers_get) | **GET** /storage/Controllers | Get a list of 'storageController' instances +*StorageControllerApi* | [**storage_controllers_moid_get**](docs/StorageControllerApi.md#storage_controllers_moid_get) | **GET** /storage/Controllers/{moid} | Get a specific instance of 'storageController' +*StorageControllerApi* | [**storage_controllers_moid_patch**](docs/StorageControllerApi.md#storage_controllers_moid_patch) | **PATCH** /storage/Controllers/{moid} | Update an instance of 'storageController' +*StorageControllerApi* | [**storage_controllers_moid_post**](docs/StorageControllerApi.md#storage_controllers_moid_post) | **POST** /storage/Controllers/{moid} | Update an instance of 'storageController' +*StorageDiskGroupPolicyApi* | [**storage_disk_group_policies_get**](docs/StorageDiskGroupPolicyApi.md#storage_disk_group_policies_get) | **GET** /storage/DiskGroupPolicies | Get a list of 'storageDiskGroupPolicy' instances +*StorageDiskGroupPolicyApi* | [**storage_disk_group_policies_moid_delete**](docs/StorageDiskGroupPolicyApi.md#storage_disk_group_policies_moid_delete) | **DELETE** /storage/DiskGroupPolicies/{moid} | Delete an instance of 'storageDiskGroupPolicy' +*StorageDiskGroupPolicyApi* | [**storage_disk_group_policies_moid_get**](docs/StorageDiskGroupPolicyApi.md#storage_disk_group_policies_moid_get) | **GET** /storage/DiskGroupPolicies/{moid} | Get a specific instance of 'storageDiskGroupPolicy' +*StorageDiskGroupPolicyApi* | [**storage_disk_group_policies_moid_patch**](docs/StorageDiskGroupPolicyApi.md#storage_disk_group_policies_moid_patch) | **PATCH** /storage/DiskGroupPolicies/{moid} | Update an instance of 'storageDiskGroupPolicy' +*StorageDiskGroupPolicyApi* | [**storage_disk_group_policies_moid_post**](docs/StorageDiskGroupPolicyApi.md#storage_disk_group_policies_moid_post) | **POST** /storage/DiskGroupPolicies/{moid} | Update an instance of 'storageDiskGroupPolicy' +*StorageDiskGroupPolicyApi* | [**storage_disk_group_policies_post**](docs/StorageDiskGroupPolicyApi.md#storage_disk_group_policies_post) | **POST** /storage/DiskGroupPolicies | Create an instance of 'storageDiskGroupPolicy' +*StorageEnclosureApi* | [**storage_enclosures_get**](docs/StorageEnclosureApi.md#storage_enclosures_get) | **GET** /storage/Enclosures | Get a list of 'storageEnclosure' instances +*StorageEnclosureApi* | [**storage_enclosures_moid_get**](docs/StorageEnclosureApi.md#storage_enclosures_moid_get) | **GET** /storage/Enclosures/{moid} | Get a specific instance of 'storageEnclosure' +*StorageEnclosureApi* | [**storage_enclosures_moid_patch**](docs/StorageEnclosureApi.md#storage_enclosures_moid_patch) | **PATCH** /storage/Enclosures/{moid} | Update an instance of 'storageEnclosure' +*StorageEnclosureApi* | [**storage_enclosures_moid_post**](docs/StorageEnclosureApi.md#storage_enclosures_moid_post) | **POST** /storage/Enclosures/{moid} | Update an instance of 'storageEnclosure' +*StorageFlexFlashControllerApi* | [**storage_flex_flash_controllers_get**](docs/StorageFlexFlashControllerApi.md#storage_flex_flash_controllers_get) | **GET** /storage/FlexFlashControllers | Get a list of 'storageFlexFlashController' instances +*StorageFlexFlashControllerApi* | [**storage_flex_flash_controllers_moid_get**](docs/StorageFlexFlashControllerApi.md#storage_flex_flash_controllers_moid_get) | **GET** /storage/FlexFlashControllers/{moid} | Get a specific instance of 'storageFlexFlashController' +*StorageFlexFlashControllerApi* | [**storage_flex_flash_controllers_moid_patch**](docs/StorageFlexFlashControllerApi.md#storage_flex_flash_controllers_moid_patch) | **PATCH** /storage/FlexFlashControllers/{moid} | Update an instance of 'storageFlexFlashController' +*StorageFlexFlashControllerApi* | [**storage_flex_flash_controllers_moid_post**](docs/StorageFlexFlashControllerApi.md#storage_flex_flash_controllers_moid_post) | **POST** /storage/FlexFlashControllers/{moid} | Update an instance of 'storageFlexFlashController' +*StorageFlexFlashControllerPropsApi* | [**storage_flex_flash_controller_props_get**](docs/StorageFlexFlashControllerPropsApi.md#storage_flex_flash_controller_props_get) | **GET** /storage/FlexFlashControllerProps | Get a list of 'storageFlexFlashControllerProps' instances +*StorageFlexFlashControllerPropsApi* | [**storage_flex_flash_controller_props_moid_get**](docs/StorageFlexFlashControllerPropsApi.md#storage_flex_flash_controller_props_moid_get) | **GET** /storage/FlexFlashControllerProps/{moid} | Get a specific instance of 'storageFlexFlashControllerProps' +*StorageFlexFlashControllerPropsApi* | [**storage_flex_flash_controller_props_moid_patch**](docs/StorageFlexFlashControllerPropsApi.md#storage_flex_flash_controller_props_moid_patch) | **PATCH** /storage/FlexFlashControllerProps/{moid} | Update an instance of 'storageFlexFlashControllerProps' +*StorageFlexFlashControllerPropsApi* | [**storage_flex_flash_controller_props_moid_post**](docs/StorageFlexFlashControllerPropsApi.md#storage_flex_flash_controller_props_moid_post) | **POST** /storage/FlexFlashControllerProps/{moid} | Update an instance of 'storageFlexFlashControllerProps' +*StorageFlexFlashPhysicalDriveApi* | [**storage_flex_flash_physical_drives_get**](docs/StorageFlexFlashPhysicalDriveApi.md#storage_flex_flash_physical_drives_get) | **GET** /storage/FlexFlashPhysicalDrives | Get a list of 'storageFlexFlashPhysicalDrive' instances +*StorageFlexFlashPhysicalDriveApi* | [**storage_flex_flash_physical_drives_moid_get**](docs/StorageFlexFlashPhysicalDriveApi.md#storage_flex_flash_physical_drives_moid_get) | **GET** /storage/FlexFlashPhysicalDrives/{moid} | Get a specific instance of 'storageFlexFlashPhysicalDrive' +*StorageFlexFlashPhysicalDriveApi* | [**storage_flex_flash_physical_drives_moid_patch**](docs/StorageFlexFlashPhysicalDriveApi.md#storage_flex_flash_physical_drives_moid_patch) | **PATCH** /storage/FlexFlashPhysicalDrives/{moid} | Update an instance of 'storageFlexFlashPhysicalDrive' +*StorageFlexFlashPhysicalDriveApi* | [**storage_flex_flash_physical_drives_moid_post**](docs/StorageFlexFlashPhysicalDriveApi.md#storage_flex_flash_physical_drives_moid_post) | **POST** /storage/FlexFlashPhysicalDrives/{moid} | Update an instance of 'storageFlexFlashPhysicalDrive' +*StorageFlexFlashVirtualDriveApi* | [**storage_flex_flash_virtual_drives_get**](docs/StorageFlexFlashVirtualDriveApi.md#storage_flex_flash_virtual_drives_get) | **GET** /storage/FlexFlashVirtualDrives | Get a list of 'storageFlexFlashVirtualDrive' instances +*StorageFlexFlashVirtualDriveApi* | [**storage_flex_flash_virtual_drives_moid_get**](docs/StorageFlexFlashVirtualDriveApi.md#storage_flex_flash_virtual_drives_moid_get) | **GET** /storage/FlexFlashVirtualDrives/{moid} | Get a specific instance of 'storageFlexFlashVirtualDrive' +*StorageFlexFlashVirtualDriveApi* | [**storage_flex_flash_virtual_drives_moid_patch**](docs/StorageFlexFlashVirtualDriveApi.md#storage_flex_flash_virtual_drives_moid_patch) | **PATCH** /storage/FlexFlashVirtualDrives/{moid} | Update an instance of 'storageFlexFlashVirtualDrive' +*StorageFlexFlashVirtualDriveApi* | [**storage_flex_flash_virtual_drives_moid_post**](docs/StorageFlexFlashVirtualDriveApi.md#storage_flex_flash_virtual_drives_moid_post) | **POST** /storage/FlexFlashVirtualDrives/{moid} | Update an instance of 'storageFlexFlashVirtualDrive' +*StorageFlexUtilControllerApi* | [**storage_flex_util_controllers_get**](docs/StorageFlexUtilControllerApi.md#storage_flex_util_controllers_get) | **GET** /storage/FlexUtilControllers | Get a list of 'storageFlexUtilController' instances +*StorageFlexUtilControllerApi* | [**storage_flex_util_controllers_moid_get**](docs/StorageFlexUtilControllerApi.md#storage_flex_util_controllers_moid_get) | **GET** /storage/FlexUtilControllers/{moid} | Get a specific instance of 'storageFlexUtilController' +*StorageFlexUtilControllerApi* | [**storage_flex_util_controllers_moid_patch**](docs/StorageFlexUtilControllerApi.md#storage_flex_util_controllers_moid_patch) | **PATCH** /storage/FlexUtilControllers/{moid} | Update an instance of 'storageFlexUtilController' +*StorageFlexUtilControllerApi* | [**storage_flex_util_controllers_moid_post**](docs/StorageFlexUtilControllerApi.md#storage_flex_util_controllers_moid_post) | **POST** /storage/FlexUtilControllers/{moid} | Update an instance of 'storageFlexUtilController' +*StorageFlexUtilPhysicalDriveApi* | [**storage_flex_util_physical_drives_get**](docs/StorageFlexUtilPhysicalDriveApi.md#storage_flex_util_physical_drives_get) | **GET** /storage/FlexUtilPhysicalDrives | Get a list of 'storageFlexUtilPhysicalDrive' instances +*StorageFlexUtilPhysicalDriveApi* | [**storage_flex_util_physical_drives_moid_get**](docs/StorageFlexUtilPhysicalDriveApi.md#storage_flex_util_physical_drives_moid_get) | **GET** /storage/FlexUtilPhysicalDrives/{moid} | Get a specific instance of 'storageFlexUtilPhysicalDrive' +*StorageFlexUtilPhysicalDriveApi* | [**storage_flex_util_physical_drives_moid_patch**](docs/StorageFlexUtilPhysicalDriveApi.md#storage_flex_util_physical_drives_moid_patch) | **PATCH** /storage/FlexUtilPhysicalDrives/{moid} | Update an instance of 'storageFlexUtilPhysicalDrive' +*StorageFlexUtilPhysicalDriveApi* | [**storage_flex_util_physical_drives_moid_post**](docs/StorageFlexUtilPhysicalDriveApi.md#storage_flex_util_physical_drives_moid_post) | **POST** /storage/FlexUtilPhysicalDrives/{moid} | Update an instance of 'storageFlexUtilPhysicalDrive' +*StorageFlexUtilVirtualDriveApi* | [**storage_flex_util_virtual_drives_get**](docs/StorageFlexUtilVirtualDriveApi.md#storage_flex_util_virtual_drives_get) | **GET** /storage/FlexUtilVirtualDrives | Get a list of 'storageFlexUtilVirtualDrive' instances +*StorageFlexUtilVirtualDriveApi* | [**storage_flex_util_virtual_drives_moid_get**](docs/StorageFlexUtilVirtualDriveApi.md#storage_flex_util_virtual_drives_moid_get) | **GET** /storage/FlexUtilVirtualDrives/{moid} | Get a specific instance of 'storageFlexUtilVirtualDrive' +*StorageFlexUtilVirtualDriveApi* | [**storage_flex_util_virtual_drives_moid_patch**](docs/StorageFlexUtilVirtualDriveApi.md#storage_flex_util_virtual_drives_moid_patch) | **PATCH** /storage/FlexUtilVirtualDrives/{moid} | Update an instance of 'storageFlexUtilVirtualDrive' +*StorageFlexUtilVirtualDriveApi* | [**storage_flex_util_virtual_drives_moid_post**](docs/StorageFlexUtilVirtualDriveApi.md#storage_flex_util_virtual_drives_moid_post) | **POST** /storage/FlexUtilVirtualDrives/{moid} | Update an instance of 'storageFlexUtilVirtualDrive' +*StoragePhysicalDiskApi* | [**storage_physical_disks_get**](docs/StoragePhysicalDiskApi.md#storage_physical_disks_get) | **GET** /storage/PhysicalDisks | Get a list of 'storagePhysicalDisk' instances +*StoragePhysicalDiskApi* | [**storage_physical_disks_moid_get**](docs/StoragePhysicalDiskApi.md#storage_physical_disks_moid_get) | **GET** /storage/PhysicalDisks/{moid} | Get a specific instance of 'storagePhysicalDisk' +*StoragePhysicalDiskApi* | [**storage_physical_disks_moid_patch**](docs/StoragePhysicalDiskApi.md#storage_physical_disks_moid_patch) | **PATCH** /storage/PhysicalDisks/{moid} | Update an instance of 'storagePhysicalDisk' +*StoragePhysicalDiskApi* | [**storage_physical_disks_moid_post**](docs/StoragePhysicalDiskApi.md#storage_physical_disks_moid_post) | **POST** /storage/PhysicalDisks/{moid} | Update an instance of 'storagePhysicalDisk' +*StoragePhysicalDiskExtensionApi* | [**storage_physical_disk_extensions_get**](docs/StoragePhysicalDiskExtensionApi.md#storage_physical_disk_extensions_get) | **GET** /storage/PhysicalDiskExtensions | Get a list of 'storagePhysicalDiskExtension' instances +*StoragePhysicalDiskExtensionApi* | [**storage_physical_disk_extensions_moid_get**](docs/StoragePhysicalDiskExtensionApi.md#storage_physical_disk_extensions_moid_get) | **GET** /storage/PhysicalDiskExtensions/{moid} | Get a specific instance of 'storagePhysicalDiskExtension' +*StoragePhysicalDiskExtensionApi* | [**storage_physical_disk_extensions_moid_patch**](docs/StoragePhysicalDiskExtensionApi.md#storage_physical_disk_extensions_moid_patch) | **PATCH** /storage/PhysicalDiskExtensions/{moid} | Update an instance of 'storagePhysicalDiskExtension' +*StoragePhysicalDiskExtensionApi* | [**storage_physical_disk_extensions_moid_post**](docs/StoragePhysicalDiskExtensionApi.md#storage_physical_disk_extensions_moid_post) | **POST** /storage/PhysicalDiskExtensions/{moid} | Update an instance of 'storagePhysicalDiskExtension' +*StoragePhysicalDiskUsageApi* | [**storage_physical_disk_usages_get**](docs/StoragePhysicalDiskUsageApi.md#storage_physical_disk_usages_get) | **GET** /storage/PhysicalDiskUsages | Get a list of 'storagePhysicalDiskUsage' instances +*StoragePhysicalDiskUsageApi* | [**storage_physical_disk_usages_moid_get**](docs/StoragePhysicalDiskUsageApi.md#storage_physical_disk_usages_moid_get) | **GET** /storage/PhysicalDiskUsages/{moid} | Get a specific instance of 'storagePhysicalDiskUsage' +*StoragePhysicalDiskUsageApi* | [**storage_physical_disk_usages_moid_patch**](docs/StoragePhysicalDiskUsageApi.md#storage_physical_disk_usages_moid_patch) | **PATCH** /storage/PhysicalDiskUsages/{moid} | Update an instance of 'storagePhysicalDiskUsage' +*StoragePhysicalDiskUsageApi* | [**storage_physical_disk_usages_moid_post**](docs/StoragePhysicalDiskUsageApi.md#storage_physical_disk_usages_moid_post) | **POST** /storage/PhysicalDiskUsages/{moid} | Update an instance of 'storagePhysicalDiskUsage' +*StorageSasExpanderApi* | [**storage_sas_expanders_get**](docs/StorageSasExpanderApi.md#storage_sas_expanders_get) | **GET** /storage/SasExpanders | Get a list of 'storageSasExpander' instances +*StorageSasExpanderApi* | [**storage_sas_expanders_moid_get**](docs/StorageSasExpanderApi.md#storage_sas_expanders_moid_get) | **GET** /storage/SasExpanders/{moid} | Get a specific instance of 'storageSasExpander' +*StorageSasExpanderApi* | [**storage_sas_expanders_moid_patch**](docs/StorageSasExpanderApi.md#storage_sas_expanders_moid_patch) | **PATCH** /storage/SasExpanders/{moid} | Update an instance of 'storageSasExpander' +*StorageSasExpanderApi* | [**storage_sas_expanders_moid_post**](docs/StorageSasExpanderApi.md#storage_sas_expanders_moid_post) | **POST** /storage/SasExpanders/{moid} | Update an instance of 'storageSasExpander' +*StorageStoragePolicyApi* | [**storage_storage_policies_get**](docs/StorageStoragePolicyApi.md#storage_storage_policies_get) | **GET** /storage/StoragePolicies | Get a list of 'storageStoragePolicy' instances +*StorageStoragePolicyApi* | [**storage_storage_policies_moid_delete**](docs/StorageStoragePolicyApi.md#storage_storage_policies_moid_delete) | **DELETE** /storage/StoragePolicies/{moid} | Delete an instance of 'storageStoragePolicy' +*StorageStoragePolicyApi* | [**storage_storage_policies_moid_get**](docs/StorageStoragePolicyApi.md#storage_storage_policies_moid_get) | **GET** /storage/StoragePolicies/{moid} | Get a specific instance of 'storageStoragePolicy' +*StorageStoragePolicyApi* | [**storage_storage_policies_moid_patch**](docs/StorageStoragePolicyApi.md#storage_storage_policies_moid_patch) | **PATCH** /storage/StoragePolicies/{moid} | Update an instance of 'storageStoragePolicy' +*StorageStoragePolicyApi* | [**storage_storage_policies_moid_post**](docs/StorageStoragePolicyApi.md#storage_storage_policies_moid_post) | **POST** /storage/StoragePolicies/{moid} | Update an instance of 'storageStoragePolicy' +*StorageStoragePolicyApi* | [**storage_storage_policies_post**](docs/StorageStoragePolicyApi.md#storage_storage_policies_post) | **POST** /storage/StoragePolicies | Create an instance of 'storageStoragePolicy' +*StorageVdMemberEpApi* | [**storage_vd_member_eps_get**](docs/StorageVdMemberEpApi.md#storage_vd_member_eps_get) | **GET** /storage/VdMemberEps | Get a list of 'storageVdMemberEp' instances +*StorageVdMemberEpApi* | [**storage_vd_member_eps_moid_get**](docs/StorageVdMemberEpApi.md#storage_vd_member_eps_moid_get) | **GET** /storage/VdMemberEps/{moid} | Get a specific instance of 'storageVdMemberEp' +*StorageVdMemberEpApi* | [**storage_vd_member_eps_moid_patch**](docs/StorageVdMemberEpApi.md#storage_vd_member_eps_moid_patch) | **PATCH** /storage/VdMemberEps/{moid} | Update an instance of 'storageVdMemberEp' +*StorageVdMemberEpApi* | [**storage_vd_member_eps_moid_post**](docs/StorageVdMemberEpApi.md#storage_vd_member_eps_moid_post) | **POST** /storage/VdMemberEps/{moid} | Update an instance of 'storageVdMemberEp' +*StorageVirtualDriveApi* | [**storage_virtual_drives_get**](docs/StorageVirtualDriveApi.md#storage_virtual_drives_get) | **GET** /storage/VirtualDrives | Get a list of 'storageVirtualDrive' instances +*StorageVirtualDriveApi* | [**storage_virtual_drives_moid_get**](docs/StorageVirtualDriveApi.md#storage_virtual_drives_moid_get) | **GET** /storage/VirtualDrives/{moid} | Get a specific instance of 'storageVirtualDrive' +*StorageVirtualDriveApi* | [**storage_virtual_drives_moid_patch**](docs/StorageVirtualDriveApi.md#storage_virtual_drives_moid_patch) | **PATCH** /storage/VirtualDrives/{moid} | Update an instance of 'storageVirtualDrive' +*StorageVirtualDriveApi* | [**storage_virtual_drives_moid_post**](docs/StorageVirtualDriveApi.md#storage_virtual_drives_moid_post) | **POST** /storage/VirtualDrives/{moid} | Update an instance of 'storageVirtualDrive' +*StorageVirtualDriveExtensionApi* | [**storage_virtual_drive_extensions_get**](docs/StorageVirtualDriveExtensionApi.md#storage_virtual_drive_extensions_get) | **GET** /storage/VirtualDriveExtensions | Get a list of 'storageVirtualDriveExtension' instances +*StorageVirtualDriveExtensionApi* | [**storage_virtual_drive_extensions_moid_get**](docs/StorageVirtualDriveExtensionApi.md#storage_virtual_drive_extensions_moid_get) | **GET** /storage/VirtualDriveExtensions/{moid} | Get a specific instance of 'storageVirtualDriveExtension' +*StorageVirtualDriveExtensionApi* | [**storage_virtual_drive_extensions_moid_patch**](docs/StorageVirtualDriveExtensionApi.md#storage_virtual_drive_extensions_moid_patch) | **PATCH** /storage/VirtualDriveExtensions/{moid} | Update an instance of 'storageVirtualDriveExtension' +*StorageVirtualDriveExtensionApi* | [**storage_virtual_drive_extensions_moid_post**](docs/StorageVirtualDriveExtensionApi.md#storage_virtual_drive_extensions_moid_post) | **POST** /storage/VirtualDriveExtensions/{moid} | Update an instance of 'storageVirtualDriveExtension' +*SyslogPolicyApi* | [**syslog_policies_get**](docs/SyslogPolicyApi.md#syslog_policies_get) | **GET** /syslog/Policies | Get a list of 'syslogPolicy' instances +*SyslogPolicyApi* | [**syslog_policies_moid_delete**](docs/SyslogPolicyApi.md#syslog_policies_moid_delete) | **DELETE** /syslog/Policies/{moid} | Delete an instance of 'syslogPolicy' +*SyslogPolicyApi* | [**syslog_policies_moid_get**](docs/SyslogPolicyApi.md#syslog_policies_moid_get) | **GET** /syslog/Policies/{moid} | Get a specific instance of 'syslogPolicy' +*SyslogPolicyApi* | [**syslog_policies_moid_patch**](docs/SyslogPolicyApi.md#syslog_policies_moid_patch) | **PATCH** /syslog/Policies/{moid} | Update an instance of 'syslogPolicy' +*SyslogPolicyApi* | [**syslog_policies_moid_post**](docs/SyslogPolicyApi.md#syslog_policies_moid_post) | **POST** /syslog/Policies/{moid} | Update an instance of 'syslogPolicy' +*SyslogPolicyApi* | [**syslog_policies_post**](docs/SyslogPolicyApi.md#syslog_policies_post) | **POST** /syslog/Policies | Create an instance of 'syslogPolicy' +*TaskWorkflowActionApi* | [**task_workflow_actions_get**](docs/TaskWorkflowActionApi.md#task_workflow_actions_get) | **GET** /task/WorkflowActions | Get a list of 'taskWorkflowAction' instances +*TaskWorkflowActionApi* | [**task_workflow_actions_moid_get**](docs/TaskWorkflowActionApi.md#task_workflow_actions_moid_get) | **GET** /task/WorkflowActions/{moid} | Get a specific instance of 'taskWorkflowAction' +*TaskWorkflowActionApi* | [**task_workflow_actions_moid_patch**](docs/TaskWorkflowActionApi.md#task_workflow_actions_moid_patch) | **PATCH** /task/WorkflowActions/{moid} | Update an instance of 'taskWorkflowAction' +*TaskWorkflowActionApi* | [**task_workflow_actions_moid_post**](docs/TaskWorkflowActionApi.md#task_workflow_actions_moid_post) | **POST** /task/WorkflowActions/{moid} | Update an instance of 'taskWorkflowAction' +*TaskWorkflowActionApi* | [**task_workflow_actions_post**](docs/TaskWorkflowActionApi.md#task_workflow_actions_post) | **POST** /task/WorkflowActions | Create an instance of 'taskWorkflowAction' +*TelemetryTimeSeriesApi* | [**telemetry_time_series_post**](docs/TelemetryTimeSeriesApi.md#telemetry_time_series_post) | **POST** /telemetry/TimeSeries | Create an instance of 'telemetryTimeSeries' +*TerminalAuditLogApi* | [**terminal_audit_logs_get**](docs/TerminalAuditLogApi.md#terminal_audit_logs_get) | **GET** /terminal/AuditLogs | Get a list of 'terminalAuditLog' instances +*TerminalAuditLogApi* | [**terminal_audit_logs_moid_get**](docs/TerminalAuditLogApi.md#terminal_audit_logs_moid_get) | **GET** /terminal/AuditLogs/{moid} | Get a specific instance of 'terminalAuditLog' +*TestcryptAdministratorApi* | [**testcrypt_administrators_get**](docs/TestcryptAdministratorApi.md#testcrypt_administrators_get) | **GET** /testcrypt/Administrators | Get a list of 'testcryptAdministrator' instances +*TestcryptAdministratorApi* | [**testcrypt_administrators_moid_get**](docs/TestcryptAdministratorApi.md#testcrypt_administrators_moid_get) | **GET** /testcrypt/Administrators/{moid} | Get a specific instance of 'testcryptAdministrator' +*TestcryptAdministratorApi* | [**testcrypt_administrators_moid_patch**](docs/TestcryptAdministratorApi.md#testcrypt_administrators_moid_patch) | **PATCH** /testcrypt/Administrators/{moid} | Update an instance of 'testcryptAdministrator' +*TestcryptAdministratorApi* | [**testcrypt_administrators_moid_post**](docs/TestcryptAdministratorApi.md#testcrypt_administrators_moid_post) | **POST** /testcrypt/Administrators/{moid} | Update an instance of 'testcryptAdministrator' +*TestcryptAdministratorApi* | [**testcrypt_administrators_post**](docs/TestcryptAdministratorApi.md#testcrypt_administrators_post) | **POST** /testcrypt/Administrators | Create an instance of 'testcryptAdministrator' +*TestcryptCredentialApi* | [**testcrypt_credentials_get**](docs/TestcryptCredentialApi.md#testcrypt_credentials_get) | **GET** /testcrypt/Credentials | Get a list of 'testcryptCredential' instances +*TestcryptCredentialApi* | [**testcrypt_credentials_moid_delete**](docs/TestcryptCredentialApi.md#testcrypt_credentials_moid_delete) | **DELETE** /testcrypt/Credentials/{moid} | Delete an instance of 'testcryptCredential' +*TestcryptCredentialApi* | [**testcrypt_credentials_moid_get**](docs/TestcryptCredentialApi.md#testcrypt_credentials_moid_get) | **GET** /testcrypt/Credentials/{moid} | Get a specific instance of 'testcryptCredential' +*TestcryptCredentialApi* | [**testcrypt_credentials_moid_patch**](docs/TestcryptCredentialApi.md#testcrypt_credentials_moid_patch) | **PATCH** /testcrypt/Credentials/{moid} | Update an instance of 'testcryptCredential' +*TestcryptCredentialApi* | [**testcrypt_credentials_moid_post**](docs/TestcryptCredentialApi.md#testcrypt_credentials_moid_post) | **POST** /testcrypt/Credentials/{moid} | Update an instance of 'testcryptCredential' +*TestcryptCredentialApi* | [**testcrypt_credentials_post**](docs/TestcryptCredentialApi.md#testcrypt_credentials_post) | **POST** /testcrypt/Credentials | Create an instance of 'testcryptCredential' +*TestcryptReadOnlyUserApi* | [**testcrypt_read_only_users_get**](docs/TestcryptReadOnlyUserApi.md#testcrypt_read_only_users_get) | **GET** /testcrypt/ReadOnlyUsers | Get a list of 'testcryptReadOnlyUser' instances +*TestcryptReadOnlyUserApi* | [**testcrypt_read_only_users_moid_delete**](docs/TestcryptReadOnlyUserApi.md#testcrypt_read_only_users_moid_delete) | **DELETE** /testcrypt/ReadOnlyUsers/{moid} | Delete an instance of 'testcryptReadOnlyUser' +*TestcryptReadOnlyUserApi* | [**testcrypt_read_only_users_moid_get**](docs/TestcryptReadOnlyUserApi.md#testcrypt_read_only_users_moid_get) | **GET** /testcrypt/ReadOnlyUsers/{moid} | Get a specific instance of 'testcryptReadOnlyUser' +*TestcryptReadOnlyUserApi* | [**testcrypt_read_only_users_moid_patch**](docs/TestcryptReadOnlyUserApi.md#testcrypt_read_only_users_moid_patch) | **PATCH** /testcrypt/ReadOnlyUsers/{moid} | Update an instance of 'testcryptReadOnlyUser' +*TestcryptReadOnlyUserApi* | [**testcrypt_read_only_users_moid_post**](docs/TestcryptReadOnlyUserApi.md#testcrypt_read_only_users_moid_post) | **POST** /testcrypt/ReadOnlyUsers/{moid} | Update an instance of 'testcryptReadOnlyUser' +*TestcryptReadOnlyUserApi* | [**testcrypt_read_only_users_post**](docs/TestcryptReadOnlyUserApi.md#testcrypt_read_only_users_post) | **POST** /testcrypt/ReadOnlyUsers | Create an instance of 'testcryptReadOnlyUser' +*TestcryptShadowCredentialApi* | [**testcrypt_shadow_credentials_get**](docs/TestcryptShadowCredentialApi.md#testcrypt_shadow_credentials_get) | **GET** /testcrypt/ShadowCredentials | Get a list of 'testcryptShadowCredential' instances +*TestcryptShadowCredentialApi* | [**testcrypt_shadow_credentials_moid_get**](docs/TestcryptShadowCredentialApi.md#testcrypt_shadow_credentials_moid_get) | **GET** /testcrypt/ShadowCredentials/{moid} | Get a specific instance of 'testcryptShadowCredential' +*TopSystemApi* | [**top_systems_get**](docs/TopSystemApi.md#top_systems_get) | **GET** /top/Systems | Get a list of 'topSystem' instances +*TopSystemApi* | [**top_systems_moid_get**](docs/TopSystemApi.md#top_systems_moid_get) | **GET** /top/Systems/{moid} | Get a specific instance of 'topSystem' +*TopSystemApi* | [**top_systems_moid_patch**](docs/TopSystemApi.md#top_systems_moid_patch) | **PATCH** /top/Systems/{moid} | Update an instance of 'topSystem' +*TopSystemApi* | [**top_systems_moid_post**](docs/TopSystemApi.md#top_systems_moid_post) | **POST** /top/Systems/{moid} | Update an instance of 'topSystem' +*VmediaPolicyApi* | [**vmedia_policies_get**](docs/VmediaPolicyApi.md#vmedia_policies_get) | **GET** /vmedia/Policies | Get a list of 'vmediaPolicy' instances +*VmediaPolicyApi* | [**vmedia_policies_moid_delete**](docs/VmediaPolicyApi.md#vmedia_policies_moid_delete) | **DELETE** /vmedia/Policies/{moid} | Delete an instance of 'vmediaPolicy' +*VmediaPolicyApi* | [**vmedia_policies_moid_get**](docs/VmediaPolicyApi.md#vmedia_policies_moid_get) | **GET** /vmedia/Policies/{moid} | Get a specific instance of 'vmediaPolicy' +*VmediaPolicyApi* | [**vmedia_policies_moid_patch**](docs/VmediaPolicyApi.md#vmedia_policies_moid_patch) | **PATCH** /vmedia/Policies/{moid} | Update an instance of 'vmediaPolicy' +*VmediaPolicyApi* | [**vmedia_policies_moid_post**](docs/VmediaPolicyApi.md#vmedia_policies_moid_post) | **POST** /vmedia/Policies/{moid} | Update an instance of 'vmediaPolicy' +*VmediaPolicyApi* | [**vmedia_policies_post**](docs/VmediaPolicyApi.md#vmedia_policies_post) | **POST** /vmedia/Policies | Create an instance of 'vmediaPolicy' +*WorkflowBuildTaskMetaApi* | [**workflow_build_task_meta_get**](docs/WorkflowBuildTaskMetaApi.md#workflow_build_task_meta_get) | **GET** /workflow/BuildTaskMeta | Get a list of 'workflowBuildTaskMeta' instances +*WorkflowBuildTaskMetaApi* | [**workflow_build_task_meta_moid_get**](docs/WorkflowBuildTaskMetaApi.md#workflow_build_task_meta_moid_get) | **GET** /workflow/BuildTaskMeta/{moid} | Get a specific instance of 'workflowBuildTaskMeta' +*WorkflowBuildTaskMetaOwnerApi* | [**workflow_build_task_meta_owners_get**](docs/WorkflowBuildTaskMetaOwnerApi.md#workflow_build_task_meta_owners_get) | **GET** /workflow/BuildTaskMetaOwners | Get a list of 'workflowBuildTaskMetaOwner' instances +*WorkflowBuildTaskMetaOwnerApi* | [**workflow_build_task_meta_owners_moid_get**](docs/WorkflowBuildTaskMetaOwnerApi.md#workflow_build_task_meta_owners_moid_get) | **GET** /workflow/BuildTaskMetaOwners/{moid} | Get a specific instance of 'workflowBuildTaskMetaOwner' +*WorkflowPendingDynamicWorkflowInfoApi* | [**workflow_pending_dynamic_workflow_infos_get**](docs/WorkflowPendingDynamicWorkflowInfoApi.md#workflow_pending_dynamic_workflow_infos_get) | **GET** /workflow/PendingDynamicWorkflowInfos | Get a list of 'workflowPendingDynamicWorkflowInfo' instances +*WorkflowPendingDynamicWorkflowInfoApi* | [**workflow_pending_dynamic_workflow_infos_moid_get**](docs/WorkflowPendingDynamicWorkflowInfoApi.md#workflow_pending_dynamic_workflow_infos_moid_get) | **GET** /workflow/PendingDynamicWorkflowInfos/{moid} | Get a specific instance of 'workflowPendingDynamicWorkflowInfo' +*WorkflowTaskInfoApi* | [**workflow_task_infos_get**](docs/WorkflowTaskInfoApi.md#workflow_task_infos_get) | **GET** /workflow/TaskInfos | Get a list of 'workflowTaskInfo' instances +*WorkflowTaskInfoApi* | [**workflow_task_infos_moid_get**](docs/WorkflowTaskInfoApi.md#workflow_task_infos_moid_get) | **GET** /workflow/TaskInfos/{moid} | Get a specific instance of 'workflowTaskInfo' +*WorkflowTaskMetaApi* | [**workflow_task_meta_get**](docs/WorkflowTaskMetaApi.md#workflow_task_meta_get) | **GET** /workflow/TaskMeta | Get a list of 'workflowTaskMeta' instances +*WorkflowTaskMetaApi* | [**workflow_task_meta_moid_get**](docs/WorkflowTaskMetaApi.md#workflow_task_meta_moid_get) | **GET** /workflow/TaskMeta/{moid} | Get a specific instance of 'workflowTaskMeta' +*WorkflowWorkflowInfoApi* | [**workflow_workflow_infos_get**](docs/WorkflowWorkflowInfoApi.md#workflow_workflow_infos_get) | **GET** /workflow/WorkflowInfos | Get a list of 'workflowWorkflowInfo' instances +*WorkflowWorkflowInfoApi* | [**workflow_workflow_infos_moid_delete**](docs/WorkflowWorkflowInfoApi.md#workflow_workflow_infos_moid_delete) | **DELETE** /workflow/WorkflowInfos/{moid} | Delete an instance of 'workflowWorkflowInfo' +*WorkflowWorkflowInfoApi* | [**workflow_workflow_infos_moid_get**](docs/WorkflowWorkflowInfoApi.md#workflow_workflow_infos_moid_get) | **GET** /workflow/WorkflowInfos/{moid} | Get a specific instance of 'workflowWorkflowInfo' +*WorkflowWorkflowInfoApi* | [**workflow_workflow_infos_moid_patch**](docs/WorkflowWorkflowInfoApi.md#workflow_workflow_infos_moid_patch) | **PATCH** /workflow/WorkflowInfos/{moid} | Update an instance of 'workflowWorkflowInfo' +*WorkflowWorkflowInfoApi* | [**workflow_workflow_infos_moid_post**](docs/WorkflowWorkflowInfoApi.md#workflow_workflow_infos_moid_post) | **POST** /workflow/WorkflowInfos/{moid} | Update an instance of 'workflowWorkflowInfo' +*WorkflowWorkflowInfoApi* | [**workflow_workflow_infos_post**](docs/WorkflowWorkflowInfoApi.md#workflow_workflow_infos_post) | **POST** /workflow/WorkflowInfos | Create an instance of 'workflowWorkflowInfo' +*WorkflowWorkflowMetaApi* | [**workflow_workflow_meta_get**](docs/WorkflowWorkflowMetaApi.md#workflow_workflow_meta_get) | **GET** /workflow/WorkflowMeta | Get a list of 'workflowWorkflowMeta' instances +*WorkflowWorkflowMetaApi* | [**workflow_workflow_meta_moid_get**](docs/WorkflowWorkflowMetaApi.md#workflow_workflow_meta_moid_get) | **GET** /workflow/WorkflowMeta/{moid} | Get a specific instance of 'workflowWorkflowMeta' ## Documentation For Models @@ -661,19 +972,16 @@ Class | Method | HTTP request | Description - [AdapterHostFcInterfaceList](docs/AdapterHostFcInterfaceList.md) - [AdapterHostIscsiInterfaceList](docs/AdapterHostIscsiInterfaceList.md) - [AdapterUnitList](docs/AdapterUnitList.md) + - [AssetClusterMemberList](docs/AssetClusterMemberList.md) + - [AssetDeviceConfigurationList](docs/AssetDeviceConfigurationList.md) - [AssetDeviceRegistrationList](docs/AssetDeviceRegistrationList.md) - - [BiosInputOutput](docs/BiosInputOutput.md) - - [BiosLomAndPcieSlotsConfiguration](docs/BiosLomAndPcieSlotsConfiguration.md) - - [BiosMemory](docs/BiosMemory.md) - [BiosPolicyList](docs/BiosPolicyList.md) - - [BiosPowerOrPerformance](docs/BiosPowerOrPerformance.md) - - [BiosProcessor](docs/BiosProcessor.md) - - [BiosSecurity](docs/BiosSecurity.md) - - [BiosSerialConfiguration](docs/BiosSerialConfiguration.md) - - [BiosServerManagement](docs/BiosServerManagement.md) - [BiosUnitList](docs/BiosUnitList.md) + - [BootBootloader](docs/BootBootloader.md) - [BootDeviceBase](docs/BootDeviceBase.md) - [BootPrecisionPolicyList](docs/BootPrecisionPolicyList.md) + - [CommIpV4Interface](docs/CommIpV4Interface.md) + - [CommIpV6Interface](docs/CommIpV6Interface.md) - [ComputeBladeList](docs/ComputeBladeList.md) - [ComputeBoardList](docs/ComputeBoardList.md) - [ComputeIpAddress](docs/ComputeIpAddress.md) @@ -682,29 +990,40 @@ Class | Method | HTTP request | Description - [ComputeServerConfig](docs/ComputeServerConfig.md) - [ComputeServerSettingList](docs/ComputeServerSettingList.md) - [CondAlarmList](docs/CondAlarmList.md) - - [CondHclStatusActionList](docs/CondHclStatusActionList.md) - [CondHclStatusDetailList](docs/CondHclStatusDetailList.md) - [CondHclStatusJobList](docs/CondHclStatusJobList.md) - [CondHclStatusList](docs/CondHclStatusList.md) + - [ConnectorAuthMessage](docs/ConnectorAuthMessage.md) + - [ConnectorStreamMessage](docs/ConnectorStreamMessage.md) + - [ConnectorpackConnectorPackSummary](docs/ConnectorpackConnectorPackSummary.md) - [CryptEncryptionTokenList](docs/CryptEncryptionTokenList.md) + - [CvdDeploymentTaskList](docs/CvdDeploymentTaskList.md) + - [CvdInputMeta](docs/CvdInputMeta.md) + - [CvdTemplateList](docs/CvdTemplateList.md) + - [CvdValidationTaskList](docs/CvdValidationTaskList.md) + - [DeviceconnectorPolicyList](docs/DeviceconnectorPolicyList.md) - [DeviceinfoSerialNumberInfoList](docs/DeviceinfoSerialNumberInfoList.md) - - [EpansibleRunnerList](docs/EpansibleRunnerList.md) + - [DevopsAbstractTriggerDetails](docs/DevopsAbstractTriggerDetails.md) - [EquipmentChassisList](docs/EquipmentChassisList.md) - [EquipmentDeviceSummaryList](docs/EquipmentDeviceSummaryList.md) - [EquipmentFanList](docs/EquipmentFanList.md) - [EquipmentFanModuleList](docs/EquipmentFanModuleList.md) - [EquipmentFexList](docs/EquipmentFexList.md) - [EquipmentIoCardList](docs/EquipmentIoCardList.md) + - [EquipmentIoExpanderList](docs/EquipmentIoExpanderList.md) - [EquipmentLocatorLedList](docs/EquipmentLocatorLedList.md) - [EquipmentPsuList](docs/EquipmentPsuList.md) + - [EquipmentRackEnclosureList](docs/EquipmentRackEnclosureList.md) + - [EquipmentRackEnclosureSlotList](docs/EquipmentRackEnclosureSlotList.md) - [EquipmentSwitchCardList](docs/EquipmentSwitchCardList.md) - [EquipmentSystemIoControllerList](docs/EquipmentSystemIoControllerList.md) + - [EquipmentTpmList](docs/EquipmentTpmList.md) - [Error](docs/Error.md) - [EtherPhysicalPortList](docs/EtherPhysicalPortList.md) - - [ExternalsiteAuthProfileList](docs/ExternalsiteAuthProfileList.md) - - [ExtsearchImportList](docs/ExtsearchImportList.md) + - [ExternalsiteAuthorizationList](docs/ExternalsiteAuthorizationList.md) - [FaultInstanceList](docs/FaultInstanceList.md) - [FcPhysicalPortList](docs/FcPhysicalPortList.md) + - [FeedbackFeedbackData](docs/FeedbackFeedbackData.md) - [FirmwareCifsServer](docs/FirmwareCifsServer.md) - [FirmwareDirectDownload](docs/FirmwareDirectDownload.md) - [FirmwareDistributableList](docs/FirmwareDistributableList.md) @@ -717,39 +1036,68 @@ Class | Method | HTTP request | Description - [FirmwareUpgradeStatusList](docs/FirmwareUpgradeStatusList.md) - [GraphicsCardList](docs/GraphicsCardList.md) - [GraphicsControllerList](docs/GraphicsControllerList.md) - - [HclCompatibilityInfoList](docs/HclCompatibilityInfoList.md) - - [HclDataImportLogList](docs/HclDataImportLogList.md) + - [HclDriver](docs/HclDriver.md) + - [HclDriverImageList](docs/HclDriverImageList.md) - [HclFirmware](docs/HclFirmware.md) - [HclHardwareCompatibilityProfile](docs/HclHardwareCompatibilityProfile.md) - - [HclNoteList](docs/HclNoteList.md) + - [HclOperatingSystemList](docs/HclOperatingSystemList.md) + - [HclOperatingSystemVendorList](docs/HclOperatingSystemVendorList.md) - [HclProduct](docs/HclProduct.md) + - [HclServiceStatusList](docs/HclServiceStatusList.md) + - [HyperflexAbstractAppSetting](docs/HyperflexAbstractAppSetting.md) - [HyperflexAlarmList](docs/HyperflexAlarmList.md) + - [HyperflexAppCatalogList](docs/HyperflexAppCatalogList.md) + - [HyperflexAppSettingConstraint](docs/HyperflexAppSettingConstraint.md) - [HyperflexAutoSupportPolicyList](docs/HyperflexAutoSupportPolicyList.md) - [HyperflexClusterList](docs/HyperflexClusterList.md) - [HyperflexClusterNetworkPolicyList](docs/HyperflexClusterNetworkPolicyList.md) - [HyperflexClusterProfileList](docs/HyperflexClusterProfileList.md) - [HyperflexClusterStoragePolicyList](docs/HyperflexClusterStoragePolicyList.md) + - [HyperflexConfigResultEntryList](docs/HyperflexConfigResultEntryList.md) - [HyperflexConfigResultList](docs/HyperflexConfigResultList.md) - [HyperflexExtFcStoragePolicyList](docs/HyperflexExtFcStoragePolicyList.md) - [HyperflexExtIscsiStoragePolicyList](docs/HyperflexExtIscsiStoragePolicyList.md) + - [HyperflexFeatureLimitExternalList](docs/HyperflexFeatureLimitExternalList.md) + - [HyperflexFeatureLimitInternalList](docs/HyperflexFeatureLimitInternalList.md) + - [HyperflexHxLinkDt](docs/HyperflexHxLinkDt.md) + - [HyperflexHxNetworkAddressDt](docs/HyperflexHxNetworkAddressDt.md) + - [HyperflexHxUuIdDt](docs/HyperflexHxUuIdDt.md) + - [HyperflexHxdpVersionList](docs/HyperflexHxdpVersionList.md) - [HyperflexIpAddrRange](docs/HyperflexIpAddrRange.md) - [HyperflexIteratorString](docs/HyperflexIteratorString.md) - [HyperflexLocalCredentialPolicyList](docs/HyperflexLocalCredentialPolicyList.md) + - [HyperflexLogicalAvailabilityZone](docs/HyperflexLogicalAvailabilityZone.md) - [HyperflexMacAddrPrefixRange](docs/HyperflexMacAddrPrefixRange.md) - [HyperflexManagedObjectReference](docs/HyperflexManagedObjectReference.md) - [HyperflexNamedVlan](docs/HyperflexNamedVlan.md) - [HyperflexNamedVsan](docs/HyperflexNamedVsan.md) - [HyperflexNodeConfigPolicyList](docs/HyperflexNodeConfigPolicyList.md) + - [HyperflexNodeList](docs/HyperflexNodeList.md) - [HyperflexNodeProfileList](docs/HyperflexNodeProfileList.md) + - [HyperflexProxySettingPolicyList](docs/HyperflexProxySettingPolicyList.md) + - [HyperflexServerFirmwareVersionList](docs/HyperflexServerFirmwareVersionList.md) + - [HyperflexServerModelList](docs/HyperflexServerModelList.md) - [HyperflexStPlatformClusterHealingInfo](docs/HyperflexStPlatformClusterHealingInfo.md) - [HyperflexStPlatformClusterResiliencyInfo](docs/HyperflexStPlatformClusterResiliencyInfo.md) - [HyperflexSummary](docs/HyperflexSummary.md) - [HyperflexSysConfigPolicyList](docs/HyperflexSysConfigPolicyList.md) - [HyperflexUcsmConfigPolicyList](docs/HyperflexUcsmConfigPolicyList.md) - [HyperflexVcenterConfigPolicyList](docs/HyperflexVcenterConfigPolicyList.md) - - [HyperflexWwxnRange](docs/HyperflexWwxnRange.md) + - [HyperflexWwxnPrefixRange](docs/HyperflexWwxnPrefixRange.md) + - [I18nMessage](docs/I18nMessage.md) + - [I18nMessageParam](docs/I18nMessageParam.md) + - [IaasConnectorPackList](docs/IaasConnectorPackList.md) + - [IaasDeviceStatusList](docs/IaasDeviceStatusList.md) + - [IaasLicenseInfoList](docs/IaasLicenseInfoList.md) + - [IaasLicenseKeysInfo](docs/IaasLicenseKeysInfo.md) + - [IaasLicenseUtilizationInfo](docs/IaasLicenseUtilizationInfo.md) + - [IaasMostRunTasksList](docs/IaasMostRunTasksList.md) + - [IaasUcsdInfoList](docs/IaasUcsdInfoList.md) + - [IaasUcsdManagedInfraList](docs/IaasUcsdManagedInfraList.md) - [IamAccountList](docs/IamAccountList.md) + - [IamAccountPermissions](docs/IamAccountPermissions.md) - [IamApiKeyList](docs/IamApiKeyList.md) + - [IamDomainGroupList](docs/IamDomainGroupList.md) - [IamEndPointPasswordProperties](docs/IamEndPointPasswordProperties.md) - [IamEndPointPrivilegeList](docs/IamEndPointPrivilegeList.md) - [IamEndPointRoleList](docs/IamEndPointRoleList.md) @@ -764,13 +1112,16 @@ Class | Method | HTTP request | Description - [IamLdapPolicyList](docs/IamLdapPolicyList.md) - [IamLdapProviderList](docs/IamLdapProviderList.md) - [IamPermissionList](docs/IamPermissionList.md) + - [IamPermissionReference](docs/IamPermissionReference.md) - [IamPrivilegeList](docs/IamPrivilegeList.md) - [IamPrivilegeSetList](docs/IamPrivilegeSetList.md) - [IamQualifierList](docs/IamQualifierList.md) - [IamResourceLimitsList](docs/IamResourceLimitsList.md) - [IamRoleList](docs/IamRoleList.md) + - [IamServiceProviderList](docs/IamServiceProviderList.md) - [IamSessionLimitsList](docs/IamSessionLimitsList.md) - [IamSessionList](docs/IamSessionList.md) + - [IamSsoSessionAttributes](docs/IamSsoSessionAttributes.md) - [IamSystemList](docs/IamSystemList.md) - [IamUserGroupList](docs/IamUserGroupList.md) - [IamUserList](docs/IamUserList.md) @@ -779,6 +1130,8 @@ Class | Method | HTTP request | Description - [InventoryDnMoBindingList](docs/InventoryDnMoBindingList.md) - [InventoryGenericInventoryHolderList](docs/InventoryGenericInventoryHolderList.md) - [InventoryGenericInventoryList](docs/InventoryGenericInventoryList.md) + - [InventoryInventoryMo](docs/InventoryInventoryMo.md) + - [InventoryJobInfo](docs/InventoryJobInfo.md) - [IpmioverlanPolicyList](docs/IpmioverlanPolicyList.md) - [KvmPolicyList](docs/KvmPolicyList.md) - [LicenseAccountLicenseDataList](docs/LicenseAccountLicenseDataList.md) @@ -798,43 +1151,51 @@ Class | Method | HTTP request | Description - [MoBaseMo](docs/MoBaseMo.md) - [MoMoRef](docs/MoMoRef.md) - [MoTag](docs/MoTag.md) + - [MoVersionContext](docs/MoVersionContext.md) - [NetworkElementList](docs/NetworkElementList.md) - [NetworkElementSummaryList](docs/NetworkElementSummaryList.md) - [NetworkconfigPolicyList](docs/NetworkconfigPolicyList.md) + - [NotifsCondition](docs/NotifsCondition.md) - [NtpPolicyList](docs/NtpPolicyList.md) - - [PackagemanagementConnectorDeployPolicyList](docs/PackagemanagementConnectorDeployPolicyList.md) - - [PackagemanagementConnectorImageList](docs/PackagemanagementConnectorImageList.md) - - [PackagemanagementConnectorInstallList](docs/PackagemanagementConnectorInstallList.md) - - [PolicyAttachableServiceObject](docs/PolicyAttachableServiceObject.md) - - [PolicyCategory](docs/PolicyCategory.md) + - [OauthAccessToken](docs/OauthAccessToken.md) + - [OauthOauthUserList](docs/OauthOauthUserList.md) + - [PciDeviceList](docs/PciDeviceList.md) + - [PolicyConfigChange](docs/PolicyConfigChange.md) - [PolicyConfigContext](docs/PolicyConfigContext.md) - [PolicyConfigResultContext](docs/PolicyConfigResultContext.md) - - [PolicyConfigResultEntry](docs/PolicyConfigResultEntry.md) - - [PolicyHardwarePlatform](docs/PolicyHardwarePlatform.md) - - [PolicyManagementPlatform](docs/PolicyManagementPlatform.md) - - [PolicyPolicyMetaList](docs/PolicyPolicyMetaList.md) - [PortGroupList](docs/PortGroupList.md) - [PortSubGroupList](docs/PortSubGroupList.md) - [ProcessorUnitList](docs/ProcessorUnitList.md) + - [ResourceGroupList](docs/ResourceGroupList.md) + - [SdcardPartition](docs/SdcardPartition.md) + - [SdcardPolicyList](docs/SdcardPolicyList.md) + - [SdcardVirtualDrive](docs/SdcardVirtualDrive.md) - [SearchSearchItemList](docs/SearchSearchItemList.md) - [SearchTagItemList](docs/SearchTagItemList.md) - [SecurityUnitList](docs/SecurityUnitList.md) - - [ServerConfigChange](docs/ServerConfigChange.md) - - [ServerConfigChangeDetail](docs/ServerConfigChangeDetail.md) + - [ServerConfigChangeDetailList](docs/ServerConfigChangeDetailList.md) + - [ServerConfigResultEntryList](docs/ServerConfigResultEntryList.md) - [ServerConfigResultList](docs/ServerConfigResultList.md) - [ServerProfileList](docs/ServerProfileList.md) - [SmtpPolicyList](docs/SmtpPolicyList.md) - [SnmpPolicyList](docs/SnmpPolicyList.md) - [SnmpTrap](docs/SnmpTrap.md) - [SnmpUser](docs/SnmpUser.md) + - [SoftwarerepositoryAuthorizationList](docs/SoftwarerepositoryAuthorizationList.md) - [SolPolicyList](docs/SolPolicyList.md) - [SshPolicyList](docs/SshPolicyList.md) - [StorageControllerList](docs/StorageControllerList.md) - [StorageDiskGroupPolicyList](docs/StorageDiskGroupPolicyList.md) + - [StorageEnclosureList](docs/StorageEnclosureList.md) - [StorageFlexFlashControllerList](docs/StorageFlexFlashControllerList.md) + - [StorageFlexFlashControllerPropsList](docs/StorageFlexFlashControllerPropsList.md) - [StorageFlexFlashPhysicalDriveList](docs/StorageFlexFlashPhysicalDriveList.md) + - [StorageFlexFlashVirtualDriveList](docs/StorageFlexFlashVirtualDriveList.md) - [StorageFlexUtilControllerList](docs/StorageFlexUtilControllerList.md) + - [StorageFlexUtilPhysicalDriveList](docs/StorageFlexUtilPhysicalDriveList.md) + - [StorageFlexUtilVirtualDriveList](docs/StorageFlexUtilVirtualDriveList.md) - [StorageLocalDisk](docs/StorageLocalDisk.md) + - [StoragePhysicalDiskExtensionList](docs/StoragePhysicalDiskExtensionList.md) - [StoragePhysicalDiskList](docs/StoragePhysicalDiskList.md) - [StoragePhysicalDiskUsageList](docs/StoragePhysicalDiskUsageList.md) - [StorageRemoteKeySetting](docs/StorageRemoteKeySetting.md) @@ -843,115 +1204,590 @@ Class | Method | HTTP request | Description - [StorageStoragePolicyList](docs/StorageStoragePolicyList.md) - [StorageVdMemberEpList](docs/StorageVdMemberEpList.md) - [StorageVirtualDriveConfig](docs/StorageVirtualDriveConfig.md) + - [StorageVirtualDriveExtensionList](docs/StorageVirtualDriveExtensionList.md) - [StorageVirtualDriveList](docs/StorageVirtualDriveList.md) + - [SyslogLocalClientBase](docs/SyslogLocalClientBase.md) + - [SyslogPolicyList](docs/SyslogPolicyList.md) + - [SyslogRemoteClientBase](docs/SyslogRemoteClientBase.md) - [TaskFileDownloadInfo](docs/TaskFileDownloadInfo.md) - [TaskWorkflowActionList](docs/TaskWorkflowActionList.md) - - [TechsupportmanagementDownloadList](docs/TechsupportmanagementDownloadList.md) - - [TechsupportmanagementTechSupportBundleList](docs/TechsupportmanagementTechSupportBundleList.md) - - [TechsupportmanagementTechSupportStatusList](docs/TechsupportmanagementTechSupportStatusList.md) - [TerminalAuditLogList](docs/TerminalAuditLogList.md) + - [TestcryptAdministratorList](docs/TestcryptAdministratorList.md) + - [TestcryptCredentialList](docs/TestcryptCredentialList.md) + - [TestcryptReadOnlyUserList](docs/TestcryptReadOnlyUserList.md) + - [TestcryptShadowCredentialList](docs/TestcryptShadowCredentialList.md) + - [TestcryptUser](docs/TestcryptUser.md) - [TopSystemList](docs/TopSystemList.md) + - [UcsdconnectorFieldQuery](docs/UcsdconnectorFieldQuery.md) + - [UcsdconnectorSqlQuery](docs/UcsdconnectorSqlQuery.md) + - [UcsdconnectorTelemetryMo](docs/UcsdconnectorTelemetryMo.md) - [VmediaMapping](docs/VmediaMapping.md) - [VmediaPolicyList](docs/VmediaPolicyList.md) - [WorkflowBuildTaskMetaList](docs/WorkflowBuildTaskMetaList.md) + - [WorkflowBuildTaskMetaOwnerList](docs/WorkflowBuildTaskMetaOwnerList.md) + - [WorkflowDynamicWorkflowActionTaskList](docs/WorkflowDynamicWorkflowActionTaskList.md) + - [WorkflowPendingDynamicWorkflowInfoList](docs/WorkflowPendingDynamicWorkflowInfoList.md) - [WorkflowTaskInfoList](docs/WorkflowTaskInfoList.md) - [WorkflowTaskMetaList](docs/WorkflowTaskMetaList.md) - [WorkflowTaskRetryInfo](docs/WorkflowTaskRetryInfo.md) - [WorkflowWorkflowInfoList](docs/WorkflowWorkflowInfoList.md) - [WorkflowWorkflowMetaList](docs/WorkflowWorkflowMetaList.md) - - [WorkflowWorkflowTaskList](docs/WorkflowWorkflowTaskList.md) - [AaaAbstractAuditRecord](docs/AaaAbstractAuditRecord.md) + - [AaaAbstractAuditRecordRef](docs/AaaAbstractAuditRecordRef.md) + - [AaaAuditRecordLocalRef](docs/AaaAuditRecordLocalRef.md) + - [AaaAuditRecordRef](docs/AaaAuditRecordRef.md) + - [AdapterExtEthInterfaceRef](docs/AdapterExtEthInterfaceRef.md) + - [AdapterHostEthInterfaceRef](docs/AdapterHostEthInterfaceRef.md) + - [AdapterHostFcInterfaceRef](docs/AdapterHostFcInterfaceRef.md) + - [AdapterHostIscsiInterfaceRef](docs/AdapterHostIscsiInterfaceRef.md) + - [AdapterUnitRef](docs/AdapterUnitRef.md) + - [AssetClusterMemberRef](docs/AssetClusterMemberRef.md) + - [AssetConnectionControlMessageRef](docs/AssetConnectionControlMessageRef.md) - [AssetDeviceClaim](docs/AssetDeviceClaim.md) - - [AssetDeviceRegistration](docs/AssetDeviceRegistration.md) - - [BootIscsi](docs/BootIscsi.md) - - [BootLocalCdd](docs/BootLocalCdd.md) - - [BootLocalDisk](docs/BootLocalDisk.md) - - [BootNvme](docs/BootNvme.md) - - [BootPchStorage](docs/BootPchStorage.md) - - [BootPxe](docs/BootPxe.md) - - [BootSan](docs/BootSan.md) - - [BootSdCard](docs/BootSdCard.md) - - [BootUefiShell](docs/BootUefiShell.md) - - [BootUsb](docs/BootUsb.md) - - [BootVirtualMedia](docs/BootVirtualMedia.md) + - [AssetDeviceClaimRef](docs/AssetDeviceClaimRef.md) + - [AssetDeviceConfiguration](docs/AssetDeviceConfiguration.md) + - [AssetDeviceConfigurationRef](docs/AssetDeviceConfigurationRef.md) + - [AssetDeviceConnection](docs/AssetDeviceConnection.md) + - [AssetDeviceConnectionRef](docs/AssetDeviceConnectionRef.md) + - [AssetDeviceRegistrationRef](docs/AssetDeviceRegistrationRef.md) + - [AssetSecurityTokenRef](docs/AssetSecurityTokenRef.md) + - [BiosDeployTaskRef](docs/BiosDeployTaskRef.md) + - [BiosPolicyRef](docs/BiosPolicyRef.md) + - [BiosUnitRef](docs/BiosUnitRef.md) + - [BiosValidationTaskRef](docs/BiosValidationTaskRef.md) + - [BootBootloaderRef](docs/BootBootloaderRef.md) + - [BootDeviceBaseRef](docs/BootDeviceBaseRef.md) + - [BootIscsiRef](docs/BootIscsiRef.md) + - [BootLocalCddRef](docs/BootLocalCddRef.md) + - [BootLocalDiskRef](docs/BootLocalDiskRef.md) + - [BootNvmeRef](docs/BootNvmeRef.md) + - [BootPchStorageRef](docs/BootPchStorageRef.md) + - [BootPrecisionDeployTaskRef](docs/BootPrecisionDeployTaskRef.md) + - [BootPrecisionPolicyRef](docs/BootPrecisionPolicyRef.md) + - [BootPrecisionValidationTaskRef](docs/BootPrecisionValidationTaskRef.md) + - [BootPxeRef](docs/BootPxeRef.md) + - [BootSanRef](docs/BootSanRef.md) + - [BootSdCardRef](docs/BootSdCardRef.md) + - [BootUefiShellRef](docs/BootUefiShellRef.md) + - [BootUsbRef](docs/BootUsbRef.md) + - [BootVirtualMediaRef](docs/BootVirtualMediaRef.md) + - [CommIpV4InterfaceRef](docs/CommIpV4InterfaceRef.md) + - [CommIpV6InterfaceRef](docs/CommIpV6InterfaceRef.md) + - [ComputeBladeRef](docs/ComputeBladeRef.md) + - [ComputeBoardRef](docs/ComputeBoardRef.md) + - [ComputeIpAddressRef](docs/ComputeIpAddressRef.md) + - [ComputeLocatorLedOperationTaskRef](docs/ComputeLocatorLedOperationTaskRef.md) + - [ComputeOperationResultHandlerRef](docs/ComputeOperationResultHandlerRef.md) + - [ComputePhysicalRef](docs/ComputePhysicalRef.md) + - [ComputePhysicalSummaryRef](docs/ComputePhysicalSummaryRef.md) + - [ComputeRackUnitRef](docs/ComputeRackUnitRef.md) + - [ComputeServerConfigRef](docs/ComputeServerConfigRef.md) + - [ComputeServerOperationTaskRef](docs/ComputeServerOperationTaskRef.md) + - [ComputeServerSettingRef](docs/ComputeServerSettingRef.md) - [CondAlarm](docs/CondAlarm.md) + - [CondAlarmRef](docs/CondAlarmRef.md) - [CondHclStatus](docs/CondHclStatus.md) - - [CondHclStatusAction](docs/CondHclStatusAction.md) - [CondHclStatusDetail](docs/CondHclStatusDetail.md) + - [CondHclStatusDetailRef](docs/CondHclStatusDetailRef.md) - [CondHclStatusJob](docs/CondHclStatusJob.md) + - [CondHclStatusJobRef](docs/CondHclStatusJobRef.md) + - [CondHclStatusRef](docs/CondHclStatusRef.md) + - [ConnectorAuthMessageRef](docs/ConnectorAuthMessageRef.md) + - [ConnectorCloseStreamMessage](docs/ConnectorCloseStreamMessage.md) + - [ConnectorCloseStreamMessageRef](docs/ConnectorCloseStreamMessageRef.md) + - [ConnectorCommandMessageRef](docs/ConnectorCommandMessageRef.md) + - [ConnectorControlMessageRef](docs/ConnectorControlMessageRef.md) + - [ConnectorEventChannelControlRef](docs/ConnectorEventChannelControlRef.md) + - [ConnectorEventRef](docs/ConnectorEventRef.md) + - [ConnectorFetchStreamMessage](docs/ConnectorFetchStreamMessage.md) + - [ConnectorFetchStreamMessageRef](docs/ConnectorFetchStreamMessageRef.md) + - [ConnectorJobAsyncResponseRef](docs/ConnectorJobAsyncResponseRef.md) + - [ConnectorJobMessageRef](docs/ConnectorJobMessageRef.md) + - [ConnectorStartStream](docs/ConnectorStartStream.md) + - [ConnectorStartStreamRef](docs/ConnectorStartStreamRef.md) + - [ConnectorStreamInput](docs/ConnectorStreamInput.md) + - [ConnectorStreamInputRef](docs/ConnectorStreamInputRef.md) + - [ConnectorStreamMessageRef](docs/ConnectorStreamMessageRef.md) + - [ConnectorStreamRef](docs/ConnectorStreamRef.md) + - [ConnectorXmlApiMessageRef](docs/ConnectorXmlApiMessageRef.md) + - [ConnectorpackConnectorPackSummaryRef](docs/ConnectorpackConnectorPackSummaryRef.md) + - [ConnectorpackUpgradeRef](docs/ConnectorpackUpgradeRef.md) + - [CryptAccountKeyRef](docs/CryptAccountKeyRef.md) + - [CryptDecryptRef](docs/CryptDecryptRef.md) + - [CryptEncryptRef](docs/CryptEncryptRef.md) + - [CryptEncryptionKeyRef](docs/CryptEncryptionKeyRef.md) - [CryptEncryptionToken](docs/CryptEncryptionToken.md) + - [CryptEncryptionTokenRef](docs/CryptEncryptionTokenRef.md) + - [CvdDeploymentTask](docs/CvdDeploymentTask.md) + - [CvdDeploymentTaskRef](docs/CvdDeploymentTaskRef.md) + - [CvdInputMetaRef](docs/CvdInputMetaRef.md) + - [CvdTemplate](docs/CvdTemplate.md) + - [CvdTemplateRef](docs/CvdTemplateRef.md) + - [CvdValidationTask](docs/CvdValidationTask.md) + - [CvdValidationTaskRef](docs/CvdValidationTaskRef.md) + - [DeviceconnectorDeployTaskRef](docs/DeviceconnectorDeployTaskRef.md) + - [DeviceconnectorPolicyRef](docs/DeviceconnectorPolicyRef.md) + - [DeviceconnectorValidationTaskRef](docs/DeviceconnectorValidationTaskRef.md) - [DeviceinfoSerialNumberInfo](docs/DeviceinfoSerialNumberInfo.md) - - [EpansibleRunner](docs/EpansibleRunner.md) - - [ExternalsiteAuthProfile](docs/ExternalsiteAuthProfile.md) - - [ExtsearchImport](docs/ExtsearchImport.md) + - [DeviceinfoSerialNumberInfoRef](docs/DeviceinfoSerialNumberInfoRef.md) + - [DevopsAbstractTriggerDetailsRef](docs/DevopsAbstractTriggerDetailsRef.md) + - [DevopsNotificationTrigger](docs/DevopsNotificationTrigger.md) + - [DevopsNotificationTriggerRef](docs/DevopsNotificationTriggerRef.md) + - [DevopsTriggerRef](docs/DevopsTriggerRef.md) + - [EpansibleRunnerRef](docs/EpansibleRunnerRef.md) + - [EquipmentBaseRef](docs/EquipmentBaseRef.md) + - [EquipmentChassisRef](docs/EquipmentChassisRef.md) + - [EquipmentDeviceSummaryRef](docs/EquipmentDeviceSummaryRef.md) + - [EquipmentFanModuleRef](docs/EquipmentFanModuleRef.md) + - [EquipmentFanRef](docs/EquipmentFanRef.md) + - [EquipmentFexRef](docs/EquipmentFexRef.md) + - [EquipmentIoCardRef](docs/EquipmentIoCardRef.md) + - [EquipmentIoExpanderRef](docs/EquipmentIoExpanderRef.md) + - [EquipmentLocatorLedRef](docs/EquipmentLocatorLedRef.md) + - [EquipmentPsuRef](docs/EquipmentPsuRef.md) + - [EquipmentRackEnclosureRef](docs/EquipmentRackEnclosureRef.md) + - [EquipmentRackEnclosureSlotRef](docs/EquipmentRackEnclosureSlotRef.md) + - [EquipmentSwitchCardRef](docs/EquipmentSwitchCardRef.md) + - [EquipmentSystemIoControllerRef](docs/EquipmentSystemIoControllerRef.md) + - [EquipmentTpmRef](docs/EquipmentTpmRef.md) + - [EtherPhysicalPortRef](docs/EtherPhysicalPortRef.md) + - [ExternalsiteAuthorization](docs/ExternalsiteAuthorization.md) + - [ExternalsiteAuthorizationRef](docs/ExternalsiteAuthorizationRef.md) + - [ExtsearchAppConfigRef](docs/ExtsearchAppConfigRef.md) + - [ExtsearchImportRef](docs/ExtsearchImportRef.md) + - [FaultInstanceRef](docs/FaultInstanceRef.md) + - [FcPhysicalPortRef](docs/FcPhysicalPortRef.md) + - [FeedbackFeedbackDataRef](docs/FeedbackFeedbackDataRef.md) + - [FeedbackFeedbackPost](docs/FeedbackFeedbackPost.md) + - [FeedbackFeedbackPostRef](docs/FeedbackFeedbackPostRef.md) + - [FeedbackFeedbackRef](docs/FeedbackFeedbackRef.md) + - [FeedbackFeedbackSettingsRef](docs/FeedbackFeedbackSettingsRef.md) + - [FeedbackHistoryItemRef](docs/FeedbackHistoryItemRef.md) + - [FirmwareCifsServerRef](docs/FirmwareCifsServerRef.md) + - [FirmwareDirectDownloadRef](docs/FirmwareDirectDownloadRef.md) - [FirmwareDistributable](docs/FirmwareDistributable.md) + - [FirmwareDistributableRef](docs/FirmwareDistributableRef.md) + - [FirmwareDownloadSpecRef](docs/FirmwareDownloadSpecRef.md) - [FirmwareEula](docs/FirmwareEula.md) + - [FirmwareEulaRef](docs/FirmwareEulaRef.md) + - [FirmwareHttpServerRef](docs/FirmwareHttpServerRef.md) + - [FirmwareNetworkShareRef](docs/FirmwareNetworkShareRef.md) + - [FirmwareNfsServerRef](docs/FirmwareNfsServerRef.md) + - [FirmwareRunningFirmwareRef](docs/FirmwareRunningFirmwareRef.md) - [FirmwareUpgrade](docs/FirmwareUpgrade.md) + - [FirmwareUpgradeRef](docs/FirmwareUpgradeRef.md) - [FirmwareUpgradeStatus](docs/FirmwareUpgradeStatus.md) - - [HclCompatibilityInfo](docs/HclCompatibilityInfo.md) + - [FirmwareUpgradeStatusRef](docs/FirmwareUpgradeStatusRef.md) + - [FirmwareimcCancelPendingFirmwareUpgradeRef](docs/FirmwareimcCancelPendingFirmwareUpgradeRef.md) + - [FirmwareimcCheckForExistingUpgradeRef](docs/FirmwareimcCheckForExistingUpgradeRef.md) + - [FirmwareimcFirmwareUpgradeResultHandlerRef](docs/FirmwareimcFirmwareUpgradeResultHandlerRef.md) + - [FirmwareimcHuuFirmwareUpgradeRef](docs/FirmwareimcHuuFirmwareUpgradeRef.md) + - [FirmwareimcInitiateDownloadRef](docs/FirmwareimcInitiateDownloadRef.md) + - [FirmwareimcWaitForDownloadRef](docs/FirmwareimcWaitForDownloadRef.md) + - [FirmwareimcWaitForFirmwareUpgradeRef](docs/FirmwareimcWaitForFirmwareUpgradeRef.md) + - [GraphicsCardRef](docs/GraphicsCardRef.md) + - [GraphicsControllerRef](docs/GraphicsControllerRef.md) + - [HclCompatibilityInfoRef](docs/HclCompatibilityInfoRef.md) - [HclCompatibilityStatus](docs/HclCompatibilityStatus.md) - - [HclDataImportLog](docs/HclDataImportLog.md) - - [HclNote](docs/HclNote.md) + - [HclCompatibilityStatusRef](docs/HclCompatibilityStatusRef.md) + - [HclDataImportLogRef](docs/HclDataImportLogRef.md) + - [HclDriverImage](docs/HclDriverImage.md) + - [HclDriverImageRef](docs/HclDriverImageRef.md) + - [HclDriverRef](docs/HclDriverRef.md) + - [HclFirmwareRef](docs/HclFirmwareRef.md) + - [HclHardwareCompatibilityProfileRef](docs/HclHardwareCompatibilityProfileRef.md) + - [HclNoteRef](docs/HclNoteRef.md) + - [HclOperatingSystem](docs/HclOperatingSystem.md) + - [HclOperatingSystemRef](docs/HclOperatingSystemRef.md) + - [HclOperatingSystemVendor](docs/HclOperatingSystemVendor.md) + - [HclOperatingSystemVendorRef](docs/HclOperatingSystemVendorRef.md) + - [HclProductRef](docs/HclProductRef.md) + - [HclServiceStatus](docs/HclServiceStatus.md) + - [HclServiceStatusRef](docs/HclServiceStatusRef.md) - [HclSupportedDriverName](docs/HclSupportedDriverName.md) + - [HclSupportedDriverNameRef](docs/HclSupportedDriverNameRef.md) + - [HxdpconnectorHxInventoryMsgRef](docs/HxdpconnectorHxInventoryMsgRef.md) + - [HyperflexAbstractAppSettingRef](docs/HyperflexAbstractAppSettingRef.md) - [HyperflexAlarm](docs/HyperflexAlarm.md) + - [HyperflexAlarmRef](docs/HyperflexAlarmRef.md) + - [HyperflexAppCatalog](docs/HyperflexAppCatalog.md) + - [HyperflexAppCatalogRef](docs/HyperflexAppCatalogRef.md) + - [HyperflexAppSettingConstraintRef](docs/HyperflexAppSettingConstraintRef.md) + - [HyperflexAutoSupportPolicyRef](docs/HyperflexAutoSupportPolicyRef.md) - [HyperflexCluster](docs/HyperflexCluster.md) + - [HyperflexClusterNetworkPolicyRef](docs/HyperflexClusterNetworkPolicyRef.md) + - [HyperflexClusterProfileRef](docs/HyperflexClusterProfileRef.md) + - [HyperflexClusterRef](docs/HyperflexClusterRef.md) + - [HyperflexClusterStoragePolicyRef](docs/HyperflexClusterStoragePolicyRef.md) + - [HyperflexConfigResultEntryRef](docs/HyperflexConfigResultEntryRef.md) + - [HyperflexConfigResultRef](docs/HyperflexConfigResultRef.md) + - [HyperflexCredentialsRef](docs/HyperflexCredentialsRef.md) + - [HyperflexExtFcStoragePolicyRef](docs/HyperflexExtFcStoragePolicyRef.md) + - [HyperflexExtIscsiStoragePolicyRef](docs/HyperflexExtIscsiStoragePolicyRef.md) + - [HyperflexFeatureLimitEntry](docs/HyperflexFeatureLimitEntry.md) + - [HyperflexFeatureLimitEntryRef](docs/HyperflexFeatureLimitEntryRef.md) + - [HyperflexFeatureLimitExternal](docs/HyperflexFeatureLimitExternal.md) + - [HyperflexFeatureLimitExternalRef](docs/HyperflexFeatureLimitExternalRef.md) + - [HyperflexFeatureLimitInternal](docs/HyperflexFeatureLimitInternal.md) + - [HyperflexFeatureLimitInternalRef](docs/HyperflexFeatureLimitInternalRef.md) + - [HyperflexHxLinkDtRef](docs/HyperflexHxLinkDtRef.md) + - [HyperflexHxNetworkAddressDtRef](docs/HyperflexHxNetworkAddressDtRef.md) + - [HyperflexHxUuIdDtRef](docs/HyperflexHxUuIdDtRef.md) + - [HyperflexHxdpVersion](docs/HyperflexHxdpVersion.md) + - [HyperflexHxdpVersionRef](docs/HyperflexHxdpVersionRef.md) + - [HyperflexInstallerImageRef](docs/HyperflexInstallerImageRef.md) + - [HyperflexIpAddrRangeRef](docs/HyperflexIpAddrRangeRef.md) + - [HyperflexIteratorStringRef](docs/HyperflexIteratorStringRef.md) + - [HyperflexLocalCredentialPolicyRef](docs/HyperflexLocalCredentialPolicyRef.md) + - [HyperflexLogicalAvailabilityZoneRef](docs/HyperflexLogicalAvailabilityZoneRef.md) + - [HyperflexMacAddrPrefixRangeRef](docs/HyperflexMacAddrPrefixRangeRef.md) + - [HyperflexManagedObjectReferenceRef](docs/HyperflexManagedObjectReferenceRef.md) + - [HyperflexNamedVlanRef](docs/HyperflexNamedVlanRef.md) + - [HyperflexNamedVsanRef](docs/HyperflexNamedVsanRef.md) + - [HyperflexNode](docs/HyperflexNode.md) + - [HyperflexNodeConfigPolicyRef](docs/HyperflexNodeConfigPolicyRef.md) + - [HyperflexNodeProfileRef](docs/HyperflexNodeProfileRef.md) + - [HyperflexNodeRef](docs/HyperflexNodeRef.md) + - [HyperflexProxySettingPolicyRef](docs/HyperflexProxySettingPolicyRef.md) + - [HyperflexServerFirmwareVersion](docs/HyperflexServerFirmwareVersion.md) + - [HyperflexServerFirmwareVersionEntry](docs/HyperflexServerFirmwareVersionEntry.md) + - [HyperflexServerFirmwareVersionEntryRef](docs/HyperflexServerFirmwareVersionEntryRef.md) + - [HyperflexServerFirmwareVersionRef](docs/HyperflexServerFirmwareVersionRef.md) + - [HyperflexServerModel](docs/HyperflexServerModel.md) + - [HyperflexServerModelEntry](docs/HyperflexServerModelEntry.md) + - [HyperflexServerModelEntryRef](docs/HyperflexServerModelEntryRef.md) + - [HyperflexServerModelRef](docs/HyperflexServerModelRef.md) + - [HyperflexStPlatformClusterHealingInfoRef](docs/HyperflexStPlatformClusterHealingInfoRef.md) + - [HyperflexStPlatformClusterResiliencyInfoRef](docs/HyperflexStPlatformClusterResiliencyInfoRef.md) + - [HyperflexSummaryRef](docs/HyperflexSummaryRef.md) + - [HyperflexSysConfigPolicyRef](docs/HyperflexSysConfigPolicyRef.md) + - [HyperflexUcsmConfigPolicyRef](docs/HyperflexUcsmConfigPolicyRef.md) + - [HyperflexVcenterConfigPolicyRef](docs/HyperflexVcenterConfigPolicyRef.md) + - [HyperflexWwxnPrefixRangeRef](docs/HyperflexWwxnPrefixRangeRef.md) + - [I18nMessageParamRef](docs/I18nMessageParamRef.md) + - [I18nMessageRef](docs/I18nMessageRef.md) + - [IaasConnectorPack](docs/IaasConnectorPack.md) + - [IaasConnectorPackRef](docs/IaasConnectorPackRef.md) + - [IaasDeviceStatus](docs/IaasDeviceStatus.md) + - [IaasDeviceStatusRef](docs/IaasDeviceStatusRef.md) + - [IaasLicenseInfo](docs/IaasLicenseInfo.md) + - [IaasLicenseInfoRef](docs/IaasLicenseInfoRef.md) + - [IaasLicenseKeysInfoRef](docs/IaasLicenseKeysInfoRef.md) + - [IaasLicenseUtilizationInfoRef](docs/IaasLicenseUtilizationInfoRef.md) + - [IaasMostRunTasks](docs/IaasMostRunTasks.md) + - [IaasMostRunTasksRef](docs/IaasMostRunTasksRef.md) + - [IaasUcsdInfo](docs/IaasUcsdInfo.md) + - [IaasUcsdInfoRef](docs/IaasUcsdInfoRef.md) + - [IaasUcsdManagedInfra](docs/IaasUcsdManagedInfra.md) + - [IaasUcsdManagedInfraRef](docs/IaasUcsdManagedInfraRef.md) - [IamAccount](docs/IamAccount.md) + - [IamAccountPermissionsRef](docs/IamAccountPermissionsRef.md) + - [IamAccountRef](docs/IamAccountRef.md) - [IamApiKey](docs/IamApiKey.md) + - [IamApiKeyRef](docs/IamApiKeyRef.md) + - [IamDomainGroup](docs/IamDomainGroup.md) + - [IamDomainGroupRef](docs/IamDomainGroupRef.md) + - [IamEndPointPasswordPropertiesRef](docs/IamEndPointPasswordPropertiesRef.md) - [IamEndPointPrivilege](docs/IamEndPointPrivilege.md) + - [IamEndPointPrivilegeRef](docs/IamEndPointPrivilegeRef.md) - [IamEndPointRole](docs/IamEndPointRole.md) + - [IamEndPointRoleRef](docs/IamEndPointRoleRef.md) - [IamEndPointUser](docs/IamEndPointUser.md) + - [IamEndPointUserDeployTaskRef](docs/IamEndPointUserDeployTaskRef.md) + - [IamEndPointUserPolicyRef](docs/IamEndPointUserPolicyRef.md) + - [IamEndPointUserRef](docs/IamEndPointUserRef.md) - [IamEndPointUserRole](docs/IamEndPointUserRole.md) + - [IamEndPointUserRoleRef](docs/IamEndPointUserRoleRef.md) + - [IamEndPointUserValidationTaskRef](docs/IamEndPointUserValidationTaskRef.md) - [IamIdp](docs/IamIdp.md) + - [IamIdpRef](docs/IamIdpRef.md) - [IamIdpReference](docs/IamIdpReference.md) + - [IamIdpReferenceRef](docs/IamIdpReferenceRef.md) + - [IamLdapBasePropertiesRef](docs/IamLdapBasePropertiesRef.md) + - [IamLdapCredentialsRef](docs/IamLdapCredentialsRef.md) + - [IamLdapDeployTaskRef](docs/IamLdapDeployTaskRef.md) + - [IamLdapDnsParametersRef](docs/IamLdapDnsParametersRef.md) - [IamLdapGroup](docs/IamLdapGroup.md) + - [IamLdapGroupRef](docs/IamLdapGroupRef.md) + - [IamLdapPolicyRef](docs/IamLdapPolicyRef.md) - [IamLdapProvider](docs/IamLdapProvider.md) + - [IamLdapProviderRef](docs/IamLdapProviderRef.md) + - [IamLdapValidationTaskRef](docs/IamLdapValidationTaskRef.md) - [IamPermission](docs/IamPermission.md) + - [IamPermissionRef](docs/IamPermissionRef.md) + - [IamPermissionReferenceRef](docs/IamPermissionReferenceRef.md) - [IamPrivilege](docs/IamPrivilege.md) + - [IamPrivilegeRef](docs/IamPrivilegeRef.md) - [IamPrivilegeSet](docs/IamPrivilegeSet.md) + - [IamPrivilegeSetRef](docs/IamPrivilegeSetRef.md) - [IamQualifier](docs/IamQualifier.md) + - [IamQualifierRef](docs/IamQualifierRef.md) - [IamResourceLimits](docs/IamResourceLimits.md) + - [IamResourceLimitsRef](docs/IamResourceLimitsRef.md) - [IamRole](docs/IamRole.md) + - [IamRoleRef](docs/IamRoleRef.md) + - [IamServiceProvider](docs/IamServiceProvider.md) + - [IamServiceProviderRef](docs/IamServiceProviderRef.md) - [IamSession](docs/IamSession.md) - [IamSessionLimits](docs/IamSessionLimits.md) + - [IamSessionLimitsRef](docs/IamSessionLimitsRef.md) + - [IamSessionRef](docs/IamSessionRef.md) + - [IamSpConsoleRef](docs/IamSpConsoleRef.md) + - [IamSpEngineRef](docs/IamSpEngineRef.md) + - [IamSsoSessionAttributesRef](docs/IamSsoSessionAttributesRef.md) - [IamSystem](docs/IamSystem.md) + - [IamSystemRef](docs/IamSystemRef.md) - [IamUser](docs/IamUser.md) - [IamUserGroup](docs/IamUserGroup.md) + - [IamUserGroupRef](docs/IamUserGroupRef.md) + - [IamUserLoginTimeRef](docs/IamUserLoginTimeRef.md) - [IamUserPreference](docs/IamUserPreference.md) + - [IamUserPreferenceRef](docs/IamUserPreferenceRef.md) + - [IamUserRef](docs/IamUserRef.md) + - [ImcconnectorSdCardImageDownloadMessageRef](docs/ImcconnectorSdCardImageDownloadMessageRef.md) - [InventoryBase](docs/InventoryBase.md) + - [InventoryBaseRef](docs/InventoryBaseRef.md) - [InventoryDeviceInfo](docs/InventoryDeviceInfo.md) + - [InventoryDeviceInfoRef](docs/InventoryDeviceInfoRef.md) - [InventoryDnMoBinding](docs/InventoryDnMoBinding.md) + - [InventoryDnMoBindingRef](docs/InventoryDnMoBindingRef.md) + - [InventoryGenericInventoryHolderRef](docs/InventoryGenericInventoryHolderRef.md) + - [InventoryGenericInventoryRef](docs/InventoryGenericInventoryRef.md) + - [InventoryInventoryMoRef](docs/InventoryInventoryMoRef.md) + - [InventoryJobInfoRef](docs/InventoryJobInfoRef.md) + - [InventoryRequest](docs/InventoryRequest.md) + - [InventoryRequestRef](docs/InventoryRequestRef.md) + - [InventoryScopedInventoryTaskRef](docs/InventoryScopedInventoryTaskRef.md) + - [IpmioverlanDeployTaskRef](docs/IpmioverlanDeployTaskRef.md) + - [IpmioverlanPolicyRef](docs/IpmioverlanPolicyRef.md) + - [IpmioverlanValidationTaskRef](docs/IpmioverlanValidationTaskRef.md) + - [KvmDeployTaskRef](docs/KvmDeployTaskRef.md) + - [KvmPolicyRef](docs/KvmPolicyRef.md) + - [KvmValidationTaskRef](docs/KvmValidationTaskRef.md) - [LicenseAccountLicenseData](docs/LicenseAccountLicenseData.md) + - [LicenseAccountLicenseDataRef](docs/LicenseAccountLicenseDataRef.md) - [LicenseCustomerOp](docs/LicenseCustomerOp.md) + - [LicenseCustomerOpRef](docs/LicenseCustomerOpRef.md) - [LicenseLicenseInfo](docs/LicenseLicenseInfo.md) + - [LicenseLicenseInfoRef](docs/LicenseLicenseInfoRef.md) - [LicenseSmartlicenseToken](docs/LicenseSmartlicenseToken.md) + - [LicenseSmartlicenseTokenRef](docs/LicenseSmartlicenseTokenRef.md) + - [LicenseSyncResponseRef](docs/LicenseSyncResponseRef.md) + - [LsServiceProfileRef](docs/LsServiceProfileRef.md) + - [ManagementControllerRef](docs/ManagementControllerRef.md) + - [ManagementEntityRef](docs/ManagementEntityRef.md) + - [ManagementInterfaceRef](docs/ManagementInterfaceRef.md) + - [MemoryArrayRef](docs/MemoryArrayRef.md) + - [MemoryUnitRef](docs/MemoryUnitRef.md) - [MetaDefinition](docs/MetaDefinition.md) - - [PackagemanagementConnectorDeployPolicy](docs/PackagemanagementConnectorDeployPolicy.md) - - [PackagemanagementConnectorImage](docs/PackagemanagementConnectorImage.md) - - [PackagemanagementConnectorInstall](docs/PackagemanagementConnectorInstall.md) + - [MetaDefinitionRef](docs/MetaDefinitionRef.md) + - [MetaPropDefinitionRef](docs/MetaPropDefinitionRef.md) + - [MetaRelationshipDefinitionRef](docs/MetaRelationshipDefinitionRef.md) + - [MoBaseComplexTypeRef](docs/MoBaseComplexTypeRef.md) + - [MoBaseMoRef](docs/MoBaseMoRef.md) + - [MoInterestRegistrationRef](docs/MoInterestRegistrationRef.md) + - [MoMoRefRef](docs/MoMoRefRef.md) + - [MoSnapshotRef](docs/MoSnapshotRef.md) + - [MoTagRef](docs/MoTagRef.md) + - [MoVersionContextRef](docs/MoVersionContextRef.md) + - [NetworkElementRef](docs/NetworkElementRef.md) + - [NetworkElementSummaryRef](docs/NetworkElementSummaryRef.md) + - [NetworkconfigDeployTaskRef](docs/NetworkconfigDeployTaskRef.md) + - [NetworkconfigPolicyRef](docs/NetworkconfigPolicyRef.md) + - [NetworkconfigValidationTaskRef](docs/NetworkconfigValidationTaskRef.md) + - [NotifsConditionRef](docs/NotifsConditionRef.md) + - [NotifsMoSubscriptionRef](docs/NotifsMoSubscriptionRef.md) + - [NtpDeployTaskRef](docs/NtpDeployTaskRef.md) + - [NtpPolicyRef](docs/NtpPolicyRef.md) + - [NtpValidationTaskRef](docs/NtpValidationTaskRef.md) + - [Oauth2AuthTokenRef](docs/Oauth2AuthTokenRef.md) + - [OauthAccessTokenRef](docs/OauthAccessTokenRef.md) + - [OauthOauthUser](docs/OauthOauthUser.md) + - [OauthOauthUserRef](docs/OauthOauthUserRef.md) + - [PciDeviceRef](docs/PciDeviceRef.md) + - [PolicyAbstractConfigChangeDetail](docs/PolicyAbstractConfigChangeDetail.md) + - [PolicyAbstractConfigChangeDetailRef](docs/PolicyAbstractConfigChangeDetailRef.md) + - [PolicyAbstractConfigProfileRef](docs/PolicyAbstractConfigProfileRef.md) - [PolicyAbstractConfigResult](docs/PolicyAbstractConfigResult.md) + - [PolicyAbstractConfigResultEntry](docs/PolicyAbstractConfigResultEntry.md) + - [PolicyAbstractConfigResultEntryRef](docs/PolicyAbstractConfigResultEntryRef.md) + - [PolicyAbstractConfigResultRef](docs/PolicyAbstractConfigResultRef.md) - [PolicyAbstractPolicy](docs/PolicyAbstractPolicy.md) + - [PolicyAbstractPolicyRef](docs/PolicyAbstractPolicyRef.md) - [PolicyAbstractProfile](docs/PolicyAbstractProfile.md) - - [PolicyPolicyMeta](docs/PolicyPolicyMeta.md) + - [PolicyAbstractProfileRef](docs/PolicyAbstractProfileRef.md) + - [PolicyAnalyzeImpactTaskRef](docs/PolicyAnalyzeImpactTaskRef.md) + - [PolicyConfigChangeDetailTypeRef](docs/PolicyConfigChangeDetailTypeRef.md) + - [PolicyConfigChangeRef](docs/PolicyConfigChangeRef.md) + - [PolicyConfigContextRef](docs/PolicyConfigContextRef.md) + - [PolicyConfigResultContextRef](docs/PolicyConfigResultContextRef.md) + - [PolicyTakeSnapshotTaskRef](docs/PolicyTakeSnapshotTaskRef.md) + - [PortGroupRef](docs/PortGroupRef.md) + - [PortPhysicalRef](docs/PortPhysicalRef.md) + - [PortSubGroupRef](docs/PortSubGroupRef.md) + - [ProcessorUnitRef](docs/ProcessorUnitRef.md) + - [QataskExecutionStatusTaskRef](docs/QataskExecutionStatusTaskRef.md) + - [QataskExpobackoffRetryRef](docs/QataskExpobackoffRetryRef.md) + - [QataskFailAsyncTaskRef](docs/QataskFailAsyncTaskRef.md) + - [QataskFailedNoRetryRef](docs/QataskFailedNoRetryRef.md) + - [QataskHuuFirmwareUpgradeRef](docs/QataskHuuFirmwareUpgradeRef.md) + - [QataskInitiateDownloadRef](docs/QataskInitiateDownloadRef.md) + - [QataskRetry30timeout60taskRef](docs/QataskRetry30timeout60taskRef.md) + - [QataskRetryFixedRef](docs/QataskRetryFixedRef.md) + - [QataskSuccessAsyncTaskRef](docs/QataskSuccessAsyncTaskRef.md) + - [QataskTaskinScheuledRef](docs/QataskTaskinScheuledRef.md) + - [QataskTimeoutwfExponentialRef](docs/QataskTimeoutwfExponentialRef.md) + - [QataskTimeoutwfFixedRef](docs/QataskTimeoutwfFixedRef.md) + - [QataskUcsTask1Ref](docs/QataskUcsTask1Ref.md) + - [QataskUcsTask2Ref](docs/QataskUcsTask2Ref.md) + - [QataskUcsTask3Ref](docs/QataskUcsTask3Ref.md) + - [QataskUcsTask4Ref](docs/QataskUcsTask4Ref.md) + - [QataskUcsTask5Ref](docs/QataskUcsTask5Ref.md) + - [QataskUcsTask6Ref](docs/QataskUcsTask6Ref.md) + - [QataskUcsTask7Ref](docs/QataskUcsTask7Ref.md) + - [QataskUcsTask8Ref](docs/QataskUcsTask8Ref.md) + - [QataskUcsTask9Ref](docs/QataskUcsTask9Ref.md) + - [QataskWaitForDownloadRef](docs/QataskWaitForDownloadRef.md) + - [QataskWaitForFirmwareUpgradeRef](docs/QataskWaitForFirmwareUpgradeRef.md) + - [ResourceGroup](docs/ResourceGroup.md) + - [ResourceGroupRef](docs/ResourceGroupRef.md) + - [SdcardDeployTaskRef](docs/SdcardDeployTaskRef.md) + - [SdcardDiagnosticsRef](docs/SdcardDiagnosticsRef.md) + - [SdcardDriversRef](docs/SdcardDriversRef.md) + - [SdcardHostUpgradeUtilityRef](docs/SdcardHostUpgradeUtilityRef.md) + - [SdcardOperatingSystemRef](docs/SdcardOperatingSystemRef.md) + - [SdcardPartitionRef](docs/SdcardPartitionRef.md) + - [SdcardPolicyRef](docs/SdcardPolicyRef.md) + - [SdcardServerConfigurationUtilityRef](docs/SdcardServerConfigurationUtilityRef.md) + - [SdcardUserPartitionRef](docs/SdcardUserPartitionRef.md) + - [SdcardValidationTaskRef](docs/SdcardValidationTaskRef.md) + - [SdcardVirtualDriveRef](docs/SdcardVirtualDriveRef.md) - [SearchSearchItem](docs/SearchSearchItem.md) + - [SearchSearchItemRef](docs/SearchSearchItemRef.md) - [SearchSuggestItem](docs/SearchSuggestItem.md) + - [SearchSuggestItemRef](docs/SearchSuggestItemRef.md) - [SearchTagItem](docs/SearchTagItem.md) + - [SearchTagItemRef](docs/SearchTagItemRef.md) + - [SecurityUnitRef](docs/SecurityUnitRef.md) + - [ServerConfigChangeDetailRef](docs/ServerConfigChangeDetailRef.md) + - [ServerConfigResultEntryRef](docs/ServerConfigResultEntryRef.md) + - [ServerConfigResultRef](docs/ServerConfigResultRef.md) + - [ServerProfileApplyTaskRef](docs/ServerProfileApplyTaskRef.md) + - [ServerProfileRef](docs/ServerProfileRef.md) + - [ServerResultHandlerTaskRef](docs/ServerResultHandlerTaskRef.md) + - [SmtpDeployTaskRef](docs/SmtpDeployTaskRef.md) + - [SmtpPolicyRef](docs/SmtpPolicyRef.md) + - [SmtpValidationTaskRef](docs/SmtpValidationTaskRef.md) + - [SnmpDeployTaskRef](docs/SnmpDeployTaskRef.md) + - [SnmpPolicyRef](docs/SnmpPolicyRef.md) + - [SnmpTrapRef](docs/SnmpTrapRef.md) + - [SnmpUserRef](docs/SnmpUserRef.md) + - [SnmpValidationTaskRef](docs/SnmpValidationTaskRef.md) + - [SoftwarerepositoryAuthorization](docs/SoftwarerepositoryAuthorization.md) + - [SoftwarerepositoryAuthorizationRef](docs/SoftwarerepositoryAuthorizationRef.md) + - [SolDeployTaskRef](docs/SolDeployTaskRef.md) + - [SolPolicyRef](docs/SolPolicyRef.md) + - [SolValidationTaskRef](docs/SolValidationTaskRef.md) + - [SshDeployTaskRef](docs/SshDeployTaskRef.md) + - [SshPolicyRef](docs/SshPolicyRef.md) + - [SshValidationTaskRef](docs/SshValidationTaskRef.md) + - [StorageAnalyzeImpactTaskRef](docs/StorageAnalyzeImpactTaskRef.md) + - [StorageControllerRef](docs/StorageControllerRef.md) + - [StorageDeployTaskRef](docs/StorageDeployTaskRef.md) + - [StorageDiskGroupPolicyRef](docs/StorageDiskGroupPolicyRef.md) + - [StorageEnclosureRef](docs/StorageEnclosureRef.md) + - [StorageFlexFlashControllerPropsRef](docs/StorageFlexFlashControllerPropsRef.md) + - [StorageFlexFlashControllerRef](docs/StorageFlexFlashControllerRef.md) + - [StorageFlexFlashPhysicalDriveRef](docs/StorageFlexFlashPhysicalDriveRef.md) + - [StorageFlexFlashVirtualDriveRef](docs/StorageFlexFlashVirtualDriveRef.md) + - [StorageFlexUtilControllerRef](docs/StorageFlexUtilControllerRef.md) + - [StorageFlexUtilPhysicalDriveRef](docs/StorageFlexUtilPhysicalDriveRef.md) + - [StorageFlexUtilVirtualDriveRef](docs/StorageFlexUtilVirtualDriveRef.md) + - [StorageLocalDiskRef](docs/StorageLocalDiskRef.md) + - [StoragePhysicalDiskExtensionRef](docs/StoragePhysicalDiskExtensionRef.md) + - [StoragePhysicalDiskRef](docs/StoragePhysicalDiskRef.md) + - [StoragePhysicalDiskUsageRef](docs/StoragePhysicalDiskUsageRef.md) + - [StorageRemoteKeySettingRef](docs/StorageRemoteKeySettingRef.md) + - [StorageSasExpanderRef](docs/StorageSasExpanderRef.md) + - [StorageSpanGroupRef](docs/StorageSpanGroupRef.md) + - [StorageStoragePolicyRef](docs/StorageStoragePolicyRef.md) + - [StorageTakeSnapshotTaskRef](docs/StorageTakeSnapshotTaskRef.md) + - [StorageValidationTaskRef](docs/StorageValidationTaskRef.md) + - [StorageVdMemberEpRef](docs/StorageVdMemberEpRef.md) + - [StorageVirtualDriveConfigRef](docs/StorageVirtualDriveConfigRef.md) + - [StorageVirtualDriveExtensionRef](docs/StorageVirtualDriveExtensionRef.md) + - [StorageVirtualDriveRef](docs/StorageVirtualDriveRef.md) + - [SyslogDeployTaskRef](docs/SyslogDeployTaskRef.md) + - [SyslogLocalClientBaseRef](docs/SyslogLocalClientBaseRef.md) + - [SyslogLocalFileLoggingClientRef](docs/SyslogLocalFileLoggingClientRef.md) + - [SyslogPolicyRef](docs/SyslogPolicyRef.md) + - [SyslogRemoteClientBaseRef](docs/SyslogRemoteClientBaseRef.md) + - [SyslogRemoteLoggingClientRef](docs/SyslogRemoteLoggingClientRef.md) + - [SyslogValidationTaskRef](docs/SyslogValidationTaskRef.md) + - [TaskFileDownloadInfoRef](docs/TaskFileDownloadInfoRef.md) + - [TaskInputTaskRef](docs/TaskInputTaskRef.md) + - [TaskUcsTask1Ref](docs/TaskUcsTask1Ref.md) + - [TaskUcsTask2Ref](docs/TaskUcsTask2Ref.md) + - [TaskUcsTask3Ref](docs/TaskUcsTask3Ref.md) + - [TaskUcsTask4Ref](docs/TaskUcsTask4Ref.md) + - [TaskUcsTask5Ref](docs/TaskUcsTask5Ref.md) + - [TaskUcsTask6Ref](docs/TaskUcsTask6Ref.md) + - [TaskUcsTask7Ref](docs/TaskUcsTask7Ref.md) + - [TaskUcsTask8Ref](docs/TaskUcsTask8Ref.md) + - [TaskUcsTask9Ref](docs/TaskUcsTask9Ref.md) - [TaskWorkflowAction](docs/TaskWorkflowAction.md) - - [TechsupportmanagementDownload](docs/TechsupportmanagementDownload.md) - - [TechsupportmanagementTechSupportBundle](docs/TechsupportmanagementTechSupportBundle.md) - - [TechsupportmanagementTechSupportStatus](docs/TechsupportmanagementTechSupportStatus.md) + - [TaskWorkflowActionRef](docs/TaskWorkflowActionRef.md) + - [TelemetryTimeSeries](docs/TelemetryTimeSeries.md) + - [TelemetryTimeSeriesRef](docs/TelemetryTimeSeriesRef.md) - [TerminalAuditLog](docs/TerminalAuditLog.md) + - [TerminalAuditLogRef](docs/TerminalAuditLogRef.md) + - [TestcryptAdministrator](docs/TestcryptAdministrator.md) + - [TestcryptAdministratorRef](docs/TestcryptAdministratorRef.md) + - [TestcryptCredential](docs/TestcryptCredential.md) + - [TestcryptCredentialRef](docs/TestcryptCredentialRef.md) + - [TestcryptReadOnlyUser](docs/TestcryptReadOnlyUser.md) + - [TestcryptReadOnlyUserRef](docs/TestcryptReadOnlyUserRef.md) + - [TestcryptShadowCredential](docs/TestcryptShadowCredential.md) + - [TestcryptShadowCredentialRef](docs/TestcryptShadowCredentialRef.md) + - [TestcryptUserRef](docs/TestcryptUserRef.md) + - [TopSystemRef](docs/TopSystemRef.md) + - [UcsdconnectorFieldQueryRef](docs/UcsdconnectorFieldQueryRef.md) + - [UcsdconnectorInventoryMessageRef](docs/UcsdconnectorInventoryMessageRef.md) + - [UcsdconnectorSqlQueryRef](docs/UcsdconnectorSqlQueryRef.md) + - [UcsdconnectorTelemetryMessageRef](docs/UcsdconnectorTelemetryMessageRef.md) + - [UcsdconnectorTelemetryMoRef](docs/UcsdconnectorTelemetryMoRef.md) - [ViewsView](docs/ViewsView.md) + - [ViewsViewRef](docs/ViewsViewRef.md) + - [VmediaDeployTaskRef](docs/VmediaDeployTaskRef.md) + - [VmediaMappingRef](docs/VmediaMappingRef.md) + - [VmediaPolicyRef](docs/VmediaPolicyRef.md) + - [VmediaValidationTaskRef](docs/VmediaValidationTaskRef.md) - [WorkflowBuildTaskMeta](docs/WorkflowBuildTaskMeta.md) + - [WorkflowBuildTaskMetaOwner](docs/WorkflowBuildTaskMetaOwner.md) + - [WorkflowBuildTaskMetaOwnerRef](docs/WorkflowBuildTaskMetaOwnerRef.md) + - [WorkflowBuildTaskMetaRef](docs/WorkflowBuildTaskMetaRef.md) + - [WorkflowDynamicWorkflowActionTaskListRef](docs/WorkflowDynamicWorkflowActionTaskListRef.md) + - [WorkflowInputDefinitionRef](docs/WorkflowInputDefinitionRef.md) + - [WorkflowInputParameterRef](docs/WorkflowInputParameterRef.md) + - [WorkflowPendingDynamicWorkflowInfo](docs/WorkflowPendingDynamicWorkflowInfo.md) + - [WorkflowPendingDynamicWorkflowInfoRef](docs/WorkflowPendingDynamicWorkflowInfoRef.md) - [WorkflowTaskInfo](docs/WorkflowTaskInfo.md) + - [WorkflowTaskInfoRef](docs/WorkflowTaskInfoRef.md) - [WorkflowTaskMeta](docs/WorkflowTaskMeta.md) + - [WorkflowTaskMetaRef](docs/WorkflowTaskMetaRef.md) + - [WorkflowTaskRetryInfoRef](docs/WorkflowTaskRetryInfoRef.md) - [WorkflowWorkflowInfo](docs/WorkflowWorkflowInfo.md) + - [WorkflowWorkflowInfoRef](docs/WorkflowWorkflowInfoRef.md) - [WorkflowWorkflowMeta](docs/WorkflowWorkflowMeta.md) - - [WorkflowWorkflowTask](docs/WorkflowWorkflowTask.md) + - [WorkflowWorkflowMetaRef](docs/WorkflowWorkflowMetaRef.md) - [AaaAuditRecord](docs/AaaAuditRecord.md) + - [AssetClusterMember](docs/AssetClusterMember.md) + - [AssetDeviceRegistration](docs/AssetDeviceRegistration.md) - [BiosPolicy](docs/BiosPolicy.md) - [BootPrecisionPolicy](docs/BootPrecisionPolicy.md) - [ComputePhysicalSummary](docs/ComputePhysicalSummary.md) - [ComputeServerSetting](docs/ComputeServerSetting.md) + - [DeviceconnectorPolicy](docs/DeviceconnectorPolicy.md) - [EquipmentBase](docs/EquipmentBase.md) - [EquipmentDeviceSummary](docs/EquipmentDeviceSummary.md) - [EquipmentLocatorLed](docs/EquipmentLocatorLed.md) @@ -961,11 +1797,13 @@ Class | Method | HTTP request | Description - [HyperflexClusterNetworkPolicy](docs/HyperflexClusterNetworkPolicy.md) - [HyperflexClusterStoragePolicy](docs/HyperflexClusterStoragePolicy.md) - [HyperflexConfigResult](docs/HyperflexConfigResult.md) + - [HyperflexConfigResultEntry](docs/HyperflexConfigResultEntry.md) - [HyperflexExtFcStoragePolicy](docs/HyperflexExtFcStoragePolicy.md) - [HyperflexExtIscsiStoragePolicy](docs/HyperflexExtIscsiStoragePolicy.md) - [HyperflexLocalCredentialPolicy](docs/HyperflexLocalCredentialPolicy.md) - [HyperflexNodeConfigPolicy](docs/HyperflexNodeConfigPolicy.md) - [HyperflexNodeProfile](docs/HyperflexNodeProfile.md) + - [HyperflexProxySettingPolicy](docs/HyperflexProxySettingPolicy.md) - [HyperflexSysConfigPolicy](docs/HyperflexSysConfigPolicy.md) - [HyperflexUcsmConfigPolicy](docs/HyperflexUcsmConfigPolicy.md) - [HyperflexVcenterConfigPolicy](docs/HyperflexVcenterConfigPolicy.md) @@ -986,16 +1824,22 @@ Class | Method | HTTP request | Description - [PortGroup](docs/PortGroup.md) - [PortPhysical](docs/PortPhysical.md) - [PortSubGroup](docs/PortSubGroup.md) + - [SdcardPolicy](docs/SdcardPolicy.md) + - [ServerConfigChangeDetail](docs/ServerConfigChangeDetail.md) - [ServerConfigResult](docs/ServerConfigResult.md) + - [ServerConfigResultEntry](docs/ServerConfigResultEntry.md) - [SmtpPolicy](docs/SmtpPolicy.md) - [SnmpPolicy](docs/SnmpPolicy.md) - [SolPolicy](docs/SolPolicy.md) - [SshPolicy](docs/SshPolicy.md) - [StorageDiskGroupPolicy](docs/StorageDiskGroupPolicy.md) - [StorageFlexUtilController](docs/StorageFlexUtilController.md) + - [StorageFlexUtilVirtualDrive](docs/StorageFlexUtilVirtualDrive.md) - [StoragePhysicalDiskUsage](docs/StoragePhysicalDiskUsage.md) - [StorageStoragePolicy](docs/StorageStoragePolicy.md) - [StorageVdMemberEp](docs/StorageVdMemberEp.md) + - [StorageVirtualDriveExtension](docs/StorageVirtualDriveExtension.md) + - [SyslogPolicy](docs/SyslogPolicy.md) - [TopSystem](docs/TopSystem.md) - [VmediaPolicy](docs/VmediaPolicy.md) - [AdapterExtEthInterface](docs/AdapterExtEthInterface.md) @@ -1011,9 +1855,13 @@ Class | Method | HTTP request | Description - [EquipmentFanModule](docs/EquipmentFanModule.md) - [EquipmentFex](docs/EquipmentFex.md) - [EquipmentIoCard](docs/EquipmentIoCard.md) + - [EquipmentIoExpander](docs/EquipmentIoExpander.md) - [EquipmentPsu](docs/EquipmentPsu.md) + - [EquipmentRackEnclosure](docs/EquipmentRackEnclosure.md) + - [EquipmentRackEnclosureSlot](docs/EquipmentRackEnclosureSlot.md) - [EquipmentSwitchCard](docs/EquipmentSwitchCard.md) - [EquipmentSystemIoController](docs/EquipmentSystemIoController.md) + - [EquipmentTpm](docs/EquipmentTpm.md) - [EtherPhysicalPort](docs/EtherPhysicalPort.md) - [FcPhysicalPort](docs/FcPhysicalPort.md) - [GraphicsCard](docs/GraphicsCard.md) @@ -1022,13 +1870,19 @@ Class | Method | HTTP request | Description - [MemoryArray](docs/MemoryArray.md) - [MemoryUnit](docs/MemoryUnit.md) - [NetworkElement](docs/NetworkElement.md) + - [PciDevice](docs/PciDevice.md) - [ProcessorUnit](docs/ProcessorUnit.md) - [SecurityUnit](docs/SecurityUnit.md) - [ServerProfile](docs/ServerProfile.md) - [StorageController](docs/StorageController.md) + - [StorageEnclosure](docs/StorageEnclosure.md) - [StorageFlexFlashController](docs/StorageFlexFlashController.md) + - [StorageFlexFlashControllerProps](docs/StorageFlexFlashControllerProps.md) - [StorageFlexFlashPhysicalDrive](docs/StorageFlexFlashPhysicalDrive.md) + - [StorageFlexFlashVirtualDrive](docs/StorageFlexFlashVirtualDrive.md) + - [StorageFlexUtilPhysicalDrive](docs/StorageFlexUtilPhysicalDrive.md) - [StoragePhysicalDisk](docs/StoragePhysicalDisk.md) + - [StoragePhysicalDiskExtension](docs/StoragePhysicalDiskExtension.md) - [StorageSasExpander](docs/StorageSasExpander.md) - [StorageVirtualDrive](docs/StorageVirtualDrive.md) - [ComputeBlade](docs/ComputeBlade.md) diff --git a/examples/add_user.py b/examples/add_user.py index 2f564265..1b8427ff 100644 --- a/examples/add_user.py +++ b/examples/add_user.py @@ -4,11 +4,60 @@ import json import argparse from intersight.intersight_api_client import IntersightApiClient -from intersight.apis import iam_account_api -from intersight.apis import iam_user_api -from intersight.apis import iam_role_api -from intersight.apis import iam_end_point_role_api from intersight.apis import iam_permission_api +from intersight.apis import iam_idp_reference_api +from intersight.apis import iam_user_api + + +def add_user(intersight_api_params, username, user_role='Account Administrator'): + # Create Intersight API instance + # ---------------------- + api_instance = IntersightApiClient( + host=intersight_api_params['api_base_uri'], + private_key=intersight_api_params['api_private_key_file'], + api_key_id=intersight_api_params['api_key_id'], + ) + + # GET Permissions + permissions_handle = iam_permission_api.IamPermissionApi(api_instance) + kwargs = dict(filter="Name eq '%s'" % user_role) + permissions_result = permissions_handle.iam_permissions_get(**kwargs) + + if permissions_result.results: + # GET IdpReference + idp_reference_handle = iam_idp_reference_api.IamIdpReferenceApi(api_instance) + idp_reference_name = 'Cisco' + kwargs = dict(filter="Name eq '%s'" % idp_reference_name) + idp_reference_result = idp_reference_handle.iam_idp_references_get(**kwargs) + if idp_reference_result.results: + user_matches = False + # GET Users + users_handle = iam_user_api.IamUserApi(api_instance) + kwargs = dict(filter="Email eq '%s'" % username) + users_result = users_handle.iam_users_get(**kwargs) + if ( + users_result.results and + users_result.results[0].permissions[0].moid == permissions_result.results[0].moid and + users_result.results[0].idpreference.moid == idp_reference_result.results[0].moid + ): + user_matches = True + + if not user_matches: + # POST Users with Permissions and IdpReference + users_body = { + 'Email': username, + 'Idpreference': idp_reference_result.results[0].moid, + 'Permissions': [permissions_result.results[0].moid], + } + users_result = users_handle.iam_users_post(users_body) + result['changed'] = True + else: # user exists and IdP/Permissions match + print('User exists with requested role:', username) + else: + print('Could not find IdP', idp_reference_name) + else: + print('Invalid user role', user_role) + if __name__ == "__main__": result = dict(changed=False) @@ -25,64 +74,7 @@ with open(args.api_params, 'r') as api_file: intersight_api_params = json.load(api_file) - # Create Intersight API instance - # ---------------------- - api_instance = IntersightApiClient( - host=intersight_api_params['api_base_uri'], - private_key=intersight_api_params['api_private_key_file'], - api_key_id=intersight_api_params['api_key_id'], - ) - - # GET Users - users_handle = iam_user_api.IamUserApi(api_instance) - kwargs = dict(filter="Name eq '%s'" % args.id) - users_result = users_handle.iam_users_get(**kwargs) - if users_result.results: - print("User already exists:", args.id) - else: - # GET Accounts - accounts_handle = iam_account_api.IamAccountApi(api_instance) - accounts_result = accounts_handle.iam_accounts_get() - - # POST Users with Idpreference - users_body = { - 'Name': args.id, - 'Idpreference': accounts_result.results[0].idpreferences[0], - } - users_result = users_handle.iam_users_post(users_body) - result['changed'] = True - - # GET Users - kwargs = dict(filter="Name eq '%s'" % args.id) - users_result = users_handle.iam_users_get(**kwargs) - - # GET Roles - roles_handle = iam_role_api.IamRoleApi(api_instance) - roles_result = roles_handle.iam_roles_get() - for role in roles_result.results: - if role.name == args.role: - # GET EndPointRoles - end_point_roles_handle = iam_end_point_role_api.IamEndPointRoleApi(api_instance) - endpoint_roles = {} - endpoint_roles['Read-Only'] = 'endpoint-readonly' - endpoint_roles['Account Administrator'] = 'endpoint-admin' - kwargs = dict(filter="RoleType eq '%s'" % endpoint_roles[args.role]) - end_point_roles_result = end_point_roles_handle.iam_end_point_roles_get(**kwargs) - - # POST Permissions with EndPointRoles - permissions_handle = iam_permission_api.IamPermissionApi(api_instance) - permissions_body = { - 'Subject': users_result.results[0].moid, - 'Type': 'User', - 'Account': accounts_result.results[0].account_moid, - 'EndPointRoles': end_point_roles_result.results, - 'Roles': [role], - } - permissions_result = permissions_handle.iam_permissions_post(permissions_body) - break - else: - # for loop completed without finding a role - print("Role not found:", args.role) + add_user(intersight_api_params, args.id, args.role) except Exception as err: print("Exception:", str(err)) diff --git a/examples/claim_device.py b/examples/claim_device.py index 8e9fb98a..9042d707 100644 --- a/examples/claim_device.py +++ b/examples/claim_device.py @@ -4,6 +4,7 @@ import argparse import os.path import json +from time import sleep from intersight.intersight_api_client import IntersightApiClient from intersight.apis import asset_device_claim_api import device_connector @@ -33,7 +34,7 @@ result = dict(changed=False) result['msg'] = " Host: %s" % device['hostname'] # default access mode to allow control (Read-only False) and set to a boolean value if a string - if device.get('read_only') == None: + if not device.get('read_only'): device['read_only'] = False else: if device['read_only'] == 'True' or device['read_only'] == 'true': @@ -41,12 +42,15 @@ elif device['read_only'] == 'False' or device['read_only'] == 'false': device['read_only'] = False # create device connector object based on device type - if device['device_type'] == 'ucsm' or device['device_type'] == 'ucspe': + if device['device_type'] == 'ucs' or device['device_type'] == 'ucsm' or device['device_type'] == 'ucspe': dc_obj = device_connector.UcsDeviceConnector(device) elif device['device_type'] == 'hx': dc_obj = device_connector.HxDeviceConnector(device) elif device['device_type'] == 'imc': - dc_obj = device_connector.ImcDeviceConnector(device) + # attempt ucs connection and if that doesn't login revert to older imc login + dc_obj = device_connector.UcsDeviceConnector(device) + if not dc_obj.logged_in: + dc_obj = device_connector.ImcDeviceConnector(device) else: result['msg'] += " Unknown device_type %s" % device['device_type'] return_code = 1 @@ -59,8 +63,8 @@ print(json.dumps(result)) continue - ro_json = dc_obj.enable_connector() - if ro_json['AdminState'] is False: + ro_json = dc_obj.configure_connector() + if not ro_json['AdminState']: return_code = 1 if ro_json.get('ApiError'): result['msg'] += ro_json['ApiError'] @@ -68,7 +72,7 @@ continue # set access mode (ReadOnlyMode True/False) to desired state - if (ro_json.get('ReadOnlyMode') != None) and (ro_json['ReadOnlyMode'] != device['read_only']): + if (ro_json.get('ReadOnlyMode') is not None) and (ro_json['ReadOnlyMode'] != device['read_only']): ro_json = dc_obj.configure_access_mode(ro_json) if ro_json.get('ApiError'): result['msg'] += ro_json['ApiError'] @@ -77,23 +81,34 @@ continue result['changed'] = True - # if not connected, configure proxy settings if proxy settings were provided - if ro_json['ConnectionState'] != 'Connected' and device.get('proxy_host') and device.get('proxy_port'): - ro_json = dc_obj.configure_proxy(ro_json) - if ro_json.get('ApiError'): - result['msg'] += ro_json['ApiError'] - return_code = 1 - print(json.dumps(result)) - continue - result['changed'] = True + # configure proxy settings (changes reported in called function) + ro_json = dc_obj.configure_proxy(ro_json, result) + if ro_json.get('ApiError'): + result['msg'] += ro_json['ApiError'] + return_code = 1 + print(json.dumps(result)) + continue + + # wait for a connection to establish before checking claim state + for _ in range(10): + if ro_json['ConnectionState'] != 'Connected': + sleep(1) + ro_json = dc_obj.get_status() + else: + break result['msg'] += " AdminState: %s" % ro_json['AdminState'] result['msg'] += " ConnectionState: %s" % ro_json['ConnectionState'] result['msg'] += " Claimed state: %s" % ro_json['AccountOwnershipState'] - # if connected and unclaimed, get device id and claim code - if ro_json['ConnectionState'] == 'Connected' and ro_json['AccountOwnershipState'] != 'Claimed': - (claim_resp, device_id, claim_code) = dc_obj.get_claim_info() + if ro_json['ConnectionState'] != 'Connected': + return_code = 1 + print(json.dumps(result)) + continue + + if ro_json['AccountOwnershipState'] != 'Claimed': + # attempt to claim + (claim_resp, device_id, claim_code) = dc_obj.get_claim_info(ro_json) if claim_resp.get('ApiError'): result['msg'] += claim_resp['ApiError'] return_code = 1 diff --git a/examples/delete_user.py b/examples/delete_user.py index 5f014616..b8ae0b63 100644 --- a/examples/delete_user.py +++ b/examples/delete_user.py @@ -5,7 +5,6 @@ import argparse from intersight.intersight_api_client import IntersightApiClient from intersight.apis import iam_user_api -from intersight.apis import iam_permission_api if __name__ == "__main__": result = dict(changed=False) @@ -30,20 +29,12 @@ # GET Users users_handle = iam_user_api.IamUserApi(api_instance) - kwargs = dict(filter="Name eq '%s'" % args.id) + kwargs = dict(filter="Email eq '%s'" % args.id) users_result = users_handle.iam_users_get(**kwargs) if users_result.results: - # GET Permissions - permissions_handle = iam_permission_api.IamPermissionApi(api_instance) - kwargs = dict(filter="Subject eq '%s'" % users_result.results[0].moid) - permissions_result = permissions_handle.iam_permissions_get(**kwargs) - - # DELETE Permissions - permissions_delete_result = permissions_handle.iam_permissions_moid_delete(moid=permissions_result.results[0].moid) - result['changed'] = True - # DELETE Users users_delete_result = users_handle.iam_users_moid_delete(moid=users_result.results[0].moid) + result['changed'] = True else: print("User not found:", args.id) diff --git a/examples/device_connector.py b/examples/device_connector.py index b0dfef01..2514f057 100644 --- a/examples/device_connector.py +++ b/examples/device_connector.py @@ -4,10 +4,40 @@ import subprocess import re from xml.etree import ElementTree +from time import sleep import platform import requests +def requests_op(op, uri, header, ro_json, body): + """perform op and retry on 5XX status errors""" + for _ in range(10): + if op == 'GET': + resp = requests.get(uri, verify=False, headers=header) + elif op == 'PUT': + resp = requests.put(uri, verify=False, headers=header, json=body) + else: + ro_json['ApiError'] = "unsupported op %s" % (op) + break + + if re.match(r'2..', str(resp.status_code)): + ro_json.pop('ApiError', None) + if op == 'GET': + if isinstance(resp.json(), list): + ro_json = resp.json()[0] + else: + ro_json['ApiError'] = "%s %s %s" % (op, uri, resp.status_code) + break + else: + ro_json['ApiError'] = "%s %s %s" % (op, uri, resp.status_code) + if re.match(r'5..', str(resp.status_code)): + sleep(1) + continue + else: + break + return ro_json + + class DeviceConnector(object): """Intersight Device Connector API superclass. Managed endpoint access information (hostname, username) and configuration data should be provided in the device dictionary parameter. @@ -22,39 +52,44 @@ def __init__(self, device): self.connector_uri = "https://%s/connector" % self.device['hostname'] self.systems_uri = "%s/Systems" % self.connector_uri - def enable_connector(self): + def get_status(self): + """Check current connection status.""" + ro_json = dict(AdminState=False) + # get admin, connection, and claim state + ro_json = requests_op(op='GET', uri=self.systems_uri, header=self.auth_header, ro_json=ro_json, body={}) + return ro_json + + def configure_connector(self): """Check current Admin state and enable the Device Connector if not currently enabled.""" ro_json = dict(AdminState=False) for _ in range(4): - # get admin, connection, and claim state - resp = requests.get(self.systems_uri, verify=False, headers=self.auth_header) - if re.match(r'2..', str(resp.status_code)): - ro_json = resp.json()[0] - if ro_json['AdminState'] is True: - break - else: - # enable the device connector - resp = requests.put(self.systems_uri, verify=False, headers=self.auth_header, json={'AdminState': True}) - if not re.match(r'2..', str(resp.status_code)): - ro_json['ApiError'] = "PUT %s %s" % (self.systems_uri, resp.status_code) - break - else: - ro_json['ApiError'] = "GET %s %s" % (self.systems_uri, resp.status_code) + ro_json = self.get_status() + if ro_json['AdminState']: break + else: + # enable the device connector + ro_json = requests_op(op='PUT', uri=self.systems_uri, header=self.auth_header, ro_json=ro_json, body={'AdminState': True}) + if ro_json.get('ApiError'): + break return ro_json def configure_access_mode(self, ro_json): """Configure the Device Connector access mode (ReadOnlyMode True/False).""" - # device read_only setting is a bool (True/False) - resp = requests.put(self.systems_uri, verify=False, headers=self.auth_header, json={'ReadOnlyMode': self.device['read_only']}) - if not re.match(r'2..', str(resp.status_code)): - ro_json['ApiError'] = "PUT %s %s" % (self.systems_uri, resp.status_code) + for _ in range(4): + # device read_only setting is a bool (True/False) + ro_json = requests_op(op='PUT', uri=self.systems_uri, header=self.auth_header, ro_json=ro_json, body={'ReadOnlyMode': self.device['read_only']}) + if ro_json.get('ApiError'): + break + # confirm setting has been applied + ro_json = self.get_status() + if ro_json['ReadOnlyMode'] == self.device['read_only']: + break return ro_json - def configure_proxy(self, ro_json): + def configure_proxy(self, ro_json, result): """Configure the Device Connector proxy if proxy settings (hostname, port) were provided).""" - # if not connected, put proxy settings - if ro_json['ConnectionState'] != 'Connected' and self.device.get('proxy_host') and self.device.get('proxy_port'): + # put proxy settings. If no settings were provided the system settings are not changed + if self.device.get('proxy_host') and self.device.get('proxy_port'): # setup defaults for proxy settings if not self.device.get('proxy_password'): self.device['proxy_password'] = '' @@ -68,43 +103,43 @@ def configure_proxy(self, ro_json): 'ProxyUsername': self.device['proxy_username'], } proxy_uri = "%s/HttpProxies" % self.connector_uri - resp = requests.put(proxy_uri, verify=False, headers=self.auth_header, json=proxy_payload) - if re.match(r'2..', str(resp.status_code)): - for _ in range(10): - # wait for state to report connected - resp = requests.get(self.systems_uri, verify=False, headers=self.auth_header) - if re.match(r'2..', str(resp.status_code)): - ro_json = resp.json()[0] - if ro_json['ConnectionState'] == 'Connected': - break - else: - ro_json['ApiError'] = "GET %s %s" % (self.systems_uri, resp.status_code) + for _ in range(4): + # check current setting + ro_json = requests_op(op='GET', uri=proxy_uri, header=self.auth_header, ro_json=ro_json, body={}) + if ro_json.get('ApiError'): + break + if ro_json['ProxyHost'] == self.device['proxy_host'] and ro_json['ProxyPort'] == int(self.device['proxy_port']): + break + else: + result['msg'] += " Setting proxy: %s %s" % (self.device['proxy_host'], self.device['proxy_port']) + ro_json = requests_op(op='PUT', uri=proxy_uri, header=self.auth_header, ro_json=ro_json, body=proxy_payload) + if ro_json.get('ApiError'): break - else: - ro_json['ApiError'] = "PUT %s %s" % (proxy_uri, resp.status_code) + result['changed'] = True + if not ro_json.get('ApiError'): + # get updated status + ro_json = self.get_status() return ro_json - def get_claim_info(self): + def get_claim_info(self, ro_json): """Get the Device ID and Claim Code from the Device Connector.""" claim_resp = {} device_id = '' claim_code = '' # get device id and claim code id_uri = "%s/DeviceIdentifiers" % self.connector_uri - resp = requests.get(id_uri, verify=False, headers=self.auth_header) - if re.match(r'2..', str(resp.status_code)): - ro_json = resp.json()[0] + ro_json = requests_op(op='GET', uri=id_uri, header=self.auth_header, ro_json=ro_json, body={}) + if not ro_json.get('ApiError'): device_id = ro_json['Id'] claim_uri = "%s/SecurityTokens" % self.connector_uri - resp = requests.get(claim_uri, verify=False, headers=self.auth_header) - if re.match(r'2..', str(resp.status_code)): - ro_json = resp.json()[0] + ro_json = requests_op(op='GET', uri=claim_uri, header=self.auth_header, ro_json=ro_json, body={}) + if not ro_json.get('ApiError'): claim_code = ro_json['Token'] else: - claim_resp['ApiError'] = "GET %s %s" % (claim_uri, resp.status_code) + claim_resp['ApiError'] = ro_json['ApiError'] else: - claim_resp['ApiError'] = "GET %s %s" % (id_uri, resp.status_code) + claim_resp['ApiError'] = ro_json['ApiError'] return(claim_resp, device_id, claim_code) @@ -178,9 +213,12 @@ def __init__(self, device): if sys.version_info[0] == 3: import urllib.parse as URL import get_data_3 as get_data + import six + password = six.b(self.device['password']) elif sys.version_info[0] == 2: import urllib as URL import get_data_2 as get_data + password = str(self.device['password']) system_type = platform.system() utils_extension = '' if system_type == 'Darwin': @@ -191,7 +229,7 @@ def __init__(self, device): utils_exe = "%s/%s/GetData%s" % (utils_dir, system_type, utils_extension) try: passphrase = subprocess.check_output([utils_exe, self.device['username']]) - utils_password = get_data.E(passphrase, str(self.device['password'])) + utils_password = get_data.E(passphrase, password) imc_login_str = "user=%s&password=%s" % (URL.quote_plus(self.device['username']), URL.quote_plus(utils_password.rstrip())) imc_login_uri = "https://%s/data/login" % self.device['hostname'] referer = "https://%s/uiconnector/index.html" % self.device['hostname'] diff --git a/examples/example_claim.yml b/examples/example_claim.yml index 35058e3b..39ff5229 100644 --- a/examples/example_claim.yml +++ b/examples/example_claim.yml @@ -10,6 +10,10 @@ PYTHONPATH: "{{ playbook_dir }}" tasks: # default values that can be overridden in inventory + - name: Set hostname + set_fact: + hostname: "{{ inventory_hostname }}" + when: hostname is not defined - name: Default to no proxy settings set_fact: proxy_host: '' diff --git a/intersight/__init__.py b/intersight/__init__.py index 1553898e..3e30b88b 100644 --- a/intersight/__init__.py +++ b/intersight/__init__.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -20,19 +20,16 @@ from .models.adapter_host_fc_interface_list import AdapterHostFcInterfaceList from .models.adapter_host_iscsi_interface_list import AdapterHostIscsiInterfaceList from .models.adapter_unit_list import AdapterUnitList +from .models.asset_cluster_member_list import AssetClusterMemberList +from .models.asset_device_configuration_list import AssetDeviceConfigurationList from .models.asset_device_registration_list import AssetDeviceRegistrationList -from .models.bios_input_output import BiosInputOutput -from .models.bios_lom_and_pcie_slots_configuration import BiosLomAndPcieSlotsConfiguration -from .models.bios_memory import BiosMemory from .models.bios_policy_list import BiosPolicyList -from .models.bios_power_or_performance import BiosPowerOrPerformance -from .models.bios_processor import BiosProcessor -from .models.bios_security import BiosSecurity -from .models.bios_serial_configuration import BiosSerialConfiguration -from .models.bios_server_management import BiosServerManagement from .models.bios_unit_list import BiosUnitList +from .models.boot_bootloader import BootBootloader from .models.boot_device_base import BootDeviceBase from .models.boot_precision_policy_list import BootPrecisionPolicyList +from .models.comm_ip_v4_interface import CommIpV4Interface +from .models.comm_ip_v6_interface import CommIpV6Interface from .models.compute_blade_list import ComputeBladeList from .models.compute_board_list import ComputeBoardList from .models.compute_ip_address import ComputeIpAddress @@ -41,29 +38,39 @@ from .models.compute_server_config import ComputeServerConfig from .models.compute_server_setting_list import ComputeServerSettingList from .models.cond_alarm_list import CondAlarmList -from .models.cond_hcl_status_action_list import CondHclStatusActionList from .models.cond_hcl_status_detail_list import CondHclStatusDetailList from .models.cond_hcl_status_job_list import CondHclStatusJobList from .models.cond_hcl_status_list import CondHclStatusList +from .models.connector_auth_message import ConnectorAuthMessage +from .models.connector_stream_message import ConnectorStreamMessage +from .models.connectorpack_connector_pack_summary import ConnectorpackConnectorPackSummary from .models.crypt_encryption_token_list import CryptEncryptionTokenList +from .models.cvd_deployment_task_list import CvdDeploymentTaskList +from .models.cvd_input_meta import CvdInputMeta +from .models.cvd_template_list import CvdTemplateList +from .models.cvd_validation_task_list import CvdValidationTaskList +from .models.deviceconnector_policy_list import DeviceconnectorPolicyList from .models.deviceinfo_serial_number_info_list import DeviceinfoSerialNumberInfoList -from .models.epansible_runner_list import EpansibleRunnerList +from .models.devops_abstract_trigger_details import DevopsAbstractTriggerDetails from .models.equipment_chassis_list import EquipmentChassisList from .models.equipment_device_summary_list import EquipmentDeviceSummaryList from .models.equipment_fan_list import EquipmentFanList from .models.equipment_fan_module_list import EquipmentFanModuleList from .models.equipment_fex_list import EquipmentFexList from .models.equipment_io_card_list import EquipmentIoCardList +from .models.equipment_io_expander_list import EquipmentIoExpanderList from .models.equipment_locator_led_list import EquipmentLocatorLedList from .models.equipment_psu_list import EquipmentPsuList +from .models.equipment_rack_enclosure_list import EquipmentRackEnclosureList +from .models.equipment_rack_enclosure_slot_list import EquipmentRackEnclosureSlotList from .models.equipment_switch_card_list import EquipmentSwitchCardList from .models.equipment_system_io_controller_list import EquipmentSystemIoControllerList +from .models.equipment_tpm_list import EquipmentTpmList from .models.error import Error from .models.ether_physical_port_list import EtherPhysicalPortList -from .models.externalsite_auth_profile_list import ExternalsiteAuthProfileList -from .models.extsearch_import_list import ExtsearchImportList from .models.fault_instance_list import FaultInstanceList from .models.fc_physical_port_list import FcPhysicalPortList +from .models.feedback_feedback_data import FeedbackFeedbackData from .models.firmware_cifs_server import FirmwareCifsServer from .models.firmware_direct_download import FirmwareDirectDownload from .models.firmware_distributable_list import FirmwareDistributableList @@ -76,39 +83,67 @@ from .models.firmware_upgrade_status_list import FirmwareUpgradeStatusList from .models.graphics_card_list import GraphicsCardList from .models.graphics_controller_list import GraphicsControllerList -from .models.hcl_compatibility_info_list import HclCompatibilityInfoList -from .models.hcl_data_import_log_list import HclDataImportLogList +from .models.hcl_driver import HclDriver +from .models.hcl_driver_image_list import HclDriverImageList from .models.hcl_firmware import HclFirmware from .models.hcl_hardware_compatibility_profile import HclHardwareCompatibilityProfile -from .models.hcl_note_list import HclNoteList +from .models.hcl_operating_system_list import HclOperatingSystemList +from .models.hcl_operating_system_vendor_list import HclOperatingSystemVendorList from .models.hcl_product import HclProduct +from .models.hcl_service_status_list import HclServiceStatusList +from .models.hyperflex_abstract_app_setting import HyperflexAbstractAppSetting from .models.hyperflex_alarm_list import HyperflexAlarmList +from .models.hyperflex_app_catalog_list import HyperflexAppCatalogList +from .models.hyperflex_app_setting_constraint import HyperflexAppSettingConstraint from .models.hyperflex_auto_support_policy_list import HyperflexAutoSupportPolicyList from .models.hyperflex_cluster_list import HyperflexClusterList from .models.hyperflex_cluster_network_policy_list import HyperflexClusterNetworkPolicyList from .models.hyperflex_cluster_profile_list import HyperflexClusterProfileList from .models.hyperflex_cluster_storage_policy_list import HyperflexClusterStoragePolicyList +from .models.hyperflex_config_result_entry_list import HyperflexConfigResultEntryList from .models.hyperflex_config_result_list import HyperflexConfigResultList from .models.hyperflex_ext_fc_storage_policy_list import HyperflexExtFcStoragePolicyList from .models.hyperflex_ext_iscsi_storage_policy_list import HyperflexExtIscsiStoragePolicyList +from .models.hyperflex_feature_limit_external_list import HyperflexFeatureLimitExternalList +from .models.hyperflex_feature_limit_internal_list import HyperflexFeatureLimitInternalList +from .models.hyperflex_hx_link_dt import HyperflexHxLinkDt +from .models.hyperflex_hx_network_address_dt import HyperflexHxNetworkAddressDt +from .models.hyperflex_hx_uu_id_dt import HyperflexHxUuIdDt +from .models.hyperflex_hxdp_version_list import HyperflexHxdpVersionList from .models.hyperflex_ip_addr_range import HyperflexIpAddrRange -from .models.hyperflex_iterator_string import HyperflexIteratorString from .models.hyperflex_local_credential_policy_list import HyperflexLocalCredentialPolicyList +from .models.hyperflex_logical_availability_zone import HyperflexLogicalAvailabilityZone from .models.hyperflex_mac_addr_prefix_range import HyperflexMacAddrPrefixRange from .models.hyperflex_managed_object_reference import HyperflexManagedObjectReference from .models.hyperflex_named_vlan import HyperflexNamedVlan from .models.hyperflex_named_vsan import HyperflexNamedVsan from .models.hyperflex_node_config_policy_list import HyperflexNodeConfigPolicyList +from .models.hyperflex_node_list import HyperflexNodeList from .models.hyperflex_node_profile_list import HyperflexNodeProfileList +from .models.hyperflex_proxy_setting_policy_list import HyperflexProxySettingPolicyList +from .models.hyperflex_server_firmware_version_list import HyperflexServerFirmwareVersionList +from .models.hyperflex_server_model_list import HyperflexServerModelList from .models.hyperflex_st_platform_cluster_healing_info import HyperflexStPlatformClusterHealingInfo from .models.hyperflex_st_platform_cluster_resiliency_info import HyperflexStPlatformClusterResiliencyInfo from .models.hyperflex_summary import HyperflexSummary from .models.hyperflex_sys_config_policy_list import HyperflexSysConfigPolicyList from .models.hyperflex_ucsm_config_policy_list import HyperflexUcsmConfigPolicyList from .models.hyperflex_vcenter_config_policy_list import HyperflexVcenterConfigPolicyList -from .models.hyperflex_wwxn_range import HyperflexWwxnRange +from .models.hyperflex_wwxn_prefix_range import HyperflexWwxnPrefixRange +from .models.i18n_message import I18nMessage +from .models.i18n_message_param import I18nMessageParam +from .models.iaas_connector_pack_list import IaasConnectorPackList +from .models.iaas_device_status_list import IaasDeviceStatusList +from .models.iaas_license_info_list import IaasLicenseInfoList +from .models.iaas_license_keys_info import IaasLicenseKeysInfo +from .models.iaas_license_utilization_info import IaasLicenseUtilizationInfo +from .models.iaas_most_run_tasks_list import IaasMostRunTasksList +from .models.iaas_ucsd_info_list import IaasUcsdInfoList +from .models.iaas_ucsd_managed_infra_list import IaasUcsdManagedInfraList from .models.iam_account_list import IamAccountList +from .models.iam_account_permissions import IamAccountPermissions from .models.iam_api_key_list import IamApiKeyList +from .models.iam_domain_group_list import IamDomainGroupList from .models.iam_end_point_password_properties import IamEndPointPasswordProperties from .models.iam_end_point_privilege_list import IamEndPointPrivilegeList from .models.iam_end_point_role_list import IamEndPointRoleList @@ -123,13 +158,16 @@ from .models.iam_ldap_policy_list import IamLdapPolicyList from .models.iam_ldap_provider_list import IamLdapProviderList from .models.iam_permission_list import IamPermissionList +from .models.iam_permission_reference import IamPermissionReference from .models.iam_privilege_list import IamPrivilegeList from .models.iam_privilege_set_list import IamPrivilegeSetList from .models.iam_qualifier_list import IamQualifierList from .models.iam_resource_limits_list import IamResourceLimitsList from .models.iam_role_list import IamRoleList +from .models.iam_service_provider_list import IamServiceProviderList from .models.iam_session_limits_list import IamSessionLimitsList from .models.iam_session_list import IamSessionList +from .models.iam_sso_session_attributes import IamSsoSessionAttributes from .models.iam_system_list import IamSystemList from .models.iam_user_group_list import IamUserGroupList from .models.iam_user_list import IamUserList @@ -138,6 +176,8 @@ from .models.inventory_dn_mo_binding_list import InventoryDnMoBindingList from .models.inventory_generic_inventory_holder_list import InventoryGenericInventoryHolderList from .models.inventory_generic_inventory_list import InventoryGenericInventoryList +from .models.inventory_inventory_mo import InventoryInventoryMo +from .models.inventory_job_info import InventoryJobInfo from .models.ipmioverlan_policy_list import IpmioverlanPolicyList from .models.kvm_policy_list import KvmPolicyList from .models.license_account_license_data_list import LicenseAccountLicenseDataList @@ -157,43 +197,51 @@ from .models.mo_base_mo import MoBaseMo from .models.mo_mo_ref import MoMoRef from .models.mo_tag import MoTag +from .models.mo_version_context import MoVersionContext from .models.network_element_list import NetworkElementList from .models.network_element_summary_list import NetworkElementSummaryList from .models.networkconfig_policy_list import NetworkconfigPolicyList +from .models.notifs_condition import NotifsCondition from .models.ntp_policy_list import NtpPolicyList -from .models.packagemanagement_connector_deploy_policy_list import PackagemanagementConnectorDeployPolicyList -from .models.packagemanagement_connector_image_list import PackagemanagementConnectorImageList -from .models.packagemanagement_connector_install_list import PackagemanagementConnectorInstallList -from .models.policy_attachable_service_object import PolicyAttachableServiceObject -from .models.policy_category import PolicyCategory +from .models.oauth_access_token import OauthAccessToken +from .models.oauth_oauth_user_list import OauthOauthUserList +from .models.pci_device_list import PciDeviceList +from .models.policy_config_change import PolicyConfigChange from .models.policy_config_context import PolicyConfigContext from .models.policy_config_result_context import PolicyConfigResultContext -from .models.policy_config_result_entry import PolicyConfigResultEntry -from .models.policy_hardware_platform import PolicyHardwarePlatform -from .models.policy_management_platform import PolicyManagementPlatform -from .models.policy_policy_meta_list import PolicyPolicyMetaList from .models.port_group_list import PortGroupList from .models.port_sub_group_list import PortSubGroupList from .models.processor_unit_list import ProcessorUnitList +from .models.resource_group_list import ResourceGroupList +from .models.sdcard_partition import SdcardPartition +from .models.sdcard_policy_list import SdcardPolicyList +from .models.sdcard_virtual_drive import SdcardVirtualDrive from .models.search_search_item_list import SearchSearchItemList from .models.search_tag_item_list import SearchTagItemList from .models.security_unit_list import SecurityUnitList -from .models.server_config_change import ServerConfigChange -from .models.server_config_change_detail import ServerConfigChangeDetail +from .models.server_config_change_detail_list import ServerConfigChangeDetailList +from .models.server_config_result_entry_list import ServerConfigResultEntryList from .models.server_config_result_list import ServerConfigResultList from .models.server_profile_list import ServerProfileList from .models.smtp_policy_list import SmtpPolicyList from .models.snmp_policy_list import SnmpPolicyList from .models.snmp_trap import SnmpTrap from .models.snmp_user import SnmpUser +from .models.softwarerepository_authorization_list import SoftwarerepositoryAuthorizationList from .models.sol_policy_list import SolPolicyList from .models.ssh_policy_list import SshPolicyList from .models.storage_controller_list import StorageControllerList from .models.storage_disk_group_policy_list import StorageDiskGroupPolicyList +from .models.storage_enclosure_list import StorageEnclosureList from .models.storage_flex_flash_controller_list import StorageFlexFlashControllerList +from .models.storage_flex_flash_controller_props_list import StorageFlexFlashControllerPropsList from .models.storage_flex_flash_physical_drive_list import StorageFlexFlashPhysicalDriveList +from .models.storage_flex_flash_virtual_drive_list import StorageFlexFlashVirtualDriveList from .models.storage_flex_util_controller_list import StorageFlexUtilControllerList +from .models.storage_flex_util_physical_drive_list import StorageFlexUtilPhysicalDriveList +from .models.storage_flex_util_virtual_drive_list import StorageFlexUtilVirtualDriveList from .models.storage_local_disk import StorageLocalDisk +from .models.storage_physical_disk_extension_list import StoragePhysicalDiskExtensionList from .models.storage_physical_disk_list import StoragePhysicalDiskList from .models.storage_physical_disk_usage_list import StoragePhysicalDiskUsageList from .models.storage_remote_key_setting import StorageRemoteKeySetting @@ -202,115 +250,586 @@ from .models.storage_storage_policy_list import StorageStoragePolicyList from .models.storage_vd_member_ep_list import StorageVdMemberEpList from .models.storage_virtual_drive_config import StorageVirtualDriveConfig +from .models.storage_virtual_drive_extension_list import StorageVirtualDriveExtensionList from .models.storage_virtual_drive_list import StorageVirtualDriveList +from .models.syslog_local_client_base import SyslogLocalClientBase +from .models.syslog_policy_list import SyslogPolicyList +from .models.syslog_remote_client_base import SyslogRemoteClientBase from .models.task_file_download_info import TaskFileDownloadInfo from .models.task_workflow_action_list import TaskWorkflowActionList -from .models.techsupportmanagement_download_list import TechsupportmanagementDownloadList -from .models.techsupportmanagement_tech_support_bundle_list import TechsupportmanagementTechSupportBundleList -from .models.techsupportmanagement_tech_support_status_list import TechsupportmanagementTechSupportStatusList from .models.terminal_audit_log_list import TerminalAuditLogList +from .models.testcrypt_administrator_list import TestcryptAdministratorList +from .models.testcrypt_credential_list import TestcryptCredentialList +from .models.testcrypt_read_only_user_list import TestcryptReadOnlyUserList +from .models.testcrypt_shadow_credential_list import TestcryptShadowCredentialList +from .models.testcrypt_user import TestcryptUser from .models.top_system_list import TopSystemList +from .models.ucsdconnector_field_query import UcsdconnectorFieldQuery +from .models.ucsdconnector_sql_query import UcsdconnectorSqlQuery +from .models.ucsdconnector_telemetry_mo import UcsdconnectorTelemetryMo from .models.vmedia_mapping import VmediaMapping from .models.vmedia_policy_list import VmediaPolicyList from .models.workflow_build_task_meta_list import WorkflowBuildTaskMetaList +from .models.workflow_build_task_meta_owner_list import WorkflowBuildTaskMetaOwnerList +from .models.workflow_dynamic_workflow_action_task_list import WorkflowDynamicWorkflowActionTaskList +from .models.workflow_pending_dynamic_workflow_info_list import WorkflowPendingDynamicWorkflowInfoList from .models.workflow_task_info_list import WorkflowTaskInfoList from .models.workflow_task_meta_list import WorkflowTaskMetaList from .models.workflow_task_retry_info import WorkflowTaskRetryInfo from .models.workflow_workflow_info_list import WorkflowWorkflowInfoList from .models.workflow_workflow_meta_list import WorkflowWorkflowMetaList -from .models.workflow_workflow_task_list import WorkflowWorkflowTaskList from .models.aaa_abstract_audit_record import AaaAbstractAuditRecord +from .models.aaa_abstract_audit_record_ref import AaaAbstractAuditRecordRef +from .models.aaa_audit_record_local_ref import AaaAuditRecordLocalRef +from .models.aaa_audit_record_ref import AaaAuditRecordRef +from .models.adapter_ext_eth_interface_ref import AdapterExtEthInterfaceRef +from .models.adapter_host_eth_interface_ref import AdapterHostEthInterfaceRef +from .models.adapter_host_fc_interface_ref import AdapterHostFcInterfaceRef +from .models.adapter_host_iscsi_interface_ref import AdapterHostIscsiInterfaceRef +from .models.adapter_unit_ref import AdapterUnitRef +from .models.asset_cluster_member_ref import AssetClusterMemberRef +from .models.asset_connection_control_message_ref import AssetConnectionControlMessageRef from .models.asset_device_claim import AssetDeviceClaim -from .models.asset_device_registration import AssetDeviceRegistration -from .models.boot_iscsi import BootIscsi -from .models.boot_local_cdd import BootLocalCdd -from .models.boot_local_disk import BootLocalDisk -from .models.boot_nvme import BootNvme -from .models.boot_pch_storage import BootPchStorage -from .models.boot_pxe import BootPxe -from .models.boot_san import BootSan -from .models.boot_sd_card import BootSdCard -from .models.boot_uefi_shell import BootUefiShell -from .models.boot_usb import BootUsb -from .models.boot_virtual_media import BootVirtualMedia +from .models.asset_device_claim_ref import AssetDeviceClaimRef +from .models.asset_device_configuration import AssetDeviceConfiguration +from .models.asset_device_configuration_ref import AssetDeviceConfigurationRef +from .models.asset_device_connection import AssetDeviceConnection +from .models.asset_device_connection_ref import AssetDeviceConnectionRef +from .models.asset_device_registration_ref import AssetDeviceRegistrationRef +from .models.asset_security_token_ref import AssetSecurityTokenRef +from .models.bios_deploy_task_ref import BiosDeployTaskRef +from .models.bios_policy_ref import BiosPolicyRef +from .models.bios_unit_ref import BiosUnitRef +from .models.bios_validation_task_ref import BiosValidationTaskRef +from .models.boot_bootloader_ref import BootBootloaderRef +from .models.boot_device_base_ref import BootDeviceBaseRef +from .models.boot_iscsi_ref import BootIscsiRef +from .models.boot_local_cdd_ref import BootLocalCddRef +from .models.boot_local_disk_ref import BootLocalDiskRef +from .models.boot_nvme_ref import BootNvmeRef +from .models.boot_pch_storage_ref import BootPchStorageRef +from .models.boot_precision_deploy_task_ref import BootPrecisionDeployTaskRef +from .models.boot_precision_policy_ref import BootPrecisionPolicyRef +from .models.boot_precision_validation_task_ref import BootPrecisionValidationTaskRef +from .models.boot_pxe_ref import BootPxeRef +from .models.boot_san_ref import BootSanRef +from .models.boot_sd_card_ref import BootSdCardRef +from .models.boot_uefi_shell_ref import BootUefiShellRef +from .models.boot_usb_ref import BootUsbRef +from .models.boot_virtual_media_ref import BootVirtualMediaRef +from .models.comm_ip_v4_interface_ref import CommIpV4InterfaceRef +from .models.comm_ip_v6_interface_ref import CommIpV6InterfaceRef +from .models.compute_blade_ref import ComputeBladeRef +from .models.compute_board_ref import ComputeBoardRef +from .models.compute_ip_address_ref import ComputeIpAddressRef +from .models.compute_locator_led_operation_task_ref import ComputeLocatorLedOperationTaskRef +from .models.compute_operation_result_handler_ref import ComputeOperationResultHandlerRef +from .models.compute_physical_ref import ComputePhysicalRef +from .models.compute_physical_summary_ref import ComputePhysicalSummaryRef +from .models.compute_rack_unit_ref import ComputeRackUnitRef +from .models.compute_server_config_ref import ComputeServerConfigRef +from .models.compute_server_operation_task_ref import ComputeServerOperationTaskRef +from .models.compute_server_setting_ref import ComputeServerSettingRef from .models.cond_alarm import CondAlarm +from .models.cond_alarm_ref import CondAlarmRef from .models.cond_hcl_status import CondHclStatus -from .models.cond_hcl_status_action import CondHclStatusAction from .models.cond_hcl_status_detail import CondHclStatusDetail +from .models.cond_hcl_status_detail_ref import CondHclStatusDetailRef from .models.cond_hcl_status_job import CondHclStatusJob +from .models.cond_hcl_status_job_ref import CondHclStatusJobRef +from .models.cond_hcl_status_ref import CondHclStatusRef +from .models.connector_auth_message_ref import ConnectorAuthMessageRef +from .models.connector_close_stream_message import ConnectorCloseStreamMessage +from .models.connector_close_stream_message_ref import ConnectorCloseStreamMessageRef +from .models.connector_command_message_ref import ConnectorCommandMessageRef +from .models.connector_control_message_ref import ConnectorControlMessageRef +from .models.connector_event_channel_control_ref import ConnectorEventChannelControlRef +from .models.connector_event_ref import ConnectorEventRef +from .models.connector_fetch_stream_message import ConnectorFetchStreamMessage +from .models.connector_fetch_stream_message_ref import ConnectorFetchStreamMessageRef +from .models.connector_job_async_response_ref import ConnectorJobAsyncResponseRef +from .models.connector_job_message_ref import ConnectorJobMessageRef +from .models.connector_start_stream import ConnectorStartStream +from .models.connector_start_stream_ref import ConnectorStartStreamRef +from .models.connector_stream_input import ConnectorStreamInput +from .models.connector_stream_input_ref import ConnectorStreamInputRef +from .models.connector_stream_message_ref import ConnectorStreamMessageRef +from .models.connector_stream_ref import ConnectorStreamRef +from .models.connector_xml_api_message_ref import ConnectorXmlApiMessageRef +from .models.connectorpack_connector_pack_summary_ref import ConnectorpackConnectorPackSummaryRef +from .models.connectorpack_upgrade_ref import ConnectorpackUpgradeRef +from .models.crypt_account_key_ref import CryptAccountKeyRef +from .models.crypt_decrypt_ref import CryptDecryptRef +from .models.crypt_encrypt_ref import CryptEncryptRef +from .models.crypt_encryption_key_ref import CryptEncryptionKeyRef from .models.crypt_encryption_token import CryptEncryptionToken +from .models.crypt_encryption_token_ref import CryptEncryptionTokenRef +from .models.cvd_deployment_task import CvdDeploymentTask +from .models.cvd_deployment_task_ref import CvdDeploymentTaskRef +from .models.cvd_input_meta_ref import CvdInputMetaRef +from .models.cvd_template import CvdTemplate +from .models.cvd_template_ref import CvdTemplateRef +from .models.cvd_validation_task import CvdValidationTask +from .models.cvd_validation_task_ref import CvdValidationTaskRef +from .models.deviceconnector_deploy_task_ref import DeviceconnectorDeployTaskRef +from .models.deviceconnector_policy_ref import DeviceconnectorPolicyRef +from .models.deviceconnector_validation_task_ref import DeviceconnectorValidationTaskRef from .models.deviceinfo_serial_number_info import DeviceinfoSerialNumberInfo -from .models.epansible_runner import EpansibleRunner -from .models.externalsite_auth_profile import ExternalsiteAuthProfile -from .models.extsearch_import import ExtsearchImport +from .models.deviceinfo_serial_number_info_ref import DeviceinfoSerialNumberInfoRef +from .models.devops_abstract_trigger_details_ref import DevopsAbstractTriggerDetailsRef +from .models.devops_notification_trigger import DevopsNotificationTrigger +from .models.devops_notification_trigger_ref import DevopsNotificationTriggerRef +from .models.devops_trigger_ref import DevopsTriggerRef +from .models.epansible_runner_ref import EpansibleRunnerRef +from .models.equipment_base_ref import EquipmentBaseRef +from .models.equipment_chassis_ref import EquipmentChassisRef +from .models.equipment_device_summary_ref import EquipmentDeviceSummaryRef +from .models.equipment_fan_module_ref import EquipmentFanModuleRef +from .models.equipment_fan_ref import EquipmentFanRef +from .models.equipment_fex_ref import EquipmentFexRef +from .models.equipment_io_card_ref import EquipmentIoCardRef +from .models.equipment_io_expander_ref import EquipmentIoExpanderRef +from .models.equipment_locator_led_ref import EquipmentLocatorLedRef +from .models.equipment_psu_ref import EquipmentPsuRef +from .models.equipment_rack_enclosure_ref import EquipmentRackEnclosureRef +from .models.equipment_rack_enclosure_slot_ref import EquipmentRackEnclosureSlotRef +from .models.equipment_switch_card_ref import EquipmentSwitchCardRef +from .models.equipment_system_io_controller_ref import EquipmentSystemIoControllerRef +from .models.equipment_tpm_ref import EquipmentTpmRef +from .models.ether_physical_port_ref import EtherPhysicalPortRef +from .models.extsearch_app_config_ref import ExtsearchAppConfigRef +from .models.extsearch_import_ref import ExtsearchImportRef +from .models.fault_instance_ref import FaultInstanceRef +from .models.fc_physical_port_ref import FcPhysicalPortRef +from .models.feedback_feedback_data_ref import FeedbackFeedbackDataRef +from .models.feedback_feedback_post import FeedbackFeedbackPost +from .models.feedback_feedback_post_ref import FeedbackFeedbackPostRef +from .models.feedback_feedback_ref import FeedbackFeedbackRef +from .models.feedback_feedback_settings_ref import FeedbackFeedbackSettingsRef +from .models.feedback_history_item_ref import FeedbackHistoryItemRef +from .models.firmware_cifs_server_ref import FirmwareCifsServerRef +from .models.firmware_direct_download_ref import FirmwareDirectDownloadRef from .models.firmware_distributable import FirmwareDistributable +from .models.firmware_distributable_ref import FirmwareDistributableRef +from .models.firmware_download_spec_ref import FirmwareDownloadSpecRef from .models.firmware_eula import FirmwareEula +from .models.firmware_eula_ref import FirmwareEulaRef +from .models.firmware_http_server_ref import FirmwareHttpServerRef +from .models.firmware_network_share_ref import FirmwareNetworkShareRef +from .models.firmware_nfs_server_ref import FirmwareNfsServerRef +from .models.firmware_running_firmware_ref import FirmwareRunningFirmwareRef from .models.firmware_upgrade import FirmwareUpgrade +from .models.firmware_upgrade_ref import FirmwareUpgradeRef from .models.firmware_upgrade_status import FirmwareUpgradeStatus -from .models.hcl_compatibility_info import HclCompatibilityInfo +from .models.firmware_upgrade_status_ref import FirmwareUpgradeStatusRef +from .models.firmwareimc_cancel_pending_firmware_upgrade_ref import FirmwareimcCancelPendingFirmwareUpgradeRef +from .models.firmwareimc_check_for_existing_upgrade_ref import FirmwareimcCheckForExistingUpgradeRef +from .models.firmwareimc_firmware_upgrade_result_handler_ref import FirmwareimcFirmwareUpgradeResultHandlerRef +from .models.firmwareimc_huu_firmware_upgrade_ref import FirmwareimcHuuFirmwareUpgradeRef +from .models.firmwareimc_initiate_download_ref import FirmwareimcInitiateDownloadRef +from .models.firmwareimc_wait_for_download_ref import FirmwareimcWaitForDownloadRef +from .models.firmwareimc_wait_for_firmware_upgrade_ref import FirmwareimcWaitForFirmwareUpgradeRef +from .models.graphics_card_ref import GraphicsCardRef +from .models.graphics_controller_ref import GraphicsControllerRef +from .models.hcl_compatibility_info_ref import HclCompatibilityInfoRef from .models.hcl_compatibility_status import HclCompatibilityStatus -from .models.hcl_data_import_log import HclDataImportLog -from .models.hcl_note import HclNote +from .models.hcl_compatibility_status_ref import HclCompatibilityStatusRef +from .models.hcl_data_import_log_ref import HclDataImportLogRef +from .models.hcl_driver_image import HclDriverImage +from .models.hcl_driver_image_ref import HclDriverImageRef +from .models.hcl_driver_ref import HclDriverRef +from .models.hcl_firmware_ref import HclFirmwareRef +from .models.hcl_hardware_compatibility_profile_ref import HclHardwareCompatibilityProfileRef +from .models.hcl_note_ref import HclNoteRef +from .models.hcl_operating_system import HclOperatingSystem +from .models.hcl_operating_system_ref import HclOperatingSystemRef +from .models.hcl_operating_system_vendor import HclOperatingSystemVendor +from .models.hcl_operating_system_vendor_ref import HclOperatingSystemVendorRef +from .models.hcl_product_ref import HclProductRef +from .models.hcl_service_status import HclServiceStatus +from .models.hcl_service_status_ref import HclServiceStatusRef from .models.hcl_supported_driver_name import HclSupportedDriverName +from .models.hcl_supported_driver_name_ref import HclSupportedDriverNameRef +from .models.hxdpconnector_hx_inventory_msg_ref import HxdpconnectorHxInventoryMsgRef +from .models.hyperflex_abstract_app_setting_ref import HyperflexAbstractAppSettingRef from .models.hyperflex_alarm import HyperflexAlarm +from .models.hyperflex_alarm_ref import HyperflexAlarmRef +from .models.hyperflex_app_catalog import HyperflexAppCatalog +from .models.hyperflex_app_catalog_ref import HyperflexAppCatalogRef +from .models.hyperflex_app_setting_constraint_ref import HyperflexAppSettingConstraintRef +from .models.hyperflex_auto_support_policy_ref import HyperflexAutoSupportPolicyRef from .models.hyperflex_cluster import HyperflexCluster +from .models.hyperflex_cluster_network_policy_ref import HyperflexClusterNetworkPolicyRef +from .models.hyperflex_cluster_profile_ref import HyperflexClusterProfileRef +from .models.hyperflex_cluster_ref import HyperflexClusterRef +from .models.hyperflex_cluster_storage_policy_ref import HyperflexClusterStoragePolicyRef +from .models.hyperflex_config_result_entry_ref import HyperflexConfigResultEntryRef +from .models.hyperflex_config_result_ref import HyperflexConfigResultRef +from .models.hyperflex_credentials_ref import HyperflexCredentialsRef +from .models.hyperflex_ext_fc_storage_policy_ref import HyperflexExtFcStoragePolicyRef +from .models.hyperflex_ext_iscsi_storage_policy_ref import HyperflexExtIscsiStoragePolicyRef +from .models.hyperflex_feature_limit_entry import HyperflexFeatureLimitEntry +from .models.hyperflex_feature_limit_entry_ref import HyperflexFeatureLimitEntryRef +from .models.hyperflex_feature_limit_external import HyperflexFeatureLimitExternal +from .models.hyperflex_feature_limit_external_ref import HyperflexFeatureLimitExternalRef +from .models.hyperflex_feature_limit_internal import HyperflexFeatureLimitInternal +from .models.hyperflex_feature_limit_internal_ref import HyperflexFeatureLimitInternalRef +from .models.hyperflex_hx_link_dt_ref import HyperflexHxLinkDtRef +from .models.hyperflex_hx_network_address_dt_ref import HyperflexHxNetworkAddressDtRef +from .models.hyperflex_hx_uu_id_dt_ref import HyperflexHxUuIdDtRef +from .models.hyperflex_hxdp_version import HyperflexHxdpVersion +from .models.hyperflex_hxdp_version_ref import HyperflexHxdpVersionRef +from .models.hyperflex_installer_image_ref import HyperflexInstallerImageRef +from .models.hyperflex_ip_addr_range_ref import HyperflexIpAddrRangeRef +from .models.hyperflex_local_credential_policy_ref import HyperflexLocalCredentialPolicyRef +from .models.hyperflex_logical_availability_zone_ref import HyperflexLogicalAvailabilityZoneRef +from .models.hyperflex_mac_addr_prefix_range_ref import HyperflexMacAddrPrefixRangeRef +from .models.hyperflex_managed_object_reference_ref import HyperflexManagedObjectReferenceRef +from .models.hyperflex_named_vlan_ref import HyperflexNamedVlanRef +from .models.hyperflex_named_vsan_ref import HyperflexNamedVsanRef +from .models.hyperflex_node import HyperflexNode +from .models.hyperflex_node_config_policy_ref import HyperflexNodeConfigPolicyRef +from .models.hyperflex_node_profile_ref import HyperflexNodeProfileRef +from .models.hyperflex_node_ref import HyperflexNodeRef +from .models.hyperflex_proxy_setting_policy_ref import HyperflexProxySettingPolicyRef +from .models.hyperflex_server_firmware_version import HyperflexServerFirmwareVersion +from .models.hyperflex_server_firmware_version_entry import HyperflexServerFirmwareVersionEntry +from .models.hyperflex_server_firmware_version_entry_ref import HyperflexServerFirmwareVersionEntryRef +from .models.hyperflex_server_firmware_version_ref import HyperflexServerFirmwareVersionRef +from .models.hyperflex_server_model import HyperflexServerModel +from .models.hyperflex_server_model_entry import HyperflexServerModelEntry +from .models.hyperflex_server_model_entry_ref import HyperflexServerModelEntryRef +from .models.hyperflex_server_model_ref import HyperflexServerModelRef +from .models.hyperflex_st_platform_cluster_healing_info_ref import HyperflexStPlatformClusterHealingInfoRef +from .models.hyperflex_st_platform_cluster_resiliency_info_ref import HyperflexStPlatformClusterResiliencyInfoRef +from .models.hyperflex_summary_ref import HyperflexSummaryRef +from .models.hyperflex_sys_config_policy_ref import HyperflexSysConfigPolicyRef +from .models.hyperflex_ucsm_config_policy_ref import HyperflexUcsmConfigPolicyRef +from .models.hyperflex_vcenter_config_policy_ref import HyperflexVcenterConfigPolicyRef +from .models.hyperflex_wwxn_prefix_range_ref import HyperflexWwxnPrefixRangeRef +from .models.i18n_message_param_ref import I18nMessageParamRef +from .models.i18n_message_ref import I18nMessageRef +from .models.iaas_connector_pack import IaasConnectorPack +from .models.iaas_connector_pack_ref import IaasConnectorPackRef +from .models.iaas_device_status import IaasDeviceStatus +from .models.iaas_device_status_ref import IaasDeviceStatusRef +from .models.iaas_license_info import IaasLicenseInfo +from .models.iaas_license_info_ref import IaasLicenseInfoRef +from .models.iaas_license_keys_info_ref import IaasLicenseKeysInfoRef +from .models.iaas_license_utilization_info_ref import IaasLicenseUtilizationInfoRef +from .models.iaas_most_run_tasks import IaasMostRunTasks +from .models.iaas_most_run_tasks_ref import IaasMostRunTasksRef +from .models.iaas_ucsd_info import IaasUcsdInfo +from .models.iaas_ucsd_info_ref import IaasUcsdInfoRef +from .models.iaas_ucsd_managed_infra import IaasUcsdManagedInfra +from .models.iaas_ucsd_managed_infra_ref import IaasUcsdManagedInfraRef from .models.iam_account import IamAccount +from .models.iam_account_permissions_ref import IamAccountPermissionsRef +from .models.iam_account_ref import IamAccountRef from .models.iam_api_key import IamApiKey +from .models.iam_api_key_ref import IamApiKeyRef +from .models.iam_domain_group import IamDomainGroup +from .models.iam_domain_group_ref import IamDomainGroupRef +from .models.iam_end_point_password_properties_ref import IamEndPointPasswordPropertiesRef from .models.iam_end_point_privilege import IamEndPointPrivilege +from .models.iam_end_point_privilege_ref import IamEndPointPrivilegeRef from .models.iam_end_point_role import IamEndPointRole +from .models.iam_end_point_role_ref import IamEndPointRoleRef from .models.iam_end_point_user import IamEndPointUser +from .models.iam_end_point_user_deploy_task_ref import IamEndPointUserDeployTaskRef +from .models.iam_end_point_user_policy_ref import IamEndPointUserPolicyRef +from .models.iam_end_point_user_ref import IamEndPointUserRef from .models.iam_end_point_user_role import IamEndPointUserRole +from .models.iam_end_point_user_role_ref import IamEndPointUserRoleRef +from .models.iam_end_point_user_validation_task_ref import IamEndPointUserValidationTaskRef from .models.iam_idp import IamIdp +from .models.iam_idp_ref import IamIdpRef from .models.iam_idp_reference import IamIdpReference +from .models.iam_idp_reference_ref import IamIdpReferenceRef +from .models.iam_ldap_base_properties_ref import IamLdapBasePropertiesRef +from .models.iam_ldap_credentials_ref import IamLdapCredentialsRef +from .models.iam_ldap_deploy_task_ref import IamLdapDeployTaskRef +from .models.iam_ldap_dns_parameters_ref import IamLdapDnsParametersRef from .models.iam_ldap_group import IamLdapGroup +from .models.iam_ldap_group_ref import IamLdapGroupRef +from .models.iam_ldap_policy_ref import IamLdapPolicyRef from .models.iam_ldap_provider import IamLdapProvider +from .models.iam_ldap_provider_ref import IamLdapProviderRef +from .models.iam_ldap_validation_task_ref import IamLdapValidationTaskRef from .models.iam_permission import IamPermission +from .models.iam_permission_ref import IamPermissionRef +from .models.iam_permission_reference_ref import IamPermissionReferenceRef from .models.iam_privilege import IamPrivilege +from .models.iam_privilege_ref import IamPrivilegeRef from .models.iam_privilege_set import IamPrivilegeSet +from .models.iam_privilege_set_ref import IamPrivilegeSetRef from .models.iam_qualifier import IamQualifier +from .models.iam_qualifier_ref import IamQualifierRef from .models.iam_resource_limits import IamResourceLimits +from .models.iam_resource_limits_ref import IamResourceLimitsRef from .models.iam_role import IamRole +from .models.iam_role_ref import IamRoleRef +from .models.iam_service_provider import IamServiceProvider +from .models.iam_service_provider_ref import IamServiceProviderRef from .models.iam_session import IamSession from .models.iam_session_limits import IamSessionLimits +from .models.iam_session_limits_ref import IamSessionLimitsRef +from .models.iam_session_ref import IamSessionRef +from .models.iam_sp_console_ref import IamSpConsoleRef +from .models.iam_sp_engine_ref import IamSpEngineRef +from .models.iam_sso_session_attributes_ref import IamSsoSessionAttributesRef from .models.iam_system import IamSystem +from .models.iam_system_ref import IamSystemRef from .models.iam_user import IamUser from .models.iam_user_group import IamUserGroup +from .models.iam_user_group_ref import IamUserGroupRef +from .models.iam_user_login_time_ref import IamUserLoginTimeRef from .models.iam_user_preference import IamUserPreference +from .models.iam_user_preference_ref import IamUserPreferenceRef +from .models.iam_user_ref import IamUserRef +from .models.imcconnector_sd_card_image_download_message_ref import ImcconnectorSdCardImageDownloadMessageRef from .models.inventory_base import InventoryBase +from .models.inventory_base_ref import InventoryBaseRef from .models.inventory_device_info import InventoryDeviceInfo +from .models.inventory_device_info_ref import InventoryDeviceInfoRef from .models.inventory_dn_mo_binding import InventoryDnMoBinding +from .models.inventory_dn_mo_binding_ref import InventoryDnMoBindingRef +from .models.inventory_generic_inventory_holder_ref import InventoryGenericInventoryHolderRef +from .models.inventory_generic_inventory_ref import InventoryGenericInventoryRef +from .models.inventory_inventory_mo_ref import InventoryInventoryMoRef +from .models.inventory_job_info_ref import InventoryJobInfoRef +from .models.inventory_request import InventoryRequest +from .models.inventory_request_ref import InventoryRequestRef +from .models.inventory_scoped_inventory_task_ref import InventoryScopedInventoryTaskRef +from .models.ipmioverlan_deploy_task_ref import IpmioverlanDeployTaskRef +from .models.ipmioverlan_policy_ref import IpmioverlanPolicyRef +from .models.ipmioverlan_validation_task_ref import IpmioverlanValidationTaskRef +from .models.kvm_deploy_task_ref import KvmDeployTaskRef +from .models.kvm_policy_ref import KvmPolicyRef +from .models.kvm_validation_task_ref import KvmValidationTaskRef from .models.license_account_license_data import LicenseAccountLicenseData +from .models.license_account_license_data_ref import LicenseAccountLicenseDataRef from .models.license_customer_op import LicenseCustomerOp +from .models.license_customer_op_ref import LicenseCustomerOpRef from .models.license_license_info import LicenseLicenseInfo +from .models.license_license_info_ref import LicenseLicenseInfoRef from .models.license_smartlicense_token import LicenseSmartlicenseToken +from .models.license_smartlicense_token_ref import LicenseSmartlicenseTokenRef +from .models.license_sync_response_ref import LicenseSyncResponseRef +from .models.ls_service_profile_ref import LsServiceProfileRef +from .models.management_controller_ref import ManagementControllerRef +from .models.management_entity_ref import ManagementEntityRef +from .models.management_interface_ref import ManagementInterfaceRef +from .models.memory_array_ref import MemoryArrayRef +from .models.memory_unit_ref import MemoryUnitRef from .models.meta_definition import MetaDefinition -from .models.packagemanagement_connector_deploy_policy import PackagemanagementConnectorDeployPolicy -from .models.packagemanagement_connector_image import PackagemanagementConnectorImage -from .models.packagemanagement_connector_install import PackagemanagementConnectorInstall +from .models.meta_definition_ref import MetaDefinitionRef +from .models.meta_prop_definition_ref import MetaPropDefinitionRef +from .models.meta_relationship_definition_ref import MetaRelationshipDefinitionRef +from .models.mo_base_complex_type_ref import MoBaseComplexTypeRef +from .models.mo_base_mo_ref import MoBaseMoRef +from .models.mo_interest_registration_ref import MoInterestRegistrationRef +from .models.mo_mo_ref_ref import MoMoRefRef +from .models.mo_tag_ref import MoTagRef +from .models.mo_version_context_ref import MoVersionContextRef +from .models.network_element_ref import NetworkElementRef +from .models.network_element_summary_ref import NetworkElementSummaryRef +from .models.networkconfig_deploy_task_ref import NetworkconfigDeployTaskRef +from .models.networkconfig_policy_ref import NetworkconfigPolicyRef +from .models.networkconfig_validation_task_ref import NetworkconfigValidationTaskRef +from .models.notifs_condition_ref import NotifsConditionRef +from .models.notifs_mo_subscription_ref import NotifsMoSubscriptionRef +from .models.ntp_deploy_task_ref import NtpDeployTaskRef +from .models.ntp_policy_ref import NtpPolicyRef +from .models.ntp_validation_task_ref import NtpValidationTaskRef +from .models.oauth2_auth_token_ref import Oauth2AuthTokenRef +from .models.oauth_access_token_ref import OauthAccessTokenRef +from .models.oauth_oauth_user import OauthOauthUser +from .models.oauth_oauth_user_ref import OauthOauthUserRef +from .models.pci_device_ref import PciDeviceRef +from .models.policy_abstract_config_change_detail import PolicyAbstractConfigChangeDetail +from .models.policy_abstract_config_change_detail_ref import PolicyAbstractConfigChangeDetailRef +from .models.policy_abstract_config_profile_ref import PolicyAbstractConfigProfileRef from .models.policy_abstract_config_result import PolicyAbstractConfigResult +from .models.policy_abstract_config_result_entry import PolicyAbstractConfigResultEntry +from .models.policy_abstract_config_result_entry_ref import PolicyAbstractConfigResultEntryRef +from .models.policy_abstract_config_result_ref import PolicyAbstractConfigResultRef from .models.policy_abstract_policy import PolicyAbstractPolicy +from .models.policy_abstract_policy_ref import PolicyAbstractPolicyRef from .models.policy_abstract_profile import PolicyAbstractProfile -from .models.policy_policy_meta import PolicyPolicyMeta +from .models.policy_abstract_profile_ref import PolicyAbstractProfileRef +from .models.policy_analyze_impact_task_ref import PolicyAnalyzeImpactTaskRef +from .models.policy_config_change_detail_type_ref import PolicyConfigChangeDetailTypeRef +from .models.policy_config_change_ref import PolicyConfigChangeRef +from .models.policy_config_context_ref import PolicyConfigContextRef +from .models.policy_config_result_context_ref import PolicyConfigResultContextRef +from .models.policy_take_snapshot_task_ref import PolicyTakeSnapshotTaskRef +from .models.port_group_ref import PortGroupRef +from .models.port_physical_ref import PortPhysicalRef +from .models.port_sub_group_ref import PortSubGroupRef +from .models.processor_unit_ref import ProcessorUnitRef +from .models.qatask_execution_status_task_ref import QataskExecutionStatusTaskRef +from .models.qatask_expobackoff_retry_ref import QataskExpobackoffRetryRef +from .models.qatask_fail_async_task_ref import QataskFailAsyncTaskRef +from .models.qatask_failed_no_retry_ref import QataskFailedNoRetryRef +from .models.qatask_huu_firmware_upgrade_ref import QataskHuuFirmwareUpgradeRef +from .models.qatask_initiate_download_ref import QataskInitiateDownloadRef +from .models.qatask_retry30timeout60task_ref import QataskRetry30timeout60taskRef +from .models.qatask_retry_fixed_ref import QataskRetryFixedRef +from .models.qatask_success_async_task_ref import QataskSuccessAsyncTaskRef +from .models.qatask_taskin_scheuled_ref import QataskTaskinScheuledRef +from .models.qatask_timeoutwf_exponential_ref import QataskTimeoutwfExponentialRef +from .models.qatask_timeoutwf_fixed_ref import QataskTimeoutwfFixedRef +from .models.qatask_ucs_task1_ref import QataskUcsTask1Ref +from .models.qatask_ucs_task2_ref import QataskUcsTask2Ref +from .models.qatask_ucs_task3_ref import QataskUcsTask3Ref +from .models.qatask_ucs_task4_ref import QataskUcsTask4Ref +from .models.qatask_ucs_task5_ref import QataskUcsTask5Ref +from .models.qatask_ucs_task6_ref import QataskUcsTask6Ref +from .models.qatask_ucs_task7_ref import QataskUcsTask7Ref +from .models.qatask_ucs_task8_ref import QataskUcsTask8Ref +from .models.qatask_ucs_task9_ref import QataskUcsTask9Ref +from .models.qatask_wait_for_download_ref import QataskWaitForDownloadRef +from .models.qatask_wait_for_firmware_upgrade_ref import QataskWaitForFirmwareUpgradeRef +from .models.resource_group import ResourceGroup +from .models.resource_group_ref import ResourceGroupRef +from .models.sdcard_deploy_task_ref import SdcardDeployTaskRef +from .models.sdcard_diagnostics_ref import SdcardDiagnosticsRef +from .models.sdcard_drivers_ref import SdcardDriversRef +from .models.sdcard_host_upgrade_utility_ref import SdcardHostUpgradeUtilityRef +from .models.sdcard_operating_system_ref import SdcardOperatingSystemRef +from .models.sdcard_partition_ref import SdcardPartitionRef +from .models.sdcard_policy_ref import SdcardPolicyRef +from .models.sdcard_server_configuration_utility_ref import SdcardServerConfigurationUtilityRef +from .models.sdcard_user_partition_ref import SdcardUserPartitionRef +from .models.sdcard_validation_task_ref import SdcardValidationTaskRef +from .models.sdcard_virtual_drive_ref import SdcardVirtualDriveRef from .models.search_search_item import SearchSearchItem +from .models.search_search_item_ref import SearchSearchItemRef from .models.search_suggest_item import SearchSuggestItem +from .models.search_suggest_item_ref import SearchSuggestItemRef from .models.search_tag_item import SearchTagItem +from .models.search_tag_item_ref import SearchTagItemRef +from .models.security_unit_ref import SecurityUnitRef +from .models.server_config_change_detail_ref import ServerConfigChangeDetailRef +from .models.server_config_result_entry_ref import ServerConfigResultEntryRef +from .models.server_config_result_ref import ServerConfigResultRef +from .models.server_profile_apply_task_ref import ServerProfileApplyTaskRef +from .models.server_profile_ref import ServerProfileRef +from .models.server_result_handler_task_ref import ServerResultHandlerTaskRef +from .models.smtp_deploy_task_ref import SmtpDeployTaskRef +from .models.smtp_policy_ref import SmtpPolicyRef +from .models.smtp_validation_task_ref import SmtpValidationTaskRef +from .models.snmp_deploy_task_ref import SnmpDeployTaskRef +from .models.snmp_policy_ref import SnmpPolicyRef +from .models.snmp_trap_ref import SnmpTrapRef +from .models.snmp_user_ref import SnmpUserRef +from .models.snmp_validation_task_ref import SnmpValidationTaskRef +from .models.softwarerepository_authorization import SoftwarerepositoryAuthorization +from .models.softwarerepository_authorization_ref import SoftwarerepositoryAuthorizationRef +from .models.sol_deploy_task_ref import SolDeployTaskRef +from .models.sol_policy_ref import SolPolicyRef +from .models.sol_validation_task_ref import SolValidationTaskRef +from .models.ssh_deploy_task_ref import SshDeployTaskRef +from .models.ssh_policy_ref import SshPolicyRef +from .models.ssh_validation_task_ref import SshValidationTaskRef +from .models.storage_analyze_impact_task_ref import StorageAnalyzeImpactTaskRef +from .models.storage_controller_ref import StorageControllerRef +from .models.storage_deploy_task_ref import StorageDeployTaskRef +from .models.storage_disk_group_policy_ref import StorageDiskGroupPolicyRef +from .models.storage_enclosure_ref import StorageEnclosureRef +from .models.storage_flex_flash_controller_props_ref import StorageFlexFlashControllerPropsRef +from .models.storage_flex_flash_controller_ref import StorageFlexFlashControllerRef +from .models.storage_flex_flash_physical_drive_ref import StorageFlexFlashPhysicalDriveRef +from .models.storage_flex_flash_virtual_drive_ref import StorageFlexFlashVirtualDriveRef +from .models.storage_flex_util_controller_ref import StorageFlexUtilControllerRef +from .models.storage_flex_util_physical_drive_ref import StorageFlexUtilPhysicalDriveRef +from .models.storage_flex_util_virtual_drive_ref import StorageFlexUtilVirtualDriveRef +from .models.storage_local_disk_ref import StorageLocalDiskRef +from .models.storage_physical_disk_extension_ref import StoragePhysicalDiskExtensionRef +from .models.storage_physical_disk_ref import StoragePhysicalDiskRef +from .models.storage_physical_disk_usage_ref import StoragePhysicalDiskUsageRef +from .models.storage_remote_key_setting_ref import StorageRemoteKeySettingRef +from .models.storage_sas_expander_ref import StorageSasExpanderRef +from .models.storage_span_group_ref import StorageSpanGroupRef +from .models.storage_storage_policy_ref import StorageStoragePolicyRef +from .models.storage_take_snapshot_task_ref import StorageTakeSnapshotTaskRef +from .models.storage_validation_task_ref import StorageValidationTaskRef +from .models.storage_vd_member_ep_ref import StorageVdMemberEpRef +from .models.storage_virtual_drive_config_ref import StorageVirtualDriveConfigRef +from .models.storage_virtual_drive_extension_ref import StorageVirtualDriveExtensionRef +from .models.storage_virtual_drive_ref import StorageVirtualDriveRef +from .models.syslog_deploy_task_ref import SyslogDeployTaskRef +from .models.syslog_local_client_base_ref import SyslogLocalClientBaseRef +from .models.syslog_local_file_logging_client_ref import SyslogLocalFileLoggingClientRef +from .models.syslog_policy_ref import SyslogPolicyRef +from .models.syslog_remote_client_base_ref import SyslogRemoteClientBaseRef +from .models.syslog_remote_logging_client_ref import SyslogRemoteLoggingClientRef +from .models.syslog_validation_task_ref import SyslogValidationTaskRef +from .models.task_file_download_info_ref import TaskFileDownloadInfoRef +from .models.task_input_task_ref import TaskInputTaskRef +from .models.task_ucs_task1_ref import TaskUcsTask1Ref +from .models.task_ucs_task2_ref import TaskUcsTask2Ref +from .models.task_ucs_task3_ref import TaskUcsTask3Ref +from .models.task_ucs_task4_ref import TaskUcsTask4Ref +from .models.task_ucs_task5_ref import TaskUcsTask5Ref +from .models.task_ucs_task6_ref import TaskUcsTask6Ref +from .models.task_ucs_task7_ref import TaskUcsTask7Ref +from .models.task_ucs_task8_ref import TaskUcsTask8Ref +from .models.task_ucs_task9_ref import TaskUcsTask9Ref from .models.task_workflow_action import TaskWorkflowAction -from .models.techsupportmanagement_download import TechsupportmanagementDownload -from .models.techsupportmanagement_tech_support_bundle import TechsupportmanagementTechSupportBundle -from .models.techsupportmanagement_tech_support_status import TechsupportmanagementTechSupportStatus +from .models.task_workflow_action_ref import TaskWorkflowActionRef +from .models.telemetry_time_series import TelemetryTimeSeries +from .models.telemetry_time_series_ref import TelemetryTimeSeriesRef from .models.terminal_audit_log import TerminalAuditLog +from .models.terminal_audit_log_ref import TerminalAuditLogRef +from .models.testcrypt_administrator import TestcryptAdministrator +from .models.testcrypt_administrator_ref import TestcryptAdministratorRef +from .models.testcrypt_credential import TestcryptCredential +from .models.testcrypt_credential_ref import TestcryptCredentialRef +from .models.testcrypt_read_only_user import TestcryptReadOnlyUser +from .models.testcrypt_read_only_user_ref import TestcryptReadOnlyUserRef +from .models.testcrypt_shadow_credential import TestcryptShadowCredential +from .models.testcrypt_shadow_credential_ref import TestcryptShadowCredentialRef +from .models.testcrypt_user_ref import TestcryptUserRef +from .models.top_system_ref import TopSystemRef +from .models.ucsdconnector_field_query_ref import UcsdconnectorFieldQueryRef +from .models.ucsdconnector_inventory_message_ref import UcsdconnectorInventoryMessageRef +from .models.ucsdconnector_sql_query_ref import UcsdconnectorSqlQueryRef +from .models.ucsdconnector_telemetry_message_ref import UcsdconnectorTelemetryMessageRef +from .models.ucsdconnector_telemetry_mo_ref import UcsdconnectorTelemetryMoRef from .models.views_view import ViewsView +from .models.views_view_ref import ViewsViewRef +from .models.vmedia_deploy_task_ref import VmediaDeployTaskRef +from .models.vmedia_mapping_ref import VmediaMappingRef +from .models.vmedia_policy_ref import VmediaPolicyRef +from .models.vmedia_validation_task_ref import VmediaValidationTaskRef from .models.workflow_build_task_meta import WorkflowBuildTaskMeta +from .models.workflow_build_task_meta_owner import WorkflowBuildTaskMetaOwner +from .models.workflow_build_task_meta_owner_ref import WorkflowBuildTaskMetaOwnerRef +from .models.workflow_build_task_meta_ref import WorkflowBuildTaskMetaRef +from .models.workflow_dynamic_workflow_action_task_list_ref import WorkflowDynamicWorkflowActionTaskListRef +from .models.workflow_input_definition_ref import WorkflowInputDefinitionRef +from .models.workflow_input_parameter_ref import WorkflowInputParameterRef +from .models.workflow_pending_dynamic_workflow_info import WorkflowPendingDynamicWorkflowInfo +from .models.workflow_pending_dynamic_workflow_info_ref import WorkflowPendingDynamicWorkflowInfoRef from .models.workflow_task_info import WorkflowTaskInfo +from .models.workflow_task_info_ref import WorkflowTaskInfoRef from .models.workflow_task_meta import WorkflowTaskMeta +from .models.workflow_task_meta_ref import WorkflowTaskMetaRef +from .models.workflow_task_retry_info_ref import WorkflowTaskRetryInfoRef from .models.workflow_workflow_info import WorkflowWorkflowInfo +from .models.workflow_workflow_info_ref import WorkflowWorkflowInfoRef from .models.workflow_workflow_meta import WorkflowWorkflowMeta -from .models.workflow_workflow_task import WorkflowWorkflowTask +from .models.workflow_workflow_meta_ref import WorkflowWorkflowMetaRef from .models.aaa_audit_record import AaaAuditRecord +from .models.asset_cluster_member import AssetClusterMember +from .models.asset_device_registration import AssetDeviceRegistration from .models.bios_policy import BiosPolicy from .models.boot_precision_policy import BootPrecisionPolicy from .models.compute_physical_summary import ComputePhysicalSummary from .models.compute_server_setting import ComputeServerSetting +from .models.deviceconnector_policy import DeviceconnectorPolicy from .models.equipment_base import EquipmentBase from .models.equipment_device_summary import EquipmentDeviceSummary from .models.equipment_locator_led import EquipmentLocatorLed @@ -320,11 +839,13 @@ from .models.hyperflex_cluster_network_policy import HyperflexClusterNetworkPolicy from .models.hyperflex_cluster_storage_policy import HyperflexClusterStoragePolicy from .models.hyperflex_config_result import HyperflexConfigResult +from .models.hyperflex_config_result_entry import HyperflexConfigResultEntry from .models.hyperflex_ext_fc_storage_policy import HyperflexExtFcStoragePolicy from .models.hyperflex_ext_iscsi_storage_policy import HyperflexExtIscsiStoragePolicy from .models.hyperflex_local_credential_policy import HyperflexLocalCredentialPolicy from .models.hyperflex_node_config_policy import HyperflexNodeConfigPolicy from .models.hyperflex_node_profile import HyperflexNodeProfile +from .models.hyperflex_proxy_setting_policy import HyperflexProxySettingPolicy from .models.hyperflex_sys_config_policy import HyperflexSysConfigPolicy from .models.hyperflex_ucsm_config_policy import HyperflexUcsmConfigPolicy from .models.hyperflex_vcenter_config_policy import HyperflexVcenterConfigPolicy @@ -345,16 +866,22 @@ from .models.port_group import PortGroup from .models.port_physical import PortPhysical from .models.port_sub_group import PortSubGroup +from .models.sdcard_policy import SdcardPolicy +from .models.server_config_change_detail import ServerConfigChangeDetail from .models.server_config_result import ServerConfigResult +from .models.server_config_result_entry import ServerConfigResultEntry from .models.smtp_policy import SmtpPolicy from .models.snmp_policy import SnmpPolicy from .models.sol_policy import SolPolicy from .models.ssh_policy import SshPolicy from .models.storage_disk_group_policy import StorageDiskGroupPolicy from .models.storage_flex_util_controller import StorageFlexUtilController +from .models.storage_flex_util_virtual_drive import StorageFlexUtilVirtualDrive from .models.storage_physical_disk_usage import StoragePhysicalDiskUsage from .models.storage_storage_policy import StorageStoragePolicy from .models.storage_vd_member_ep import StorageVdMemberEp +from .models.storage_virtual_drive_extension import StorageVirtualDriveExtension +from .models.syslog_policy import SyslogPolicy from .models.top_system import TopSystem from .models.vmedia_policy import VmediaPolicy from .models.adapter_ext_eth_interface import AdapterExtEthInterface @@ -370,9 +897,13 @@ from .models.equipment_fan_module import EquipmentFanModule from .models.equipment_fex import EquipmentFex from .models.equipment_io_card import EquipmentIoCard +from .models.equipment_io_expander import EquipmentIoExpander from .models.equipment_psu import EquipmentPsu +from .models.equipment_rack_enclosure import EquipmentRackEnclosure +from .models.equipment_rack_enclosure_slot import EquipmentRackEnclosureSlot from .models.equipment_switch_card import EquipmentSwitchCard from .models.equipment_system_io_controller import EquipmentSystemIoController +from .models.equipment_tpm import EquipmentTpm from .models.ether_physical_port import EtherPhysicalPort from .models.fc_physical_port import FcPhysicalPort from .models.graphics_card import GraphicsCard @@ -381,13 +912,19 @@ from .models.memory_array import MemoryArray from .models.memory_unit import MemoryUnit from .models.network_element import NetworkElement +from .models.pci_device import PciDevice from .models.processor_unit import ProcessorUnit from .models.security_unit import SecurityUnit from .models.server_profile import ServerProfile from .models.storage_controller import StorageController +from .models.storage_enclosure import StorageEnclosure from .models.storage_flex_flash_controller import StorageFlexFlashController +from .models.storage_flex_flash_controller_props import StorageFlexFlashControllerProps from .models.storage_flex_flash_physical_drive import StorageFlexFlashPhysicalDrive +from .models.storage_flex_flash_virtual_drive import StorageFlexFlashVirtualDrive +from .models.storage_flex_util_physical_drive import StorageFlexUtilPhysicalDrive from .models.storage_physical_disk import StoragePhysicalDisk +from .models.storage_physical_disk_extension import StoragePhysicalDiskExtension from .models.storage_sas_expander import StorageSasExpander from .models.storage_virtual_drive import StorageVirtualDrive from .models.compute_blade import ComputeBlade @@ -400,7 +937,9 @@ from .apis.adapter_host_fc_interface_api import AdapterHostFcInterfaceApi from .apis.adapter_host_iscsi_interface_api import AdapterHostIscsiInterfaceApi from .apis.adapter_unit_api import AdapterUnitApi +from .apis.asset_cluster_member_api import AssetClusterMemberApi from .apis.asset_device_claim_api import AssetDeviceClaimApi +from .apis.asset_device_configuration_api import AssetDeviceConfigurationApi from .apis.asset_device_registration_api import AssetDeviceRegistrationApi from .apis.bios_policy_api import BiosPolicyApi from .apis.bios_unit_api import BiosUnitApi @@ -412,27 +951,32 @@ from .apis.compute_server_setting_api import ComputeServerSettingApi from .apis.cond_alarm_api import CondAlarmApi from .apis.cond_hcl_status_api import CondHclStatusApi -from .apis.cond_hcl_status_action_api import CondHclStatusActionApi from .apis.cond_hcl_status_detail_api import CondHclStatusDetailApi from .apis.cond_hcl_status_job_api import CondHclStatusJobApi from .apis.crypt_encryption_token_api import CryptEncryptionTokenApi +from .apis.cvd_deployment_task_api import CvdDeploymentTaskApi +from .apis.cvd_template_api import CvdTemplateApi +from .apis.cvd_validation_task_api import CvdValidationTaskApi +from .apis.deviceconnector_policy_api import DeviceconnectorPolicyApi from .apis.deviceinfo_serial_number_info_api import DeviceinfoSerialNumberInfoApi -from .apis.epansible_runner_api import EpansibleRunnerApi from .apis.equipment_chassis_api import EquipmentChassisApi from .apis.equipment_device_summary_api import EquipmentDeviceSummaryApi from .apis.equipment_fan_api import EquipmentFanApi from .apis.equipment_fan_module_api import EquipmentFanModuleApi from .apis.equipment_fex_api import EquipmentFexApi from .apis.equipment_io_card_api import EquipmentIoCardApi +from .apis.equipment_io_expander_api import EquipmentIoExpanderApi from .apis.equipment_locator_led_api import EquipmentLocatorLedApi from .apis.equipment_psu_api import EquipmentPsuApi +from .apis.equipment_rack_enclosure_api import EquipmentRackEnclosureApi +from .apis.equipment_rack_enclosure_slot_api import EquipmentRackEnclosureSlotApi from .apis.equipment_switch_card_api import EquipmentSwitchCardApi from .apis.equipment_system_io_controller_api import EquipmentSystemIoControllerApi +from .apis.equipment_tpm_api import EquipmentTpmApi from .apis.ether_physical_port_api import EtherPhysicalPortApi -from .apis.externalsite_auth_profile_api import ExternalsiteAuthProfileApi -from .apis.extsearch_import_api import ExtsearchImportApi from .apis.fault_instance_api import FaultInstanceApi from .apis.fc_physical_port_api import FcPhysicalPortApi +from .apis.feedback_feedback_post_api import FeedbackFeedbackPostApi from .apis.firmware_distributable_api import FirmwareDistributableApi from .apis.firmware_eula_api import FirmwareEulaApi from .apis.firmware_running_firmware_api import FirmwareRunningFirmwareApi @@ -440,28 +984,45 @@ from .apis.firmware_upgrade_status_api import FirmwareUpgradeStatusApi from .apis.graphics_card_api import GraphicsCardApi from .apis.graphics_controller_api import GraphicsControllerApi -from .apis.hcl_compatibility_info_api import HclCompatibilityInfoApi from .apis.hcl_compatibility_status_api import HclCompatibilityStatusApi -from .apis.hcl_data_import_log_api import HclDataImportLogApi -from .apis.hcl_note_api import HclNoteApi +from .apis.hcl_driver_image_api import HclDriverImageApi +from .apis.hcl_operating_system_api import HclOperatingSystemApi +from .apis.hcl_operating_system_vendor_api import HclOperatingSystemVendorApi +from .apis.hcl_service_status_api import HclServiceStatusApi from .apis.hcl_supported_driver_name_api import HclSupportedDriverNameApi from .apis.hyperflex_alarm_api import HyperflexAlarmApi +from .apis.hyperflex_app_catalog_api import HyperflexAppCatalogApi from .apis.hyperflex_auto_support_policy_api import HyperflexAutoSupportPolicyApi from .apis.hyperflex_cluster_api import HyperflexClusterApi from .apis.hyperflex_cluster_network_policy_api import HyperflexClusterNetworkPolicyApi from .apis.hyperflex_cluster_profile_api import HyperflexClusterProfileApi from .apis.hyperflex_cluster_storage_policy_api import HyperflexClusterStoragePolicyApi from .apis.hyperflex_config_result_api import HyperflexConfigResultApi +from .apis.hyperflex_config_result_entry_api import HyperflexConfigResultEntryApi from .apis.hyperflex_ext_fc_storage_policy_api import HyperflexExtFcStoragePolicyApi from .apis.hyperflex_ext_iscsi_storage_policy_api import HyperflexExtIscsiStoragePolicyApi +from .apis.hyperflex_feature_limit_external_api import HyperflexFeatureLimitExternalApi +from .apis.hyperflex_feature_limit_internal_api import HyperflexFeatureLimitInternalApi +from .apis.hyperflex_hxdp_version_api import HyperflexHxdpVersionApi from .apis.hyperflex_local_credential_policy_api import HyperflexLocalCredentialPolicyApi +from .apis.hyperflex_node_api import HyperflexNodeApi from .apis.hyperflex_node_config_policy_api import HyperflexNodeConfigPolicyApi from .apis.hyperflex_node_profile_api import HyperflexNodeProfileApi +from .apis.hyperflex_proxy_setting_policy_api import HyperflexProxySettingPolicyApi +from .apis.hyperflex_server_firmware_version_api import HyperflexServerFirmwareVersionApi +from .apis.hyperflex_server_model_api import HyperflexServerModelApi from .apis.hyperflex_sys_config_policy_api import HyperflexSysConfigPolicyApi from .apis.hyperflex_ucsm_config_policy_api import HyperflexUcsmConfigPolicyApi from .apis.hyperflex_vcenter_config_policy_api import HyperflexVcenterConfigPolicyApi +from .apis.iaas_connector_pack_api import IaasConnectorPackApi +from .apis.iaas_device_status_api import IaasDeviceStatusApi +from .apis.iaas_license_info_api import IaasLicenseInfoApi +from .apis.iaas_most_run_tasks_api import IaasMostRunTasksApi +from .apis.iaas_ucsd_info_api import IaasUcsdInfoApi +from .apis.iaas_ucsd_managed_infra_api import IaasUcsdManagedInfraApi from .apis.iam_account_api import IamAccountApi from .apis.iam_api_key_api import IamApiKeyApi +from .apis.iam_domain_group_api import IamDomainGroupApi from .apis.iam_end_point_privilege_api import IamEndPointPrivilegeApi from .apis.iam_end_point_role_api import IamEndPointRoleApi from .apis.iam_end_point_user_api import IamEndPointUserApi @@ -478,6 +1039,7 @@ from .apis.iam_qualifier_api import IamQualifierApi from .apis.iam_resource_limits_api import IamResourceLimitsApi from .apis.iam_role_api import IamRoleApi +from .apis.iam_service_provider_api import IamServiceProviderApi from .apis.iam_session_api import IamSessionApi from .apis.iam_session_limits_api import IamSessionLimitsApi from .apis.iam_system_api import IamSystemApi @@ -488,6 +1050,7 @@ from .apis.inventory_dn_mo_binding_api import InventoryDnMoBindingApi from .apis.inventory_generic_inventory_api import InventoryGenericInventoryApi from .apis.inventory_generic_inventory_holder_api import InventoryGenericInventoryHolderApi +from .apis.inventory_request_api import InventoryRequestApi from .apis.ipmioverlan_policy_api import IpmioverlanPolicyApi from .apis.kvm_policy_api import KvmPolicyApi from .apis.license_account_license_data_api import LicenseAccountLicenseDataApi @@ -505,47 +1068,61 @@ from .apis.network_element_summary_api import NetworkElementSummaryApi from .apis.networkconfig_policy_api import NetworkconfigPolicyApi from .apis.ntp_policy_api import NtpPolicyApi -from .apis.packagemanagement_connector_deploy_policy_api import PackagemanagementConnectorDeployPolicyApi -from .apis.packagemanagement_connector_image_api import PackagemanagementConnectorImageApi -from .apis.packagemanagement_connector_install_api import PackagemanagementConnectorInstallApi -from .apis.policy_policy_meta_api import PolicyPolicyMetaApi +from .apis.oauth_oauth_user_api import OauthOauthUserApi +from .apis.pci_device_api import PciDeviceApi from .apis.port_group_api import PortGroupApi from .apis.port_sub_group_api import PortSubGroupApi from .apis.processor_unit_api import ProcessorUnitApi +from .apis.resource_group_api import ResourceGroupApi +from .apis.sdcard_policy_api import SdcardPolicyApi from .apis.search_search_item_api import SearchSearchItemApi from .apis.search_suggest_item_api import SearchSuggestItemApi from .apis.search_tag_item_api import SearchTagItemApi from .apis.security_unit_api import SecurityUnitApi +from .apis.server_config_change_detail_api import ServerConfigChangeDetailApi from .apis.server_config_result_api import ServerConfigResultApi +from .apis.server_config_result_entry_api import ServerConfigResultEntryApi from .apis.server_profile_api import ServerProfileApi from .apis.smtp_policy_api import SmtpPolicyApi from .apis.snmp_policy_api import SnmpPolicyApi +from .apis.softwarerepository_authorization_api import SoftwarerepositoryAuthorizationApi from .apis.sol_policy_api import SolPolicyApi from .apis.ssh_policy_api import SshPolicyApi from .apis.storage_controller_api import StorageControllerApi from .apis.storage_disk_group_policy_api import StorageDiskGroupPolicyApi +from .apis.storage_enclosure_api import StorageEnclosureApi from .apis.storage_flex_flash_controller_api import StorageFlexFlashControllerApi +from .apis.storage_flex_flash_controller_props_api import StorageFlexFlashControllerPropsApi from .apis.storage_flex_flash_physical_drive_api import StorageFlexFlashPhysicalDriveApi +from .apis.storage_flex_flash_virtual_drive_api import StorageFlexFlashVirtualDriveApi from .apis.storage_flex_util_controller_api import StorageFlexUtilControllerApi +from .apis.storage_flex_util_physical_drive_api import StorageFlexUtilPhysicalDriveApi +from .apis.storage_flex_util_virtual_drive_api import StorageFlexUtilVirtualDriveApi from .apis.storage_physical_disk_api import StoragePhysicalDiskApi +from .apis.storage_physical_disk_extension_api import StoragePhysicalDiskExtensionApi from .apis.storage_physical_disk_usage_api import StoragePhysicalDiskUsageApi from .apis.storage_sas_expander_api import StorageSasExpanderApi from .apis.storage_storage_policy_api import StorageStoragePolicyApi from .apis.storage_vd_member_ep_api import StorageVdMemberEpApi from .apis.storage_virtual_drive_api import StorageVirtualDriveApi +from .apis.storage_virtual_drive_extension_api import StorageVirtualDriveExtensionApi +from .apis.syslog_policy_api import SyslogPolicyApi from .apis.task_workflow_action_api import TaskWorkflowActionApi -from .apis.techsupportmanagement_download_api import TechsupportmanagementDownloadApi -from .apis.techsupportmanagement_tech_support_bundle_api import TechsupportmanagementTechSupportBundleApi -from .apis.techsupportmanagement_tech_support_status_api import TechsupportmanagementTechSupportStatusApi +from .apis.telemetry_time_series_api import TelemetryTimeSeriesApi from .apis.terminal_audit_log_api import TerminalAuditLogApi +from .apis.testcrypt_administrator_api import TestcryptAdministratorApi +from .apis.testcrypt_credential_api import TestcryptCredentialApi +from .apis.testcrypt_read_only_user_api import TestcryptReadOnlyUserApi +from .apis.testcrypt_shadow_credential_api import TestcryptShadowCredentialApi from .apis.top_system_api import TopSystemApi from .apis.vmedia_policy_api import VmediaPolicyApi from .apis.workflow_build_task_meta_api import WorkflowBuildTaskMetaApi +from .apis.workflow_build_task_meta_owner_api import WorkflowBuildTaskMetaOwnerApi +from .apis.workflow_pending_dynamic_workflow_info_api import WorkflowPendingDynamicWorkflowInfoApi from .apis.workflow_task_info_api import WorkflowTaskInfoApi from .apis.workflow_task_meta_api import WorkflowTaskMetaApi from .apis.workflow_workflow_info_api import WorkflowWorkflowInfoApi from .apis.workflow_workflow_meta_api import WorkflowWorkflowMetaApi -from .apis.workflow_workflow_task_api import WorkflowWorkflowTaskApi # import ApiClient from .api_client import ApiClient diff --git a/intersight/api_client.py b/intersight/api_client.py index 00185d81..bed6922d 100644 --- a/intersight/api_client.py +++ b/intersight/api_client.py @@ -1,10 +1,10 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/apis/__init__.py b/intersight/apis/__init__.py index 0d7b208c..2034a409 100644 --- a/intersight/apis/__init__.py +++ b/intersight/apis/__init__.py @@ -7,7 +7,9 @@ from .adapter_host_fc_interface_api import AdapterHostFcInterfaceApi from .adapter_host_iscsi_interface_api import AdapterHostIscsiInterfaceApi from .adapter_unit_api import AdapterUnitApi +from .asset_cluster_member_api import AssetClusterMemberApi from .asset_device_claim_api import AssetDeviceClaimApi +from .asset_device_configuration_api import AssetDeviceConfigurationApi from .asset_device_registration_api import AssetDeviceRegistrationApi from .bios_policy_api import BiosPolicyApi from .bios_unit_api import BiosUnitApi @@ -19,27 +21,32 @@ from .compute_server_setting_api import ComputeServerSettingApi from .cond_alarm_api import CondAlarmApi from .cond_hcl_status_api import CondHclStatusApi -from .cond_hcl_status_action_api import CondHclStatusActionApi from .cond_hcl_status_detail_api import CondHclStatusDetailApi from .cond_hcl_status_job_api import CondHclStatusJobApi from .crypt_encryption_token_api import CryptEncryptionTokenApi +from .cvd_deployment_task_api import CvdDeploymentTaskApi +from .cvd_template_api import CvdTemplateApi +from .cvd_validation_task_api import CvdValidationTaskApi +from .deviceconnector_policy_api import DeviceconnectorPolicyApi from .deviceinfo_serial_number_info_api import DeviceinfoSerialNumberInfoApi -from .epansible_runner_api import EpansibleRunnerApi from .equipment_chassis_api import EquipmentChassisApi from .equipment_device_summary_api import EquipmentDeviceSummaryApi from .equipment_fan_api import EquipmentFanApi from .equipment_fan_module_api import EquipmentFanModuleApi from .equipment_fex_api import EquipmentFexApi from .equipment_io_card_api import EquipmentIoCardApi +from .equipment_io_expander_api import EquipmentIoExpanderApi from .equipment_locator_led_api import EquipmentLocatorLedApi from .equipment_psu_api import EquipmentPsuApi +from .equipment_rack_enclosure_api import EquipmentRackEnclosureApi +from .equipment_rack_enclosure_slot_api import EquipmentRackEnclosureSlotApi from .equipment_switch_card_api import EquipmentSwitchCardApi from .equipment_system_io_controller_api import EquipmentSystemIoControllerApi +from .equipment_tpm_api import EquipmentTpmApi from .ether_physical_port_api import EtherPhysicalPortApi -from .externalsite_auth_profile_api import ExternalsiteAuthProfileApi -from .extsearch_import_api import ExtsearchImportApi from .fault_instance_api import FaultInstanceApi from .fc_physical_port_api import FcPhysicalPortApi +from .feedback_feedback_post_api import FeedbackFeedbackPostApi from .firmware_distributable_api import FirmwareDistributableApi from .firmware_eula_api import FirmwareEulaApi from .firmware_running_firmware_api import FirmwareRunningFirmwareApi @@ -47,28 +54,45 @@ from .firmware_upgrade_status_api import FirmwareUpgradeStatusApi from .graphics_card_api import GraphicsCardApi from .graphics_controller_api import GraphicsControllerApi -from .hcl_compatibility_info_api import HclCompatibilityInfoApi from .hcl_compatibility_status_api import HclCompatibilityStatusApi -from .hcl_data_import_log_api import HclDataImportLogApi -from .hcl_note_api import HclNoteApi +from .hcl_driver_image_api import HclDriverImageApi +from .hcl_operating_system_api import HclOperatingSystemApi +from .hcl_operating_system_vendor_api import HclOperatingSystemVendorApi +from .hcl_service_status_api import HclServiceStatusApi from .hcl_supported_driver_name_api import HclSupportedDriverNameApi from .hyperflex_alarm_api import HyperflexAlarmApi +from .hyperflex_app_catalog_api import HyperflexAppCatalogApi from .hyperflex_auto_support_policy_api import HyperflexAutoSupportPolicyApi from .hyperflex_cluster_api import HyperflexClusterApi from .hyperflex_cluster_network_policy_api import HyperflexClusterNetworkPolicyApi from .hyperflex_cluster_profile_api import HyperflexClusterProfileApi from .hyperflex_cluster_storage_policy_api import HyperflexClusterStoragePolicyApi from .hyperflex_config_result_api import HyperflexConfigResultApi +from .hyperflex_config_result_entry_api import HyperflexConfigResultEntryApi from .hyperflex_ext_fc_storage_policy_api import HyperflexExtFcStoragePolicyApi from .hyperflex_ext_iscsi_storage_policy_api import HyperflexExtIscsiStoragePolicyApi +from .hyperflex_feature_limit_external_api import HyperflexFeatureLimitExternalApi +from .hyperflex_feature_limit_internal_api import HyperflexFeatureLimitInternalApi +from .hyperflex_hxdp_version_api import HyperflexHxdpVersionApi from .hyperflex_local_credential_policy_api import HyperflexLocalCredentialPolicyApi +from .hyperflex_node_api import HyperflexNodeApi from .hyperflex_node_config_policy_api import HyperflexNodeConfigPolicyApi from .hyperflex_node_profile_api import HyperflexNodeProfileApi +from .hyperflex_proxy_setting_policy_api import HyperflexProxySettingPolicyApi +from .hyperflex_server_firmware_version_api import HyperflexServerFirmwareVersionApi +from .hyperflex_server_model_api import HyperflexServerModelApi from .hyperflex_sys_config_policy_api import HyperflexSysConfigPolicyApi from .hyperflex_ucsm_config_policy_api import HyperflexUcsmConfigPolicyApi from .hyperflex_vcenter_config_policy_api import HyperflexVcenterConfigPolicyApi +from .iaas_connector_pack_api import IaasConnectorPackApi +from .iaas_device_status_api import IaasDeviceStatusApi +from .iaas_license_info_api import IaasLicenseInfoApi +from .iaas_most_run_tasks_api import IaasMostRunTasksApi +from .iaas_ucsd_info_api import IaasUcsdInfoApi +from .iaas_ucsd_managed_infra_api import IaasUcsdManagedInfraApi from .iam_account_api import IamAccountApi from .iam_api_key_api import IamApiKeyApi +from .iam_domain_group_api import IamDomainGroupApi from .iam_end_point_privilege_api import IamEndPointPrivilegeApi from .iam_end_point_role_api import IamEndPointRoleApi from .iam_end_point_user_api import IamEndPointUserApi @@ -85,6 +109,7 @@ from .iam_qualifier_api import IamQualifierApi from .iam_resource_limits_api import IamResourceLimitsApi from .iam_role_api import IamRoleApi +from .iam_service_provider_api import IamServiceProviderApi from .iam_session_api import IamSessionApi from .iam_session_limits_api import IamSessionLimitsApi from .iam_system_api import IamSystemApi @@ -95,6 +120,7 @@ from .inventory_dn_mo_binding_api import InventoryDnMoBindingApi from .inventory_generic_inventory_api import InventoryGenericInventoryApi from .inventory_generic_inventory_holder_api import InventoryGenericInventoryHolderApi +from .inventory_request_api import InventoryRequestApi from .ipmioverlan_policy_api import IpmioverlanPolicyApi from .kvm_policy_api import KvmPolicyApi from .license_account_license_data_api import LicenseAccountLicenseDataApi @@ -112,44 +138,58 @@ from .network_element_summary_api import NetworkElementSummaryApi from .networkconfig_policy_api import NetworkconfigPolicyApi from .ntp_policy_api import NtpPolicyApi -from .packagemanagement_connector_deploy_policy_api import PackagemanagementConnectorDeployPolicyApi -from .packagemanagement_connector_image_api import PackagemanagementConnectorImageApi -from .packagemanagement_connector_install_api import PackagemanagementConnectorInstallApi -from .policy_policy_meta_api import PolicyPolicyMetaApi +from .oauth_oauth_user_api import OauthOauthUserApi +from .pci_device_api import PciDeviceApi from .port_group_api import PortGroupApi from .port_sub_group_api import PortSubGroupApi from .processor_unit_api import ProcessorUnitApi +from .resource_group_api import ResourceGroupApi +from .sdcard_policy_api import SdcardPolicyApi from .search_search_item_api import SearchSearchItemApi from .search_suggest_item_api import SearchSuggestItemApi from .search_tag_item_api import SearchTagItemApi from .security_unit_api import SecurityUnitApi +from .server_config_change_detail_api import ServerConfigChangeDetailApi from .server_config_result_api import ServerConfigResultApi +from .server_config_result_entry_api import ServerConfigResultEntryApi from .server_profile_api import ServerProfileApi from .smtp_policy_api import SmtpPolicyApi from .snmp_policy_api import SnmpPolicyApi +from .softwarerepository_authorization_api import SoftwarerepositoryAuthorizationApi from .sol_policy_api import SolPolicyApi from .ssh_policy_api import SshPolicyApi from .storage_controller_api import StorageControllerApi from .storage_disk_group_policy_api import StorageDiskGroupPolicyApi +from .storage_enclosure_api import StorageEnclosureApi from .storage_flex_flash_controller_api import StorageFlexFlashControllerApi +from .storage_flex_flash_controller_props_api import StorageFlexFlashControllerPropsApi from .storage_flex_flash_physical_drive_api import StorageFlexFlashPhysicalDriveApi +from .storage_flex_flash_virtual_drive_api import StorageFlexFlashVirtualDriveApi from .storage_flex_util_controller_api import StorageFlexUtilControllerApi +from .storage_flex_util_physical_drive_api import StorageFlexUtilPhysicalDriveApi +from .storage_flex_util_virtual_drive_api import StorageFlexUtilVirtualDriveApi from .storage_physical_disk_api import StoragePhysicalDiskApi +from .storage_physical_disk_extension_api import StoragePhysicalDiskExtensionApi from .storage_physical_disk_usage_api import StoragePhysicalDiskUsageApi from .storage_sas_expander_api import StorageSasExpanderApi from .storage_storage_policy_api import StorageStoragePolicyApi from .storage_vd_member_ep_api import StorageVdMemberEpApi from .storage_virtual_drive_api import StorageVirtualDriveApi +from .storage_virtual_drive_extension_api import StorageVirtualDriveExtensionApi +from .syslog_policy_api import SyslogPolicyApi from .task_workflow_action_api import TaskWorkflowActionApi -from .techsupportmanagement_download_api import TechsupportmanagementDownloadApi -from .techsupportmanagement_tech_support_bundle_api import TechsupportmanagementTechSupportBundleApi -from .techsupportmanagement_tech_support_status_api import TechsupportmanagementTechSupportStatusApi +from .telemetry_time_series_api import TelemetryTimeSeriesApi from .terminal_audit_log_api import TerminalAuditLogApi +from .testcrypt_administrator_api import TestcryptAdministratorApi +from .testcrypt_credential_api import TestcryptCredentialApi +from .testcrypt_read_only_user_api import TestcryptReadOnlyUserApi +from .testcrypt_shadow_credential_api import TestcryptShadowCredentialApi from .top_system_api import TopSystemApi from .vmedia_policy_api import VmediaPolicyApi from .workflow_build_task_meta_api import WorkflowBuildTaskMetaApi +from .workflow_build_task_meta_owner_api import WorkflowBuildTaskMetaOwnerApi +from .workflow_pending_dynamic_workflow_info_api import WorkflowPendingDynamicWorkflowInfoApi from .workflow_task_info_api import WorkflowTaskInfoApi from .workflow_task_meta_api import WorkflowTaskMetaApi from .workflow_workflow_info_api import WorkflowWorkflowInfoApi from .workflow_workflow_meta_api import WorkflowWorkflowMetaApi -from .workflow_workflow_task_api import WorkflowWorkflowTaskApi diff --git a/intersight/apis/aaa_audit_record_api.py b/intersight/apis/aaa_audit_record_api.py index 418938a7..6fd62fd5 100644 --- a/intersight/apis/aaa_audit_record_api.py +++ b/intersight/apis/aaa_audit_record_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def aaa_audit_records_get(self, **kwargs): """ - List of aaaAuditRecords + Get a list of 'aaaAuditRecord' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def aaa_audit_records_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: AaaAuditRecordList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def aaa_audit_records_get(self, **kwargs): def aaa_audit_records_get_with_http_info(self, **kwargs): """ - List of aaaAuditRecords + Get a list of 'aaaAuditRecord' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def aaa_audit_records_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: AaaAuditRecordList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def aaa_audit_records_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def aaa_audit_records_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def aaa_audit_records_get_with_http_info(self, **kwargs): def aaa_audit_records_moid_get(self, moid, **kwargs): """ - A instance of aaaAuditRecord + Get a specific instance of 'aaaAuditRecord' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def aaa_audit_records_moid_get(self, moid, **kwargs): def aaa_audit_records_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of aaaAuditRecord + Get a specific instance of 'aaaAuditRecord' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/adapter_ext_eth_interface_api.py b/intersight/apis/adapter_ext_eth_interface_api.py index be71449e..d91e0bd1 100644 --- a/intersight/apis/adapter_ext_eth_interface_api.py +++ b/intersight/apis/adapter_ext_eth_interface_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def adapter_ext_eth_interfaces_get(self, **kwargs): """ - List of adapterExtEthInterfaces + Get a list of 'adapterExtEthInterface' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def adapter_ext_eth_interfaces_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: AdapterExtEthInterfaceList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def adapter_ext_eth_interfaces_get(self, **kwargs): def adapter_ext_eth_interfaces_get_with_http_info(self, **kwargs): """ - List of adapterExtEthInterfaces + Get a list of 'adapterExtEthInterface' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def adapter_ext_eth_interfaces_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: AdapterExtEthInterfaceList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def adapter_ext_eth_interfaces_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def adapter_ext_eth_interfaces_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def adapter_ext_eth_interfaces_get_with_http_info(self, **kwargs): def adapter_ext_eth_interfaces_moid_get(self, moid, **kwargs): """ - A instance of adapterExtEthInterface + Get a specific instance of 'adapterExtEthInterface' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def adapter_ext_eth_interfaces_moid_get(self, moid, **kwargs): def adapter_ext_eth_interfaces_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of adapterExtEthInterface + Get a specific instance of 'adapterExtEthInterface' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/adapter_host_eth_interface_api.py b/intersight/apis/adapter_host_eth_interface_api.py index 4540a8f5..64af8d80 100644 --- a/intersight/apis/adapter_host_eth_interface_api.py +++ b/intersight/apis/adapter_host_eth_interface_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def adapter_host_eth_interfaces_get(self, **kwargs): """ - List of adapterHostEthInterfaces + Get a list of 'adapterHostEthInterface' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def adapter_host_eth_interfaces_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: AdapterHostEthInterfaceList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def adapter_host_eth_interfaces_get(self, **kwargs): def adapter_host_eth_interfaces_get_with_http_info(self, **kwargs): """ - List of adapterHostEthInterfaces + Get a list of 'adapterHostEthInterface' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def adapter_host_eth_interfaces_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: AdapterHostEthInterfaceList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def adapter_host_eth_interfaces_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def adapter_host_eth_interfaces_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def adapter_host_eth_interfaces_get_with_http_info(self, **kwargs): def adapter_host_eth_interfaces_moid_get(self, moid, **kwargs): """ - A instance of adapterHostEthInterface + Get a specific instance of 'adapterHostEthInterface' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def adapter_host_eth_interfaces_moid_get(self, moid, **kwargs): def adapter_host_eth_interfaces_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of adapterHostEthInterface + Get a specific instance of 'adapterHostEthInterface' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/adapter_host_fc_interface_api.py b/intersight/apis/adapter_host_fc_interface_api.py index 2ea08eb2..bff8628c 100644 --- a/intersight/apis/adapter_host_fc_interface_api.py +++ b/intersight/apis/adapter_host_fc_interface_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def adapter_host_fc_interfaces_get(self, **kwargs): """ - List of adapterHostFcInterfaces + Get a list of 'adapterHostFcInterface' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def adapter_host_fc_interfaces_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: AdapterHostFcInterfaceList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def adapter_host_fc_interfaces_get(self, **kwargs): def adapter_host_fc_interfaces_get_with_http_info(self, **kwargs): """ - List of adapterHostFcInterfaces + Get a list of 'adapterHostFcInterface' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def adapter_host_fc_interfaces_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: AdapterHostFcInterfaceList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def adapter_host_fc_interfaces_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def adapter_host_fc_interfaces_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def adapter_host_fc_interfaces_get_with_http_info(self, **kwargs): def adapter_host_fc_interfaces_moid_get(self, moid, **kwargs): """ - A instance of adapterHostFcInterface + Get a specific instance of 'adapterHostFcInterface' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def adapter_host_fc_interfaces_moid_get(self, moid, **kwargs): def adapter_host_fc_interfaces_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of adapterHostFcInterface + Get a specific instance of 'adapterHostFcInterface' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/adapter_host_iscsi_interface_api.py b/intersight/apis/adapter_host_iscsi_interface_api.py index 955b7675..8266960a 100644 --- a/intersight/apis/adapter_host_iscsi_interface_api.py +++ b/intersight/apis/adapter_host_iscsi_interface_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def adapter_host_iscsi_interfaces_get(self, **kwargs): """ - List of adapterHostIscsiInterfaces + Get a list of 'adapterHostIscsiInterface' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def adapter_host_iscsi_interfaces_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: AdapterHostIscsiInterfaceList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def adapter_host_iscsi_interfaces_get(self, **kwargs): def adapter_host_iscsi_interfaces_get_with_http_info(self, **kwargs): """ - List of adapterHostIscsiInterfaces + Get a list of 'adapterHostIscsiInterface' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def adapter_host_iscsi_interfaces_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: AdapterHostIscsiInterfaceList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def adapter_host_iscsi_interfaces_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def adapter_host_iscsi_interfaces_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def adapter_host_iscsi_interfaces_get_with_http_info(self, **kwargs): def adapter_host_iscsi_interfaces_moid_get(self, moid, **kwargs): """ - A instance of adapterHostIscsiInterface + Get a specific instance of 'adapterHostIscsiInterface' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def adapter_host_iscsi_interfaces_moid_get(self, moid, **kwargs): def adapter_host_iscsi_interfaces_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of adapterHostIscsiInterface + Get a specific instance of 'adapterHostIscsiInterface' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/adapter_unit_api.py b/intersight/apis/adapter_unit_api.py index c8f92cd7..c51d3953 100644 --- a/intersight/apis/adapter_unit_api.py +++ b/intersight/apis/adapter_unit_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def adapter_units_get(self, **kwargs): """ - List of adapterUnits + Get a list of 'adapterUnit' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def adapter_units_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: AdapterUnitList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def adapter_units_get(self, **kwargs): def adapter_units_get_with_http_info(self, **kwargs): """ - List of adapterUnits + Get a list of 'adapterUnit' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def adapter_units_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: AdapterUnitList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def adapter_units_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def adapter_units_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def adapter_units_get_with_http_info(self, **kwargs): def adapter_units_moid_get(self, moid, **kwargs): """ - A instance of adapterUnit + Get a specific instance of 'adapterUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def adapter_units_moid_get(self, moid, **kwargs): def adapter_units_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of adapterUnit + Get a specific instance of 'adapterUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/asset_cluster_member_api.py b/intersight/apis/asset_cluster_member_api.py new file mode 100644 index 00000000..67fcc7b6 --- /dev/null +++ b/intersight/apis/asset_cluster_member_api.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class AssetClusterMemberApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def asset_cluster_members_get(self, **kwargs): + """ + Get a list of 'assetClusterMember' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.asset_cluster_members_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: AssetClusterMemberList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.asset_cluster_members_get_with_http_info(**kwargs) + else: + (data) = self.asset_cluster_members_get_with_http_info(**kwargs) + return data + + def asset_cluster_members_get_with_http_info(self, **kwargs): + """ + Get a list of 'assetClusterMember' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.asset_cluster_members_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: AssetClusterMemberList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method asset_cluster_members_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/asset/ClusterMembers', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AssetClusterMemberList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def asset_cluster_members_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'assetClusterMember' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.asset_cluster_members_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the assetClusterMember instance. (required) + :return: AssetClusterMember + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.asset_cluster_members_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.asset_cluster_members_moid_get_with_http_info(moid, **kwargs) + return data + + def asset_cluster_members_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'assetClusterMember' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.asset_cluster_members_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the assetClusterMember instance. (required) + :return: AssetClusterMember + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method asset_cluster_members_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `asset_cluster_members_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/asset/ClusterMembers/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AssetClusterMember', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/asset_device_claim_api.py b/intersight/apis/asset_device_claim_api.py index 452756ae..badef08d 100644 --- a/intersight/apis/asset_device_claim_api.py +++ b/intersight/apis/asset_device_claim_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def asset_device_claims_moid_delete(self, moid, **kwargs): """ - Delete an instance of assetDeviceClaim + Delete an instance of 'assetDeviceClaim' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -67,7 +67,7 @@ def asset_device_claims_moid_delete(self, moid, **kwargs): def asset_device_claims_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of assetDeviceClaim + Delete an instance of 'assetDeviceClaim' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -146,7 +146,7 @@ def asset_device_claims_moid_delete_with_http_info(self, moid, **kwargs): def asset_device_claims_post(self, body, **kwargs): """ - Create a assetDeviceClaim + Create an instance of 'assetDeviceClaim' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -171,7 +171,7 @@ def asset_device_claims_post(self, body, **kwargs): def asset_device_claims_post_with_http_info(self, body, **kwargs): """ - Create a assetDeviceClaim + Create an instance of 'assetDeviceClaim' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/asset_device_configuration_api.py b/intersight/apis/asset_device_configuration_api.py new file mode 100644 index 00000000..588c0a53 --- /dev/null +++ b/intersight/apis/asset_device_configuration_api.py @@ -0,0 +1,504 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class AssetDeviceConfigurationApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def asset_device_configurations_get(self, **kwargs): + """ + Get a list of 'assetDeviceConfiguration' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.asset_device_configurations_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: AssetDeviceConfigurationList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.asset_device_configurations_get_with_http_info(**kwargs) + else: + (data) = self.asset_device_configurations_get_with_http_info(**kwargs) + return data + + def asset_device_configurations_get_with_http_info(self, **kwargs): + """ + Get a list of 'assetDeviceConfiguration' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.asset_device_configurations_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: AssetDeviceConfigurationList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method asset_device_configurations_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/asset/DeviceConfigurations', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AssetDeviceConfigurationList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def asset_device_configurations_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'assetDeviceConfiguration' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.asset_device_configurations_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the assetDeviceConfiguration instance. (required) + :return: AssetDeviceConfiguration + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.asset_device_configurations_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.asset_device_configurations_moid_get_with_http_info(moid, **kwargs) + return data + + def asset_device_configurations_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'assetDeviceConfiguration' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.asset_device_configurations_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the assetDeviceConfiguration instance. (required) + :return: AssetDeviceConfiguration + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method asset_device_configurations_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `asset_device_configurations_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/asset/DeviceConfigurations/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='AssetDeviceConfiguration', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def asset_device_configurations_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'assetDeviceConfiguration' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.asset_device_configurations_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the assetDeviceConfiguration instance. (required) + :param AssetDeviceConfiguration body: assetDeviceConfiguration to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.asset_device_configurations_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.asset_device_configurations_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def asset_device_configurations_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'assetDeviceConfiguration' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.asset_device_configurations_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the assetDeviceConfiguration instance. (required) + :param AssetDeviceConfiguration body: assetDeviceConfiguration to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method asset_device_configurations_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `asset_device_configurations_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `asset_device_configurations_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/asset/DeviceConfigurations/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def asset_device_configurations_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'assetDeviceConfiguration' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.asset_device_configurations_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the assetDeviceConfiguration instance. (required) + :param AssetDeviceConfiguration body: assetDeviceConfiguration to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.asset_device_configurations_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.asset_device_configurations_moid_post_with_http_info(moid, body, **kwargs) + return data + + def asset_device_configurations_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'assetDeviceConfiguration' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.asset_device_configurations_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the assetDeviceConfiguration instance. (required) + :param AssetDeviceConfiguration body: assetDeviceConfiguration to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method asset_device_configurations_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `asset_device_configurations_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `asset_device_configurations_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/asset/DeviceConfigurations/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/asset_device_registration_api.py b/intersight/apis/asset_device_registration_api.py index a4c16d5c..5f1aa2e7 100644 --- a/intersight/apis/asset_device_registration_api.py +++ b/intersight/apis/asset_device_registration_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def asset_device_registrations_get(self, **kwargs): """ - List of assetDeviceRegistrations + Get a list of 'assetDeviceRegistration' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def asset_device_registrations_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: AssetDeviceRegistrationList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def asset_device_registrations_get(self, **kwargs): def asset_device_registrations_get_with_http_info(self, **kwargs): """ - List of assetDeviceRegistrations + Get a list of 'assetDeviceRegistration' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def asset_device_registrations_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: AssetDeviceRegistrationList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def asset_device_registrations_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def asset_device_registrations_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def asset_device_registrations_get_with_http_info(self, **kwargs): def asset_device_registrations_moid_delete(self, moid, **kwargs): """ - Delete an instance of assetDeviceRegistration + Deletes the resource representing the device connector. All associated REST resources will be deleted. In particular, inventory and operational data associated with this device will be deleted. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def asset_device_registrations_moid_delete(self, moid, **kwargs): def asset_device_registrations_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of assetDeviceRegistration + Deletes the resource representing the device connector. All associated REST resources will be deleted. In particular, inventory and operational data associated with this device will be deleted. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def asset_device_registrations_moid_delete_with_http_info(self, moid, **kwargs): def asset_device_registrations_moid_get(self, moid, **kwargs): """ - A instance of assetDeviceRegistration + Get a specific instance of 'assetDeviceRegistration' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def asset_device_registrations_moid_get(self, moid, **kwargs): def asset_device_registrations_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of assetDeviceRegistration + Get a specific instance of 'assetDeviceRegistration' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def asset_device_registrations_moid_get_with_http_info(self, moid, **kwargs): def asset_device_registrations_moid_patch(self, moid, body, **kwargs): """ - Update an instance of assetDeviceRegistration + Updates the resource representing the device connector. For example, this can be used to annotate the device connector resource with user-specified tags. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def asset_device_registrations_moid_patch(self, moid, body, **kwargs): def asset_device_registrations_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of assetDeviceRegistration + Updates the resource representing the device connector. For example, this can be used to annotate the device connector resource with user-specified tags. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def asset_device_registrations_moid_patch_with_http_info(self, moid, body, **kwa def asset_device_registrations_moid_post(self, moid, body, **kwargs): """ - Update an instance of assetDeviceRegistration + Updates the resource representing the device connector. For example, this can be used to annotate the device connector resource with user-specified tags. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def asset_device_registrations_moid_post(self, moid, body, **kwargs): def asset_device_registrations_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of assetDeviceRegistration + Updates the resource representing the device connector. For example, this can be used to annotate the device connector resource with user-specified tags. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/bios_policy_api.py b/intersight/apis/bios_policy_api.py index 3b0b5456..13a7e5b9 100644 --- a/intersight/apis/bios_policy_api.py +++ b/intersight/apis/bios_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def bios_policies_get(self, **kwargs): """ - List of biosPolicies + Get a list of 'biosPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def bios_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: BiosPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def bios_policies_get(self, **kwargs): def bios_policies_get_with_http_info(self, **kwargs): """ - List of biosPolicies + Get a list of 'biosPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def bios_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: BiosPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def bios_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def bios_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def bios_policies_get_with_http_info(self, **kwargs): def bios_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of biosPolicy + Delete an instance of 'biosPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def bios_policies_moid_delete(self, moid, **kwargs): def bios_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of biosPolicy + Delete an instance of 'biosPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def bios_policies_moid_delete_with_http_info(self, moid, **kwargs): def bios_policies_moid_get(self, moid, **kwargs): """ - A instance of biosPolicy + Get a specific instance of 'biosPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def bios_policies_moid_get(self, moid, **kwargs): def bios_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of biosPolicy + Get a specific instance of 'biosPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def bios_policies_moid_get_with_http_info(self, moid, **kwargs): def bios_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of biosPolicy + Update an instance of 'biosPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def bios_policies_moid_patch(self, moid, body, **kwargs): def bios_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of biosPolicy + Update an instance of 'biosPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def bios_policies_moid_patch_with_http_info(self, moid, body, **kwargs): def bios_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of biosPolicy + Update an instance of 'biosPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def bios_policies_moid_post(self, moid, body, **kwargs): def bios_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of biosPolicy + Update an instance of 'biosPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def bios_policies_moid_post_with_http_info(self, moid, body, **kwargs): def bios_policies_post(self, body, **kwargs): """ - Create a biosPolicy + Create an instance of 'biosPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def bios_policies_post(self, body, **kwargs): def bios_policies_post_with_http_info(self, body, **kwargs): """ - Create a biosPolicy + Create an instance of 'biosPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/bios_unit_api.py b/intersight/apis/bios_unit_api.py index 9c1fefca..14365d82 100644 --- a/intersight/apis/bios_unit_api.py +++ b/intersight/apis/bios_unit_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def bios_units_get(self, **kwargs): """ - List of biosUnits + Get a list of 'biosUnit' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def bios_units_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: BiosUnitList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def bios_units_get(self, **kwargs): def bios_units_get_with_http_info(self, **kwargs): """ - List of biosUnits + Get a list of 'biosUnit' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def bios_units_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: BiosUnitList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def bios_units_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def bios_units_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def bios_units_get_with_http_info(self, **kwargs): def bios_units_moid_get(self, moid, **kwargs): """ - A instance of biosUnit + Get a specific instance of 'biosUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def bios_units_moid_get(self, moid, **kwargs): def bios_units_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of biosUnit + Get a specific instance of 'biosUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def bios_units_moid_get_with_http_info(self, moid, **kwargs): def bios_units_moid_patch(self, moid, body, **kwargs): """ - Update an instance of biosUnit + Update an instance of 'biosUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def bios_units_moid_patch(self, moid, body, **kwargs): def bios_units_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of biosUnit + Update an instance of 'biosUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def bios_units_moid_patch_with_http_info(self, moid, body, **kwargs): def bios_units_moid_post(self, moid, body, **kwargs): """ - Update an instance of biosUnit + Update an instance of 'biosUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def bios_units_moid_post(self, moid, body, **kwargs): def bios_units_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of biosUnit + Update an instance of 'biosUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/boot_precision_policy_api.py b/intersight/apis/boot_precision_policy_api.py index ca0a28cc..a4c86940 100644 --- a/intersight/apis/boot_precision_policy_api.py +++ b/intersight/apis/boot_precision_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def boot_precision_policies_get(self, **kwargs): """ - List of bootPrecisionPolicies + Get a list of 'bootPrecisionPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def boot_precision_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: BootPrecisionPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def boot_precision_policies_get(self, **kwargs): def boot_precision_policies_get_with_http_info(self, **kwargs): """ - List of bootPrecisionPolicies + Get a list of 'bootPrecisionPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def boot_precision_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: BootPrecisionPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def boot_precision_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def boot_precision_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def boot_precision_policies_get_with_http_info(self, **kwargs): def boot_precision_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of bootPrecisionPolicy + Delete an instance of 'bootPrecisionPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def boot_precision_policies_moid_delete(self, moid, **kwargs): def boot_precision_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of bootPrecisionPolicy + Delete an instance of 'bootPrecisionPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def boot_precision_policies_moid_delete_with_http_info(self, moid, **kwargs): def boot_precision_policies_moid_get(self, moid, **kwargs): """ - A instance of bootPrecisionPolicy + Get a specific instance of 'bootPrecisionPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def boot_precision_policies_moid_get(self, moid, **kwargs): def boot_precision_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of bootPrecisionPolicy + Get a specific instance of 'bootPrecisionPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def boot_precision_policies_moid_get_with_http_info(self, moid, **kwargs): def boot_precision_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of bootPrecisionPolicy + Update an instance of 'bootPrecisionPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def boot_precision_policies_moid_patch(self, moid, body, **kwargs): def boot_precision_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of bootPrecisionPolicy + Update an instance of 'bootPrecisionPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def boot_precision_policies_moid_patch_with_http_info(self, moid, body, **kwargs def boot_precision_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of bootPrecisionPolicy + Update an instance of 'bootPrecisionPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def boot_precision_policies_moid_post(self, moid, body, **kwargs): def boot_precision_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of bootPrecisionPolicy + Update an instance of 'bootPrecisionPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def boot_precision_policies_moid_post_with_http_info(self, moid, body, **kwargs) def boot_precision_policies_post(self, body, **kwargs): """ - Create a bootPrecisionPolicy + Create an instance of 'bootPrecisionPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def boot_precision_policies_post(self, body, **kwargs): def boot_precision_policies_post_with_http_info(self, body, **kwargs): """ - Create a bootPrecisionPolicy + Create an instance of 'bootPrecisionPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/compute_blade_api.py b/intersight/apis/compute_blade_api.py index 85a9454e..6a9d58ca 100644 --- a/intersight/apis/compute_blade_api.py +++ b/intersight/apis/compute_blade_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def compute_blades_get(self, **kwargs): """ - List of computeBlades + Get a list of 'computeBlade' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def compute_blades_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ComputeBladeList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def compute_blades_get(self, **kwargs): def compute_blades_get_with_http_info(self, **kwargs): """ - List of computeBlades + Get a list of 'computeBlade' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def compute_blades_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ComputeBladeList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def compute_blades_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def compute_blades_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def compute_blades_get_with_http_info(self, **kwargs): def compute_blades_moid_get(self, moid, **kwargs): """ - A instance of computeBlade + Get a specific instance of 'computeBlade' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def compute_blades_moid_get(self, moid, **kwargs): def compute_blades_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of computeBlade + Get a specific instance of 'computeBlade' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def compute_blades_moid_get_with_http_info(self, moid, **kwargs): def compute_blades_moid_patch(self, moid, body, **kwargs): """ - Update an instance of computeBlade + Update an instance of 'computeBlade' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def compute_blades_moid_patch(self, moid, body, **kwargs): def compute_blades_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of computeBlade + Update an instance of 'computeBlade' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def compute_blades_moid_patch_with_http_info(self, moid, body, **kwargs): def compute_blades_moid_post(self, moid, body, **kwargs): """ - Update an instance of computeBlade + Update an instance of 'computeBlade' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def compute_blades_moid_post(self, moid, body, **kwargs): def compute_blades_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of computeBlade + Update an instance of 'computeBlade' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/compute_board_api.py b/intersight/apis/compute_board_api.py index 5c9d5e52..ebdca183 100644 --- a/intersight/apis/compute_board_api.py +++ b/intersight/apis/compute_board_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def compute_boards_get(self, **kwargs): """ - List of computeBoards + Get a list of 'computeBoard' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def compute_boards_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ComputeBoardList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def compute_boards_get(self, **kwargs): def compute_boards_get_with_http_info(self, **kwargs): """ - List of computeBoards + Get a list of 'computeBoard' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def compute_boards_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ComputeBoardList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def compute_boards_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def compute_boards_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def compute_boards_get_with_http_info(self, **kwargs): def compute_boards_moid_get(self, moid, **kwargs): """ - A instance of computeBoard + Get a specific instance of 'computeBoard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def compute_boards_moid_get(self, moid, **kwargs): def compute_boards_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of computeBoard + Get a specific instance of 'computeBoard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def compute_boards_moid_get_with_http_info(self, moid, **kwargs): def compute_boards_moid_patch(self, moid, body, **kwargs): """ - Update an instance of computeBoard + Update an instance of 'computeBoard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def compute_boards_moid_patch(self, moid, body, **kwargs): def compute_boards_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of computeBoard + Update an instance of 'computeBoard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def compute_boards_moid_patch_with_http_info(self, moid, body, **kwargs): def compute_boards_moid_post(self, moid, body, **kwargs): """ - Update an instance of computeBoard + Update an instance of 'computeBoard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def compute_boards_moid_post(self, moid, body, **kwargs): def compute_boards_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of computeBoard + Update an instance of 'computeBoard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/compute_physical_summary_api.py b/intersight/apis/compute_physical_summary_api.py index 44af206c..743a898c 100644 --- a/intersight/apis/compute_physical_summary_api.py +++ b/intersight/apis/compute_physical_summary_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def compute_physical_summaries_get(self, **kwargs): """ - List of computePhysicalSummaries + Get a list of 'computePhysicalSummary' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def compute_physical_summaries_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ComputePhysicalSummaryList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def compute_physical_summaries_get(self, **kwargs): def compute_physical_summaries_get_with_http_info(self, **kwargs): """ - List of computePhysicalSummaries + Get a list of 'computePhysicalSummary' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def compute_physical_summaries_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ComputePhysicalSummaryList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def compute_physical_summaries_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def compute_physical_summaries_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def compute_physical_summaries_get_with_http_info(self, **kwargs): def compute_physical_summaries_moid_get(self, moid, **kwargs): """ - A instance of computePhysicalSummary + Get a specific instance of 'computePhysicalSummary' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def compute_physical_summaries_moid_get(self, moid, **kwargs): def compute_physical_summaries_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of computePhysicalSummary + Get a specific instance of 'computePhysicalSummary' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/compute_rack_unit_api.py b/intersight/apis/compute_rack_unit_api.py index 6f337a86..a114634a 100644 --- a/intersight/apis/compute_rack_unit_api.py +++ b/intersight/apis/compute_rack_unit_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def compute_rack_units_get(self, **kwargs): """ - List of computeRackUnits + Get a list of 'computeRackUnit' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def compute_rack_units_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ComputeRackUnitList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def compute_rack_units_get(self, **kwargs): def compute_rack_units_get_with_http_info(self, **kwargs): """ - List of computeRackUnits + Get a list of 'computeRackUnit' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def compute_rack_units_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ComputeRackUnitList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def compute_rack_units_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def compute_rack_units_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def compute_rack_units_get_with_http_info(self, **kwargs): def compute_rack_units_moid_get(self, moid, **kwargs): """ - A instance of computeRackUnit + Get a specific instance of 'computeRackUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def compute_rack_units_moid_get(self, moid, **kwargs): def compute_rack_units_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of computeRackUnit + Get a specific instance of 'computeRackUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def compute_rack_units_moid_get_with_http_info(self, moid, **kwargs): def compute_rack_units_moid_patch(self, moid, body, **kwargs): """ - Update an instance of computeRackUnit + Update an instance of 'computeRackUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def compute_rack_units_moid_patch(self, moid, body, **kwargs): def compute_rack_units_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of computeRackUnit + Update an instance of 'computeRackUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def compute_rack_units_moid_patch_with_http_info(self, moid, body, **kwargs): def compute_rack_units_moid_post(self, moid, body, **kwargs): """ - Update an instance of computeRackUnit + Update an instance of 'computeRackUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def compute_rack_units_moid_post(self, moid, body, **kwargs): def compute_rack_units_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of computeRackUnit + Update an instance of 'computeRackUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/compute_server_setting_api.py b/intersight/apis/compute_server_setting_api.py index 4ad0e134..81bea7af 100644 --- a/intersight/apis/compute_server_setting_api.py +++ b/intersight/apis/compute_server_setting_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def compute_server_settings_get(self, **kwargs): """ - List of computeServerSettings + Get a list of 'computeServerSetting' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def compute_server_settings_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ComputeServerSettingList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def compute_server_settings_get(self, **kwargs): def compute_server_settings_get_with_http_info(self, **kwargs): """ - List of computeServerSettings + Get a list of 'computeServerSetting' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def compute_server_settings_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ComputeServerSettingList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def compute_server_settings_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def compute_server_settings_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def compute_server_settings_get_with_http_info(self, **kwargs): def compute_server_settings_moid_get(self, moid, **kwargs): """ - A instance of computeServerSetting + Get a specific instance of 'computeServerSetting' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def compute_server_settings_moid_get(self, moid, **kwargs): def compute_server_settings_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of computeServerSetting + Get a specific instance of 'computeServerSetting' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def compute_server_settings_moid_get_with_http_info(self, moid, **kwargs): def compute_server_settings_moid_patch(self, moid, body, **kwargs): """ - Update an instance of computeServerSetting + Update an instance of 'computeServerSetting' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def compute_server_settings_moid_patch(self, moid, body, **kwargs): def compute_server_settings_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of computeServerSetting + Update an instance of 'computeServerSetting' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def compute_server_settings_moid_patch_with_http_info(self, moid, body, **kwargs def compute_server_settings_moid_post(self, moid, body, **kwargs): """ - Update an instance of computeServerSetting + Update an instance of 'computeServerSetting' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def compute_server_settings_moid_post(self, moid, body, **kwargs): def compute_server_settings_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of computeServerSetting + Update an instance of 'computeServerSetting' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/cond_alarm_api.py b/intersight/apis/cond_alarm_api.py index 920ef67a..a2c2b787 100644 --- a/intersight/apis/cond_alarm_api.py +++ b/intersight/apis/cond_alarm_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def cond_alarms_get(self, **kwargs): """ - List of condAlarms + Get a list of 'condAlarm' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def cond_alarms_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: CondAlarmList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def cond_alarms_get(self, **kwargs): def cond_alarms_get_with_http_info(self, **kwargs): """ - List of condAlarms + Get a list of 'condAlarm' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def cond_alarms_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: CondAlarmList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def cond_alarms_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def cond_alarms_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def cond_alarms_get_with_http_info(self, **kwargs): def cond_alarms_moid_get(self, moid, **kwargs): """ - A instance of condAlarm + Get a specific instance of 'condAlarm' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def cond_alarms_moid_get(self, moid, **kwargs): def cond_alarms_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of condAlarm + Get a specific instance of 'condAlarm' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/cond_hcl_status_api.py b/intersight/apis/cond_hcl_status_api.py index dc4b9341..88ceb746 100644 --- a/intersight/apis/cond_hcl_status_api.py +++ b/intersight/apis/cond_hcl_status_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def cond_hcl_statuses_get(self, **kwargs): """ - List of condHclStatuses + Get a list of 'condHclStatus' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def cond_hcl_statuses_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: CondHclStatusList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def cond_hcl_statuses_get(self, **kwargs): def cond_hcl_statuses_get_with_http_info(self, **kwargs): """ - List of condHclStatuses + Get a list of 'condHclStatus' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def cond_hcl_statuses_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: CondHclStatusList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def cond_hcl_statuses_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def cond_hcl_statuses_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def cond_hcl_statuses_get_with_http_info(self, **kwargs): def cond_hcl_statuses_moid_get(self, moid, **kwargs): """ - A instance of condHclStatus + Get a specific instance of 'condHclStatus' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def cond_hcl_statuses_moid_get(self, moid, **kwargs): def cond_hcl_statuses_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of condHclStatus + Get a specific instance of 'condHclStatus' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/cond_hcl_status_detail_api.py b/intersight/apis/cond_hcl_status_detail_api.py index 28e1c501..b09458de 100644 --- a/intersight/apis/cond_hcl_status_detail_api.py +++ b/intersight/apis/cond_hcl_status_detail_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def cond_hcl_status_details_get(self, **kwargs): """ - List of condHclStatusDetails + Get a list of 'condHclStatusDetail' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def cond_hcl_status_details_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: CondHclStatusDetailList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def cond_hcl_status_details_get(self, **kwargs): def cond_hcl_status_details_get_with_http_info(self, **kwargs): """ - List of condHclStatusDetails + Get a list of 'condHclStatusDetail' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def cond_hcl_status_details_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: CondHclStatusDetailList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def cond_hcl_status_details_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def cond_hcl_status_details_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def cond_hcl_status_details_get_with_http_info(self, **kwargs): def cond_hcl_status_details_moid_get(self, moid, **kwargs): """ - A instance of condHclStatusDetail + Get a specific instance of 'condHclStatusDetail' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def cond_hcl_status_details_moid_get(self, moid, **kwargs): def cond_hcl_status_details_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of condHclStatusDetail + Get a specific instance of 'condHclStatusDetail' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/cond_hcl_status_job_api.py b/intersight/apis/cond_hcl_status_job_api.py index 8665333b..b0be1824 100644 --- a/intersight/apis/cond_hcl_status_job_api.py +++ b/intersight/apis/cond_hcl_status_job_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def cond_hcl_status_jobs_get(self, **kwargs): """ - List of condHclStatusJobs + Get a list of 'condHclStatusJob' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def cond_hcl_status_jobs_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: CondHclStatusJobList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def cond_hcl_status_jobs_get(self, **kwargs): def cond_hcl_status_jobs_get_with_http_info(self, **kwargs): """ - List of condHclStatusJobs + Get a list of 'condHclStatusJob' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def cond_hcl_status_jobs_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: CondHclStatusJobList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def cond_hcl_status_jobs_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def cond_hcl_status_jobs_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def cond_hcl_status_jobs_get_with_http_info(self, **kwargs): def cond_hcl_status_jobs_moid_get(self, moid, **kwargs): """ - A instance of condHclStatusJob + Get a specific instance of 'condHclStatusJob' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def cond_hcl_status_jobs_moid_get(self, moid, **kwargs): def cond_hcl_status_jobs_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of condHclStatusJob + Get a specific instance of 'condHclStatusJob' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/crypt_encryption_token_api.py b/intersight/apis/crypt_encryption_token_api.py index 282393c7..da28b82b 100644 --- a/intersight/apis/crypt_encryption_token_api.py +++ b/intersight/apis/crypt_encryption_token_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def crypt_encryption_tokens_get(self, **kwargs): """ - List of cryptEncryptionTokens + Get a list of 'cryptEncryptionToken' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def crypt_encryption_tokens_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: CryptEncryptionTokenList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def crypt_encryption_tokens_get(self, **kwargs): def crypt_encryption_tokens_get_with_http_info(self, **kwargs): """ - List of cryptEncryptionTokens + Get a list of 'cryptEncryptionToken' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def crypt_encryption_tokens_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: CryptEncryptionTokenList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def crypt_encryption_tokens_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def crypt_encryption_tokens_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def crypt_encryption_tokens_get_with_http_info(self, **kwargs): def crypt_encryption_tokens_moid_get(self, moid, **kwargs): """ - A instance of cryptEncryptionToken + Get a specific instance of 'cryptEncryptionToken' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def crypt_encryption_tokens_moid_get(self, moid, **kwargs): def crypt_encryption_tokens_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of cryptEncryptionToken + Get a specific instance of 'cryptEncryptionToken' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def crypt_encryption_tokens_moid_get_with_http_info(self, moid, **kwargs): def crypt_encryption_tokens_moid_patch(self, moid, body, **kwargs): """ - Update an instance of cryptEncryptionToken + Update an instance of 'cryptEncryptionToken' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def crypt_encryption_tokens_moid_patch(self, moid, body, **kwargs): def crypt_encryption_tokens_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of cryptEncryptionToken + Update an instance of 'cryptEncryptionToken' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def crypt_encryption_tokens_moid_patch_with_http_info(self, moid, body, **kwargs def crypt_encryption_tokens_moid_post(self, moid, body, **kwargs): """ - Update an instance of cryptEncryptionToken + Update an instance of 'cryptEncryptionToken' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def crypt_encryption_tokens_moid_post(self, moid, body, **kwargs): def crypt_encryption_tokens_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of cryptEncryptionToken + Update an instance of 'cryptEncryptionToken' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/cvd_deployment_task_api.py b/intersight/apis/cvd_deployment_task_api.py new file mode 100644 index 00000000..a2f970c9 --- /dev/null +++ b/intersight/apis/cvd_deployment_task_api.py @@ -0,0 +1,712 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class CvdDeploymentTaskApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def cvd_deployment_tasks_get(self, **kwargs): + """ + Get a list of 'cvdDeploymentTask' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_deployment_tasks_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: CvdDeploymentTaskList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.cvd_deployment_tasks_get_with_http_info(**kwargs) + else: + (data) = self.cvd_deployment_tasks_get_with_http_info(**kwargs) + return data + + def cvd_deployment_tasks_get_with_http_info(self, **kwargs): + """ + Get a list of 'cvdDeploymentTask' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_deployment_tasks_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: CvdDeploymentTaskList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method cvd_deployment_tasks_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/cvd/DeploymentTasks', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CvdDeploymentTaskList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def cvd_deployment_tasks_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'cvdDeploymentTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_deployment_tasks_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the cvdDeploymentTask instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.cvd_deployment_tasks_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.cvd_deployment_tasks_moid_delete_with_http_info(moid, **kwargs) + return data + + def cvd_deployment_tasks_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'cvdDeploymentTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_deployment_tasks_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the cvdDeploymentTask instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method cvd_deployment_tasks_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `cvd_deployment_tasks_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/cvd/DeploymentTasks/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def cvd_deployment_tasks_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'cvdDeploymentTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_deployment_tasks_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the cvdDeploymentTask instance. (required) + :return: CvdDeploymentTask + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.cvd_deployment_tasks_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.cvd_deployment_tasks_moid_get_with_http_info(moid, **kwargs) + return data + + def cvd_deployment_tasks_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'cvdDeploymentTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_deployment_tasks_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the cvdDeploymentTask instance. (required) + :return: CvdDeploymentTask + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method cvd_deployment_tasks_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `cvd_deployment_tasks_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/cvd/DeploymentTasks/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CvdDeploymentTask', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def cvd_deployment_tasks_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'cvdDeploymentTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_deployment_tasks_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the cvdDeploymentTask instance. (required) + :param CvdDeploymentTask body: cvdDeploymentTask to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.cvd_deployment_tasks_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.cvd_deployment_tasks_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def cvd_deployment_tasks_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'cvdDeploymentTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_deployment_tasks_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the cvdDeploymentTask instance. (required) + :param CvdDeploymentTask body: cvdDeploymentTask to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method cvd_deployment_tasks_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `cvd_deployment_tasks_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `cvd_deployment_tasks_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/cvd/DeploymentTasks/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def cvd_deployment_tasks_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'cvdDeploymentTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_deployment_tasks_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the cvdDeploymentTask instance. (required) + :param CvdDeploymentTask body: cvdDeploymentTask to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.cvd_deployment_tasks_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.cvd_deployment_tasks_moid_post_with_http_info(moid, body, **kwargs) + return data + + def cvd_deployment_tasks_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'cvdDeploymentTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_deployment_tasks_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the cvdDeploymentTask instance. (required) + :param CvdDeploymentTask body: cvdDeploymentTask to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method cvd_deployment_tasks_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `cvd_deployment_tasks_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `cvd_deployment_tasks_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/cvd/DeploymentTasks/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def cvd_deployment_tasks_post(self, body, **kwargs): + """ + Create an instance of 'cvdDeploymentTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_deployment_tasks_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param CvdDeploymentTask body: cvdDeploymentTask to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.cvd_deployment_tasks_post_with_http_info(body, **kwargs) + else: + (data) = self.cvd_deployment_tasks_post_with_http_info(body, **kwargs) + return data + + def cvd_deployment_tasks_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'cvdDeploymentTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_deployment_tasks_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param CvdDeploymentTask body: cvdDeploymentTask to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method cvd_deployment_tasks_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `cvd_deployment_tasks_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/cvd/DeploymentTasks', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/packagemanagement_connector_install_api.py b/intersight/apis/cvd_template_api.py similarity index 73% rename from intersight/apis/packagemanagement_connector_install_api.py rename to intersight/apis/cvd_template_api.py index d1be019a..116a925f 100644 --- a/intersight/apis/packagemanagement_connector_install_api.py +++ b/intersight/apis/cvd_template_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -24,7 +24,7 @@ from ..api_client import ApiClient -class PackagemanagementConnectorInstallApi(object): +class CvdTemplateApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,67 +40,69 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def packagemanagement_connector_installs_get(self, **kwargs): + def cvd_templates_get(self, **kwargs): """ - List of packagemanagementConnectorInstalls + Get a list of 'cvdTemplate' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_installs_get(callback=callback_function) + >>> thread = api.cvd_templates_get(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: PackagemanagementConnectorInstallList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: CvdTemplateList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.packagemanagement_connector_installs_get_with_http_info(**kwargs) + return self.cvd_templates_get_with_http_info(**kwargs) else: - (data) = self.packagemanagement_connector_installs_get_with_http_info(**kwargs) + (data) = self.cvd_templates_get_with_http_info(**kwargs) return data - def packagemanagement_connector_installs_get_with_http_info(self, **kwargs): + def cvd_templates_get_with_http_info(self, **kwargs): """ - List of packagemanagementConnectorInstalls + Get a list of 'cvdTemplate' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_installs_get_with_http_info(callback=callback_function) + >>> thread = api.cvd_templates_get_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: PackagemanagementConnectorInstallList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: CvdTemplateList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -111,7 +113,7 @@ def packagemanagement_connector_installs_get_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method packagemanagement_connector_installs_get" % key + " to method cvd_templates_get" % key ) params[key] = val del params['kwargs'] @@ -126,8 +128,6 @@ def packagemanagement_connector_installs_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def packagemanagement_connector_installs_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -158,14 +162,14 @@ def packagemanagement_connector_installs_get_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/packagemanagement/ConnectorInstalls', 'GET', + return self.api_client.call_api('/cvd/Templates', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='PackagemanagementConnectorInstallList', + response_type='CvdTemplateList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -173,45 +177,45 @@ def packagemanagement_connector_installs_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def packagemanagement_connector_installs_moid_delete(self, moid, **kwargs): + def cvd_templates_moid_delete(self, moid, **kwargs): """ - Delete an instance of packagemanagementConnectorInstall + Delete an instance of 'cvdTemplate' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_installs_moid_delete(moid, callback=callback_function) + >>> thread = api.cvd_templates_moid_delete(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorInstall instance. (required) + :param str moid: The moid of the cvdTemplate instance. (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.packagemanagement_connector_installs_moid_delete_with_http_info(moid, **kwargs) + return self.cvd_templates_moid_delete_with_http_info(moid, **kwargs) else: - (data) = self.packagemanagement_connector_installs_moid_delete_with_http_info(moid, **kwargs) + (data) = self.cvd_templates_moid_delete_with_http_info(moid, **kwargs) return data - def packagemanagement_connector_installs_moid_delete_with_http_info(self, moid, **kwargs): + def cvd_templates_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of packagemanagementConnectorInstall + Delete an instance of 'cvdTemplate' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_installs_moid_delete_with_http_info(moid, callback=callback_function) + >>> thread = api.cvd_templates_moid_delete_with_http_info(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorInstall instance. (required) + :param str moid: The moid of the cvdTemplate instance. (required) :return: None If the method is called asynchronously, returns the request thread. @@ -228,13 +232,13 @@ def packagemanagement_connector_installs_moid_delete_with_http_info(self, moid, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method packagemanagement_connector_installs_moid_delete" % key + " to method cvd_templates_moid_delete" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `packagemanagement_connector_installs_moid_delete`") + raise ValueError("Missing the required parameter `moid` when calling `cvd_templates_moid_delete`") collection_formats = {} @@ -262,7 +266,7 @@ def packagemanagement_connector_installs_moid_delete_with_http_info(self, moid, # Authentication setting auth_settings = [] - return self.api_client.call_api('/packagemanagement/ConnectorInstalls/{moid}', 'DELETE', + return self.api_client.call_api('/cvd/Templates/{moid}', 'DELETE', path_params, query_params, header_params, @@ -277,46 +281,46 @@ def packagemanagement_connector_installs_moid_delete_with_http_info(self, moid, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def packagemanagement_connector_installs_moid_get(self, moid, **kwargs): + def cvd_templates_moid_get(self, moid, **kwargs): """ - A instance of packagemanagementConnectorInstall + Get a specific instance of 'cvdTemplate' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_installs_moid_get(moid, callback=callback_function) + >>> thread = api.cvd_templates_moid_get(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorInstall instance. (required) - :return: PackagemanagementConnectorInstall + :param str moid: The moid of the cvdTemplate instance. (required) + :return: CvdTemplate If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.packagemanagement_connector_installs_moid_get_with_http_info(moid, **kwargs) + return self.cvd_templates_moid_get_with_http_info(moid, **kwargs) else: - (data) = self.packagemanagement_connector_installs_moid_get_with_http_info(moid, **kwargs) + (data) = self.cvd_templates_moid_get_with_http_info(moid, **kwargs) return data - def packagemanagement_connector_installs_moid_get_with_http_info(self, moid, **kwargs): + def cvd_templates_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of packagemanagementConnectorInstall + Get a specific instance of 'cvdTemplate' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_installs_moid_get_with_http_info(moid, callback=callback_function) + >>> thread = api.cvd_templates_moid_get_with_http_info(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorInstall instance. (required) - :return: PackagemanagementConnectorInstall + :param str moid: The moid of the cvdTemplate instance. (required) + :return: CvdTemplate If the method is called asynchronously, returns the request thread. """ @@ -332,13 +336,13 @@ def packagemanagement_connector_installs_moid_get_with_http_info(self, moid, **k if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method packagemanagement_connector_installs_moid_get" % key + " to method cvd_templates_moid_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `packagemanagement_connector_installs_moid_get`") + raise ValueError("Missing the required parameter `moid` when calling `cvd_templates_moid_get`") collection_formats = {} @@ -366,14 +370,14 @@ def packagemanagement_connector_installs_moid_get_with_http_info(self, moid, **k # Authentication setting auth_settings = [] - return self.api_client.call_api('/packagemanagement/ConnectorInstalls/{moid}', 'GET', + return self.api_client.call_api('/cvd/Templates/{moid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='PackagemanagementConnectorInstall', + response_type='CvdTemplate', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -381,47 +385,47 @@ def packagemanagement_connector_installs_moid_get_with_http_info(self, moid, **k _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def packagemanagement_connector_installs_moid_patch(self, moid, body, **kwargs): + def cvd_templates_moid_patch(self, moid, body, **kwargs): """ - Update an instance of packagemanagementConnectorInstall + Update an instance of 'cvdTemplate' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_installs_moid_patch(moid, body, callback=callback_function) + >>> thread = api.cvd_templates_moid_patch(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorInstall instance. (required) - :param PackagemanagementConnectorInstall body: packagemanagementConnectorInstall to update (required) + :param str moid: The moid of the cvdTemplate instance. (required) + :param CvdTemplate body: cvdTemplate to update (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.packagemanagement_connector_installs_moid_patch_with_http_info(moid, body, **kwargs) + return self.cvd_templates_moid_patch_with_http_info(moid, body, **kwargs) else: - (data) = self.packagemanagement_connector_installs_moid_patch_with_http_info(moid, body, **kwargs) + (data) = self.cvd_templates_moid_patch_with_http_info(moid, body, **kwargs) return data - def packagemanagement_connector_installs_moid_patch_with_http_info(self, moid, body, **kwargs): + def cvd_templates_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of packagemanagementConnectorInstall + Update an instance of 'cvdTemplate' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_installs_moid_patch_with_http_info(moid, body, callback=callback_function) + >>> thread = api.cvd_templates_moid_patch_with_http_info(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorInstall instance. (required) - :param PackagemanagementConnectorInstall body: packagemanagementConnectorInstall to update (required) + :param str moid: The moid of the cvdTemplate instance. (required) + :param CvdTemplate body: cvdTemplate to update (required) :return: None If the method is called asynchronously, returns the request thread. @@ -438,16 +442,16 @@ def packagemanagement_connector_installs_moid_patch_with_http_info(self, moid, b if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method packagemanagement_connector_installs_moid_patch" % key + " to method cvd_templates_moid_patch" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `packagemanagement_connector_installs_moid_patch`") + raise ValueError("Missing the required parameter `moid` when calling `cvd_templates_moid_patch`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `packagemanagement_connector_installs_moid_patch`") + raise ValueError("Missing the required parameter `body` when calling `cvd_templates_moid_patch`") collection_formats = {} @@ -477,7 +481,7 @@ def packagemanagement_connector_installs_moid_patch_with_http_info(self, moid, b # Authentication setting auth_settings = [] - return self.api_client.call_api('/packagemanagement/ConnectorInstalls/{moid}', 'PATCH', + return self.api_client.call_api('/cvd/Templates/{moid}', 'PATCH', path_params, query_params, header_params, @@ -492,47 +496,47 @@ def packagemanagement_connector_installs_moid_patch_with_http_info(self, moid, b _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def packagemanagement_connector_installs_moid_post(self, moid, body, **kwargs): + def cvd_templates_moid_post(self, moid, body, **kwargs): """ - Update an instance of packagemanagementConnectorInstall + Update an instance of 'cvdTemplate' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_installs_moid_post(moid, body, callback=callback_function) + >>> thread = api.cvd_templates_moid_post(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorInstall instance. (required) - :param PackagemanagementConnectorInstall body: packagemanagementConnectorInstall to update (required) + :param str moid: The moid of the cvdTemplate instance. (required) + :param CvdTemplate body: cvdTemplate to update (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.packagemanagement_connector_installs_moid_post_with_http_info(moid, body, **kwargs) + return self.cvd_templates_moid_post_with_http_info(moid, body, **kwargs) else: - (data) = self.packagemanagement_connector_installs_moid_post_with_http_info(moid, body, **kwargs) + (data) = self.cvd_templates_moid_post_with_http_info(moid, body, **kwargs) return data - def packagemanagement_connector_installs_moid_post_with_http_info(self, moid, body, **kwargs): + def cvd_templates_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of packagemanagementConnectorInstall + Update an instance of 'cvdTemplate' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_installs_moid_post_with_http_info(moid, body, callback=callback_function) + >>> thread = api.cvd_templates_moid_post_with_http_info(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorInstall instance. (required) - :param PackagemanagementConnectorInstall body: packagemanagementConnectorInstall to update (required) + :param str moid: The moid of the cvdTemplate instance. (required) + :param CvdTemplate body: cvdTemplate to update (required) :return: None If the method is called asynchronously, returns the request thread. @@ -549,16 +553,16 @@ def packagemanagement_connector_installs_moid_post_with_http_info(self, moid, bo if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method packagemanagement_connector_installs_moid_post" % key + " to method cvd_templates_moid_post" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `packagemanagement_connector_installs_moid_post`") + raise ValueError("Missing the required parameter `moid` when calling `cvd_templates_moid_post`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `packagemanagement_connector_installs_moid_post`") + raise ValueError("Missing the required parameter `body` when calling `cvd_templates_moid_post`") collection_formats = {} @@ -588,7 +592,7 @@ def packagemanagement_connector_installs_moid_post_with_http_info(self, moid, bo # Authentication setting auth_settings = [] - return self.api_client.call_api('/packagemanagement/ConnectorInstalls/{moid}', 'POST', + return self.api_client.call_api('/cvd/Templates/{moid}', 'POST', path_params, query_params, header_params, @@ -603,45 +607,45 @@ def packagemanagement_connector_installs_moid_post_with_http_info(self, moid, bo _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def packagemanagement_connector_installs_post(self, body, **kwargs): + def cvd_templates_post(self, body, **kwargs): """ - Create a packagemanagementConnectorInstall + Create an instance of 'cvdTemplate' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_installs_post(body, callback=callback_function) + >>> thread = api.cvd_templates_post(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param PackagemanagementConnectorInstall body: packagemanagementConnectorInstall to add (required) + :param CvdTemplate body: cvdTemplate to add (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.packagemanagement_connector_installs_post_with_http_info(body, **kwargs) + return self.cvd_templates_post_with_http_info(body, **kwargs) else: - (data) = self.packagemanagement_connector_installs_post_with_http_info(body, **kwargs) + (data) = self.cvd_templates_post_with_http_info(body, **kwargs) return data - def packagemanagement_connector_installs_post_with_http_info(self, body, **kwargs): + def cvd_templates_post_with_http_info(self, body, **kwargs): """ - Create a packagemanagementConnectorInstall + Create an instance of 'cvdTemplate' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_installs_post_with_http_info(body, callback=callback_function) + >>> thread = api.cvd_templates_post_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param PackagemanagementConnectorInstall body: packagemanagementConnectorInstall to add (required) + :param CvdTemplate body: cvdTemplate to add (required) :return: None If the method is called asynchronously, returns the request thread. @@ -658,13 +662,13 @@ def packagemanagement_connector_installs_post_with_http_info(self, body, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method packagemanagement_connector_installs_post" % key + " to method cvd_templates_post" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `packagemanagement_connector_installs_post`") + raise ValueError("Missing the required parameter `body` when calling `cvd_templates_post`") collection_formats = {} @@ -692,7 +696,7 @@ def packagemanagement_connector_installs_post_with_http_info(self, body, **kwarg # Authentication setting auth_settings = [] - return self.api_client.call_api('/packagemanagement/ConnectorInstalls', 'POST', + return self.api_client.call_api('/cvd/Templates', 'POST', path_params, query_params, header_params, diff --git a/intersight/apis/cvd_validation_task_api.py b/intersight/apis/cvd_validation_task_api.py new file mode 100644 index 00000000..6e7e7be2 --- /dev/null +++ b/intersight/apis/cvd_validation_task_api.py @@ -0,0 +1,712 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class CvdValidationTaskApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def cvd_validation_tasks_get(self, **kwargs): + """ + Get a list of 'cvdValidationTask' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_validation_tasks_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: CvdValidationTaskList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.cvd_validation_tasks_get_with_http_info(**kwargs) + else: + (data) = self.cvd_validation_tasks_get_with_http_info(**kwargs) + return data + + def cvd_validation_tasks_get_with_http_info(self, **kwargs): + """ + Get a list of 'cvdValidationTask' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_validation_tasks_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: CvdValidationTaskList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method cvd_validation_tasks_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/cvd/ValidationTasks', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CvdValidationTaskList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def cvd_validation_tasks_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'cvdValidationTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_validation_tasks_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the cvdValidationTask instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.cvd_validation_tasks_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.cvd_validation_tasks_moid_delete_with_http_info(moid, **kwargs) + return data + + def cvd_validation_tasks_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'cvdValidationTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_validation_tasks_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the cvdValidationTask instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method cvd_validation_tasks_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `cvd_validation_tasks_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/cvd/ValidationTasks/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def cvd_validation_tasks_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'cvdValidationTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_validation_tasks_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the cvdValidationTask instance. (required) + :return: CvdValidationTask + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.cvd_validation_tasks_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.cvd_validation_tasks_moid_get_with_http_info(moid, **kwargs) + return data + + def cvd_validation_tasks_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'cvdValidationTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_validation_tasks_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the cvdValidationTask instance. (required) + :return: CvdValidationTask + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method cvd_validation_tasks_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `cvd_validation_tasks_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/cvd/ValidationTasks/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CvdValidationTask', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def cvd_validation_tasks_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'cvdValidationTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_validation_tasks_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the cvdValidationTask instance. (required) + :param CvdValidationTask body: cvdValidationTask to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.cvd_validation_tasks_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.cvd_validation_tasks_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def cvd_validation_tasks_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'cvdValidationTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_validation_tasks_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the cvdValidationTask instance. (required) + :param CvdValidationTask body: cvdValidationTask to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method cvd_validation_tasks_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `cvd_validation_tasks_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `cvd_validation_tasks_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/cvd/ValidationTasks/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def cvd_validation_tasks_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'cvdValidationTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_validation_tasks_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the cvdValidationTask instance. (required) + :param CvdValidationTask body: cvdValidationTask to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.cvd_validation_tasks_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.cvd_validation_tasks_moid_post_with_http_info(moid, body, **kwargs) + return data + + def cvd_validation_tasks_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'cvdValidationTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_validation_tasks_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the cvdValidationTask instance. (required) + :param CvdValidationTask body: cvdValidationTask to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method cvd_validation_tasks_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `cvd_validation_tasks_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `cvd_validation_tasks_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/cvd/ValidationTasks/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def cvd_validation_tasks_post(self, body, **kwargs): + """ + Create an instance of 'cvdValidationTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_validation_tasks_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param CvdValidationTask body: cvdValidationTask to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.cvd_validation_tasks_post_with_http_info(body, **kwargs) + else: + (data) = self.cvd_validation_tasks_post_with_http_info(body, **kwargs) + return data + + def cvd_validation_tasks_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'cvdValidationTask' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.cvd_validation_tasks_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param CvdValidationTask body: cvdValidationTask to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method cvd_validation_tasks_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `cvd_validation_tasks_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/cvd/ValidationTasks', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/deviceconnector_policy_api.py b/intersight/apis/deviceconnector_policy_api.py new file mode 100644 index 00000000..4eae2052 --- /dev/null +++ b/intersight/apis/deviceconnector_policy_api.py @@ -0,0 +1,712 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class DeviceconnectorPolicyApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def deviceconnector_policies_get(self, **kwargs): + """ + Get a list of 'deviceconnectorPolicy' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deviceconnector_policies_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: DeviceconnectorPolicyList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.deviceconnector_policies_get_with_http_info(**kwargs) + else: + (data) = self.deviceconnector_policies_get_with_http_info(**kwargs) + return data + + def deviceconnector_policies_get_with_http_info(self, **kwargs): + """ + Get a list of 'deviceconnectorPolicy' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deviceconnector_policies_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: DeviceconnectorPolicyList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deviceconnector_policies_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/deviceconnector/Policies', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DeviceconnectorPolicyList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def deviceconnector_policies_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'deviceconnectorPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deviceconnector_policies_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the deviceconnectorPolicy instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.deviceconnector_policies_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.deviceconnector_policies_moid_delete_with_http_info(moid, **kwargs) + return data + + def deviceconnector_policies_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'deviceconnectorPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deviceconnector_policies_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the deviceconnectorPolicy instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deviceconnector_policies_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `deviceconnector_policies_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/deviceconnector/Policies/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def deviceconnector_policies_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'deviceconnectorPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deviceconnector_policies_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the deviceconnectorPolicy instance. (required) + :return: DeviceconnectorPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.deviceconnector_policies_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.deviceconnector_policies_moid_get_with_http_info(moid, **kwargs) + return data + + def deviceconnector_policies_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'deviceconnectorPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deviceconnector_policies_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the deviceconnectorPolicy instance. (required) + :return: DeviceconnectorPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deviceconnector_policies_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `deviceconnector_policies_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/deviceconnector/Policies/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DeviceconnectorPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def deviceconnector_policies_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'deviceconnectorPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deviceconnector_policies_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the deviceconnectorPolicy instance. (required) + :param DeviceconnectorPolicy body: deviceconnectorPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.deviceconnector_policies_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.deviceconnector_policies_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def deviceconnector_policies_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'deviceconnectorPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deviceconnector_policies_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the deviceconnectorPolicy instance. (required) + :param DeviceconnectorPolicy body: deviceconnectorPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deviceconnector_policies_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `deviceconnector_policies_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `deviceconnector_policies_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/deviceconnector/Policies/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def deviceconnector_policies_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'deviceconnectorPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deviceconnector_policies_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the deviceconnectorPolicy instance. (required) + :param DeviceconnectorPolicy body: deviceconnectorPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.deviceconnector_policies_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.deviceconnector_policies_moid_post_with_http_info(moid, body, **kwargs) + return data + + def deviceconnector_policies_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'deviceconnectorPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deviceconnector_policies_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the deviceconnectorPolicy instance. (required) + :param DeviceconnectorPolicy body: deviceconnectorPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deviceconnector_policies_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `deviceconnector_policies_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `deviceconnector_policies_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/deviceconnector/Policies/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def deviceconnector_policies_post(self, body, **kwargs): + """ + Create an instance of 'deviceconnectorPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deviceconnector_policies_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param DeviceconnectorPolicy body: deviceconnectorPolicy to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.deviceconnector_policies_post_with_http_info(body, **kwargs) + else: + (data) = self.deviceconnector_policies_post_with_http_info(body, **kwargs) + return data + + def deviceconnector_policies_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'deviceconnectorPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.deviceconnector_policies_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param DeviceconnectorPolicy body: deviceconnectorPolicy to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method deviceconnector_policies_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `deviceconnector_policies_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/deviceconnector/Policies', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/deviceinfo_serial_number_info_api.py b/intersight/apis/deviceinfo_serial_number_info_api.py index 09e0aadb..b9fc1e0a 100644 --- a/intersight/apis/deviceinfo_serial_number_info_api.py +++ b/intersight/apis/deviceinfo_serial_number_info_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def deviceinfo_serial_number_infos_get(self, **kwargs): """ - List of deviceinfoSerialNumberInfos + Get a list of 'deviceinfoSerialNumberInfo' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def deviceinfo_serial_number_infos_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: DeviceinfoSerialNumberInfoList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def deviceinfo_serial_number_infos_get(self, **kwargs): def deviceinfo_serial_number_infos_get_with_http_info(self, **kwargs): """ - List of deviceinfoSerialNumberInfos + Get a list of 'deviceinfoSerialNumberInfo' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def deviceinfo_serial_number_infos_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: DeviceinfoSerialNumberInfoList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def deviceinfo_serial_number_infos_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def deviceinfo_serial_number_infos_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def deviceinfo_serial_number_infos_get_with_http_info(self, **kwargs): def deviceinfo_serial_number_infos_moid_get(self, moid, **kwargs): """ - A instance of deviceinfoSerialNumberInfo + Get a specific instance of 'deviceinfoSerialNumberInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def deviceinfo_serial_number_infos_moid_get(self, moid, **kwargs): def deviceinfo_serial_number_infos_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of deviceinfoSerialNumberInfo + Get a specific instance of 'deviceinfoSerialNumberInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/equipment_chassis_api.py b/intersight/apis/equipment_chassis_api.py index c58537da..dbef4332 100644 --- a/intersight/apis/equipment_chassis_api.py +++ b/intersight/apis/equipment_chassis_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def equipment_chasses_get(self, **kwargs): """ - List of equipmentChasses + Get a list of 'equipmentChassis' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def equipment_chasses_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentChassisList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def equipment_chasses_get(self, **kwargs): def equipment_chasses_get_with_http_info(self, **kwargs): """ - List of equipmentChasses + Get a list of 'equipmentChassis' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def equipment_chasses_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentChassisList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def equipment_chasses_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def equipment_chasses_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def equipment_chasses_get_with_http_info(self, **kwargs): def equipment_chasses_moid_get(self, moid, **kwargs): """ - A instance of equipmentChassis + Get a specific instance of 'equipmentChassis' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def equipment_chasses_moid_get(self, moid, **kwargs): def equipment_chasses_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of equipmentChassis + Get a specific instance of 'equipmentChassis' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def equipment_chasses_moid_get_with_http_info(self, moid, **kwargs): def equipment_chasses_moid_patch(self, moid, body, **kwargs): """ - Update an instance of equipmentChassis + Update an instance of 'equipmentChassis' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def equipment_chasses_moid_patch(self, moid, body, **kwargs): def equipment_chasses_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of equipmentChassis + Update an instance of 'equipmentChassis' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def equipment_chasses_moid_patch_with_http_info(self, moid, body, **kwargs): def equipment_chasses_moid_post(self, moid, body, **kwargs): """ - Update an instance of equipmentChassis + Update an instance of 'equipmentChassis' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def equipment_chasses_moid_post(self, moid, body, **kwargs): def equipment_chasses_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of equipmentChassis + Update an instance of 'equipmentChassis' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/equipment_device_summary_api.py b/intersight/apis/equipment_device_summary_api.py index 04b5306f..fa26325d 100644 --- a/intersight/apis/equipment_device_summary_api.py +++ b/intersight/apis/equipment_device_summary_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def equipment_device_summaries_get(self, **kwargs): """ - List of equipmentDeviceSummaries + Get a list of 'equipmentDeviceSummary' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def equipment_device_summaries_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentDeviceSummaryList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def equipment_device_summaries_get(self, **kwargs): def equipment_device_summaries_get_with_http_info(self, **kwargs): """ - List of equipmentDeviceSummaries + Get a list of 'equipmentDeviceSummary' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def equipment_device_summaries_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentDeviceSummaryList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def equipment_device_summaries_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def equipment_device_summaries_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def equipment_device_summaries_get_with_http_info(self, **kwargs): def equipment_device_summaries_moid_get(self, moid, **kwargs): """ - A instance of equipmentDeviceSummary + Get a specific instance of 'equipmentDeviceSummary' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def equipment_device_summaries_moid_get(self, moid, **kwargs): def equipment_device_summaries_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of equipmentDeviceSummary + Get a specific instance of 'equipmentDeviceSummary' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/equipment_fan_api.py b/intersight/apis/equipment_fan_api.py index c17bccb4..6bd0ea31 100644 --- a/intersight/apis/equipment_fan_api.py +++ b/intersight/apis/equipment_fan_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def equipment_fans_get(self, **kwargs): """ - List of equipmentFans + Get a list of 'equipmentFan' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def equipment_fans_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentFanList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def equipment_fans_get(self, **kwargs): def equipment_fans_get_with_http_info(self, **kwargs): """ - List of equipmentFans + Get a list of 'equipmentFan' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def equipment_fans_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentFanList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def equipment_fans_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def equipment_fans_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def equipment_fans_get_with_http_info(self, **kwargs): def equipment_fans_moid_get(self, moid, **kwargs): """ - A instance of equipmentFan + Get a specific instance of 'equipmentFan' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def equipment_fans_moid_get(self, moid, **kwargs): def equipment_fans_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of equipmentFan + Get a specific instance of 'equipmentFan' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def equipment_fans_moid_get_with_http_info(self, moid, **kwargs): def equipment_fans_moid_patch(self, moid, body, **kwargs): """ - Update an instance of equipmentFan + Update an instance of 'equipmentFan' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def equipment_fans_moid_patch(self, moid, body, **kwargs): def equipment_fans_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of equipmentFan + Update an instance of 'equipmentFan' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def equipment_fans_moid_patch_with_http_info(self, moid, body, **kwargs): def equipment_fans_moid_post(self, moid, body, **kwargs): """ - Update an instance of equipmentFan + Update an instance of 'equipmentFan' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def equipment_fans_moid_post(self, moid, body, **kwargs): def equipment_fans_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of equipmentFan + Update an instance of 'equipmentFan' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/equipment_fan_module_api.py b/intersight/apis/equipment_fan_module_api.py index 40baa68f..f9768f30 100644 --- a/intersight/apis/equipment_fan_module_api.py +++ b/intersight/apis/equipment_fan_module_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def equipment_fan_modules_get(self, **kwargs): """ - List of equipmentFanModules + Get a list of 'equipmentFanModule' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def equipment_fan_modules_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentFanModuleList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def equipment_fan_modules_get(self, **kwargs): def equipment_fan_modules_get_with_http_info(self, **kwargs): """ - List of equipmentFanModules + Get a list of 'equipmentFanModule' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def equipment_fan_modules_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentFanModuleList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def equipment_fan_modules_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def equipment_fan_modules_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def equipment_fan_modules_get_with_http_info(self, **kwargs): def equipment_fan_modules_moid_get(self, moid, **kwargs): """ - A instance of equipmentFanModule + Get a specific instance of 'equipmentFanModule' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def equipment_fan_modules_moid_get(self, moid, **kwargs): def equipment_fan_modules_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of equipmentFanModule + Get a specific instance of 'equipmentFanModule' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def equipment_fan_modules_moid_get_with_http_info(self, moid, **kwargs): def equipment_fan_modules_moid_patch(self, moid, body, **kwargs): """ - Update an instance of equipmentFanModule + Update an instance of 'equipmentFanModule' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def equipment_fan_modules_moid_patch(self, moid, body, **kwargs): def equipment_fan_modules_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of equipmentFanModule + Update an instance of 'equipmentFanModule' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def equipment_fan_modules_moid_patch_with_http_info(self, moid, body, **kwargs): def equipment_fan_modules_moid_post(self, moid, body, **kwargs): """ - Update an instance of equipmentFanModule + Update an instance of 'equipmentFanModule' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def equipment_fan_modules_moid_post(self, moid, body, **kwargs): def equipment_fan_modules_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of equipmentFanModule + Update an instance of 'equipmentFanModule' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/equipment_fex_api.py b/intersight/apis/equipment_fex_api.py index 108f3447..77d42cf3 100644 --- a/intersight/apis/equipment_fex_api.py +++ b/intersight/apis/equipment_fex_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def equipment_fexes_get(self, **kwargs): """ - List of equipmentFexes + Get a list of 'equipmentFex' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def equipment_fexes_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentFexList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def equipment_fexes_get(self, **kwargs): def equipment_fexes_get_with_http_info(self, **kwargs): """ - List of equipmentFexes + Get a list of 'equipmentFex' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def equipment_fexes_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentFexList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def equipment_fexes_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def equipment_fexes_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def equipment_fexes_get_with_http_info(self, **kwargs): def equipment_fexes_moid_get(self, moid, **kwargs): """ - A instance of equipmentFex + Get a specific instance of 'equipmentFex' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def equipment_fexes_moid_get(self, moid, **kwargs): def equipment_fexes_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of equipmentFex + Get a specific instance of 'equipmentFex' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def equipment_fexes_moid_get_with_http_info(self, moid, **kwargs): def equipment_fexes_moid_patch(self, moid, body, **kwargs): """ - Update an instance of equipmentFex + Update an instance of 'equipmentFex' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def equipment_fexes_moid_patch(self, moid, body, **kwargs): def equipment_fexes_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of equipmentFex + Update an instance of 'equipmentFex' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def equipment_fexes_moid_patch_with_http_info(self, moid, body, **kwargs): def equipment_fexes_moid_post(self, moid, body, **kwargs): """ - Update an instance of equipmentFex + Update an instance of 'equipmentFex' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def equipment_fexes_moid_post(self, moid, body, **kwargs): def equipment_fexes_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of equipmentFex + Update an instance of 'equipmentFex' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/equipment_io_card_api.py b/intersight/apis/equipment_io_card_api.py index 898e7361..e2683346 100644 --- a/intersight/apis/equipment_io_card_api.py +++ b/intersight/apis/equipment_io_card_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def equipment_io_cards_get(self, **kwargs): """ - List of equipmentIoCards + Get a list of 'equipmentIoCard' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def equipment_io_cards_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentIoCardList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def equipment_io_cards_get(self, **kwargs): def equipment_io_cards_get_with_http_info(self, **kwargs): """ - List of equipmentIoCards + Get a list of 'equipmentIoCard' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def equipment_io_cards_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentIoCardList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def equipment_io_cards_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def equipment_io_cards_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def equipment_io_cards_get_with_http_info(self, **kwargs): def equipment_io_cards_moid_get(self, moid, **kwargs): """ - A instance of equipmentIoCard + Get a specific instance of 'equipmentIoCard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def equipment_io_cards_moid_get(self, moid, **kwargs): def equipment_io_cards_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of equipmentIoCard + Get a specific instance of 'equipmentIoCard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def equipment_io_cards_moid_get_with_http_info(self, moid, **kwargs): def equipment_io_cards_moid_patch(self, moid, body, **kwargs): """ - Update an instance of equipmentIoCard + Update an instance of 'equipmentIoCard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def equipment_io_cards_moid_patch(self, moid, body, **kwargs): def equipment_io_cards_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of equipmentIoCard + Update an instance of 'equipmentIoCard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def equipment_io_cards_moid_patch_with_http_info(self, moid, body, **kwargs): def equipment_io_cards_moid_post(self, moid, body, **kwargs): """ - Update an instance of equipmentIoCard + Update an instance of 'equipmentIoCard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def equipment_io_cards_moid_post(self, moid, body, **kwargs): def equipment_io_cards_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of equipmentIoCard + Update an instance of 'equipmentIoCard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/equipment_io_expander_api.py b/intersight/apis/equipment_io_expander_api.py new file mode 100644 index 00000000..f6d6310f --- /dev/null +++ b/intersight/apis/equipment_io_expander_api.py @@ -0,0 +1,504 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class EquipmentIoExpanderApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def equipment_io_expanders_get(self, **kwargs): + """ + Get a list of 'equipmentIoExpander' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_io_expanders_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: EquipmentIoExpanderList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.equipment_io_expanders_get_with_http_info(**kwargs) + else: + (data) = self.equipment_io_expanders_get_with_http_info(**kwargs) + return data + + def equipment_io_expanders_get_with_http_info(self, **kwargs): + """ + Get a list of 'equipmentIoExpander' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_io_expanders_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: EquipmentIoExpanderList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method equipment_io_expanders_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/equipment/IoExpanders', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EquipmentIoExpanderList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def equipment_io_expanders_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'equipmentIoExpander' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_io_expanders_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the equipmentIoExpander instance. (required) + :return: EquipmentIoExpander + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.equipment_io_expanders_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.equipment_io_expanders_moid_get_with_http_info(moid, **kwargs) + return data + + def equipment_io_expanders_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'equipmentIoExpander' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_io_expanders_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the equipmentIoExpander instance. (required) + :return: EquipmentIoExpander + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method equipment_io_expanders_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `equipment_io_expanders_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/equipment/IoExpanders/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EquipmentIoExpander', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def equipment_io_expanders_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'equipmentIoExpander' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_io_expanders_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the equipmentIoExpander instance. (required) + :param EquipmentIoExpander body: equipmentIoExpander to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.equipment_io_expanders_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.equipment_io_expanders_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def equipment_io_expanders_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'equipmentIoExpander' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_io_expanders_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the equipmentIoExpander instance. (required) + :param EquipmentIoExpander body: equipmentIoExpander to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method equipment_io_expanders_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `equipment_io_expanders_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `equipment_io_expanders_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/equipment/IoExpanders/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def equipment_io_expanders_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'equipmentIoExpander' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_io_expanders_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the equipmentIoExpander instance. (required) + :param EquipmentIoExpander body: equipmentIoExpander to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.equipment_io_expanders_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.equipment_io_expanders_moid_post_with_http_info(moid, body, **kwargs) + return data + + def equipment_io_expanders_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'equipmentIoExpander' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_io_expanders_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the equipmentIoExpander instance. (required) + :param EquipmentIoExpander body: equipmentIoExpander to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method equipment_io_expanders_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `equipment_io_expanders_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `equipment_io_expanders_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/equipment/IoExpanders/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/equipment_locator_led_api.py b/intersight/apis/equipment_locator_led_api.py index dda6cf28..06885888 100644 --- a/intersight/apis/equipment_locator_led_api.py +++ b/intersight/apis/equipment_locator_led_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def equipment_locator_leds_get(self, **kwargs): """ - List of equipmentLocatorLeds + Get a list of 'equipmentLocatorLed' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def equipment_locator_leds_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentLocatorLedList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def equipment_locator_leds_get(self, **kwargs): def equipment_locator_leds_get_with_http_info(self, **kwargs): """ - List of equipmentLocatorLeds + Get a list of 'equipmentLocatorLed' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def equipment_locator_leds_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentLocatorLedList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def equipment_locator_leds_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def equipment_locator_leds_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def equipment_locator_leds_get_with_http_info(self, **kwargs): def equipment_locator_leds_moid_get(self, moid, **kwargs): """ - A instance of equipmentLocatorLed + Get a specific instance of 'equipmentLocatorLed' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def equipment_locator_leds_moid_get(self, moid, **kwargs): def equipment_locator_leds_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of equipmentLocatorLed + Get a specific instance of 'equipmentLocatorLed' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def equipment_locator_leds_moid_get_with_http_info(self, moid, **kwargs): def equipment_locator_leds_moid_patch(self, moid, body, **kwargs): """ - Update an instance of equipmentLocatorLed + Update an instance of 'equipmentLocatorLed' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def equipment_locator_leds_moid_patch(self, moid, body, **kwargs): def equipment_locator_leds_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of equipmentLocatorLed + Update an instance of 'equipmentLocatorLed' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def equipment_locator_leds_moid_patch_with_http_info(self, moid, body, **kwargs) def equipment_locator_leds_moid_post(self, moid, body, **kwargs): """ - Update an instance of equipmentLocatorLed + Update an instance of 'equipmentLocatorLed' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def equipment_locator_leds_moid_post(self, moid, body, **kwargs): def equipment_locator_leds_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of equipmentLocatorLed + Update an instance of 'equipmentLocatorLed' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/equipment_psu_api.py b/intersight/apis/equipment_psu_api.py index 55018524..51108492 100644 --- a/intersight/apis/equipment_psu_api.py +++ b/intersight/apis/equipment_psu_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def equipment_psus_get(self, **kwargs): """ - List of equipmentPsus + Get a list of 'equipmentPsu' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def equipment_psus_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentPsuList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def equipment_psus_get(self, **kwargs): def equipment_psus_get_with_http_info(self, **kwargs): """ - List of equipmentPsus + Get a list of 'equipmentPsu' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def equipment_psus_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentPsuList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def equipment_psus_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def equipment_psus_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def equipment_psus_get_with_http_info(self, **kwargs): def equipment_psus_moid_get(self, moid, **kwargs): """ - A instance of equipmentPsu + Get a specific instance of 'equipmentPsu' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def equipment_psus_moid_get(self, moid, **kwargs): def equipment_psus_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of equipmentPsu + Get a specific instance of 'equipmentPsu' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def equipment_psus_moid_get_with_http_info(self, moid, **kwargs): def equipment_psus_moid_patch(self, moid, body, **kwargs): """ - Update an instance of equipmentPsu + Update an instance of 'equipmentPsu' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def equipment_psus_moid_patch(self, moid, body, **kwargs): def equipment_psus_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of equipmentPsu + Update an instance of 'equipmentPsu' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def equipment_psus_moid_patch_with_http_info(self, moid, body, **kwargs): def equipment_psus_moid_post(self, moid, body, **kwargs): """ - Update an instance of equipmentPsu + Update an instance of 'equipmentPsu' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def equipment_psus_moid_post(self, moid, body, **kwargs): def equipment_psus_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of equipmentPsu + Update an instance of 'equipmentPsu' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/equipment_rack_enclosure_api.py b/intersight/apis/equipment_rack_enclosure_api.py new file mode 100644 index 00000000..e0dbdd08 --- /dev/null +++ b/intersight/apis/equipment_rack_enclosure_api.py @@ -0,0 +1,504 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class EquipmentRackEnclosureApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def equipment_rack_enclosures_get(self, **kwargs): + """ + Get a list of 'equipmentRackEnclosure' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_rack_enclosures_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: EquipmentRackEnclosureList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.equipment_rack_enclosures_get_with_http_info(**kwargs) + else: + (data) = self.equipment_rack_enclosures_get_with_http_info(**kwargs) + return data + + def equipment_rack_enclosures_get_with_http_info(self, **kwargs): + """ + Get a list of 'equipmentRackEnclosure' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_rack_enclosures_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: EquipmentRackEnclosureList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method equipment_rack_enclosures_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/equipment/RackEnclosures', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EquipmentRackEnclosureList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def equipment_rack_enclosures_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'equipmentRackEnclosure' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_rack_enclosures_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the equipmentRackEnclosure instance. (required) + :return: EquipmentRackEnclosure + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.equipment_rack_enclosures_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.equipment_rack_enclosures_moid_get_with_http_info(moid, **kwargs) + return data + + def equipment_rack_enclosures_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'equipmentRackEnclosure' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_rack_enclosures_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the equipmentRackEnclosure instance. (required) + :return: EquipmentRackEnclosure + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method equipment_rack_enclosures_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `equipment_rack_enclosures_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/equipment/RackEnclosures/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EquipmentRackEnclosure', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def equipment_rack_enclosures_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'equipmentRackEnclosure' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_rack_enclosures_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the equipmentRackEnclosure instance. (required) + :param EquipmentRackEnclosure body: equipmentRackEnclosure to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.equipment_rack_enclosures_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.equipment_rack_enclosures_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def equipment_rack_enclosures_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'equipmentRackEnclosure' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_rack_enclosures_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the equipmentRackEnclosure instance. (required) + :param EquipmentRackEnclosure body: equipmentRackEnclosure to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method equipment_rack_enclosures_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `equipment_rack_enclosures_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `equipment_rack_enclosures_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/equipment/RackEnclosures/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def equipment_rack_enclosures_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'equipmentRackEnclosure' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_rack_enclosures_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the equipmentRackEnclosure instance. (required) + :param EquipmentRackEnclosure body: equipmentRackEnclosure to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.equipment_rack_enclosures_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.equipment_rack_enclosures_moid_post_with_http_info(moid, body, **kwargs) + return data + + def equipment_rack_enclosures_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'equipmentRackEnclosure' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_rack_enclosures_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the equipmentRackEnclosure instance. (required) + :param EquipmentRackEnclosure body: equipmentRackEnclosure to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method equipment_rack_enclosures_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `equipment_rack_enclosures_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `equipment_rack_enclosures_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/equipment/RackEnclosures/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/equipment_rack_enclosure_slot_api.py b/intersight/apis/equipment_rack_enclosure_slot_api.py new file mode 100644 index 00000000..e4cc00f6 --- /dev/null +++ b/intersight/apis/equipment_rack_enclosure_slot_api.py @@ -0,0 +1,504 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class EquipmentRackEnclosureSlotApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def equipment_rack_enclosure_slots_get(self, **kwargs): + """ + Get a list of 'equipmentRackEnclosureSlot' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_rack_enclosure_slots_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: EquipmentRackEnclosureSlotList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.equipment_rack_enclosure_slots_get_with_http_info(**kwargs) + else: + (data) = self.equipment_rack_enclosure_slots_get_with_http_info(**kwargs) + return data + + def equipment_rack_enclosure_slots_get_with_http_info(self, **kwargs): + """ + Get a list of 'equipmentRackEnclosureSlot' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_rack_enclosure_slots_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: EquipmentRackEnclosureSlotList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method equipment_rack_enclosure_slots_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/equipment/RackEnclosureSlots', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EquipmentRackEnclosureSlotList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def equipment_rack_enclosure_slots_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'equipmentRackEnclosureSlot' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_rack_enclosure_slots_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the equipmentRackEnclosureSlot instance. (required) + :return: EquipmentRackEnclosureSlot + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.equipment_rack_enclosure_slots_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.equipment_rack_enclosure_slots_moid_get_with_http_info(moid, **kwargs) + return data + + def equipment_rack_enclosure_slots_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'equipmentRackEnclosureSlot' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_rack_enclosure_slots_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the equipmentRackEnclosureSlot instance. (required) + :return: EquipmentRackEnclosureSlot + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method equipment_rack_enclosure_slots_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `equipment_rack_enclosure_slots_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/equipment/RackEnclosureSlots/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='EquipmentRackEnclosureSlot', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def equipment_rack_enclosure_slots_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'equipmentRackEnclosureSlot' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_rack_enclosure_slots_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the equipmentRackEnclosureSlot instance. (required) + :param EquipmentRackEnclosureSlot body: equipmentRackEnclosureSlot to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.equipment_rack_enclosure_slots_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.equipment_rack_enclosure_slots_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def equipment_rack_enclosure_slots_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'equipmentRackEnclosureSlot' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_rack_enclosure_slots_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the equipmentRackEnclosureSlot instance. (required) + :param EquipmentRackEnclosureSlot body: equipmentRackEnclosureSlot to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method equipment_rack_enclosure_slots_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `equipment_rack_enclosure_slots_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `equipment_rack_enclosure_slots_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/equipment/RackEnclosureSlots/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def equipment_rack_enclosure_slots_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'equipmentRackEnclosureSlot' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_rack_enclosure_slots_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the equipmentRackEnclosureSlot instance. (required) + :param EquipmentRackEnclosureSlot body: equipmentRackEnclosureSlot to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.equipment_rack_enclosure_slots_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.equipment_rack_enclosure_slots_moid_post_with_http_info(moid, body, **kwargs) + return data + + def equipment_rack_enclosure_slots_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'equipmentRackEnclosureSlot' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.equipment_rack_enclosure_slots_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the equipmentRackEnclosureSlot instance. (required) + :param EquipmentRackEnclosureSlot body: equipmentRackEnclosureSlot to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method equipment_rack_enclosure_slots_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `equipment_rack_enclosure_slots_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `equipment_rack_enclosure_slots_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/equipment/RackEnclosureSlots/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/equipment_switch_card_api.py b/intersight/apis/equipment_switch_card_api.py index a263ef17..ed9b170a 100644 --- a/intersight/apis/equipment_switch_card_api.py +++ b/intersight/apis/equipment_switch_card_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def equipment_switch_cards_get(self, **kwargs): """ - List of equipmentSwitchCards + Get a list of 'equipmentSwitchCard' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def equipment_switch_cards_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentSwitchCardList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def equipment_switch_cards_get(self, **kwargs): def equipment_switch_cards_get_with_http_info(self, **kwargs): """ - List of equipmentSwitchCards + Get a list of 'equipmentSwitchCard' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def equipment_switch_cards_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentSwitchCardList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def equipment_switch_cards_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def equipment_switch_cards_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def equipment_switch_cards_get_with_http_info(self, **kwargs): def equipment_switch_cards_moid_get(self, moid, **kwargs): """ - A instance of equipmentSwitchCard + Get a specific instance of 'equipmentSwitchCard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def equipment_switch_cards_moid_get(self, moid, **kwargs): def equipment_switch_cards_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of equipmentSwitchCard + Get a specific instance of 'equipmentSwitchCard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def equipment_switch_cards_moid_get_with_http_info(self, moid, **kwargs): def equipment_switch_cards_moid_patch(self, moid, body, **kwargs): """ - Update an instance of equipmentSwitchCard + Update an instance of 'equipmentSwitchCard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def equipment_switch_cards_moid_patch(self, moid, body, **kwargs): def equipment_switch_cards_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of equipmentSwitchCard + Update an instance of 'equipmentSwitchCard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def equipment_switch_cards_moid_patch_with_http_info(self, moid, body, **kwargs) def equipment_switch_cards_moid_post(self, moid, body, **kwargs): """ - Update an instance of equipmentSwitchCard + Update an instance of 'equipmentSwitchCard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def equipment_switch_cards_moid_post(self, moid, body, **kwargs): def equipment_switch_cards_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of equipmentSwitchCard + Update an instance of 'equipmentSwitchCard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/equipment_system_io_controller_api.py b/intersight/apis/equipment_system_io_controller_api.py index d5d150fd..f16f7b08 100644 --- a/intersight/apis/equipment_system_io_controller_api.py +++ b/intersight/apis/equipment_system_io_controller_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def equipment_system_io_controllers_get(self, **kwargs): """ - List of equipmentSystemIoControllers + Get a list of 'equipmentSystemIoController' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def equipment_system_io_controllers_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentSystemIoControllerList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def equipment_system_io_controllers_get(self, **kwargs): def equipment_system_io_controllers_get_with_http_info(self, **kwargs): """ - List of equipmentSystemIoControllers + Get a list of 'equipmentSystemIoController' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def equipment_system_io_controllers_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EquipmentSystemIoControllerList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def equipment_system_io_controllers_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def equipment_system_io_controllers_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def equipment_system_io_controllers_get_with_http_info(self, **kwargs): def equipment_system_io_controllers_moid_get(self, moid, **kwargs): """ - A instance of equipmentSystemIoController + Get a specific instance of 'equipmentSystemIoController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def equipment_system_io_controllers_moid_get(self, moid, **kwargs): def equipment_system_io_controllers_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of equipmentSystemIoController + Get a specific instance of 'equipmentSystemIoController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def equipment_system_io_controllers_moid_get_with_http_info(self, moid, **kwargs def equipment_system_io_controllers_moid_patch(self, moid, body, **kwargs): """ - Update an instance of equipmentSystemIoController + Update an instance of 'equipmentSystemIoController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def equipment_system_io_controllers_moid_patch(self, moid, body, **kwargs): def equipment_system_io_controllers_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of equipmentSystemIoController + Update an instance of 'equipmentSystemIoController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def equipment_system_io_controllers_moid_patch_with_http_info(self, moid, body, def equipment_system_io_controllers_moid_post(self, moid, body, **kwargs): """ - Update an instance of equipmentSystemIoController + Update an instance of 'equipmentSystemIoController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def equipment_system_io_controllers_moid_post(self, moid, body, **kwargs): def equipment_system_io_controllers_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of equipmentSystemIoController + Update an instance of 'equipmentSystemIoController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/techsupportmanagement_tech_support_bundle_api.py b/intersight/apis/equipment_tpm_api.py similarity index 69% rename from intersight/apis/techsupportmanagement_tech_support_bundle_api.py rename to intersight/apis/equipment_tpm_api.py index 837e9b72..9cb2d0c3 100644 --- a/intersight/apis/techsupportmanagement_tech_support_bundle_api.py +++ b/intersight/apis/equipment_tpm_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -24,7 +24,7 @@ from ..api_client import ApiClient -class TechsupportmanagementTechSupportBundleApi(object): +class EquipmentTpmApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,67 +40,69 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def techsupportmanagement_tech_support_bundles_get(self, **kwargs): + def equipment_tpms_get(self, **kwargs): """ - List of techsupportmanagementTechSupportBundles + Get a list of 'equipmentTpm' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.techsupportmanagement_tech_support_bundles_get(callback=callback_function) + >>> thread = api.equipment_tpms_get(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: TechsupportmanagementTechSupportBundleList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: EquipmentTpmList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.techsupportmanagement_tech_support_bundles_get_with_http_info(**kwargs) + return self.equipment_tpms_get_with_http_info(**kwargs) else: - (data) = self.techsupportmanagement_tech_support_bundles_get_with_http_info(**kwargs) + (data) = self.equipment_tpms_get_with_http_info(**kwargs) return data - def techsupportmanagement_tech_support_bundles_get_with_http_info(self, **kwargs): + def equipment_tpms_get_with_http_info(self, **kwargs): """ - List of techsupportmanagementTechSupportBundles + Get a list of 'equipmentTpm' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.techsupportmanagement_tech_support_bundles_get_with_http_info(callback=callback_function) + >>> thread = api.equipment_tpms_get_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: TechsupportmanagementTechSupportBundleList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: EquipmentTpmList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -111,7 +113,7 @@ def techsupportmanagement_tech_support_bundles_get_with_http_info(self, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method techsupportmanagement_tech_support_bundles_get" % key + " to method equipment_tpms_get" % key ) params[key] = val del params['kwargs'] @@ -126,8 +128,6 @@ def techsupportmanagement_tech_support_bundles_get_with_http_info(self, **kwargs query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def techsupportmanagement_tech_support_bundles_get_with_http_info(self, **kwargs query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -158,14 +162,14 @@ def techsupportmanagement_tech_support_bundles_get_with_http_info(self, **kwargs # Authentication setting auth_settings = [] - return self.api_client.call_api('/techsupportmanagement/TechSupportBundles', 'GET', + return self.api_client.call_api('/equipment/Tpms', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='TechsupportmanagementTechSupportBundleList', + response_type='EquipmentTpmList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -173,46 +177,46 @@ def techsupportmanagement_tech_support_bundles_get_with_http_info(self, **kwargs _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def techsupportmanagement_tech_support_bundles_moid_delete(self, moid, **kwargs): + def equipment_tpms_moid_get(self, moid, **kwargs): """ - Delete an instance of techsupportmanagementTechSupportBundle + Get a specific instance of 'equipmentTpm' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.techsupportmanagement_tech_support_bundles_moid_delete(moid, callback=callback_function) + >>> thread = api.equipment_tpms_moid_get(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the techsupportmanagementTechSupportBundle instance. (required) - :return: None + :param str moid: The moid of the equipmentTpm instance. (required) + :return: EquipmentTpm If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.techsupportmanagement_tech_support_bundles_moid_delete_with_http_info(moid, **kwargs) + return self.equipment_tpms_moid_get_with_http_info(moid, **kwargs) else: - (data) = self.techsupportmanagement_tech_support_bundles_moid_delete_with_http_info(moid, **kwargs) + (data) = self.equipment_tpms_moid_get_with_http_info(moid, **kwargs) return data - def techsupportmanagement_tech_support_bundles_moid_delete_with_http_info(self, moid, **kwargs): + def equipment_tpms_moid_get_with_http_info(self, moid, **kwargs): """ - Delete an instance of techsupportmanagementTechSupportBundle + Get a specific instance of 'equipmentTpm' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.techsupportmanagement_tech_support_bundles_moid_delete_with_http_info(moid, callback=callback_function) + >>> thread = api.equipment_tpms_moid_get_with_http_info(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the techsupportmanagementTechSupportBundle instance. (required) - :return: None + :param str moid: The moid of the equipmentTpm instance. (required) + :return: EquipmentTpm If the method is called asynchronously, returns the request thread. """ @@ -228,13 +232,13 @@ def techsupportmanagement_tech_support_bundles_moid_delete_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method techsupportmanagement_tech_support_bundles_moid_delete" % key + " to method equipment_tpms_moid_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `techsupportmanagement_tech_support_bundles_moid_delete`") + raise ValueError("Missing the required parameter `moid` when calling `equipment_tpms_moid_get`") collection_formats = {} @@ -262,14 +266,14 @@ def techsupportmanagement_tech_support_bundles_moid_delete_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/techsupportmanagement/TechSupportBundles/{moid}', 'DELETE', + return self.api_client.call_api('/equipment/Tpms/{moid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='EquipmentTpm', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -277,51 +281,53 @@ def techsupportmanagement_tech_support_bundles_moid_delete_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def techsupportmanagement_tech_support_bundles_moid_get(self, moid, **kwargs): + def equipment_tpms_moid_patch(self, moid, body, **kwargs): """ - A instance of techsupportmanagementTechSupportBundle + Update an instance of 'equipmentTpm' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.techsupportmanagement_tech_support_bundles_moid_get(moid, callback=callback_function) + >>> thread = api.equipment_tpms_moid_patch(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the techsupportmanagementTechSupportBundle instance. (required) - :return: TechsupportmanagementTechSupportBundle + :param str moid: The moid of the equipmentTpm instance. (required) + :param EquipmentTpm body: equipmentTpm to update (required) + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.techsupportmanagement_tech_support_bundles_moid_get_with_http_info(moid, **kwargs) + return self.equipment_tpms_moid_patch_with_http_info(moid, body, **kwargs) else: - (data) = self.techsupportmanagement_tech_support_bundles_moid_get_with_http_info(moid, **kwargs) + (data) = self.equipment_tpms_moid_patch_with_http_info(moid, body, **kwargs) return data - def techsupportmanagement_tech_support_bundles_moid_get_with_http_info(self, moid, **kwargs): + def equipment_tpms_moid_patch_with_http_info(self, moid, body, **kwargs): """ - A instance of techsupportmanagementTechSupportBundle + Update an instance of 'equipmentTpm' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.techsupportmanagement_tech_support_bundles_moid_get_with_http_info(moid, callback=callback_function) + >>> thread = api.equipment_tpms_moid_patch_with_http_info(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the techsupportmanagementTechSupportBundle instance. (required) - :return: TechsupportmanagementTechSupportBundle + :param str moid: The moid of the equipmentTpm instance. (required) + :param EquipmentTpm body: equipmentTpm to update (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['moid'] + all_params = ['moid', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -332,13 +338,16 @@ def techsupportmanagement_tech_support_bundles_moid_get_with_http_info(self, moi if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method techsupportmanagement_tech_support_bundles_moid_get" % key + " to method equipment_tpms_moid_patch" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `techsupportmanagement_tech_support_bundles_moid_get`") + raise ValueError("Missing the required parameter `moid` when calling `equipment_tpms_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `equipment_tpms_moid_patch`") collection_formats = {} @@ -355,6 +364,8 @@ def techsupportmanagement_tech_support_bundles_moid_get_with_http_info(self, moi local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) @@ -366,14 +377,14 @@ def techsupportmanagement_tech_support_bundles_moid_get_with_http_info(self, moi # Authentication setting auth_settings = [] - return self.api_client.call_api('/techsupportmanagement/TechSupportBundles/{moid}', 'GET', + return self.api_client.call_api('/equipment/Tpms/{moid}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='TechsupportmanagementTechSupportBundle', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -381,51 +392,53 @@ def techsupportmanagement_tech_support_bundles_moid_get_with_http_info(self, moi _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def techsupportmanagement_tech_support_bundles_post(self, body, **kwargs): + def equipment_tpms_moid_post(self, moid, body, **kwargs): """ - Create a techsupportmanagementTechSupportBundle + Update an instance of 'equipmentTpm' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.techsupportmanagement_tech_support_bundles_post(body, callback=callback_function) + >>> thread = api.equipment_tpms_moid_post(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param TechsupportmanagementTechSupportBundle body: techsupportmanagementTechSupportBundle to add (required) + :param str moid: The moid of the equipmentTpm instance. (required) + :param EquipmentTpm body: equipmentTpm to update (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.techsupportmanagement_tech_support_bundles_post_with_http_info(body, **kwargs) + return self.equipment_tpms_moid_post_with_http_info(moid, body, **kwargs) else: - (data) = self.techsupportmanagement_tech_support_bundles_post_with_http_info(body, **kwargs) + (data) = self.equipment_tpms_moid_post_with_http_info(moid, body, **kwargs) return data - def techsupportmanagement_tech_support_bundles_post_with_http_info(self, body, **kwargs): + def equipment_tpms_moid_post_with_http_info(self, moid, body, **kwargs): """ - Create a techsupportmanagementTechSupportBundle + Update an instance of 'equipmentTpm' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.techsupportmanagement_tech_support_bundles_post_with_http_info(body, callback=callback_function) + >>> thread = api.equipment_tpms_moid_post_with_http_info(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param TechsupportmanagementTechSupportBundle body: techsupportmanagementTechSupportBundle to add (required) + :param str moid: The moid of the equipmentTpm instance. (required) + :param EquipmentTpm body: equipmentTpm to update (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['body'] + all_params = ['moid', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -436,18 +449,23 @@ def techsupportmanagement_tech_support_bundles_post_with_http_info(self, body, * if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method techsupportmanagement_tech_support_bundles_post" % key + " to method equipment_tpms_moid_post" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `equipment_tpms_moid_post`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `techsupportmanagement_tech_support_bundles_post`") + raise ValueError("Missing the required parameter `body` when calling `equipment_tpms_moid_post`") collection_formats = {} path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] query_params = [] @@ -470,7 +488,7 @@ def techsupportmanagement_tech_support_bundles_post_with_http_info(self, body, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/techsupportmanagement/TechSupportBundles', 'POST', + return self.api_client.call_api('/equipment/Tpms/{moid}', 'POST', path_params, query_params, header_params, diff --git a/intersight/apis/ether_physical_port_api.py b/intersight/apis/ether_physical_port_api.py index a74d541e..8117cfca 100644 --- a/intersight/apis/ether_physical_port_api.py +++ b/intersight/apis/ether_physical_port_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def ether_physical_ports_get(self, **kwargs): """ - List of etherPhysicalPorts + Get a list of 'etherPhysicalPort' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def ether_physical_ports_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EtherPhysicalPortList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def ether_physical_ports_get(self, **kwargs): def ether_physical_ports_get_with_http_info(self, **kwargs): """ - List of etherPhysicalPorts + Get a list of 'etherPhysicalPort' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def ether_physical_ports_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: EtherPhysicalPortList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def ether_physical_ports_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def ether_physical_ports_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def ether_physical_ports_get_with_http_info(self, **kwargs): def ether_physical_ports_moid_get(self, moid, **kwargs): """ - A instance of etherPhysicalPort + Get a specific instance of 'etherPhysicalPort' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def ether_physical_ports_moid_get(self, moid, **kwargs): def ether_physical_ports_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of etherPhysicalPort + Get a specific instance of 'etherPhysicalPort' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def ether_physical_ports_moid_get_with_http_info(self, moid, **kwargs): def ether_physical_ports_moid_patch(self, moid, body, **kwargs): """ - Update an instance of etherPhysicalPort + Update an instance of 'etherPhysicalPort' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def ether_physical_ports_moid_patch(self, moid, body, **kwargs): def ether_physical_ports_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of etherPhysicalPort + Update an instance of 'etherPhysicalPort' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def ether_physical_ports_moid_patch_with_http_info(self, moid, body, **kwargs): def ether_physical_ports_moid_post(self, moid, body, **kwargs): """ - Update an instance of etherPhysicalPort + Update an instance of 'etherPhysicalPort' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def ether_physical_ports_moid_post(self, moid, body, **kwargs): def ether_physical_ports_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of etherPhysicalPort + Update an instance of 'etherPhysicalPort' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/extsearch_import_api.py b/intersight/apis/extsearch_import_api.py deleted file mode 100644 index 3160562a..00000000 --- a/intersight/apis/extsearch_import_api.py +++ /dev/null @@ -1,382 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import sys -import os -import re - -# python 2 and python 3 compatibility library -from six import iteritems - -from ..configuration import Configuration -from ..api_client import ApiClient - - -class ExtsearchImportApi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - config = Configuration() - if api_client: - self.api_client = api_client - else: - if not config.api_client: - config.api_client = ApiClient() - self.api_client = config.api_client - - def extsearch_imports_get(self, **kwargs): - """ - List of extsearchImports - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.extsearch_imports_get(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. - :param int top: The max number of records to return - :param int skip: The number of records to skip - :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') - :param str select: Specifies a subset of properties to return - :param str orderby: Determines what values are used to order a collection of records - :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: ExtsearchImportList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.extsearch_imports_get_with_http_info(**kwargs) - else: - (data) = self.extsearch_imports_get_with_http_info(**kwargs) - return data - - def extsearch_imports_get_with_http_info(self, **kwargs): - """ - List of extsearchImports - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.extsearch_imports_get_with_http_info(callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. - :param int top: The max number of records to return - :param int skip: The number of records to skip - :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') - :param str select: Specifies a subset of properties to return - :param str orderby: Determines what values are used to order a collection of records - :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: ExtsearchImportList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method extsearch_imports_get" % key - ) - params[key] = val - del params['kwargs'] - - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'count' in params: - query_params.append(('$count', params['count'])) - if 'inlinecount' in params: - query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) - if 'top' in params: - query_params.append(('$top', params['top'])) - if 'skip' in params: - query_params.append(('$skip', params['skip'])) - if 'filter' in params: - query_params.append(('$filter', params['filter'])) - if 'select' in params: - query_params.append(('$select', params['select'])) - if 'orderby' in params: - query_params.append(('$orderby', params['orderby'])) - if 'expand' in params: - query_params.append(('$expand', params['expand'])) - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/extsearch/Imports', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtsearchImportList', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def extsearch_imports_moid_get(self, moid, **kwargs): - """ - A instance of extsearchImport - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.extsearch_imports_moid_get(moid, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str moid: The moid of the extsearchImport instance. (required) - :return: ExtsearchImport - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.extsearch_imports_moid_get_with_http_info(moid, **kwargs) - else: - (data) = self.extsearch_imports_moid_get_with_http_info(moid, **kwargs) - return data - - def extsearch_imports_moid_get_with_http_info(self, moid, **kwargs): - """ - A instance of extsearchImport - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.extsearch_imports_moid_get_with_http_info(moid, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str moid: The moid of the extsearchImport instance. (required) - :return: ExtsearchImport - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['moid'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method extsearch_imports_moid_get" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'moid' is set - if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `extsearch_imports_moid_get`") - - - collection_formats = {} - - path_params = {} - if 'moid' in params: - path_params['moid'] = params['moid'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/extsearch/Imports/{moid}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='ExtsearchImport', - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def extsearch_imports_post(self, body, **kwargs): - """ - Create a extsearchImport - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.extsearch_imports_post(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param ExtsearchImport body: extsearchImport to add (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.extsearch_imports_post_with_http_info(body, **kwargs) - else: - (data) = self.extsearch_imports_post_with_http_info(body, **kwargs) - return data - - def extsearch_imports_post_with_http_info(self, body, **kwargs): - """ - Create a extsearchImport - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.extsearch_imports_post_with_http_info(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param ExtsearchImport body: extsearchImport to add (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method extsearch_imports_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `extsearch_imports_post`") - - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/extsearch/Imports', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/intersight/apis/fault_instance_api.py b/intersight/apis/fault_instance_api.py index 99267ae8..68fc8e57 100644 --- a/intersight/apis/fault_instance_api.py +++ b/intersight/apis/fault_instance_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def fault_instances_get(self, **kwargs): """ - List of faultInstances + Get a list of 'faultInstance' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def fault_instances_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: FaultInstanceList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def fault_instances_get(self, **kwargs): def fault_instances_get_with_http_info(self, **kwargs): """ - List of faultInstances + Get a list of 'faultInstance' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def fault_instances_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: FaultInstanceList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def fault_instances_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def fault_instances_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def fault_instances_get_with_http_info(self, **kwargs): def fault_instances_moid_get(self, moid, **kwargs): """ - A instance of faultInstance + Get a specific instance of 'faultInstance' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def fault_instances_moid_get(self, moid, **kwargs): def fault_instances_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of faultInstance + Get a specific instance of 'faultInstance' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def fault_instances_moid_get_with_http_info(self, moid, **kwargs): def fault_instances_moid_patch(self, moid, body, **kwargs): """ - Update an instance of faultInstance + Update an instance of 'faultInstance' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def fault_instances_moid_patch(self, moid, body, **kwargs): def fault_instances_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of faultInstance + Update an instance of 'faultInstance' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def fault_instances_moid_patch_with_http_info(self, moid, body, **kwargs): def fault_instances_moid_post(self, moid, body, **kwargs): """ - Update an instance of faultInstance + Update an instance of 'faultInstance' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def fault_instances_moid_post(self, moid, body, **kwargs): def fault_instances_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of faultInstance + Update an instance of 'faultInstance' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/fc_physical_port_api.py b/intersight/apis/fc_physical_port_api.py index 46edc05f..76b4d737 100644 --- a/intersight/apis/fc_physical_port_api.py +++ b/intersight/apis/fc_physical_port_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def fc_physical_ports_get(self, **kwargs): """ - List of fcPhysicalPorts + Get a list of 'fcPhysicalPort' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def fc_physical_ports_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: FcPhysicalPortList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def fc_physical_ports_get(self, **kwargs): def fc_physical_ports_get_with_http_info(self, **kwargs): """ - List of fcPhysicalPorts + Get a list of 'fcPhysicalPort' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def fc_physical_ports_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: FcPhysicalPortList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def fc_physical_ports_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def fc_physical_ports_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def fc_physical_ports_get_with_http_info(self, **kwargs): def fc_physical_ports_moid_get(self, moid, **kwargs): """ - A instance of fcPhysicalPort + Get a specific instance of 'fcPhysicalPort' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def fc_physical_ports_moid_get(self, moid, **kwargs): def fc_physical_ports_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of fcPhysicalPort + Get a specific instance of 'fcPhysicalPort' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def fc_physical_ports_moid_get_with_http_info(self, moid, **kwargs): def fc_physical_ports_moid_patch(self, moid, body, **kwargs): """ - Update an instance of fcPhysicalPort + Update an instance of 'fcPhysicalPort' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def fc_physical_ports_moid_patch(self, moid, body, **kwargs): def fc_physical_ports_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of fcPhysicalPort + Update an instance of 'fcPhysicalPort' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def fc_physical_ports_moid_patch_with_http_info(self, moid, body, **kwargs): def fc_physical_ports_moid_post(self, moid, body, **kwargs): """ - Update an instance of fcPhysicalPort + Update an instance of 'fcPhysicalPort' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def fc_physical_ports_moid_post(self, moid, body, **kwargs): def fc_physical_ports_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of fcPhysicalPort + Update an instance of 'fcPhysicalPort' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/feedback_feedback_post_api.py b/intersight/apis/feedback_feedback_post_api.py new file mode 100644 index 00000000..334a9a6c --- /dev/null +++ b/intersight/apis/feedback_feedback_post_api.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class FeedbackFeedbackPostApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def feedback_feedback_posts_post(self, body, **kwargs): + """ + Create an instance of 'feedbackFeedbackPost' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.feedback_feedback_posts_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param FeedbackFeedbackPost body: feedbackFeedbackPost to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.feedback_feedback_posts_post_with_http_info(body, **kwargs) + else: + (data) = self.feedback_feedback_posts_post_with_http_info(body, **kwargs) + return data + + def feedback_feedback_posts_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'feedbackFeedbackPost' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.feedback_feedback_posts_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param FeedbackFeedbackPost body: feedbackFeedbackPost to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method feedback_feedback_posts_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `feedback_feedback_posts_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/feedback/FeedbackPosts', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/firmware_distributable_api.py b/intersight/apis/firmware_distributable_api.py index 05741d9e..d4588d8b 100644 --- a/intersight/apis/firmware_distributable_api.py +++ b/intersight/apis/firmware_distributable_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def firmware_distributables_get(self, **kwargs): """ - List of firmwareDistributables + Get a list of 'firmwareDistributable' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def firmware_distributables_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: FirmwareDistributableList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def firmware_distributables_get(self, **kwargs): def firmware_distributables_get_with_http_info(self, **kwargs): """ - List of firmwareDistributables + Get a list of 'firmwareDistributable' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def firmware_distributables_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: FirmwareDistributableList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def firmware_distributables_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def firmware_distributables_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def firmware_distributables_get_with_http_info(self, **kwargs): def firmware_distributables_moid_get(self, moid, **kwargs): """ - A instance of firmwareDistributable + Get a specific instance of 'firmwareDistributable' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def firmware_distributables_moid_get(self, moid, **kwargs): def firmware_distributables_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of firmwareDistributable + Get a specific instance of 'firmwareDistributable' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/firmware_eula_api.py b/intersight/apis/firmware_eula_api.py index f57d363f..63d6f362 100644 --- a/intersight/apis/firmware_eula_api.py +++ b/intersight/apis/firmware_eula_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def firmware_eulas_get(self, **kwargs): """ - List of firmwareEulas + Get a list of 'firmwareEula' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def firmware_eulas_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: FirmwareEulaList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def firmware_eulas_get(self, **kwargs): def firmware_eulas_get_with_http_info(self, **kwargs): """ - List of firmwareEulas + Get a list of 'firmwareEula' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def firmware_eulas_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: FirmwareEulaList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def firmware_eulas_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def firmware_eulas_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def firmware_eulas_get_with_http_info(self, **kwargs): def firmware_eulas_moid_get(self, moid, **kwargs): """ - A instance of firmwareEula + Get a specific instance of 'firmwareEula' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def firmware_eulas_moid_get(self, moid, **kwargs): def firmware_eulas_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of firmwareEula + Get a specific instance of 'firmwareEula' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def firmware_eulas_moid_get_with_http_info(self, moid, **kwargs): def firmware_eulas_post(self, body, **kwargs): """ - Create a firmwareEula + Create an instance of 'firmwareEula' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def firmware_eulas_post(self, body, **kwargs): def firmware_eulas_post_with_http_info(self, body, **kwargs): """ - Create a firmwareEula + Create an instance of 'firmwareEula' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/firmware_running_firmware_api.py b/intersight/apis/firmware_running_firmware_api.py index 160da74c..d17508a0 100644 --- a/intersight/apis/firmware_running_firmware_api.py +++ b/intersight/apis/firmware_running_firmware_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def firmware_running_firmwares_get(self, **kwargs): """ - List of firmwareRunningFirmwares + Get a list of 'firmwareRunningFirmware' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def firmware_running_firmwares_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: FirmwareRunningFirmwareList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def firmware_running_firmwares_get(self, **kwargs): def firmware_running_firmwares_get_with_http_info(self, **kwargs): """ - List of firmwareRunningFirmwares + Get a list of 'firmwareRunningFirmware' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def firmware_running_firmwares_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: FirmwareRunningFirmwareList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def firmware_running_firmwares_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def firmware_running_firmwares_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def firmware_running_firmwares_get_with_http_info(self, **kwargs): def firmware_running_firmwares_moid_get(self, moid, **kwargs): """ - A instance of firmwareRunningFirmware + Get a specific instance of 'firmwareRunningFirmware' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def firmware_running_firmwares_moid_get(self, moid, **kwargs): def firmware_running_firmwares_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of firmwareRunningFirmware + Get a specific instance of 'firmwareRunningFirmware' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def firmware_running_firmwares_moid_get_with_http_info(self, moid, **kwargs): def firmware_running_firmwares_moid_patch(self, moid, body, **kwargs): """ - Update an instance of firmwareRunningFirmware + Update an instance of 'firmwareRunningFirmware' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def firmware_running_firmwares_moid_patch(self, moid, body, **kwargs): def firmware_running_firmwares_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of firmwareRunningFirmware + Update an instance of 'firmwareRunningFirmware' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def firmware_running_firmwares_moid_patch_with_http_info(self, moid, body, **kwa def firmware_running_firmwares_moid_post(self, moid, body, **kwargs): """ - Update an instance of firmwareRunningFirmware + Update an instance of 'firmwareRunningFirmware' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def firmware_running_firmwares_moid_post(self, moid, body, **kwargs): def firmware_running_firmwares_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of firmwareRunningFirmware + Update an instance of 'firmwareRunningFirmware' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/firmware_upgrade_api.py b/intersight/apis/firmware_upgrade_api.py index 8acded3d..a80988b4 100644 --- a/intersight/apis/firmware_upgrade_api.py +++ b/intersight/apis/firmware_upgrade_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def firmware_upgrades_get(self, **kwargs): """ - List of firmwareUpgrades + Get a list of 'firmwareUpgrade' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def firmware_upgrades_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: FirmwareUpgradeList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def firmware_upgrades_get(self, **kwargs): def firmware_upgrades_get_with_http_info(self, **kwargs): """ - List of firmwareUpgrades + Get a list of 'firmwareUpgrade' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def firmware_upgrades_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: FirmwareUpgradeList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def firmware_upgrades_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def firmware_upgrades_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def firmware_upgrades_get_with_http_info(self, **kwargs): def firmware_upgrades_moid_delete(self, moid, **kwargs): """ - Delete an instance of firmwareUpgrade + Delete an instance of 'firmwareUpgrade' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def firmware_upgrades_moid_delete(self, moid, **kwargs): def firmware_upgrades_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of firmwareUpgrade + Delete an instance of 'firmwareUpgrade' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def firmware_upgrades_moid_delete_with_http_info(self, moid, **kwargs): def firmware_upgrades_moid_get(self, moid, **kwargs): """ - A instance of firmwareUpgrade + Get a specific instance of 'firmwareUpgrade' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def firmware_upgrades_moid_get(self, moid, **kwargs): def firmware_upgrades_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of firmwareUpgrade + Get a specific instance of 'firmwareUpgrade' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def firmware_upgrades_moid_get_with_http_info(self, moid, **kwargs): def firmware_upgrades_post(self, body, **kwargs): """ - Create a firmwareUpgrade + Create an instance of 'firmwareUpgrade' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -408,7 +412,7 @@ def firmware_upgrades_post(self, body, **kwargs): def firmware_upgrades_post_with_http_info(self, body, **kwargs): """ - Create a firmwareUpgrade + Create an instance of 'firmwareUpgrade' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/firmware_upgrade_status_api.py b/intersight/apis/firmware_upgrade_status_api.py index 9e241400..42ca6822 100644 --- a/intersight/apis/firmware_upgrade_status_api.py +++ b/intersight/apis/firmware_upgrade_status_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def firmware_upgrade_statuses_get(self, **kwargs): """ - List of firmwareUpgradeStatuses + Get a list of 'firmwareUpgradeStatus' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def firmware_upgrade_statuses_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: FirmwareUpgradeStatusList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def firmware_upgrade_statuses_get(self, **kwargs): def firmware_upgrade_statuses_get_with_http_info(self, **kwargs): """ - List of firmwareUpgradeStatuses + Get a list of 'firmwareUpgradeStatus' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def firmware_upgrade_statuses_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: FirmwareUpgradeStatusList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def firmware_upgrade_statuses_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def firmware_upgrade_statuses_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def firmware_upgrade_statuses_get_with_http_info(self, **kwargs): def firmware_upgrade_statuses_moid_get(self, moid, **kwargs): """ - A instance of firmwareUpgradeStatus + Get a specific instance of 'firmwareUpgradeStatus' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def firmware_upgrade_statuses_moid_get(self, moid, **kwargs): def firmware_upgrade_statuses_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of firmwareUpgradeStatus + Get a specific instance of 'firmwareUpgradeStatus' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/graphics_card_api.py b/intersight/apis/graphics_card_api.py index 99be9fd2..01237a06 100644 --- a/intersight/apis/graphics_card_api.py +++ b/intersight/apis/graphics_card_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def graphics_cards_get(self, **kwargs): """ - List of graphicsCards + Get a list of 'graphicsCard' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def graphics_cards_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: GraphicsCardList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def graphics_cards_get(self, **kwargs): def graphics_cards_get_with_http_info(self, **kwargs): """ - List of graphicsCards + Get a list of 'graphicsCard' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def graphics_cards_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: GraphicsCardList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def graphics_cards_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def graphics_cards_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def graphics_cards_get_with_http_info(self, **kwargs): def graphics_cards_moid_get(self, moid, **kwargs): """ - A instance of graphicsCard + Get a specific instance of 'graphicsCard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def graphics_cards_moid_get(self, moid, **kwargs): def graphics_cards_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of graphicsCard + Get a specific instance of 'graphicsCard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def graphics_cards_moid_get_with_http_info(self, moid, **kwargs): def graphics_cards_moid_patch(self, moid, body, **kwargs): """ - Update an instance of graphicsCard + Update an instance of 'graphicsCard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def graphics_cards_moid_patch(self, moid, body, **kwargs): def graphics_cards_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of graphicsCard + Update an instance of 'graphicsCard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def graphics_cards_moid_patch_with_http_info(self, moid, body, **kwargs): def graphics_cards_moid_post(self, moid, body, **kwargs): """ - Update an instance of graphicsCard + Update an instance of 'graphicsCard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def graphics_cards_moid_post(self, moid, body, **kwargs): def graphics_cards_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of graphicsCard + Update an instance of 'graphicsCard' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/graphics_controller_api.py b/intersight/apis/graphics_controller_api.py index add4d558..8006094c 100644 --- a/intersight/apis/graphics_controller_api.py +++ b/intersight/apis/graphics_controller_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def graphics_controllers_get(self, **kwargs): """ - List of graphicsControllers + Get a list of 'graphicsController' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def graphics_controllers_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: GraphicsControllerList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def graphics_controllers_get(self, **kwargs): def graphics_controllers_get_with_http_info(self, **kwargs): """ - List of graphicsControllers + Get a list of 'graphicsController' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def graphics_controllers_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: GraphicsControllerList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def graphics_controllers_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def graphics_controllers_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def graphics_controllers_get_with_http_info(self, **kwargs): def graphics_controllers_moid_get(self, moid, **kwargs): """ - A instance of graphicsController + Get a specific instance of 'graphicsController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def graphics_controllers_moid_get(self, moid, **kwargs): def graphics_controllers_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of graphicsController + Get a specific instance of 'graphicsController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def graphics_controllers_moid_get_with_http_info(self, moid, **kwargs): def graphics_controllers_moid_patch(self, moid, body, **kwargs): """ - Update an instance of graphicsController + Update an instance of 'graphicsController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def graphics_controllers_moid_patch(self, moid, body, **kwargs): def graphics_controllers_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of graphicsController + Update an instance of 'graphicsController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def graphics_controllers_moid_patch_with_http_info(self, moid, body, **kwargs): def graphics_controllers_moid_post(self, moid, body, **kwargs): """ - Update an instance of graphicsController + Update an instance of 'graphicsController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def graphics_controllers_moid_post(self, moid, body, **kwargs): def graphics_controllers_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of graphicsController + Update an instance of 'graphicsController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/hcl_compatibility_status_api.py b/intersight/apis/hcl_compatibility_status_api.py index 64751e90..d81ca5ca 100644 --- a/intersight/apis/hcl_compatibility_status_api.py +++ b/intersight/apis/hcl_compatibility_status_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def hcl_compatibility_statuses_post(self, body, **kwargs): """ - Create a hclCompatibilityStatus + Create an instance of 'hclCompatibilityStatus' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -67,7 +67,7 @@ def hcl_compatibility_statuses_post(self, body, **kwargs): def hcl_compatibility_statuses_post_with_http_info(self, body, **kwargs): """ - Create a hclCompatibilityStatus + Create an instance of 'hclCompatibilityStatus' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/techsupportmanagement_tech_support_status_api.py b/intersight/apis/hcl_driver_image_api.py similarity index 67% rename from intersight/apis/techsupportmanagement_tech_support_status_api.py rename to intersight/apis/hcl_driver_image_api.py index 5142bd9f..ca478058 100644 --- a/intersight/apis/techsupportmanagement_tech_support_status_api.py +++ b/intersight/apis/hcl_driver_image_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -24,7 +24,7 @@ from ..api_client import ApiClient -class TechsupportmanagementTechSupportStatusApi(object): +class HclDriverImageApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,67 +40,69 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def techsupportmanagement_tech_support_statuses_get(self, **kwargs): + def hcl_driver_images_get(self, **kwargs): """ - List of techsupportmanagementTechSupportStatuses + Get a list of 'hclDriverImage' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.techsupportmanagement_tech_support_statuses_get(callback=callback_function) + >>> thread = api.hcl_driver_images_get(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: TechsupportmanagementTechSupportStatusList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HclDriverImageList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.techsupportmanagement_tech_support_statuses_get_with_http_info(**kwargs) + return self.hcl_driver_images_get_with_http_info(**kwargs) else: - (data) = self.techsupportmanagement_tech_support_statuses_get_with_http_info(**kwargs) + (data) = self.hcl_driver_images_get_with_http_info(**kwargs) return data - def techsupportmanagement_tech_support_statuses_get_with_http_info(self, **kwargs): + def hcl_driver_images_get_with_http_info(self, **kwargs): """ - List of techsupportmanagementTechSupportStatuses + Get a list of 'hclDriverImage' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.techsupportmanagement_tech_support_statuses_get_with_http_info(callback=callback_function) + >>> thread = api.hcl_driver_images_get_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: TechsupportmanagementTechSupportStatusList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HclDriverImageList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -111,7 +113,7 @@ def techsupportmanagement_tech_support_statuses_get_with_http_info(self, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method techsupportmanagement_tech_support_statuses_get" % key + " to method hcl_driver_images_get" % key ) params[key] = val del params['kwargs'] @@ -126,8 +128,6 @@ def techsupportmanagement_tech_support_statuses_get_with_http_info(self, **kwarg query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def techsupportmanagement_tech_support_statuses_get_with_http_info(self, **kwarg query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -158,14 +162,14 @@ def techsupportmanagement_tech_support_statuses_get_with_http_info(self, **kwarg # Authentication setting auth_settings = [] - return self.api_client.call_api('/techsupportmanagement/TechSupportStatuses', 'GET', + return self.api_client.call_api('/hcl/DriverImages', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='TechsupportmanagementTechSupportStatusList', + response_type='HclDriverImageList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -173,46 +177,46 @@ def techsupportmanagement_tech_support_statuses_get_with_http_info(self, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def techsupportmanagement_tech_support_statuses_moid_get(self, moid, **kwargs): + def hcl_driver_images_moid_get(self, moid, **kwargs): """ - A instance of techsupportmanagementTechSupportStatus + Get a specific instance of 'hclDriverImage' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.techsupportmanagement_tech_support_statuses_moid_get(moid, callback=callback_function) + >>> thread = api.hcl_driver_images_moid_get(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the techsupportmanagementTechSupportStatus instance. (required) - :return: TechsupportmanagementTechSupportStatus + :param str moid: The moid of the hclDriverImage instance. (required) + :return: HclDriverImage If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.techsupportmanagement_tech_support_statuses_moid_get_with_http_info(moid, **kwargs) + return self.hcl_driver_images_moid_get_with_http_info(moid, **kwargs) else: - (data) = self.techsupportmanagement_tech_support_statuses_moid_get_with_http_info(moid, **kwargs) + (data) = self.hcl_driver_images_moid_get_with_http_info(moid, **kwargs) return data - def techsupportmanagement_tech_support_statuses_moid_get_with_http_info(self, moid, **kwargs): + def hcl_driver_images_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of techsupportmanagementTechSupportStatus + Get a specific instance of 'hclDriverImage' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.techsupportmanagement_tech_support_statuses_moid_get_with_http_info(moid, callback=callback_function) + >>> thread = api.hcl_driver_images_moid_get_with_http_info(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the techsupportmanagementTechSupportStatus instance. (required) - :return: TechsupportmanagementTechSupportStatus + :param str moid: The moid of the hclDriverImage instance. (required) + :return: HclDriverImage If the method is called asynchronously, returns the request thread. """ @@ -228,13 +232,13 @@ def techsupportmanagement_tech_support_statuses_moid_get_with_http_info(self, mo if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method techsupportmanagement_tech_support_statuses_moid_get" % key + " to method hcl_driver_images_moid_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `techsupportmanagement_tech_support_statuses_moid_get`") + raise ValueError("Missing the required parameter `moid` when calling `hcl_driver_images_moid_get`") collection_formats = {} @@ -262,14 +266,14 @@ def techsupportmanagement_tech_support_statuses_moid_get_with_http_info(self, mo # Authentication setting auth_settings = [] - return self.api_client.call_api('/techsupportmanagement/TechSupportStatuses/{moid}', 'GET', + return self.api_client.call_api('/hcl/DriverImages/{moid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='TechsupportmanagementTechSupportStatus', + response_type='HclDriverImage', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/intersight/apis/hcl_operating_system_api.py b/intersight/apis/hcl_operating_system_api.py new file mode 100644 index 00000000..eee65f57 --- /dev/null +++ b/intersight/apis/hcl_operating_system_api.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class HclOperatingSystemApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def hcl_operating_systems_get(self, **kwargs): + """ + Get a list of 'hclOperatingSystem' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hcl_operating_systems_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HclOperatingSystemList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hcl_operating_systems_get_with_http_info(**kwargs) + else: + (data) = self.hcl_operating_systems_get_with_http_info(**kwargs) + return data + + def hcl_operating_systems_get_with_http_info(self, **kwargs): + """ + Get a list of 'hclOperatingSystem' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hcl_operating_systems_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HclOperatingSystemList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hcl_operating_systems_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hcl/OperatingSystems', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HclOperatingSystemList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hcl_operating_systems_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'hclOperatingSystem' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hcl_operating_systems_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hclOperatingSystem instance. (required) + :return: HclOperatingSystem + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hcl_operating_systems_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.hcl_operating_systems_moid_get_with_http_info(moid, **kwargs) + return data + + def hcl_operating_systems_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'hclOperatingSystem' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hcl_operating_systems_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hclOperatingSystem instance. (required) + :return: HclOperatingSystem + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hcl_operating_systems_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hcl_operating_systems_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hcl/OperatingSystems/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HclOperatingSystem', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/hcl_operating_system_vendor_api.py b/intersight/apis/hcl_operating_system_vendor_api.py new file mode 100644 index 00000000..d0b12a7a --- /dev/null +++ b/intersight/apis/hcl_operating_system_vendor_api.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class HclOperatingSystemVendorApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def hcl_operating_system_vendors_get(self, **kwargs): + """ + Get a list of 'hclOperatingSystemVendor' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hcl_operating_system_vendors_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HclOperatingSystemVendorList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hcl_operating_system_vendors_get_with_http_info(**kwargs) + else: + (data) = self.hcl_operating_system_vendors_get_with_http_info(**kwargs) + return data + + def hcl_operating_system_vendors_get_with_http_info(self, **kwargs): + """ + Get a list of 'hclOperatingSystemVendor' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hcl_operating_system_vendors_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HclOperatingSystemVendorList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hcl_operating_system_vendors_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hcl/OperatingSystemVendors', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HclOperatingSystemVendorList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hcl_operating_system_vendors_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'hclOperatingSystemVendor' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hcl_operating_system_vendors_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hclOperatingSystemVendor instance. (required) + :return: HclOperatingSystemVendor + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hcl_operating_system_vendors_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.hcl_operating_system_vendors_moid_get_with_http_info(moid, **kwargs) + return data + + def hcl_operating_system_vendors_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'hclOperatingSystemVendor' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hcl_operating_system_vendors_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hclOperatingSystemVendor instance. (required) + :return: HclOperatingSystemVendor + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hcl_operating_system_vendors_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hcl_operating_system_vendors_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hcl/OperatingSystemVendors/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HclOperatingSystemVendor', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/hcl_data_import_log_api.py b/intersight/apis/hcl_service_status_api.py similarity index 68% rename from intersight/apis/hcl_data_import_log_api.py rename to intersight/apis/hcl_service_status_api.py index 85f56dbd..a7a7faf3 100644 --- a/intersight/apis/hcl_data_import_log_api.py +++ b/intersight/apis/hcl_service_status_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -24,7 +24,7 @@ from ..api_client import ApiClient -class HclDataImportLogApi(object): +class HclServiceStatusApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,67 +40,69 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def hcl_data_import_logs_get(self, **kwargs): + def hcl_service_statuses_get(self, **kwargs): """ - List of hclDataImportLogs + Get a list of 'hclServiceStatus' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.hcl_data_import_logs_get(callback=callback_function) + >>> thread = api.hcl_service_statuses_get(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: HclDataImportLogList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HclServiceStatusList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.hcl_data_import_logs_get_with_http_info(**kwargs) + return self.hcl_service_statuses_get_with_http_info(**kwargs) else: - (data) = self.hcl_data_import_logs_get_with_http_info(**kwargs) + (data) = self.hcl_service_statuses_get_with_http_info(**kwargs) return data - def hcl_data_import_logs_get_with_http_info(self, **kwargs): + def hcl_service_statuses_get_with_http_info(self, **kwargs): """ - List of hclDataImportLogs + Get a list of 'hclServiceStatus' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.hcl_data_import_logs_get_with_http_info(callback=callback_function) + >>> thread = api.hcl_service_statuses_get_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: HclDataImportLogList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HclServiceStatusList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -111,7 +113,7 @@ def hcl_data_import_logs_get_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method hcl_data_import_logs_get" % key + " to method hcl_service_statuses_get" % key ) params[key] = val del params['kwargs'] @@ -126,8 +128,6 @@ def hcl_data_import_logs_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def hcl_data_import_logs_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -158,14 +162,14 @@ def hcl_data_import_logs_get_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/hcl/DataImportLogs', 'GET', + return self.api_client.call_api('/hcl/ServiceStatuses', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HclDataImportLogList', + response_type='HclServiceStatusList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -173,46 +177,46 @@ def hcl_data_import_logs_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def hcl_data_import_logs_moid_get(self, moid, **kwargs): + def hcl_service_statuses_moid_get(self, moid, **kwargs): """ - A instance of hclDataImportLog + Get a specific instance of 'hclServiceStatus' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.hcl_data_import_logs_moid_get(moid, callback=callback_function) + >>> thread = api.hcl_service_statuses_moid_get(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the hclDataImportLog instance. (required) - :return: HclDataImportLog + :param str moid: The moid of the hclServiceStatus instance. (required) + :return: HclServiceStatus If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.hcl_data_import_logs_moid_get_with_http_info(moid, **kwargs) + return self.hcl_service_statuses_moid_get_with_http_info(moid, **kwargs) else: - (data) = self.hcl_data_import_logs_moid_get_with_http_info(moid, **kwargs) + (data) = self.hcl_service_statuses_moid_get_with_http_info(moid, **kwargs) return data - def hcl_data_import_logs_moid_get_with_http_info(self, moid, **kwargs): + def hcl_service_statuses_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of hclDataImportLog + Get a specific instance of 'hclServiceStatus' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.hcl_data_import_logs_moid_get_with_http_info(moid, callback=callback_function) + >>> thread = api.hcl_service_statuses_moid_get_with_http_info(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the hclDataImportLog instance. (required) - :return: HclDataImportLog + :param str moid: The moid of the hclServiceStatus instance. (required) + :return: HclServiceStatus If the method is called asynchronously, returns the request thread. """ @@ -228,13 +232,13 @@ def hcl_data_import_logs_moid_get_with_http_info(self, moid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method hcl_data_import_logs_moid_get" % key + " to method hcl_service_statuses_moid_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `hcl_data_import_logs_moid_get`") + raise ValueError("Missing the required parameter `moid` when calling `hcl_service_statuses_moid_get`") collection_formats = {} @@ -262,14 +266,14 @@ def hcl_data_import_logs_moid_get_with_http_info(self, moid, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/hcl/DataImportLogs/{moid}', 'GET', + return self.api_client.call_api('/hcl/ServiceStatuses/{moid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HclDataImportLog', + response_type='HclServiceStatus', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/intersight/apis/hcl_supported_driver_name_api.py b/intersight/apis/hcl_supported_driver_name_api.py index eadb5aae..a71374f9 100644 --- a/intersight/apis/hcl_supported_driver_name_api.py +++ b/intersight/apis/hcl_supported_driver_name_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def hcl_supported_driver_names_post(self, body, **kwargs): """ - Create a hclSupportedDriverName + Create an instance of 'hclSupportedDriverName' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -67,7 +67,7 @@ def hcl_supported_driver_names_post(self, body, **kwargs): def hcl_supported_driver_names_post_with_http_info(self, body, **kwargs): """ - Create a hclSupportedDriverName + Create an instance of 'hclSupportedDriverName' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/hyperflex_alarm_api.py b/intersight/apis/hyperflex_alarm_api.py index 3cfa2704..0dfa0624 100644 --- a/intersight/apis/hyperflex_alarm_api.py +++ b/intersight/apis/hyperflex_alarm_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def hyperflex_alarms_get(self, **kwargs): """ - List of hyperflexAlarms + Get a list of 'hyperflexAlarm' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def hyperflex_alarms_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexAlarmList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def hyperflex_alarms_get(self, **kwargs): def hyperflex_alarms_get_with_http_info(self, **kwargs): """ - List of hyperflexAlarms + Get a list of 'hyperflexAlarm' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def hyperflex_alarms_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexAlarmList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def hyperflex_alarms_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def hyperflex_alarms_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -173,113 +177,9 @@ def hyperflex_alarms_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def hyperflex_alarms_moid_delete(self, moid, **kwargs): - """ - Delete an instance of hyperflexAlarm - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.hyperflex_alarms_moid_delete(moid, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str moid: The moid of the hyperflexAlarm instance. (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.hyperflex_alarms_moid_delete_with_http_info(moid, **kwargs) - else: - (data) = self.hyperflex_alarms_moid_delete_with_http_info(moid, **kwargs) - return data - - def hyperflex_alarms_moid_delete_with_http_info(self, moid, **kwargs): - """ - Delete an instance of hyperflexAlarm - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.hyperflex_alarms_moid_delete_with_http_info(moid, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str moid: The moid of the hyperflexAlarm instance. (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['moid'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method hyperflex_alarms_moid_delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'moid' is set - if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `hyperflex_alarms_moid_delete`") - - - collection_formats = {} - - path_params = {} - if 'moid' in params: - path_params['moid'] = params['moid'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/hyperflex/Alarms/{moid}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def hyperflex_alarms_moid_get(self, moid, **kwargs): """ - A instance of hyperflexAlarm + Get a specific instance of 'hyperflexAlarm' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +204,7 @@ def hyperflex_alarms_moid_get(self, moid, **kwargs): def hyperflex_alarms_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of hyperflexAlarm + Get a specific instance of 'hyperflexAlarm' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -380,107 +280,3 @@ def hyperflex_alarms_moid_get_with_http_info(self, moid, **kwargs): _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - - def hyperflex_alarms_post(self, body, **kwargs): - """ - Create a hyperflexAlarm - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.hyperflex_alarms_post(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param HyperflexAlarm body: hyperflexAlarm to add (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.hyperflex_alarms_post_with_http_info(body, **kwargs) - else: - (data) = self.hyperflex_alarms_post_with_http_info(body, **kwargs) - return data - - def hyperflex_alarms_post_with_http_info(self, body, **kwargs): - """ - Create a hyperflexAlarm - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.hyperflex_alarms_post_with_http_info(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param HyperflexAlarm body: hyperflexAlarm to add (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method hyperflex_alarms_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `hyperflex_alarms_post`") - - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/hyperflex/Alarms', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/intersight/apis/hyperflex_app_catalog_api.py b/intersight/apis/hyperflex_app_catalog_api.py new file mode 100644 index 00000000..c5677963 --- /dev/null +++ b/intersight/apis/hyperflex_app_catalog_api.py @@ -0,0 +1,712 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class HyperflexAppCatalogApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def hyperflex_app_catalogs_get(self, **kwargs): + """ + Get a list of 'hyperflexAppCatalog' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_app_catalogs_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HyperflexAppCatalogList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_app_catalogs_get_with_http_info(**kwargs) + else: + (data) = self.hyperflex_app_catalogs_get_with_http_info(**kwargs) + return data + + def hyperflex_app_catalogs_get_with_http_info(self, **kwargs): + """ + Get a list of 'hyperflexAppCatalog' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_app_catalogs_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HyperflexAppCatalogList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_app_catalogs_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/AppCatalogs', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexAppCatalogList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_app_catalogs_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'hyperflexAppCatalog' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_app_catalogs_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexAppCatalog instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_app_catalogs_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.hyperflex_app_catalogs_moid_delete_with_http_info(moid, **kwargs) + return data + + def hyperflex_app_catalogs_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'hyperflexAppCatalog' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_app_catalogs_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexAppCatalog instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_app_catalogs_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_app_catalogs_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/AppCatalogs/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_app_catalogs_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'hyperflexAppCatalog' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_app_catalogs_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexAppCatalog instance. (required) + :return: HyperflexAppCatalog + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_app_catalogs_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.hyperflex_app_catalogs_moid_get_with_http_info(moid, **kwargs) + return data + + def hyperflex_app_catalogs_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'hyperflexAppCatalog' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_app_catalogs_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexAppCatalog instance. (required) + :return: HyperflexAppCatalog + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_app_catalogs_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_app_catalogs_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/AppCatalogs/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexAppCatalog', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_app_catalogs_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexAppCatalog' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_app_catalogs_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexAppCatalog instance. (required) + :param HyperflexAppCatalog body: hyperflexAppCatalog to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_app_catalogs_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.hyperflex_app_catalogs_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def hyperflex_app_catalogs_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexAppCatalog' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_app_catalogs_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexAppCatalog instance. (required) + :param HyperflexAppCatalog body: hyperflexAppCatalog to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_app_catalogs_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_app_catalogs_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_app_catalogs_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/AppCatalogs/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_app_catalogs_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexAppCatalog' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_app_catalogs_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexAppCatalog instance. (required) + :param HyperflexAppCatalog body: hyperflexAppCatalog to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_app_catalogs_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.hyperflex_app_catalogs_moid_post_with_http_info(moid, body, **kwargs) + return data + + def hyperflex_app_catalogs_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexAppCatalog' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_app_catalogs_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexAppCatalog instance. (required) + :param HyperflexAppCatalog body: hyperflexAppCatalog to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_app_catalogs_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_app_catalogs_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_app_catalogs_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/AppCatalogs/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_app_catalogs_post(self, body, **kwargs): + """ + Create an instance of 'hyperflexAppCatalog' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_app_catalogs_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param HyperflexAppCatalog body: hyperflexAppCatalog to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_app_catalogs_post_with_http_info(body, **kwargs) + else: + (data) = self.hyperflex_app_catalogs_post_with_http_info(body, **kwargs) + return data + + def hyperflex_app_catalogs_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'hyperflexAppCatalog' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_app_catalogs_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param HyperflexAppCatalog body: hyperflexAppCatalog to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_app_catalogs_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_app_catalogs_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/AppCatalogs', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/hyperflex_auto_support_policy_api.py b/intersight/apis/hyperflex_auto_support_policy_api.py index 428169ed..9b5f8b18 100644 --- a/intersight/apis/hyperflex_auto_support_policy_api.py +++ b/intersight/apis/hyperflex_auto_support_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def hyperflex_auto_support_policies_get(self, **kwargs): """ - List of hyperflexAutoSupportPolicies + Get a list of 'hyperflexAutoSupportPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def hyperflex_auto_support_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexAutoSupportPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def hyperflex_auto_support_policies_get(self, **kwargs): def hyperflex_auto_support_policies_get_with_http_info(self, **kwargs): """ - List of hyperflexAutoSupportPolicies + Get a list of 'hyperflexAutoSupportPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def hyperflex_auto_support_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexAutoSupportPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def hyperflex_auto_support_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def hyperflex_auto_support_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def hyperflex_auto_support_policies_get_with_http_info(self, **kwargs): def hyperflex_auto_support_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of hyperflexAutoSupportPolicy + Delete an instance of 'hyperflexAutoSupportPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def hyperflex_auto_support_policies_moid_delete(self, moid, **kwargs): def hyperflex_auto_support_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of hyperflexAutoSupportPolicy + Delete an instance of 'hyperflexAutoSupportPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def hyperflex_auto_support_policies_moid_delete_with_http_info(self, moid, **kwa def hyperflex_auto_support_policies_moid_get(self, moid, **kwargs): """ - A instance of hyperflexAutoSupportPolicy + Get a specific instance of 'hyperflexAutoSupportPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def hyperflex_auto_support_policies_moid_get(self, moid, **kwargs): def hyperflex_auto_support_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of hyperflexAutoSupportPolicy + Get a specific instance of 'hyperflexAutoSupportPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def hyperflex_auto_support_policies_moid_get_with_http_info(self, moid, **kwargs def hyperflex_auto_support_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of hyperflexAutoSupportPolicy + Update an instance of 'hyperflexAutoSupportPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def hyperflex_auto_support_policies_moid_patch(self, moid, body, **kwargs): def hyperflex_auto_support_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexAutoSupportPolicy + Update an instance of 'hyperflexAutoSupportPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def hyperflex_auto_support_policies_moid_patch_with_http_info(self, moid, body, def hyperflex_auto_support_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of hyperflexAutoSupportPolicy + Update an instance of 'hyperflexAutoSupportPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def hyperflex_auto_support_policies_moid_post(self, moid, body, **kwargs): def hyperflex_auto_support_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexAutoSupportPolicy + Update an instance of 'hyperflexAutoSupportPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def hyperflex_auto_support_policies_moid_post_with_http_info(self, moid, body, * def hyperflex_auto_support_policies_post(self, body, **kwargs): """ - Create a hyperflexAutoSupportPolicy + Create an instance of 'hyperflexAutoSupportPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def hyperflex_auto_support_policies_post(self, body, **kwargs): def hyperflex_auto_support_policies_post_with_http_info(self, body, **kwargs): """ - Create a hyperflexAutoSupportPolicy + Create an instance of 'hyperflexAutoSupportPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/hyperflex_cluster_api.py b/intersight/apis/hyperflex_cluster_api.py index 9e0c2884..ea0852d1 100644 --- a/intersight/apis/hyperflex_cluster_api.py +++ b/intersight/apis/hyperflex_cluster_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def hyperflex_clusters_get(self, **kwargs): """ - List of hyperflexClusters + Get a list of 'hyperflexCluster' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def hyperflex_clusters_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexClusterList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def hyperflex_clusters_get(self, **kwargs): def hyperflex_clusters_get_with_http_info(self, **kwargs): """ - List of hyperflexClusters + Get a list of 'hyperflexCluster' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def hyperflex_clusters_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexClusterList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def hyperflex_clusters_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def hyperflex_clusters_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -173,113 +177,9 @@ def hyperflex_clusters_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def hyperflex_clusters_moid_delete(self, moid, **kwargs): - """ - Delete an instance of hyperflexCluster - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.hyperflex_clusters_moid_delete(moid, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str moid: The moid of the hyperflexCluster instance. (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.hyperflex_clusters_moid_delete_with_http_info(moid, **kwargs) - else: - (data) = self.hyperflex_clusters_moid_delete_with_http_info(moid, **kwargs) - return data - - def hyperflex_clusters_moid_delete_with_http_info(self, moid, **kwargs): - """ - Delete an instance of hyperflexCluster - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.hyperflex_clusters_moid_delete_with_http_info(moid, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str moid: The moid of the hyperflexCluster instance. (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['moid'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method hyperflex_clusters_moid_delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'moid' is set - if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `hyperflex_clusters_moid_delete`") - - - collection_formats = {} - - path_params = {} - if 'moid' in params: - path_params['moid'] = params['moid'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/hyperflex/Clusters/{moid}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def hyperflex_clusters_moid_get(self, moid, **kwargs): """ - A instance of hyperflexCluster + Get a specific instance of 'hyperflexCluster' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +204,7 @@ def hyperflex_clusters_moid_get(self, moid, **kwargs): def hyperflex_clusters_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of hyperflexCluster + Get a specific instance of 'hyperflexCluster' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -380,225 +280,3 @@ def hyperflex_clusters_moid_get_with_http_info(self, moid, **kwargs): _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - - def hyperflex_clusters_moid_patch(self, moid, body, **kwargs): - """ - Update an instance of hyperflexCluster - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.hyperflex_clusters_moid_patch(moid, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str moid: The moid of the hyperflexCluster instance. (required) - :param HyperflexCluster body: hyperflexCluster to update (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.hyperflex_clusters_moid_patch_with_http_info(moid, body, **kwargs) - else: - (data) = self.hyperflex_clusters_moid_patch_with_http_info(moid, body, **kwargs) - return data - - def hyperflex_clusters_moid_patch_with_http_info(self, moid, body, **kwargs): - """ - Update an instance of hyperflexCluster - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.hyperflex_clusters_moid_patch_with_http_info(moid, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str moid: The moid of the hyperflexCluster instance. (required) - :param HyperflexCluster body: hyperflexCluster to update (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['moid', 'body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method hyperflex_clusters_moid_patch" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'moid' is set - if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `hyperflex_clusters_moid_patch`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `hyperflex_clusters_moid_patch`") - - - collection_formats = {} - - path_params = {} - if 'moid' in params: - path_params['moid'] = params['moid'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/hyperflex/Clusters/{moid}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def hyperflex_clusters_moid_post(self, moid, body, **kwargs): - """ - Update an instance of hyperflexCluster - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.hyperflex_clusters_moid_post(moid, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str moid: The moid of the hyperflexCluster instance. (required) - :param HyperflexCluster body: hyperflexCluster to update (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.hyperflex_clusters_moid_post_with_http_info(moid, body, **kwargs) - else: - (data) = self.hyperflex_clusters_moid_post_with_http_info(moid, body, **kwargs) - return data - - def hyperflex_clusters_moid_post_with_http_info(self, moid, body, **kwargs): - """ - Update an instance of hyperflexCluster - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.hyperflex_clusters_moid_post_with_http_info(moid, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str moid: The moid of the hyperflexCluster instance. (required) - :param HyperflexCluster body: hyperflexCluster to update (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['moid', 'body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method hyperflex_clusters_moid_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'moid' is set - if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `hyperflex_clusters_moid_post`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `hyperflex_clusters_moid_post`") - - - collection_formats = {} - - path_params = {} - if 'moid' in params: - path_params['moid'] = params['moid'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/hyperflex/Clusters/{moid}', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/intersight/apis/hyperflex_cluster_network_policy_api.py b/intersight/apis/hyperflex_cluster_network_policy_api.py index a4fd77b1..e0c61e63 100644 --- a/intersight/apis/hyperflex_cluster_network_policy_api.py +++ b/intersight/apis/hyperflex_cluster_network_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def hyperflex_cluster_network_policies_get(self, **kwargs): """ - List of hyperflexClusterNetworkPolicies + Get a list of 'hyperflexClusterNetworkPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def hyperflex_cluster_network_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexClusterNetworkPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def hyperflex_cluster_network_policies_get(self, **kwargs): def hyperflex_cluster_network_policies_get_with_http_info(self, **kwargs): """ - List of hyperflexClusterNetworkPolicies + Get a list of 'hyperflexClusterNetworkPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def hyperflex_cluster_network_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexClusterNetworkPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def hyperflex_cluster_network_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def hyperflex_cluster_network_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def hyperflex_cluster_network_policies_get_with_http_info(self, **kwargs): def hyperflex_cluster_network_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of hyperflexClusterNetworkPolicy + Delete an instance of 'hyperflexClusterNetworkPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def hyperflex_cluster_network_policies_moid_delete(self, moid, **kwargs): def hyperflex_cluster_network_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of hyperflexClusterNetworkPolicy + Delete an instance of 'hyperflexClusterNetworkPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def hyperflex_cluster_network_policies_moid_delete_with_http_info(self, moid, ** def hyperflex_cluster_network_policies_moid_get(self, moid, **kwargs): """ - A instance of hyperflexClusterNetworkPolicy + Get a specific instance of 'hyperflexClusterNetworkPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def hyperflex_cluster_network_policies_moid_get(self, moid, **kwargs): def hyperflex_cluster_network_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of hyperflexClusterNetworkPolicy + Get a specific instance of 'hyperflexClusterNetworkPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def hyperflex_cluster_network_policies_moid_get_with_http_info(self, moid, **kwa def hyperflex_cluster_network_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of hyperflexClusterNetworkPolicy + Update an instance of 'hyperflexClusterNetworkPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def hyperflex_cluster_network_policies_moid_patch(self, moid, body, **kwargs): def hyperflex_cluster_network_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexClusterNetworkPolicy + Update an instance of 'hyperflexClusterNetworkPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def hyperflex_cluster_network_policies_moid_patch_with_http_info(self, moid, bod def hyperflex_cluster_network_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of hyperflexClusterNetworkPolicy + Update an instance of 'hyperflexClusterNetworkPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def hyperflex_cluster_network_policies_moid_post(self, moid, body, **kwargs): def hyperflex_cluster_network_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexClusterNetworkPolicy + Update an instance of 'hyperflexClusterNetworkPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def hyperflex_cluster_network_policies_moid_post_with_http_info(self, moid, body def hyperflex_cluster_network_policies_post(self, body, **kwargs): """ - Create a hyperflexClusterNetworkPolicy + Create an instance of 'hyperflexClusterNetworkPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def hyperflex_cluster_network_policies_post(self, body, **kwargs): def hyperflex_cluster_network_policies_post_with_http_info(self, body, **kwargs): """ - Create a hyperflexClusterNetworkPolicy + Create an instance of 'hyperflexClusterNetworkPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/hyperflex_cluster_profile_api.py b/intersight/apis/hyperflex_cluster_profile_api.py index e08bbb83..a533686e 100644 --- a/intersight/apis/hyperflex_cluster_profile_api.py +++ b/intersight/apis/hyperflex_cluster_profile_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def hyperflex_cluster_profiles_get(self, **kwargs): """ - List of hyperflexClusterProfiles + Get a list of 'hyperflexClusterProfile' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def hyperflex_cluster_profiles_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexClusterProfileList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def hyperflex_cluster_profiles_get(self, **kwargs): def hyperflex_cluster_profiles_get_with_http_info(self, **kwargs): """ - List of hyperflexClusterProfiles + Get a list of 'hyperflexClusterProfile' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def hyperflex_cluster_profiles_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexClusterProfileList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def hyperflex_cluster_profiles_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def hyperflex_cluster_profiles_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def hyperflex_cluster_profiles_get_with_http_info(self, **kwargs): def hyperflex_cluster_profiles_moid_delete(self, moid, **kwargs): """ - Delete an instance of hyperflexClusterProfile + Delete an instance of 'hyperflexClusterProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def hyperflex_cluster_profiles_moid_delete(self, moid, **kwargs): def hyperflex_cluster_profiles_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of hyperflexClusterProfile + Delete an instance of 'hyperflexClusterProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def hyperflex_cluster_profiles_moid_delete_with_http_info(self, moid, **kwargs): def hyperflex_cluster_profiles_moid_get(self, moid, **kwargs): """ - A instance of hyperflexClusterProfile + Get a specific instance of 'hyperflexClusterProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def hyperflex_cluster_profiles_moid_get(self, moid, **kwargs): def hyperflex_cluster_profiles_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of hyperflexClusterProfile + Get a specific instance of 'hyperflexClusterProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def hyperflex_cluster_profiles_moid_get_with_http_info(self, moid, **kwargs): def hyperflex_cluster_profiles_moid_patch(self, moid, body, **kwargs): """ - Update an instance of hyperflexClusterProfile + Update an instance of 'hyperflexClusterProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def hyperflex_cluster_profiles_moid_patch(self, moid, body, **kwargs): def hyperflex_cluster_profiles_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexClusterProfile + Update an instance of 'hyperflexClusterProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def hyperflex_cluster_profiles_moid_patch_with_http_info(self, moid, body, **kwa def hyperflex_cluster_profiles_moid_post(self, moid, body, **kwargs): """ - Update an instance of hyperflexClusterProfile + Update an instance of 'hyperflexClusterProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def hyperflex_cluster_profiles_moid_post(self, moid, body, **kwargs): def hyperflex_cluster_profiles_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexClusterProfile + Update an instance of 'hyperflexClusterProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def hyperflex_cluster_profiles_moid_post_with_http_info(self, moid, body, **kwar def hyperflex_cluster_profiles_post(self, body, **kwargs): """ - Create a hyperflexClusterProfile + Create an instance of 'hyperflexClusterProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def hyperflex_cluster_profiles_post(self, body, **kwargs): def hyperflex_cluster_profiles_post_with_http_info(self, body, **kwargs): """ - Create a hyperflexClusterProfile + Create an instance of 'hyperflexClusterProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/hyperflex_cluster_storage_policy_api.py b/intersight/apis/hyperflex_cluster_storage_policy_api.py index 6589605e..9427fbee 100644 --- a/intersight/apis/hyperflex_cluster_storage_policy_api.py +++ b/intersight/apis/hyperflex_cluster_storage_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def hyperflex_cluster_storage_policies_get(self, **kwargs): """ - List of hyperflexClusterStoragePolicies + Get a list of 'hyperflexClusterStoragePolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def hyperflex_cluster_storage_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexClusterStoragePolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def hyperflex_cluster_storage_policies_get(self, **kwargs): def hyperflex_cluster_storage_policies_get_with_http_info(self, **kwargs): """ - List of hyperflexClusterStoragePolicies + Get a list of 'hyperflexClusterStoragePolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def hyperflex_cluster_storage_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexClusterStoragePolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def hyperflex_cluster_storage_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def hyperflex_cluster_storage_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def hyperflex_cluster_storage_policies_get_with_http_info(self, **kwargs): def hyperflex_cluster_storage_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of hyperflexClusterStoragePolicy + Delete an instance of 'hyperflexClusterStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def hyperflex_cluster_storage_policies_moid_delete(self, moid, **kwargs): def hyperflex_cluster_storage_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of hyperflexClusterStoragePolicy + Delete an instance of 'hyperflexClusterStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def hyperflex_cluster_storage_policies_moid_delete_with_http_info(self, moid, ** def hyperflex_cluster_storage_policies_moid_get(self, moid, **kwargs): """ - A instance of hyperflexClusterStoragePolicy + Get a specific instance of 'hyperflexClusterStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def hyperflex_cluster_storage_policies_moid_get(self, moid, **kwargs): def hyperflex_cluster_storage_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of hyperflexClusterStoragePolicy + Get a specific instance of 'hyperflexClusterStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def hyperflex_cluster_storage_policies_moid_get_with_http_info(self, moid, **kwa def hyperflex_cluster_storage_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of hyperflexClusterStoragePolicy + Update an instance of 'hyperflexClusterStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def hyperflex_cluster_storage_policies_moid_patch(self, moid, body, **kwargs): def hyperflex_cluster_storage_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexClusterStoragePolicy + Update an instance of 'hyperflexClusterStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def hyperflex_cluster_storage_policies_moid_patch_with_http_info(self, moid, bod def hyperflex_cluster_storage_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of hyperflexClusterStoragePolicy + Update an instance of 'hyperflexClusterStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def hyperflex_cluster_storage_policies_moid_post(self, moid, body, **kwargs): def hyperflex_cluster_storage_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexClusterStoragePolicy + Update an instance of 'hyperflexClusterStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def hyperflex_cluster_storage_policies_moid_post_with_http_info(self, moid, body def hyperflex_cluster_storage_policies_post(self, body, **kwargs): """ - Create a hyperflexClusterStoragePolicy + Create an instance of 'hyperflexClusterStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def hyperflex_cluster_storage_policies_post(self, body, **kwargs): def hyperflex_cluster_storage_policies_post_with_http_info(self, body, **kwargs): """ - Create a hyperflexClusterStoragePolicy + Create an instance of 'hyperflexClusterStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/hyperflex_config_result_api.py b/intersight/apis/hyperflex_config_result_api.py index b6f52dee..2aab6d62 100644 --- a/intersight/apis/hyperflex_config_result_api.py +++ b/intersight/apis/hyperflex_config_result_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def hyperflex_config_results_get(self, **kwargs): """ - List of hyperflexConfigResults + Get a list of 'hyperflexConfigResult' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def hyperflex_config_results_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexConfigResultList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def hyperflex_config_results_get(self, **kwargs): def hyperflex_config_results_get_with_http_info(self, **kwargs): """ - List of hyperflexConfigResults + Get a list of 'hyperflexConfigResult' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def hyperflex_config_results_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexConfigResultList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def hyperflex_config_results_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def hyperflex_config_results_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def hyperflex_config_results_get_with_http_info(self, **kwargs): def hyperflex_config_results_moid_get(self, moid, **kwargs): """ - A instance of hyperflexConfigResult + Get a specific instance of 'hyperflexConfigResult' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def hyperflex_config_results_moid_get(self, moid, **kwargs): def hyperflex_config_results_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of hyperflexConfigResult + Get a specific instance of 'hyperflexConfigResult' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/hyperflex_config_result_entry_api.py b/intersight/apis/hyperflex_config_result_entry_api.py new file mode 100644 index 00000000..d4b0b6c6 --- /dev/null +++ b/intersight/apis/hyperflex_config_result_entry_api.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class HyperflexConfigResultEntryApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def hyperflex_config_result_entries_get(self, **kwargs): + """ + Get a list of 'hyperflexConfigResultEntry' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_config_result_entries_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HyperflexConfigResultEntryList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_config_result_entries_get_with_http_info(**kwargs) + else: + (data) = self.hyperflex_config_result_entries_get_with_http_info(**kwargs) + return data + + def hyperflex_config_result_entries_get_with_http_info(self, **kwargs): + """ + Get a list of 'hyperflexConfigResultEntry' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_config_result_entries_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HyperflexConfigResultEntryList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_config_result_entries_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ConfigResultEntries', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexConfigResultEntryList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_config_result_entries_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'hyperflexConfigResultEntry' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_config_result_entries_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexConfigResultEntry instance. (required) + :return: HyperflexConfigResultEntry + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_config_result_entries_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.hyperflex_config_result_entries_moid_get_with_http_info(moid, **kwargs) + return data + + def hyperflex_config_result_entries_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'hyperflexConfigResultEntry' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_config_result_entries_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexConfigResultEntry instance. (required) + :return: HyperflexConfigResultEntry + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_config_result_entries_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_config_result_entries_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ConfigResultEntries/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexConfigResultEntry', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/hyperflex_ext_fc_storage_policy_api.py b/intersight/apis/hyperflex_ext_fc_storage_policy_api.py index ef6d6657..bfea42ab 100644 --- a/intersight/apis/hyperflex_ext_fc_storage_policy_api.py +++ b/intersight/apis/hyperflex_ext_fc_storage_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def hyperflex_ext_fc_storage_policies_get(self, **kwargs): """ - List of hyperflexExtFcStoragePolicies + Get a list of 'hyperflexExtFcStoragePolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def hyperflex_ext_fc_storage_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexExtFcStoragePolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def hyperflex_ext_fc_storage_policies_get(self, **kwargs): def hyperflex_ext_fc_storage_policies_get_with_http_info(self, **kwargs): """ - List of hyperflexExtFcStoragePolicies + Get a list of 'hyperflexExtFcStoragePolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def hyperflex_ext_fc_storage_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexExtFcStoragePolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def hyperflex_ext_fc_storage_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def hyperflex_ext_fc_storage_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def hyperflex_ext_fc_storage_policies_get_with_http_info(self, **kwargs): def hyperflex_ext_fc_storage_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of hyperflexExtFcStoragePolicy + Delete an instance of 'hyperflexExtFcStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def hyperflex_ext_fc_storage_policies_moid_delete(self, moid, **kwargs): def hyperflex_ext_fc_storage_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of hyperflexExtFcStoragePolicy + Delete an instance of 'hyperflexExtFcStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def hyperflex_ext_fc_storage_policies_moid_delete_with_http_info(self, moid, **k def hyperflex_ext_fc_storage_policies_moid_get(self, moid, **kwargs): """ - A instance of hyperflexExtFcStoragePolicy + Get a specific instance of 'hyperflexExtFcStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def hyperflex_ext_fc_storage_policies_moid_get(self, moid, **kwargs): def hyperflex_ext_fc_storage_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of hyperflexExtFcStoragePolicy + Get a specific instance of 'hyperflexExtFcStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def hyperflex_ext_fc_storage_policies_moid_get_with_http_info(self, moid, **kwar def hyperflex_ext_fc_storage_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of hyperflexExtFcStoragePolicy + Update an instance of 'hyperflexExtFcStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def hyperflex_ext_fc_storage_policies_moid_patch(self, moid, body, **kwargs): def hyperflex_ext_fc_storage_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexExtFcStoragePolicy + Update an instance of 'hyperflexExtFcStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def hyperflex_ext_fc_storage_policies_moid_patch_with_http_info(self, moid, body def hyperflex_ext_fc_storage_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of hyperflexExtFcStoragePolicy + Update an instance of 'hyperflexExtFcStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def hyperflex_ext_fc_storage_policies_moid_post(self, moid, body, **kwargs): def hyperflex_ext_fc_storage_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexExtFcStoragePolicy + Update an instance of 'hyperflexExtFcStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def hyperflex_ext_fc_storage_policies_moid_post_with_http_info(self, moid, body, def hyperflex_ext_fc_storage_policies_post(self, body, **kwargs): """ - Create a hyperflexExtFcStoragePolicy + Create an instance of 'hyperflexExtFcStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def hyperflex_ext_fc_storage_policies_post(self, body, **kwargs): def hyperflex_ext_fc_storage_policies_post_with_http_info(self, body, **kwargs): """ - Create a hyperflexExtFcStoragePolicy + Create an instance of 'hyperflexExtFcStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/hyperflex_ext_iscsi_storage_policy_api.py b/intersight/apis/hyperflex_ext_iscsi_storage_policy_api.py index b5c4f012..d14aa85c 100644 --- a/intersight/apis/hyperflex_ext_iscsi_storage_policy_api.py +++ b/intersight/apis/hyperflex_ext_iscsi_storage_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def hyperflex_ext_iscsi_storage_policies_get(self, **kwargs): """ - List of hyperflexExtIscsiStoragePolicies + Get a list of 'hyperflexExtIscsiStoragePolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def hyperflex_ext_iscsi_storage_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexExtIscsiStoragePolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def hyperflex_ext_iscsi_storage_policies_get(self, **kwargs): def hyperflex_ext_iscsi_storage_policies_get_with_http_info(self, **kwargs): """ - List of hyperflexExtIscsiStoragePolicies + Get a list of 'hyperflexExtIscsiStoragePolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def hyperflex_ext_iscsi_storage_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexExtIscsiStoragePolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def hyperflex_ext_iscsi_storage_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def hyperflex_ext_iscsi_storage_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def hyperflex_ext_iscsi_storage_policies_get_with_http_info(self, **kwargs): def hyperflex_ext_iscsi_storage_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of hyperflexExtIscsiStoragePolicy + Delete an instance of 'hyperflexExtIscsiStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def hyperflex_ext_iscsi_storage_policies_moid_delete(self, moid, **kwargs): def hyperflex_ext_iscsi_storage_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of hyperflexExtIscsiStoragePolicy + Delete an instance of 'hyperflexExtIscsiStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def hyperflex_ext_iscsi_storage_policies_moid_delete_with_http_info(self, moid, def hyperflex_ext_iscsi_storage_policies_moid_get(self, moid, **kwargs): """ - A instance of hyperflexExtIscsiStoragePolicy + Get a specific instance of 'hyperflexExtIscsiStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def hyperflex_ext_iscsi_storage_policies_moid_get(self, moid, **kwargs): def hyperflex_ext_iscsi_storage_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of hyperflexExtIscsiStoragePolicy + Get a specific instance of 'hyperflexExtIscsiStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def hyperflex_ext_iscsi_storage_policies_moid_get_with_http_info(self, moid, **k def hyperflex_ext_iscsi_storage_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of hyperflexExtIscsiStoragePolicy + Update an instance of 'hyperflexExtIscsiStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def hyperflex_ext_iscsi_storage_policies_moid_patch(self, moid, body, **kwargs): def hyperflex_ext_iscsi_storage_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexExtIscsiStoragePolicy + Update an instance of 'hyperflexExtIscsiStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def hyperflex_ext_iscsi_storage_policies_moid_patch_with_http_info(self, moid, b def hyperflex_ext_iscsi_storage_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of hyperflexExtIscsiStoragePolicy + Update an instance of 'hyperflexExtIscsiStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def hyperflex_ext_iscsi_storage_policies_moid_post(self, moid, body, **kwargs): def hyperflex_ext_iscsi_storage_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexExtIscsiStoragePolicy + Update an instance of 'hyperflexExtIscsiStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def hyperflex_ext_iscsi_storage_policies_moid_post_with_http_info(self, moid, bo def hyperflex_ext_iscsi_storage_policies_post(self, body, **kwargs): """ - Create a hyperflexExtIscsiStoragePolicy + Create an instance of 'hyperflexExtIscsiStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def hyperflex_ext_iscsi_storage_policies_post(self, body, **kwargs): def hyperflex_ext_iscsi_storage_policies_post_with_http_info(self, body, **kwargs): """ - Create a hyperflexExtIscsiStoragePolicy + Create an instance of 'hyperflexExtIscsiStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/hyperflex_feature_limit_external_api.py b/intersight/apis/hyperflex_feature_limit_external_api.py new file mode 100644 index 00000000..78ccd48c --- /dev/null +++ b/intersight/apis/hyperflex_feature_limit_external_api.py @@ -0,0 +1,712 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class HyperflexFeatureLimitExternalApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def hyperflex_feature_limit_externals_get(self, **kwargs): + """ + Get a list of 'hyperflexFeatureLimitExternal' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_externals_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HyperflexFeatureLimitExternalList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_feature_limit_externals_get_with_http_info(**kwargs) + else: + (data) = self.hyperflex_feature_limit_externals_get_with_http_info(**kwargs) + return data + + def hyperflex_feature_limit_externals_get_with_http_info(self, **kwargs): + """ + Get a list of 'hyperflexFeatureLimitExternal' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_externals_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HyperflexFeatureLimitExternalList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_feature_limit_externals_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/FeatureLimitExternals', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexFeatureLimitExternalList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_feature_limit_externals_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'hyperflexFeatureLimitExternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_externals_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexFeatureLimitExternal instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_feature_limit_externals_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.hyperflex_feature_limit_externals_moid_delete_with_http_info(moid, **kwargs) + return data + + def hyperflex_feature_limit_externals_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'hyperflexFeatureLimitExternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_externals_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexFeatureLimitExternal instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_feature_limit_externals_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_feature_limit_externals_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/FeatureLimitExternals/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_feature_limit_externals_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'hyperflexFeatureLimitExternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_externals_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexFeatureLimitExternal instance. (required) + :return: HyperflexFeatureLimitExternal + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_feature_limit_externals_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.hyperflex_feature_limit_externals_moid_get_with_http_info(moid, **kwargs) + return data + + def hyperflex_feature_limit_externals_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'hyperflexFeatureLimitExternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_externals_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexFeatureLimitExternal instance. (required) + :return: HyperflexFeatureLimitExternal + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_feature_limit_externals_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_feature_limit_externals_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/FeatureLimitExternals/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexFeatureLimitExternal', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_feature_limit_externals_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexFeatureLimitExternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_externals_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexFeatureLimitExternal instance. (required) + :param HyperflexFeatureLimitExternal body: hyperflexFeatureLimitExternal to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_feature_limit_externals_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.hyperflex_feature_limit_externals_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def hyperflex_feature_limit_externals_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexFeatureLimitExternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_externals_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexFeatureLimitExternal instance. (required) + :param HyperflexFeatureLimitExternal body: hyperflexFeatureLimitExternal to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_feature_limit_externals_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_feature_limit_externals_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_feature_limit_externals_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/FeatureLimitExternals/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_feature_limit_externals_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexFeatureLimitExternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_externals_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexFeatureLimitExternal instance. (required) + :param HyperflexFeatureLimitExternal body: hyperflexFeatureLimitExternal to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_feature_limit_externals_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.hyperflex_feature_limit_externals_moid_post_with_http_info(moid, body, **kwargs) + return data + + def hyperflex_feature_limit_externals_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexFeatureLimitExternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_externals_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexFeatureLimitExternal instance. (required) + :param HyperflexFeatureLimitExternal body: hyperflexFeatureLimitExternal to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_feature_limit_externals_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_feature_limit_externals_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_feature_limit_externals_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/FeatureLimitExternals/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_feature_limit_externals_post(self, body, **kwargs): + """ + Create an instance of 'hyperflexFeatureLimitExternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_externals_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param HyperflexFeatureLimitExternal body: hyperflexFeatureLimitExternal to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_feature_limit_externals_post_with_http_info(body, **kwargs) + else: + (data) = self.hyperflex_feature_limit_externals_post_with_http_info(body, **kwargs) + return data + + def hyperflex_feature_limit_externals_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'hyperflexFeatureLimitExternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_externals_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param HyperflexFeatureLimitExternal body: hyperflexFeatureLimitExternal to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_feature_limit_externals_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_feature_limit_externals_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/FeatureLimitExternals', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/hyperflex_feature_limit_internal_api.py b/intersight/apis/hyperflex_feature_limit_internal_api.py new file mode 100644 index 00000000..8481a769 --- /dev/null +++ b/intersight/apis/hyperflex_feature_limit_internal_api.py @@ -0,0 +1,712 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class HyperflexFeatureLimitInternalApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def hyperflex_feature_limit_internals_get(self, **kwargs): + """ + Get a list of 'hyperflexFeatureLimitInternal' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_internals_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HyperflexFeatureLimitInternalList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_feature_limit_internals_get_with_http_info(**kwargs) + else: + (data) = self.hyperflex_feature_limit_internals_get_with_http_info(**kwargs) + return data + + def hyperflex_feature_limit_internals_get_with_http_info(self, **kwargs): + """ + Get a list of 'hyperflexFeatureLimitInternal' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_internals_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HyperflexFeatureLimitInternalList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_feature_limit_internals_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/FeatureLimitInternals', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexFeatureLimitInternalList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_feature_limit_internals_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'hyperflexFeatureLimitInternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_internals_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexFeatureLimitInternal instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_feature_limit_internals_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.hyperflex_feature_limit_internals_moid_delete_with_http_info(moid, **kwargs) + return data + + def hyperflex_feature_limit_internals_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'hyperflexFeatureLimitInternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_internals_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexFeatureLimitInternal instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_feature_limit_internals_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_feature_limit_internals_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/FeatureLimitInternals/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_feature_limit_internals_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'hyperflexFeatureLimitInternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_internals_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexFeatureLimitInternal instance. (required) + :return: HyperflexFeatureLimitInternal + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_feature_limit_internals_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.hyperflex_feature_limit_internals_moid_get_with_http_info(moid, **kwargs) + return data + + def hyperflex_feature_limit_internals_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'hyperflexFeatureLimitInternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_internals_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexFeatureLimitInternal instance. (required) + :return: HyperflexFeatureLimitInternal + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_feature_limit_internals_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_feature_limit_internals_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/FeatureLimitInternals/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexFeatureLimitInternal', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_feature_limit_internals_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexFeatureLimitInternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_internals_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexFeatureLimitInternal instance. (required) + :param HyperflexFeatureLimitInternal body: hyperflexFeatureLimitInternal to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_feature_limit_internals_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.hyperflex_feature_limit_internals_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def hyperflex_feature_limit_internals_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexFeatureLimitInternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_internals_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexFeatureLimitInternal instance. (required) + :param HyperflexFeatureLimitInternal body: hyperflexFeatureLimitInternal to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_feature_limit_internals_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_feature_limit_internals_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_feature_limit_internals_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/FeatureLimitInternals/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_feature_limit_internals_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexFeatureLimitInternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_internals_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexFeatureLimitInternal instance. (required) + :param HyperflexFeatureLimitInternal body: hyperflexFeatureLimitInternal to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_feature_limit_internals_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.hyperflex_feature_limit_internals_moid_post_with_http_info(moid, body, **kwargs) + return data + + def hyperflex_feature_limit_internals_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexFeatureLimitInternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_internals_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexFeatureLimitInternal instance. (required) + :param HyperflexFeatureLimitInternal body: hyperflexFeatureLimitInternal to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_feature_limit_internals_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_feature_limit_internals_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_feature_limit_internals_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/FeatureLimitInternals/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_feature_limit_internals_post(self, body, **kwargs): + """ + Create an instance of 'hyperflexFeatureLimitInternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_internals_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param HyperflexFeatureLimitInternal body: hyperflexFeatureLimitInternal to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_feature_limit_internals_post_with_http_info(body, **kwargs) + else: + (data) = self.hyperflex_feature_limit_internals_post_with_http_info(body, **kwargs) + return data + + def hyperflex_feature_limit_internals_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'hyperflexFeatureLimitInternal' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_feature_limit_internals_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param HyperflexFeatureLimitInternal body: hyperflexFeatureLimitInternal to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_feature_limit_internals_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_feature_limit_internals_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/FeatureLimitInternals', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/hyperflex_hxdp_version_api.py b/intersight/apis/hyperflex_hxdp_version_api.py new file mode 100644 index 00000000..7524823b --- /dev/null +++ b/intersight/apis/hyperflex_hxdp_version_api.py @@ -0,0 +1,712 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class HyperflexHxdpVersionApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def hyperflex_hxdp_versions_get(self, **kwargs): + """ + Get a list of 'hyperflexHxdpVersion' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_hxdp_versions_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HyperflexHxdpVersionList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_hxdp_versions_get_with_http_info(**kwargs) + else: + (data) = self.hyperflex_hxdp_versions_get_with_http_info(**kwargs) + return data + + def hyperflex_hxdp_versions_get_with_http_info(self, **kwargs): + """ + Get a list of 'hyperflexHxdpVersion' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_hxdp_versions_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HyperflexHxdpVersionList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_hxdp_versions_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/HxdpVersions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexHxdpVersionList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_hxdp_versions_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'hyperflexHxdpVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_hxdp_versions_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexHxdpVersion instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_hxdp_versions_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.hyperflex_hxdp_versions_moid_delete_with_http_info(moid, **kwargs) + return data + + def hyperflex_hxdp_versions_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'hyperflexHxdpVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_hxdp_versions_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexHxdpVersion instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_hxdp_versions_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_hxdp_versions_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/HxdpVersions/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_hxdp_versions_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'hyperflexHxdpVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_hxdp_versions_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexHxdpVersion instance. (required) + :return: HyperflexHxdpVersion + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_hxdp_versions_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.hyperflex_hxdp_versions_moid_get_with_http_info(moid, **kwargs) + return data + + def hyperflex_hxdp_versions_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'hyperflexHxdpVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_hxdp_versions_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexHxdpVersion instance. (required) + :return: HyperflexHxdpVersion + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_hxdp_versions_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_hxdp_versions_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/HxdpVersions/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexHxdpVersion', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_hxdp_versions_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexHxdpVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_hxdp_versions_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexHxdpVersion instance. (required) + :param HyperflexHxdpVersion body: hyperflexHxdpVersion to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_hxdp_versions_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.hyperflex_hxdp_versions_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def hyperflex_hxdp_versions_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexHxdpVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_hxdp_versions_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexHxdpVersion instance. (required) + :param HyperflexHxdpVersion body: hyperflexHxdpVersion to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_hxdp_versions_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_hxdp_versions_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_hxdp_versions_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/HxdpVersions/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_hxdp_versions_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexHxdpVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_hxdp_versions_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexHxdpVersion instance. (required) + :param HyperflexHxdpVersion body: hyperflexHxdpVersion to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_hxdp_versions_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.hyperflex_hxdp_versions_moid_post_with_http_info(moid, body, **kwargs) + return data + + def hyperflex_hxdp_versions_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexHxdpVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_hxdp_versions_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexHxdpVersion instance. (required) + :param HyperflexHxdpVersion body: hyperflexHxdpVersion to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_hxdp_versions_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_hxdp_versions_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_hxdp_versions_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/HxdpVersions/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_hxdp_versions_post(self, body, **kwargs): + """ + Create an instance of 'hyperflexHxdpVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_hxdp_versions_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param HyperflexHxdpVersion body: hyperflexHxdpVersion to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_hxdp_versions_post_with_http_info(body, **kwargs) + else: + (data) = self.hyperflex_hxdp_versions_post_with_http_info(body, **kwargs) + return data + + def hyperflex_hxdp_versions_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'hyperflexHxdpVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_hxdp_versions_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param HyperflexHxdpVersion body: hyperflexHxdpVersion to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_hxdp_versions_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_hxdp_versions_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/HxdpVersions', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/hyperflex_local_credential_policy_api.py b/intersight/apis/hyperflex_local_credential_policy_api.py index b453bce7..b779d59b 100644 --- a/intersight/apis/hyperflex_local_credential_policy_api.py +++ b/intersight/apis/hyperflex_local_credential_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def hyperflex_local_credential_policies_get(self, **kwargs): """ - List of hyperflexLocalCredentialPolicies + Get a list of 'hyperflexLocalCredentialPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def hyperflex_local_credential_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexLocalCredentialPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def hyperflex_local_credential_policies_get(self, **kwargs): def hyperflex_local_credential_policies_get_with_http_info(self, **kwargs): """ - List of hyperflexLocalCredentialPolicies + Get a list of 'hyperflexLocalCredentialPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def hyperflex_local_credential_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexLocalCredentialPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def hyperflex_local_credential_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def hyperflex_local_credential_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def hyperflex_local_credential_policies_get_with_http_info(self, **kwargs): def hyperflex_local_credential_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of hyperflexLocalCredentialPolicy + Delete an instance of 'hyperflexLocalCredentialPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def hyperflex_local_credential_policies_moid_delete(self, moid, **kwargs): def hyperflex_local_credential_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of hyperflexLocalCredentialPolicy + Delete an instance of 'hyperflexLocalCredentialPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def hyperflex_local_credential_policies_moid_delete_with_http_info(self, moid, * def hyperflex_local_credential_policies_moid_get(self, moid, **kwargs): """ - A instance of hyperflexLocalCredentialPolicy + Get a specific instance of 'hyperflexLocalCredentialPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def hyperflex_local_credential_policies_moid_get(self, moid, **kwargs): def hyperflex_local_credential_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of hyperflexLocalCredentialPolicy + Get a specific instance of 'hyperflexLocalCredentialPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def hyperflex_local_credential_policies_moid_get_with_http_info(self, moid, **kw def hyperflex_local_credential_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of hyperflexLocalCredentialPolicy + Update an instance of 'hyperflexLocalCredentialPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def hyperflex_local_credential_policies_moid_patch(self, moid, body, **kwargs): def hyperflex_local_credential_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexLocalCredentialPolicy + Update an instance of 'hyperflexLocalCredentialPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def hyperflex_local_credential_policies_moid_patch_with_http_info(self, moid, bo def hyperflex_local_credential_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of hyperflexLocalCredentialPolicy + Update an instance of 'hyperflexLocalCredentialPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def hyperflex_local_credential_policies_moid_post(self, moid, body, **kwargs): def hyperflex_local_credential_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexLocalCredentialPolicy + Update an instance of 'hyperflexLocalCredentialPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def hyperflex_local_credential_policies_moid_post_with_http_info(self, moid, bod def hyperflex_local_credential_policies_post(self, body, **kwargs): """ - Create a hyperflexLocalCredentialPolicy + Create an instance of 'hyperflexLocalCredentialPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def hyperflex_local_credential_policies_post(self, body, **kwargs): def hyperflex_local_credential_policies_post_with_http_info(self, body, **kwargs): """ - Create a hyperflexLocalCredentialPolicy + Create an instance of 'hyperflexLocalCredentialPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/workflow_workflow_task_api.py b/intersight/apis/hyperflex_node_api.py similarity index 67% rename from intersight/apis/workflow_workflow_task_api.py rename to intersight/apis/hyperflex_node_api.py index fd79d57e..d9a96de1 100644 --- a/intersight/apis/workflow_workflow_task_api.py +++ b/intersight/apis/hyperflex_node_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -24,7 +24,7 @@ from ..api_client import ApiClient -class WorkflowWorkflowTaskApi(object): +class HyperflexNodeApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,67 +40,69 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def workflow_workflow_tasks_get(self, **kwargs): + def hyperflex_nodes_get(self, **kwargs): """ - List of workflowWorkflowTasks + Get a list of 'hyperflexNode' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.workflow_workflow_tasks_get(callback=callback_function) + >>> thread = api.hyperflex_nodes_get(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: WorkflowWorkflowTaskList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HyperflexNodeList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.workflow_workflow_tasks_get_with_http_info(**kwargs) + return self.hyperflex_nodes_get_with_http_info(**kwargs) else: - (data) = self.workflow_workflow_tasks_get_with_http_info(**kwargs) + (data) = self.hyperflex_nodes_get_with_http_info(**kwargs) return data - def workflow_workflow_tasks_get_with_http_info(self, **kwargs): + def hyperflex_nodes_get_with_http_info(self, **kwargs): """ - List of workflowWorkflowTasks + Get a list of 'hyperflexNode' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.workflow_workflow_tasks_get_with_http_info(callback=callback_function) + >>> thread = api.hyperflex_nodes_get_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: WorkflowWorkflowTaskList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HyperflexNodeList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -111,7 +113,7 @@ def workflow_workflow_tasks_get_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method workflow_workflow_tasks_get" % key + " to method hyperflex_nodes_get" % key ) params[key] = val del params['kwargs'] @@ -126,8 +128,6 @@ def workflow_workflow_tasks_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def workflow_workflow_tasks_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -158,14 +162,14 @@ def workflow_workflow_tasks_get_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/workflow/WorkflowTasks', 'GET', + return self.api_client.call_api('/hyperflex/Nodes', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='WorkflowWorkflowTaskList', + response_type='HyperflexNodeList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -173,46 +177,46 @@ def workflow_workflow_tasks_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def workflow_workflow_tasks_moid_get(self, moid, **kwargs): + def hyperflex_nodes_moid_get(self, moid, **kwargs): """ - A instance of workflowWorkflowTask + Get a specific instance of 'hyperflexNode' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.workflow_workflow_tasks_moid_get(moid, callback=callback_function) + >>> thread = api.hyperflex_nodes_moid_get(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the workflowWorkflowTask instance. (required) - :return: WorkflowWorkflowTask + :param str moid: The moid of the hyperflexNode instance. (required) + :return: HyperflexNode If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.workflow_workflow_tasks_moid_get_with_http_info(moid, **kwargs) + return self.hyperflex_nodes_moid_get_with_http_info(moid, **kwargs) else: - (data) = self.workflow_workflow_tasks_moid_get_with_http_info(moid, **kwargs) + (data) = self.hyperflex_nodes_moid_get_with_http_info(moid, **kwargs) return data - def workflow_workflow_tasks_moid_get_with_http_info(self, moid, **kwargs): + def hyperflex_nodes_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of workflowWorkflowTask + Get a specific instance of 'hyperflexNode' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.workflow_workflow_tasks_moid_get_with_http_info(moid, callback=callback_function) + >>> thread = api.hyperflex_nodes_moid_get_with_http_info(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the workflowWorkflowTask instance. (required) - :return: WorkflowWorkflowTask + :param str moid: The moid of the hyperflexNode instance. (required) + :return: HyperflexNode If the method is called asynchronously, returns the request thread. """ @@ -228,13 +232,13 @@ def workflow_workflow_tasks_moid_get_with_http_info(self, moid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method workflow_workflow_tasks_moid_get" % key + " to method hyperflex_nodes_moid_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `workflow_workflow_tasks_moid_get`") + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_nodes_moid_get`") collection_formats = {} @@ -262,14 +266,14 @@ def workflow_workflow_tasks_moid_get_with_http_info(self, moid, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/workflow/WorkflowTasks/{moid}', 'GET', + return self.api_client.call_api('/hyperflex/Nodes/{moid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='WorkflowWorkflowTask', + response_type='HyperflexNode', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/intersight/apis/hyperflex_node_config_policy_api.py b/intersight/apis/hyperflex_node_config_policy_api.py index 8f71cf73..90b4949c 100644 --- a/intersight/apis/hyperflex_node_config_policy_api.py +++ b/intersight/apis/hyperflex_node_config_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def hyperflex_node_config_policies_get(self, **kwargs): """ - List of hyperflexNodeConfigPolicies + Get a list of 'hyperflexNodeConfigPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def hyperflex_node_config_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexNodeConfigPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def hyperflex_node_config_policies_get(self, **kwargs): def hyperflex_node_config_policies_get_with_http_info(self, **kwargs): """ - List of hyperflexNodeConfigPolicies + Get a list of 'hyperflexNodeConfigPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def hyperflex_node_config_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexNodeConfigPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def hyperflex_node_config_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def hyperflex_node_config_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def hyperflex_node_config_policies_get_with_http_info(self, **kwargs): def hyperflex_node_config_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of hyperflexNodeConfigPolicy + Delete an instance of 'hyperflexNodeConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def hyperflex_node_config_policies_moid_delete(self, moid, **kwargs): def hyperflex_node_config_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of hyperflexNodeConfigPolicy + Delete an instance of 'hyperflexNodeConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def hyperflex_node_config_policies_moid_delete_with_http_info(self, moid, **kwar def hyperflex_node_config_policies_moid_get(self, moid, **kwargs): """ - A instance of hyperflexNodeConfigPolicy + Get a specific instance of 'hyperflexNodeConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def hyperflex_node_config_policies_moid_get(self, moid, **kwargs): def hyperflex_node_config_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of hyperflexNodeConfigPolicy + Get a specific instance of 'hyperflexNodeConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def hyperflex_node_config_policies_moid_get_with_http_info(self, moid, **kwargs) def hyperflex_node_config_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of hyperflexNodeConfigPolicy + Update an instance of 'hyperflexNodeConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def hyperflex_node_config_policies_moid_patch(self, moid, body, **kwargs): def hyperflex_node_config_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexNodeConfigPolicy + Update an instance of 'hyperflexNodeConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def hyperflex_node_config_policies_moid_patch_with_http_info(self, moid, body, * def hyperflex_node_config_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of hyperflexNodeConfigPolicy + Update an instance of 'hyperflexNodeConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def hyperflex_node_config_policies_moid_post(self, moid, body, **kwargs): def hyperflex_node_config_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexNodeConfigPolicy + Update an instance of 'hyperflexNodeConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def hyperflex_node_config_policies_moid_post_with_http_info(self, moid, body, ** def hyperflex_node_config_policies_post(self, body, **kwargs): """ - Create a hyperflexNodeConfigPolicy + Create an instance of 'hyperflexNodeConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def hyperflex_node_config_policies_post(self, body, **kwargs): def hyperflex_node_config_policies_post_with_http_info(self, body, **kwargs): """ - Create a hyperflexNodeConfigPolicy + Create an instance of 'hyperflexNodeConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/hyperflex_node_profile_api.py b/intersight/apis/hyperflex_node_profile_api.py index 40a3b5e0..fbea4836 100644 --- a/intersight/apis/hyperflex_node_profile_api.py +++ b/intersight/apis/hyperflex_node_profile_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def hyperflex_node_profiles_get(self, **kwargs): """ - List of hyperflexNodeProfiles + Get a list of 'hyperflexNodeProfile' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def hyperflex_node_profiles_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexNodeProfileList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def hyperflex_node_profiles_get(self, **kwargs): def hyperflex_node_profiles_get_with_http_info(self, **kwargs): """ - List of hyperflexNodeProfiles + Get a list of 'hyperflexNodeProfile' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def hyperflex_node_profiles_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexNodeProfileList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def hyperflex_node_profiles_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def hyperflex_node_profiles_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def hyperflex_node_profiles_get_with_http_info(self, **kwargs): def hyperflex_node_profiles_moid_delete(self, moid, **kwargs): """ - Delete an instance of hyperflexNodeProfile + Delete an instance of 'hyperflexNodeProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def hyperflex_node_profiles_moid_delete(self, moid, **kwargs): def hyperflex_node_profiles_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of hyperflexNodeProfile + Delete an instance of 'hyperflexNodeProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def hyperflex_node_profiles_moid_delete_with_http_info(self, moid, **kwargs): def hyperflex_node_profiles_moid_get(self, moid, **kwargs): """ - A instance of hyperflexNodeProfile + Get a specific instance of 'hyperflexNodeProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def hyperflex_node_profiles_moid_get(self, moid, **kwargs): def hyperflex_node_profiles_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of hyperflexNodeProfile + Get a specific instance of 'hyperflexNodeProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def hyperflex_node_profiles_moid_get_with_http_info(self, moid, **kwargs): def hyperflex_node_profiles_moid_patch(self, moid, body, **kwargs): """ - Update an instance of hyperflexNodeProfile + Update an instance of 'hyperflexNodeProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def hyperflex_node_profiles_moid_patch(self, moid, body, **kwargs): def hyperflex_node_profiles_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexNodeProfile + Update an instance of 'hyperflexNodeProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def hyperflex_node_profiles_moid_patch_with_http_info(self, moid, body, **kwargs def hyperflex_node_profiles_moid_post(self, moid, body, **kwargs): """ - Update an instance of hyperflexNodeProfile + Update an instance of 'hyperflexNodeProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def hyperflex_node_profiles_moid_post(self, moid, body, **kwargs): def hyperflex_node_profiles_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexNodeProfile + Update an instance of 'hyperflexNodeProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def hyperflex_node_profiles_moid_post_with_http_info(self, moid, body, **kwargs) def hyperflex_node_profiles_post(self, body, **kwargs): """ - Create a hyperflexNodeProfile + Create an instance of 'hyperflexNodeProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def hyperflex_node_profiles_post(self, body, **kwargs): def hyperflex_node_profiles_post_with_http_info(self, body, **kwargs): """ - Create a hyperflexNodeProfile + Create an instance of 'hyperflexNodeProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/hyperflex_proxy_setting_policy_api.py b/intersight/apis/hyperflex_proxy_setting_policy_api.py new file mode 100644 index 00000000..994056c9 --- /dev/null +++ b/intersight/apis/hyperflex_proxy_setting_policy_api.py @@ -0,0 +1,712 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class HyperflexProxySettingPolicyApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def hyperflex_proxy_setting_policies_get(self, **kwargs): + """ + Get a list of 'hyperflexProxySettingPolicy' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HyperflexProxySettingPolicyList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_proxy_setting_policies_get_with_http_info(**kwargs) + else: + (data) = self.hyperflex_proxy_setting_policies_get_with_http_info(**kwargs) + return data + + def hyperflex_proxy_setting_policies_get_with_http_info(self, **kwargs): + """ + Get a list of 'hyperflexProxySettingPolicy' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HyperflexProxySettingPolicyList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_proxy_setting_policies_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ProxySettingPolicies', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexProxySettingPolicyList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_proxy_setting_policies_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'hyperflexProxySettingPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexProxySettingPolicy instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_proxy_setting_policies_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.hyperflex_proxy_setting_policies_moid_delete_with_http_info(moid, **kwargs) + return data + + def hyperflex_proxy_setting_policies_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'hyperflexProxySettingPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexProxySettingPolicy instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_proxy_setting_policies_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_proxy_setting_policies_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ProxySettingPolicies/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_proxy_setting_policies_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'hyperflexProxySettingPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexProxySettingPolicy instance. (required) + :return: HyperflexProxySettingPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_proxy_setting_policies_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.hyperflex_proxy_setting_policies_moid_get_with_http_info(moid, **kwargs) + return data + + def hyperflex_proxy_setting_policies_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'hyperflexProxySettingPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexProxySettingPolicy instance. (required) + :return: HyperflexProxySettingPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_proxy_setting_policies_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_proxy_setting_policies_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ProxySettingPolicies/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexProxySettingPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_proxy_setting_policies_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexProxySettingPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexProxySettingPolicy instance. (required) + :param HyperflexProxySettingPolicy body: hyperflexProxySettingPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_proxy_setting_policies_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.hyperflex_proxy_setting_policies_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def hyperflex_proxy_setting_policies_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexProxySettingPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexProxySettingPolicy instance. (required) + :param HyperflexProxySettingPolicy body: hyperflexProxySettingPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_proxy_setting_policies_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_proxy_setting_policies_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_proxy_setting_policies_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ProxySettingPolicies/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_proxy_setting_policies_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexProxySettingPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexProxySettingPolicy instance. (required) + :param HyperflexProxySettingPolicy body: hyperflexProxySettingPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_proxy_setting_policies_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.hyperflex_proxy_setting_policies_moid_post_with_http_info(moid, body, **kwargs) + return data + + def hyperflex_proxy_setting_policies_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexProxySettingPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexProxySettingPolicy instance. (required) + :param HyperflexProxySettingPolicy body: hyperflexProxySettingPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_proxy_setting_policies_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_proxy_setting_policies_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_proxy_setting_policies_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ProxySettingPolicies/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_proxy_setting_policies_post(self, body, **kwargs): + """ + Create an instance of 'hyperflexProxySettingPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param HyperflexProxySettingPolicy body: hyperflexProxySettingPolicy to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_proxy_setting_policies_post_with_http_info(body, **kwargs) + else: + (data) = self.hyperflex_proxy_setting_policies_post_with_http_info(body, **kwargs) + return data + + def hyperflex_proxy_setting_policies_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'hyperflexProxySettingPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_proxy_setting_policies_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param HyperflexProxySettingPolicy body: hyperflexProxySettingPolicy to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_proxy_setting_policies_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_proxy_setting_policies_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ProxySettingPolicies', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/hyperflex_server_firmware_version_api.py b/intersight/apis/hyperflex_server_firmware_version_api.py new file mode 100644 index 00000000..27313479 --- /dev/null +++ b/intersight/apis/hyperflex_server_firmware_version_api.py @@ -0,0 +1,712 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class HyperflexServerFirmwareVersionApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def hyperflex_server_firmware_versions_get(self, **kwargs): + """ + Get a list of 'hyperflexServerFirmwareVersion' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_firmware_versions_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HyperflexServerFirmwareVersionList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_server_firmware_versions_get_with_http_info(**kwargs) + else: + (data) = self.hyperflex_server_firmware_versions_get_with_http_info(**kwargs) + return data + + def hyperflex_server_firmware_versions_get_with_http_info(self, **kwargs): + """ + Get a list of 'hyperflexServerFirmwareVersion' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_firmware_versions_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HyperflexServerFirmwareVersionList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_server_firmware_versions_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ServerFirmwareVersions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexServerFirmwareVersionList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_server_firmware_versions_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'hyperflexServerFirmwareVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_firmware_versions_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexServerFirmwareVersion instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_server_firmware_versions_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.hyperflex_server_firmware_versions_moid_delete_with_http_info(moid, **kwargs) + return data + + def hyperflex_server_firmware_versions_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'hyperflexServerFirmwareVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_firmware_versions_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexServerFirmwareVersion instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_server_firmware_versions_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_server_firmware_versions_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ServerFirmwareVersions/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_server_firmware_versions_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'hyperflexServerFirmwareVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_firmware_versions_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexServerFirmwareVersion instance. (required) + :return: HyperflexServerFirmwareVersion + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_server_firmware_versions_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.hyperflex_server_firmware_versions_moid_get_with_http_info(moid, **kwargs) + return data + + def hyperflex_server_firmware_versions_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'hyperflexServerFirmwareVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_firmware_versions_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexServerFirmwareVersion instance. (required) + :return: HyperflexServerFirmwareVersion + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_server_firmware_versions_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_server_firmware_versions_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ServerFirmwareVersions/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexServerFirmwareVersion', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_server_firmware_versions_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexServerFirmwareVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_firmware_versions_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexServerFirmwareVersion instance. (required) + :param HyperflexServerFirmwareVersion body: hyperflexServerFirmwareVersion to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_server_firmware_versions_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.hyperflex_server_firmware_versions_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def hyperflex_server_firmware_versions_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexServerFirmwareVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_firmware_versions_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexServerFirmwareVersion instance. (required) + :param HyperflexServerFirmwareVersion body: hyperflexServerFirmwareVersion to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_server_firmware_versions_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_server_firmware_versions_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_server_firmware_versions_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ServerFirmwareVersions/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_server_firmware_versions_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexServerFirmwareVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_firmware_versions_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexServerFirmwareVersion instance. (required) + :param HyperflexServerFirmwareVersion body: hyperflexServerFirmwareVersion to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_server_firmware_versions_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.hyperflex_server_firmware_versions_moid_post_with_http_info(moid, body, **kwargs) + return data + + def hyperflex_server_firmware_versions_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexServerFirmwareVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_firmware_versions_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexServerFirmwareVersion instance. (required) + :param HyperflexServerFirmwareVersion body: hyperflexServerFirmwareVersion to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_server_firmware_versions_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_server_firmware_versions_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_server_firmware_versions_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ServerFirmwareVersions/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_server_firmware_versions_post(self, body, **kwargs): + """ + Create an instance of 'hyperflexServerFirmwareVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_firmware_versions_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param HyperflexServerFirmwareVersion body: hyperflexServerFirmwareVersion to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_server_firmware_versions_post_with_http_info(body, **kwargs) + else: + (data) = self.hyperflex_server_firmware_versions_post_with_http_info(body, **kwargs) + return data + + def hyperflex_server_firmware_versions_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'hyperflexServerFirmwareVersion' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_firmware_versions_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param HyperflexServerFirmwareVersion body: hyperflexServerFirmwareVersion to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_server_firmware_versions_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_server_firmware_versions_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ServerFirmwareVersions', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/hyperflex_server_model_api.py b/intersight/apis/hyperflex_server_model_api.py new file mode 100644 index 00000000..54715b66 --- /dev/null +++ b/intersight/apis/hyperflex_server_model_api.py @@ -0,0 +1,712 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class HyperflexServerModelApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def hyperflex_server_models_get(self, **kwargs): + """ + Get a list of 'hyperflexServerModel' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_models_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HyperflexServerModelList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_server_models_get_with_http_info(**kwargs) + else: + (data) = self.hyperflex_server_models_get_with_http_info(**kwargs) + return data + + def hyperflex_server_models_get_with_http_info(self, **kwargs): + """ + Get a list of 'hyperflexServerModel' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_models_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: HyperflexServerModelList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_server_models_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ServerModels', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexServerModelList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_server_models_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'hyperflexServerModel' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_models_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexServerModel instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_server_models_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.hyperflex_server_models_moid_delete_with_http_info(moid, **kwargs) + return data + + def hyperflex_server_models_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'hyperflexServerModel' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_models_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexServerModel instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_server_models_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_server_models_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ServerModels/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_server_models_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'hyperflexServerModel' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_models_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexServerModel instance. (required) + :return: HyperflexServerModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_server_models_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.hyperflex_server_models_moid_get_with_http_info(moid, **kwargs) + return data + + def hyperflex_server_models_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'hyperflexServerModel' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_models_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexServerModel instance. (required) + :return: HyperflexServerModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_server_models_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_server_models_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ServerModels/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='HyperflexServerModel', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_server_models_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexServerModel' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_models_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexServerModel instance. (required) + :param HyperflexServerModel body: hyperflexServerModel to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_server_models_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.hyperflex_server_models_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def hyperflex_server_models_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexServerModel' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_models_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexServerModel instance. (required) + :param HyperflexServerModel body: hyperflexServerModel to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_server_models_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_server_models_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_server_models_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ServerModels/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_server_models_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexServerModel' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_models_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexServerModel instance. (required) + :param HyperflexServerModel body: hyperflexServerModel to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_server_models_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.hyperflex_server_models_moid_post_with_http_info(moid, body, **kwargs) + return data + + def hyperflex_server_models_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'hyperflexServerModel' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_models_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the hyperflexServerModel instance. (required) + :param HyperflexServerModel body: hyperflexServerModel to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_server_models_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `hyperflex_server_models_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_server_models_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ServerModels/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def hyperflex_server_models_post(self, body, **kwargs): + """ + Create an instance of 'hyperflexServerModel' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_models_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param HyperflexServerModel body: hyperflexServerModel to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.hyperflex_server_models_post_with_http_info(body, **kwargs) + else: + (data) = self.hyperflex_server_models_post_with_http_info(body, **kwargs) + return data + + def hyperflex_server_models_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'hyperflexServerModel' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.hyperflex_server_models_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param HyperflexServerModel body: hyperflexServerModel to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method hyperflex_server_models_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `hyperflex_server_models_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/hyperflex/ServerModels', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/hyperflex_sys_config_policy_api.py b/intersight/apis/hyperflex_sys_config_policy_api.py index 80f2f896..c155edce 100644 --- a/intersight/apis/hyperflex_sys_config_policy_api.py +++ b/intersight/apis/hyperflex_sys_config_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def hyperflex_sys_config_policies_get(self, **kwargs): """ - List of hyperflexSysConfigPolicies + Get a list of 'hyperflexSysConfigPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def hyperflex_sys_config_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexSysConfigPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def hyperflex_sys_config_policies_get(self, **kwargs): def hyperflex_sys_config_policies_get_with_http_info(self, **kwargs): """ - List of hyperflexSysConfigPolicies + Get a list of 'hyperflexSysConfigPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def hyperflex_sys_config_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexSysConfigPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def hyperflex_sys_config_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def hyperflex_sys_config_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def hyperflex_sys_config_policies_get_with_http_info(self, **kwargs): def hyperflex_sys_config_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of hyperflexSysConfigPolicy + Delete an instance of 'hyperflexSysConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def hyperflex_sys_config_policies_moid_delete(self, moid, **kwargs): def hyperflex_sys_config_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of hyperflexSysConfigPolicy + Delete an instance of 'hyperflexSysConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def hyperflex_sys_config_policies_moid_delete_with_http_info(self, moid, **kwarg def hyperflex_sys_config_policies_moid_get(self, moid, **kwargs): """ - A instance of hyperflexSysConfigPolicy + Get a specific instance of 'hyperflexSysConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def hyperflex_sys_config_policies_moid_get(self, moid, **kwargs): def hyperflex_sys_config_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of hyperflexSysConfigPolicy + Get a specific instance of 'hyperflexSysConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def hyperflex_sys_config_policies_moid_get_with_http_info(self, moid, **kwargs): def hyperflex_sys_config_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of hyperflexSysConfigPolicy + Update an instance of 'hyperflexSysConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def hyperflex_sys_config_policies_moid_patch(self, moid, body, **kwargs): def hyperflex_sys_config_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexSysConfigPolicy + Update an instance of 'hyperflexSysConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def hyperflex_sys_config_policies_moid_patch_with_http_info(self, moid, body, ** def hyperflex_sys_config_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of hyperflexSysConfigPolicy + Update an instance of 'hyperflexSysConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def hyperflex_sys_config_policies_moid_post(self, moid, body, **kwargs): def hyperflex_sys_config_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexSysConfigPolicy + Update an instance of 'hyperflexSysConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def hyperflex_sys_config_policies_moid_post_with_http_info(self, moid, body, **k def hyperflex_sys_config_policies_post(self, body, **kwargs): """ - Create a hyperflexSysConfigPolicy + Create an instance of 'hyperflexSysConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def hyperflex_sys_config_policies_post(self, body, **kwargs): def hyperflex_sys_config_policies_post_with_http_info(self, body, **kwargs): """ - Create a hyperflexSysConfigPolicy + Create an instance of 'hyperflexSysConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/hyperflex_ucsm_config_policy_api.py b/intersight/apis/hyperflex_ucsm_config_policy_api.py index 0ee99144..4336e7b5 100644 --- a/intersight/apis/hyperflex_ucsm_config_policy_api.py +++ b/intersight/apis/hyperflex_ucsm_config_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def hyperflex_ucsm_config_policies_get(self, **kwargs): """ - List of hyperflexUcsmConfigPolicies + Get a list of 'hyperflexUcsmConfigPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def hyperflex_ucsm_config_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexUcsmConfigPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def hyperflex_ucsm_config_policies_get(self, **kwargs): def hyperflex_ucsm_config_policies_get_with_http_info(self, **kwargs): """ - List of hyperflexUcsmConfigPolicies + Get a list of 'hyperflexUcsmConfigPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def hyperflex_ucsm_config_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexUcsmConfigPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def hyperflex_ucsm_config_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def hyperflex_ucsm_config_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def hyperflex_ucsm_config_policies_get_with_http_info(self, **kwargs): def hyperflex_ucsm_config_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of hyperflexUcsmConfigPolicy + Delete an instance of 'hyperflexUcsmConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def hyperflex_ucsm_config_policies_moid_delete(self, moid, **kwargs): def hyperflex_ucsm_config_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of hyperflexUcsmConfigPolicy + Delete an instance of 'hyperflexUcsmConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def hyperflex_ucsm_config_policies_moid_delete_with_http_info(self, moid, **kwar def hyperflex_ucsm_config_policies_moid_get(self, moid, **kwargs): """ - A instance of hyperflexUcsmConfigPolicy + Get a specific instance of 'hyperflexUcsmConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def hyperflex_ucsm_config_policies_moid_get(self, moid, **kwargs): def hyperflex_ucsm_config_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of hyperflexUcsmConfigPolicy + Get a specific instance of 'hyperflexUcsmConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def hyperflex_ucsm_config_policies_moid_get_with_http_info(self, moid, **kwargs) def hyperflex_ucsm_config_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of hyperflexUcsmConfigPolicy + Update an instance of 'hyperflexUcsmConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def hyperflex_ucsm_config_policies_moid_patch(self, moid, body, **kwargs): def hyperflex_ucsm_config_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexUcsmConfigPolicy + Update an instance of 'hyperflexUcsmConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def hyperflex_ucsm_config_policies_moid_patch_with_http_info(self, moid, body, * def hyperflex_ucsm_config_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of hyperflexUcsmConfigPolicy + Update an instance of 'hyperflexUcsmConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def hyperflex_ucsm_config_policies_moid_post(self, moid, body, **kwargs): def hyperflex_ucsm_config_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexUcsmConfigPolicy + Update an instance of 'hyperflexUcsmConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def hyperflex_ucsm_config_policies_moid_post_with_http_info(self, moid, body, ** def hyperflex_ucsm_config_policies_post(self, body, **kwargs): """ - Create a hyperflexUcsmConfigPolicy + Create an instance of 'hyperflexUcsmConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def hyperflex_ucsm_config_policies_post(self, body, **kwargs): def hyperflex_ucsm_config_policies_post_with_http_info(self, body, **kwargs): """ - Create a hyperflexUcsmConfigPolicy + Create an instance of 'hyperflexUcsmConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/hyperflex_vcenter_config_policy_api.py b/intersight/apis/hyperflex_vcenter_config_policy_api.py index bc816c68..476183a1 100644 --- a/intersight/apis/hyperflex_vcenter_config_policy_api.py +++ b/intersight/apis/hyperflex_vcenter_config_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def hyperflex_vcenter_config_policies_get(self, **kwargs): """ - List of hyperflexVcenterConfigPolicies + Get a list of 'hyperflexVcenterConfigPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def hyperflex_vcenter_config_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexVcenterConfigPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def hyperflex_vcenter_config_policies_get(self, **kwargs): def hyperflex_vcenter_config_policies_get_with_http_info(self, **kwargs): """ - List of hyperflexVcenterConfigPolicies + Get a list of 'hyperflexVcenterConfigPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def hyperflex_vcenter_config_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: HyperflexVcenterConfigPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def hyperflex_vcenter_config_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def hyperflex_vcenter_config_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def hyperflex_vcenter_config_policies_get_with_http_info(self, **kwargs): def hyperflex_vcenter_config_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of hyperflexVcenterConfigPolicy + Delete an instance of 'hyperflexVcenterConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def hyperflex_vcenter_config_policies_moid_delete(self, moid, **kwargs): def hyperflex_vcenter_config_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of hyperflexVcenterConfigPolicy + Delete an instance of 'hyperflexVcenterConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def hyperflex_vcenter_config_policies_moid_delete_with_http_info(self, moid, **k def hyperflex_vcenter_config_policies_moid_get(self, moid, **kwargs): """ - A instance of hyperflexVcenterConfigPolicy + Get a specific instance of 'hyperflexVcenterConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def hyperflex_vcenter_config_policies_moid_get(self, moid, **kwargs): def hyperflex_vcenter_config_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of hyperflexVcenterConfigPolicy + Get a specific instance of 'hyperflexVcenterConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def hyperflex_vcenter_config_policies_moid_get_with_http_info(self, moid, **kwar def hyperflex_vcenter_config_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of hyperflexVcenterConfigPolicy + Update an instance of 'hyperflexVcenterConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def hyperflex_vcenter_config_policies_moid_patch(self, moid, body, **kwargs): def hyperflex_vcenter_config_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexVcenterConfigPolicy + Update an instance of 'hyperflexVcenterConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def hyperflex_vcenter_config_policies_moid_patch_with_http_info(self, moid, body def hyperflex_vcenter_config_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of hyperflexVcenterConfigPolicy + Update an instance of 'hyperflexVcenterConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def hyperflex_vcenter_config_policies_moid_post(self, moid, body, **kwargs): def hyperflex_vcenter_config_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of hyperflexVcenterConfigPolicy + Update an instance of 'hyperflexVcenterConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def hyperflex_vcenter_config_policies_moid_post_with_http_info(self, moid, body, def hyperflex_vcenter_config_policies_post(self, body, **kwargs): """ - Create a hyperflexVcenterConfigPolicy + Create an instance of 'hyperflexVcenterConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def hyperflex_vcenter_config_policies_post(self, body, **kwargs): def hyperflex_vcenter_config_policies_post_with_http_info(self, body, **kwargs): """ - Create a hyperflexVcenterConfigPolicy + Create an instance of 'hyperflexVcenterConfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iaas_connector_pack_api.py b/intersight/apis/iaas_connector_pack_api.py new file mode 100644 index 00000000..33a12a6f --- /dev/null +++ b/intersight/apis/iaas_connector_pack_api.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class IaasConnectorPackApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def iaas_connector_packs_get(self, **kwargs): + """ + Get a list of 'iaasConnectorPack' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_connector_packs_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: IaasConnectorPackList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iaas_connector_packs_get_with_http_info(**kwargs) + else: + (data) = self.iaas_connector_packs_get_with_http_info(**kwargs) + return data + + def iaas_connector_packs_get_with_http_info(self, **kwargs): + """ + Get a list of 'iaasConnectorPack' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_connector_packs_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: IaasConnectorPackList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iaas_connector_packs_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iaas/ConnectorPacks', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='IaasConnectorPackList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def iaas_connector_packs_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'iaasConnectorPack' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_connector_packs_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iaasConnectorPack instance. (required) + :return: IaasConnectorPack + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iaas_connector_packs_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.iaas_connector_packs_moid_get_with_http_info(moid, **kwargs) + return data + + def iaas_connector_packs_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'iaasConnectorPack' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_connector_packs_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iaasConnectorPack instance. (required) + :return: IaasConnectorPack + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iaas_connector_packs_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iaas_connector_packs_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iaas/ConnectorPacks/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='IaasConnectorPack', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/iaas_device_status_api.py b/intersight/apis/iaas_device_status_api.py new file mode 100644 index 00000000..ba686a72 --- /dev/null +++ b/intersight/apis/iaas_device_status_api.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class IaasDeviceStatusApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def iaas_device_statuses_get(self, **kwargs): + """ + Get a list of 'iaasDeviceStatus' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_device_statuses_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: IaasDeviceStatusList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iaas_device_statuses_get_with_http_info(**kwargs) + else: + (data) = self.iaas_device_statuses_get_with_http_info(**kwargs) + return data + + def iaas_device_statuses_get_with_http_info(self, **kwargs): + """ + Get a list of 'iaasDeviceStatus' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_device_statuses_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: IaasDeviceStatusList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iaas_device_statuses_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iaas/DeviceStatuses', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='IaasDeviceStatusList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def iaas_device_statuses_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'iaasDeviceStatus' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_device_statuses_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iaasDeviceStatus instance. (required) + :return: IaasDeviceStatus + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iaas_device_statuses_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.iaas_device_statuses_moid_get_with_http_info(moid, **kwargs) + return data + + def iaas_device_statuses_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'iaasDeviceStatus' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_device_statuses_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iaasDeviceStatus instance. (required) + :return: IaasDeviceStatus + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iaas_device_statuses_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iaas_device_statuses_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iaas/DeviceStatuses/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='IaasDeviceStatus', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/policy_policy_meta_api.py b/intersight/apis/iaas_license_info_api.py similarity index 68% rename from intersight/apis/policy_policy_meta_api.py rename to intersight/apis/iaas_license_info_api.py index fc2580b9..cd41ffd4 100644 --- a/intersight/apis/policy_policy_meta_api.py +++ b/intersight/apis/iaas_license_info_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -24,7 +24,7 @@ from ..api_client import ApiClient -class PolicyPolicyMetaApi(object): +class IaasLicenseInfoApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,67 +40,69 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def policy_policy_meta_get(self, **kwargs): + def iaas_license_infos_get(self, **kwargs): """ - List of policyPolicyMeta + Get a list of 'iaasLicenseInfo' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.policy_policy_meta_get(callback=callback_function) + >>> thread = api.iaas_license_infos_get(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: PolicyPolicyMetaList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: IaasLicenseInfoList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.policy_policy_meta_get_with_http_info(**kwargs) + return self.iaas_license_infos_get_with_http_info(**kwargs) else: - (data) = self.policy_policy_meta_get_with_http_info(**kwargs) + (data) = self.iaas_license_infos_get_with_http_info(**kwargs) return data - def policy_policy_meta_get_with_http_info(self, **kwargs): + def iaas_license_infos_get_with_http_info(self, **kwargs): """ - List of policyPolicyMeta + Get a list of 'iaasLicenseInfo' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.policy_policy_meta_get_with_http_info(callback=callback_function) + >>> thread = api.iaas_license_infos_get_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: PolicyPolicyMetaList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: IaasLicenseInfoList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -111,7 +113,7 @@ def policy_policy_meta_get_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method policy_policy_meta_get" % key + " to method iaas_license_infos_get" % key ) params[key] = val del params['kwargs'] @@ -126,8 +128,6 @@ def policy_policy_meta_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def policy_policy_meta_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -158,14 +162,14 @@ def policy_policy_meta_get_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/policy/PolicyMeta', 'GET', + return self.api_client.call_api('/iaas/LicenseInfos', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='PolicyPolicyMetaList', + response_type='IaasLicenseInfoList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -173,46 +177,46 @@ def policy_policy_meta_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def policy_policy_meta_moid_get(self, moid, **kwargs): + def iaas_license_infos_moid_get(self, moid, **kwargs): """ - A instance of policyPolicyMeta + Get a specific instance of 'iaasLicenseInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.policy_policy_meta_moid_get(moid, callback=callback_function) + >>> thread = api.iaas_license_infos_moid_get(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the policyPolicyMeta instance. (required) - :return: PolicyPolicyMeta + :param str moid: The moid of the iaasLicenseInfo instance. (required) + :return: IaasLicenseInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.policy_policy_meta_moid_get_with_http_info(moid, **kwargs) + return self.iaas_license_infos_moid_get_with_http_info(moid, **kwargs) else: - (data) = self.policy_policy_meta_moid_get_with_http_info(moid, **kwargs) + (data) = self.iaas_license_infos_moid_get_with_http_info(moid, **kwargs) return data - def policy_policy_meta_moid_get_with_http_info(self, moid, **kwargs): + def iaas_license_infos_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of policyPolicyMeta + Get a specific instance of 'iaasLicenseInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.policy_policy_meta_moid_get_with_http_info(moid, callback=callback_function) + >>> thread = api.iaas_license_infos_moid_get_with_http_info(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the policyPolicyMeta instance. (required) - :return: PolicyPolicyMeta + :param str moid: The moid of the iaasLicenseInfo instance. (required) + :return: IaasLicenseInfo If the method is called asynchronously, returns the request thread. """ @@ -228,13 +232,13 @@ def policy_policy_meta_moid_get_with_http_info(self, moid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method policy_policy_meta_moid_get" % key + " to method iaas_license_infos_moid_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `policy_policy_meta_moid_get`") + raise ValueError("Missing the required parameter `moid` when calling `iaas_license_infos_moid_get`") collection_formats = {} @@ -262,14 +266,14 @@ def policy_policy_meta_moid_get_with_http_info(self, moid, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/policy/PolicyMeta/{moid}', 'GET', + return self.api_client.call_api('/iaas/LicenseInfos/{moid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='PolicyPolicyMeta', + response_type='IaasLicenseInfo', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/intersight/apis/hcl_compatibility_info_api.py b/intersight/apis/iaas_most_run_tasks_api.py similarity index 67% rename from intersight/apis/hcl_compatibility_info_api.py rename to intersight/apis/iaas_most_run_tasks_api.py index 0ca730d5..71421ff4 100644 --- a/intersight/apis/hcl_compatibility_info_api.py +++ b/intersight/apis/iaas_most_run_tasks_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -24,7 +24,7 @@ from ..api_client import ApiClient -class HclCompatibilityInfoApi(object): +class IaasMostRunTasksApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,67 +40,69 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def hcl_compatibility_infos_get(self, **kwargs): + def iaas_most_run_tasks_get(self, **kwargs): """ - List of hclCompatibilityInfos + Get a list of 'iaasMostRunTasks' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.hcl_compatibility_infos_get(callback=callback_function) + >>> thread = api.iaas_most_run_tasks_get(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: HclCompatibilityInfoList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: IaasMostRunTasksList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.hcl_compatibility_infos_get_with_http_info(**kwargs) + return self.iaas_most_run_tasks_get_with_http_info(**kwargs) else: - (data) = self.hcl_compatibility_infos_get_with_http_info(**kwargs) + (data) = self.iaas_most_run_tasks_get_with_http_info(**kwargs) return data - def hcl_compatibility_infos_get_with_http_info(self, **kwargs): + def iaas_most_run_tasks_get_with_http_info(self, **kwargs): """ - List of hclCompatibilityInfos + Get a list of 'iaasMostRunTasks' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.hcl_compatibility_infos_get_with_http_info(callback=callback_function) + >>> thread = api.iaas_most_run_tasks_get_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: HclCompatibilityInfoList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: IaasMostRunTasksList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -111,7 +113,7 @@ def hcl_compatibility_infos_get_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method hcl_compatibility_infos_get" % key + " to method iaas_most_run_tasks_get" % key ) params[key] = val del params['kwargs'] @@ -126,8 +128,6 @@ def hcl_compatibility_infos_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def hcl_compatibility_infos_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -158,14 +162,14 @@ def hcl_compatibility_infos_get_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/hcl/CompatibilityInfos', 'GET', + return self.api_client.call_api('/iaas/MostRunTasks', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HclCompatibilityInfoList', + response_type='IaasMostRunTasksList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -173,46 +177,46 @@ def hcl_compatibility_infos_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def hcl_compatibility_infos_moid_get(self, moid, **kwargs): + def iaas_most_run_tasks_moid_get(self, moid, **kwargs): """ - A instance of hclCompatibilityInfo + Get a specific instance of 'iaasMostRunTasks' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.hcl_compatibility_infos_moid_get(moid, callback=callback_function) + >>> thread = api.iaas_most_run_tasks_moid_get(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the hclCompatibilityInfo instance. (required) - :return: HclCompatibilityInfo + :param str moid: The moid of the iaasMostRunTasks instance. (required) + :return: IaasMostRunTasks If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.hcl_compatibility_infos_moid_get_with_http_info(moid, **kwargs) + return self.iaas_most_run_tasks_moid_get_with_http_info(moid, **kwargs) else: - (data) = self.hcl_compatibility_infos_moid_get_with_http_info(moid, **kwargs) + (data) = self.iaas_most_run_tasks_moid_get_with_http_info(moid, **kwargs) return data - def hcl_compatibility_infos_moid_get_with_http_info(self, moid, **kwargs): + def iaas_most_run_tasks_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of hclCompatibilityInfo + Get a specific instance of 'iaasMostRunTasks' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.hcl_compatibility_infos_moid_get_with_http_info(moid, callback=callback_function) + >>> thread = api.iaas_most_run_tasks_moid_get_with_http_info(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the hclCompatibilityInfo instance. (required) - :return: HclCompatibilityInfo + :param str moid: The moid of the iaasMostRunTasks instance. (required) + :return: IaasMostRunTasks If the method is called asynchronously, returns the request thread. """ @@ -228,13 +232,13 @@ def hcl_compatibility_infos_moid_get_with_http_info(self, moid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method hcl_compatibility_infos_moid_get" % key + " to method iaas_most_run_tasks_moid_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `hcl_compatibility_infos_moid_get`") + raise ValueError("Missing the required parameter `moid` when calling `iaas_most_run_tasks_moid_get`") collection_formats = {} @@ -262,14 +266,14 @@ def hcl_compatibility_infos_moid_get_with_http_info(self, moid, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/hcl/CompatibilityInfos/{moid}', 'GET', + return self.api_client.call_api('/iaas/MostRunTasks/{moid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HclCompatibilityInfo', + response_type='IaasMostRunTasks', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/intersight/apis/cond_hcl_status_action_api.py b/intersight/apis/iaas_ucsd_info_api.py similarity index 68% rename from intersight/apis/cond_hcl_status_action_api.py rename to intersight/apis/iaas_ucsd_info_api.py index b4b04cd4..c5d762d5 100644 --- a/intersight/apis/cond_hcl_status_action_api.py +++ b/intersight/apis/iaas_ucsd_info_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -24,7 +24,7 @@ from ..api_client import ApiClient -class CondHclStatusActionApi(object): +class IaasUcsdInfoApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,67 +40,69 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def cond_hcl_status_actions_get(self, **kwargs): + def iaas_ucsd_infos_get(self, **kwargs): """ - List of condHclStatusActions + Get a list of 'iaasUcsdInfo' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.cond_hcl_status_actions_get(callback=callback_function) + >>> thread = api.iaas_ucsd_infos_get(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: CondHclStatusActionList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: IaasUcsdInfoList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.cond_hcl_status_actions_get_with_http_info(**kwargs) + return self.iaas_ucsd_infos_get_with_http_info(**kwargs) else: - (data) = self.cond_hcl_status_actions_get_with_http_info(**kwargs) + (data) = self.iaas_ucsd_infos_get_with_http_info(**kwargs) return data - def cond_hcl_status_actions_get_with_http_info(self, **kwargs): + def iaas_ucsd_infos_get_with_http_info(self, **kwargs): """ - List of condHclStatusActions + Get a list of 'iaasUcsdInfo' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.cond_hcl_status_actions_get_with_http_info(callback=callback_function) + >>> thread = api.iaas_ucsd_infos_get_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: CondHclStatusActionList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: IaasUcsdInfoList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -111,7 +113,7 @@ def cond_hcl_status_actions_get_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method cond_hcl_status_actions_get" % key + " to method iaas_ucsd_infos_get" % key ) params[key] = val del params['kwargs'] @@ -126,8 +128,6 @@ def cond_hcl_status_actions_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def cond_hcl_status_actions_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -158,14 +162,14 @@ def cond_hcl_status_actions_get_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/cond/HclStatusActions', 'GET', + return self.api_client.call_api('/iaas/UcsdInfos', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='CondHclStatusActionList', + response_type='IaasUcsdInfoList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -173,46 +177,46 @@ def cond_hcl_status_actions_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def cond_hcl_status_actions_moid_get(self, moid, **kwargs): + def iaas_ucsd_infos_moid_get(self, moid, **kwargs): """ - A instance of condHclStatusAction + Get a specific instance of 'iaasUcsdInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.cond_hcl_status_actions_moid_get(moid, callback=callback_function) + >>> thread = api.iaas_ucsd_infos_moid_get(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the condHclStatusAction instance. (required) - :return: CondHclStatusAction + :param str moid: The moid of the iaasUcsdInfo instance. (required) + :return: IaasUcsdInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.cond_hcl_status_actions_moid_get_with_http_info(moid, **kwargs) + return self.iaas_ucsd_infos_moid_get_with_http_info(moid, **kwargs) else: - (data) = self.cond_hcl_status_actions_moid_get_with_http_info(moid, **kwargs) + (data) = self.iaas_ucsd_infos_moid_get_with_http_info(moid, **kwargs) return data - def cond_hcl_status_actions_moid_get_with_http_info(self, moid, **kwargs): + def iaas_ucsd_infos_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of condHclStatusAction + Get a specific instance of 'iaasUcsdInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.cond_hcl_status_actions_moid_get_with_http_info(moid, callback=callback_function) + >>> thread = api.iaas_ucsd_infos_moid_get_with_http_info(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the condHclStatusAction instance. (required) - :return: CondHclStatusAction + :param str moid: The moid of the iaasUcsdInfo instance. (required) + :return: IaasUcsdInfo If the method is called asynchronously, returns the request thread. """ @@ -228,13 +232,13 @@ def cond_hcl_status_actions_moid_get_with_http_info(self, moid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method cond_hcl_status_actions_moid_get" % key + " to method iaas_ucsd_infos_moid_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `cond_hcl_status_actions_moid_get`") + raise ValueError("Missing the required parameter `moid` when calling `iaas_ucsd_infos_moid_get`") collection_formats = {} @@ -262,14 +266,14 @@ def cond_hcl_status_actions_moid_get_with_http_info(self, moid, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/cond/HclStatusActions/{moid}', 'GET', + return self.api_client.call_api('/iaas/UcsdInfos/{moid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='CondHclStatusAction', + response_type='IaasUcsdInfo', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/intersight/apis/iaas_ucsd_managed_infra_api.py b/intersight/apis/iaas_ucsd_managed_infra_api.py new file mode 100644 index 00000000..247626ca --- /dev/null +++ b/intersight/apis/iaas_ucsd_managed_infra_api.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class IaasUcsdManagedInfraApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def iaas_ucsd_managed_infras_get(self, **kwargs): + """ + Get a list of 'iaasUcsdManagedInfra' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_ucsd_managed_infras_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: IaasUcsdManagedInfraList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iaas_ucsd_managed_infras_get_with_http_info(**kwargs) + else: + (data) = self.iaas_ucsd_managed_infras_get_with_http_info(**kwargs) + return data + + def iaas_ucsd_managed_infras_get_with_http_info(self, **kwargs): + """ + Get a list of 'iaasUcsdManagedInfra' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_ucsd_managed_infras_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: IaasUcsdManagedInfraList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iaas_ucsd_managed_infras_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iaas/UcsdManagedInfras', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='IaasUcsdManagedInfraList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def iaas_ucsd_managed_infras_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'iaasUcsdManagedInfra' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_ucsd_managed_infras_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iaasUcsdManagedInfra instance. (required) + :return: IaasUcsdManagedInfra + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iaas_ucsd_managed_infras_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.iaas_ucsd_managed_infras_moid_get_with_http_info(moid, **kwargs) + return data + + def iaas_ucsd_managed_infras_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'iaasUcsdManagedInfra' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iaas_ucsd_managed_infras_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iaasUcsdManagedInfra instance. (required) + :return: IaasUcsdManagedInfra + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iaas_ucsd_managed_infras_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iaas_ucsd_managed_infras_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iaas/UcsdManagedInfras/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='IaasUcsdManagedInfra', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/iam_account_api.py b/intersight/apis/iam_account_api.py index 5d411155..62cebf10 100644 --- a/intersight/apis/iam_account_api.py +++ b/intersight/apis/iam_account_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_accounts_get(self, **kwargs): """ - List of iamAccounts + Get a list of 'iamAccount' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_accounts_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamAccountList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_accounts_get(self, **kwargs): def iam_accounts_get_with_http_info(self, **kwargs): """ - List of iamAccounts + Get a list of 'iamAccount' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_accounts_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamAccountList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_accounts_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_accounts_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_accounts_get_with_http_info(self, **kwargs): def iam_accounts_moid_delete(self, moid, **kwargs): """ - Delete an instance of iamAccount + Delete an instance of 'iamAccount' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_accounts_moid_delete(self, moid, **kwargs): def iam_accounts_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of iamAccount + Delete an instance of 'iamAccount' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def iam_accounts_moid_delete_with_http_info(self, moid, **kwargs): def iam_accounts_moid_get(self, moid, **kwargs): """ - A instance of iamAccount + Get a specific instance of 'iamAccount' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def iam_accounts_moid_get(self, moid, **kwargs): def iam_accounts_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamAccount + Get a specific instance of 'iamAccount' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -381,9 +385,231 @@ def iam_accounts_moid_get_with_http_info(self, moid, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def iam_accounts_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'iamAccount' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_accounts_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamAccount instance. (required) + :param IamAccount body: iamAccount to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iam_accounts_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.iam_accounts_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def iam_accounts_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'iamAccount' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_accounts_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamAccount instance. (required) + :param IamAccount body: iamAccount to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iam_accounts_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iam_accounts_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `iam_accounts_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iam/Accounts/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def iam_accounts_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'iamAccount' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_accounts_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamAccount instance. (required) + :param IamAccount body: iamAccount to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iam_accounts_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.iam_accounts_moid_post_with_http_info(moid, body, **kwargs) + return data + + def iam_accounts_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'iamAccount' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_accounts_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamAccount instance. (required) + :param IamAccount body: iamAccount to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iam_accounts_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iam_accounts_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `iam_accounts_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iam/Accounts/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def iam_accounts_post(self, body, **kwargs): """ - Create a iamAccount + Create an instance of 'iamAccount' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -408,7 +634,7 @@ def iam_accounts_post(self, body, **kwargs): def iam_accounts_post_with_http_info(self, body, **kwargs): """ - Create a iamAccount + Create an instance of 'iamAccount' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iam_api_key_api.py b/intersight/apis/iam_api_key_api.py index 998e136b..36cb20fa 100644 --- a/intersight/apis/iam_api_key_api.py +++ b/intersight/apis/iam_api_key_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_api_keys_get(self, **kwargs): """ - List of iamApiKeys + Get a list of 'iamApiKey' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_api_keys_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamApiKeyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_api_keys_get(self, **kwargs): def iam_api_keys_get_with_http_info(self, **kwargs): """ - List of iamApiKeys + Get a list of 'iamApiKey' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_api_keys_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamApiKeyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_api_keys_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_api_keys_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_api_keys_get_with_http_info(self, **kwargs): def iam_api_keys_moid_delete(self, moid, **kwargs): """ - Delete an instance of iamApiKey + Delete an instance of 'iamApiKey' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_api_keys_moid_delete(self, moid, **kwargs): def iam_api_keys_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of iamApiKey + Delete an instance of 'iamApiKey' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def iam_api_keys_moid_delete_with_http_info(self, moid, **kwargs): def iam_api_keys_moid_get(self, moid, **kwargs): """ - A instance of iamApiKey + Get a specific instance of 'iamApiKey' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def iam_api_keys_moid_get(self, moid, **kwargs): def iam_api_keys_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamApiKey + Get a specific instance of 'iamApiKey' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def iam_api_keys_moid_get_with_http_info(self, moid, **kwargs): def iam_api_keys_moid_patch(self, moid, body, **kwargs): """ - Update an instance of iamApiKey + Update an instance of 'iamApiKey' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def iam_api_keys_moid_patch(self, moid, body, **kwargs): def iam_api_keys_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of iamApiKey + Update an instance of 'iamApiKey' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def iam_api_keys_moid_patch_with_http_info(self, moid, body, **kwargs): def iam_api_keys_moid_post(self, moid, body, **kwargs): """ - Update an instance of iamApiKey + Update an instance of 'iamApiKey' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def iam_api_keys_moid_post(self, moid, body, **kwargs): def iam_api_keys_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of iamApiKey + Update an instance of 'iamApiKey' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def iam_api_keys_moid_post_with_http_info(self, moid, body, **kwargs): def iam_api_keys_post(self, body, **kwargs): """ - Create a iamApiKey + Create an instance of 'iamApiKey' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def iam_api_keys_post(self, body, **kwargs): def iam_api_keys_post_with_http_info(self, body, **kwargs): """ - Create a iamApiKey + Create an instance of 'iamApiKey' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/hcl_note_api.py b/intersight/apis/iam_domain_group_api.py similarity index 67% rename from intersight/apis/hcl_note_api.py rename to intersight/apis/iam_domain_group_api.py index 99aa1ef0..8bf0fafd 100644 --- a/intersight/apis/hcl_note_api.py +++ b/intersight/apis/iam_domain_group_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -24,7 +24,7 @@ from ..api_client import ApiClient -class HclNoteApi(object): +class IamDomainGroupApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,67 +40,69 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def hcl_notes_get(self, **kwargs): + def iam_domain_groups_get(self, **kwargs): """ - List of hclNotes + Get a list of 'iamDomainGroup' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.hcl_notes_get(callback=callback_function) + >>> thread = api.iam_domain_groups_get(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: HclNoteList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: IamDomainGroupList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.hcl_notes_get_with_http_info(**kwargs) + return self.iam_domain_groups_get_with_http_info(**kwargs) else: - (data) = self.hcl_notes_get_with_http_info(**kwargs) + (data) = self.iam_domain_groups_get_with_http_info(**kwargs) return data - def hcl_notes_get_with_http_info(self, **kwargs): + def iam_domain_groups_get_with_http_info(self, **kwargs): """ - List of hclNotes + Get a list of 'iamDomainGroup' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.hcl_notes_get_with_http_info(callback=callback_function) + >>> thread = api.iam_domain_groups_get_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: HclNoteList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: IamDomainGroupList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -111,7 +113,7 @@ def hcl_notes_get_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method hcl_notes_get" % key + " to method iam_domain_groups_get" % key ) params[key] = val del params['kwargs'] @@ -126,8 +128,6 @@ def hcl_notes_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def hcl_notes_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -158,14 +162,14 @@ def hcl_notes_get_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/hcl/Notes', 'GET', + return self.api_client.call_api('/iam/DomainGroups', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HclNoteList', + response_type='IamDomainGroupList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -173,46 +177,46 @@ def hcl_notes_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def hcl_notes_moid_get(self, moid, **kwargs): + def iam_domain_groups_moid_get(self, moid, **kwargs): """ - A instance of hclNote + Get a specific instance of 'iamDomainGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.hcl_notes_moid_get(moid, callback=callback_function) + >>> thread = api.iam_domain_groups_moid_get(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the hclNote instance. (required) - :return: HclNote + :param str moid: The moid of the iamDomainGroup instance. (required) + :return: IamDomainGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.hcl_notes_moid_get_with_http_info(moid, **kwargs) + return self.iam_domain_groups_moid_get_with_http_info(moid, **kwargs) else: - (data) = self.hcl_notes_moid_get_with_http_info(moid, **kwargs) + (data) = self.iam_domain_groups_moid_get_with_http_info(moid, **kwargs) return data - def hcl_notes_moid_get_with_http_info(self, moid, **kwargs): + def iam_domain_groups_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of hclNote + Get a specific instance of 'iamDomainGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.hcl_notes_moid_get_with_http_info(moid, callback=callback_function) + >>> thread = api.iam_domain_groups_moid_get_with_http_info(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the hclNote instance. (required) - :return: HclNote + :param str moid: The moid of the iamDomainGroup instance. (required) + :return: IamDomainGroup If the method is called asynchronously, returns the request thread. """ @@ -228,13 +232,13 @@ def hcl_notes_moid_get_with_http_info(self, moid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method hcl_notes_moid_get" % key + " to method iam_domain_groups_moid_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `hcl_notes_moid_get`") + raise ValueError("Missing the required parameter `moid` when calling `iam_domain_groups_moid_get`") collection_formats = {} @@ -262,14 +266,14 @@ def hcl_notes_moid_get_with_http_info(self, moid, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/hcl/Notes/{moid}', 'GET', + return self.api_client.call_api('/iam/DomainGroups/{moid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='HclNote', + response_type='IamDomainGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/intersight/apis/iam_end_point_privilege_api.py b/intersight/apis/iam_end_point_privilege_api.py index 167437a7..00d9d39d 100644 --- a/intersight/apis/iam_end_point_privilege_api.py +++ b/intersight/apis/iam_end_point_privilege_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_end_point_privileges_get(self, **kwargs): """ - List of iamEndPointPrivileges + Get a list of 'iamEndPointPrivilege' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_end_point_privileges_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamEndPointPrivilegeList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_end_point_privileges_get(self, **kwargs): def iam_end_point_privileges_get_with_http_info(self, **kwargs): """ - List of iamEndPointPrivileges + Get a list of 'iamEndPointPrivilege' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_end_point_privileges_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamEndPointPrivilegeList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_end_point_privileges_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_end_point_privileges_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_end_point_privileges_get_with_http_info(self, **kwargs): def iam_end_point_privileges_moid_get(self, moid, **kwargs): """ - A instance of iamEndPointPrivilege + Get a specific instance of 'iamEndPointPrivilege' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_end_point_privileges_moid_get(self, moid, **kwargs): def iam_end_point_privileges_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamEndPointPrivilege + Get a specific instance of 'iamEndPointPrivilege' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iam_end_point_role_api.py b/intersight/apis/iam_end_point_role_api.py index dd181262..a3a69253 100644 --- a/intersight/apis/iam_end_point_role_api.py +++ b/intersight/apis/iam_end_point_role_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_end_point_roles_get(self, **kwargs): """ - List of iamEndPointRoles + Get a list of 'iamEndPointRole' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_end_point_roles_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamEndPointRoleList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_end_point_roles_get(self, **kwargs): def iam_end_point_roles_get_with_http_info(self, **kwargs): """ - List of iamEndPointRoles + Get a list of 'iamEndPointRole' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_end_point_roles_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamEndPointRoleList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_end_point_roles_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_end_point_roles_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_end_point_roles_get_with_http_info(self, **kwargs): def iam_end_point_roles_moid_get(self, moid, **kwargs): """ - A instance of iamEndPointRole + Get a specific instance of 'iamEndPointRole' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_end_point_roles_moid_get(self, moid, **kwargs): def iam_end_point_roles_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamEndPointRole + Get a specific instance of 'iamEndPointRole' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iam_end_point_user_api.py b/intersight/apis/iam_end_point_user_api.py index bf1bb3e4..13e038c0 100644 --- a/intersight/apis/iam_end_point_user_api.py +++ b/intersight/apis/iam_end_point_user_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_end_point_users_get(self, **kwargs): """ - List of iamEndPointUsers + Get a list of 'iamEndPointUser' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_end_point_users_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamEndPointUserList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_end_point_users_get(self, **kwargs): def iam_end_point_users_get_with_http_info(self, **kwargs): """ - List of iamEndPointUsers + Get a list of 'iamEndPointUser' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_end_point_users_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamEndPointUserList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_end_point_users_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_end_point_users_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_end_point_users_get_with_http_info(self, **kwargs): def iam_end_point_users_moid_delete(self, moid, **kwargs): """ - Delete an instance of iamEndPointUser + Delete an instance of 'iamEndPointUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_end_point_users_moid_delete(self, moid, **kwargs): def iam_end_point_users_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of iamEndPointUser + Delete an instance of 'iamEndPointUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def iam_end_point_users_moid_delete_with_http_info(self, moid, **kwargs): def iam_end_point_users_moid_get(self, moid, **kwargs): """ - A instance of iamEndPointUser + Get a specific instance of 'iamEndPointUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def iam_end_point_users_moid_get(self, moid, **kwargs): def iam_end_point_users_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamEndPointUser + Get a specific instance of 'iamEndPointUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def iam_end_point_users_moid_get_with_http_info(self, moid, **kwargs): def iam_end_point_users_moid_patch(self, moid, body, **kwargs): """ - Update an instance of iamEndPointUser + Update an instance of 'iamEndPointUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def iam_end_point_users_moid_patch(self, moid, body, **kwargs): def iam_end_point_users_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of iamEndPointUser + Update an instance of 'iamEndPointUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def iam_end_point_users_moid_patch_with_http_info(self, moid, body, **kwargs): def iam_end_point_users_moid_post(self, moid, body, **kwargs): """ - Update an instance of iamEndPointUser + Update an instance of 'iamEndPointUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def iam_end_point_users_moid_post(self, moid, body, **kwargs): def iam_end_point_users_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of iamEndPointUser + Update an instance of 'iamEndPointUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def iam_end_point_users_moid_post_with_http_info(self, moid, body, **kwargs): def iam_end_point_users_post(self, body, **kwargs): """ - Create a iamEndPointUser + Create an instance of 'iamEndPointUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def iam_end_point_users_post(self, body, **kwargs): def iam_end_point_users_post_with_http_info(self, body, **kwargs): """ - Create a iamEndPointUser + Create an instance of 'iamEndPointUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iam_end_point_user_policy_api.py b/intersight/apis/iam_end_point_user_policy_api.py index 1321cf58..09c624a6 100644 --- a/intersight/apis/iam_end_point_user_policy_api.py +++ b/intersight/apis/iam_end_point_user_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_end_point_user_policies_get(self, **kwargs): """ - List of iamEndPointUserPolicies + Get a list of 'iamEndPointUserPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_end_point_user_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamEndPointUserPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_end_point_user_policies_get(self, **kwargs): def iam_end_point_user_policies_get_with_http_info(self, **kwargs): """ - List of iamEndPointUserPolicies + Get a list of 'iamEndPointUserPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_end_point_user_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamEndPointUserPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_end_point_user_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_end_point_user_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_end_point_user_policies_get_with_http_info(self, **kwargs): def iam_end_point_user_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of iamEndPointUserPolicy + Delete an instance of 'iamEndPointUserPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_end_point_user_policies_moid_delete(self, moid, **kwargs): def iam_end_point_user_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of iamEndPointUserPolicy + Delete an instance of 'iamEndPointUserPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def iam_end_point_user_policies_moid_delete_with_http_info(self, moid, **kwargs) def iam_end_point_user_policies_moid_get(self, moid, **kwargs): """ - A instance of iamEndPointUserPolicy + Get a specific instance of 'iamEndPointUserPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def iam_end_point_user_policies_moid_get(self, moid, **kwargs): def iam_end_point_user_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamEndPointUserPolicy + Get a specific instance of 'iamEndPointUserPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def iam_end_point_user_policies_moid_get_with_http_info(self, moid, **kwargs): def iam_end_point_user_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of iamEndPointUserPolicy + Update an instance of 'iamEndPointUserPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def iam_end_point_user_policies_moid_patch(self, moid, body, **kwargs): def iam_end_point_user_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of iamEndPointUserPolicy + Update an instance of 'iamEndPointUserPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def iam_end_point_user_policies_moid_patch_with_http_info(self, moid, body, **kw def iam_end_point_user_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of iamEndPointUserPolicy + Update an instance of 'iamEndPointUserPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def iam_end_point_user_policies_moid_post(self, moid, body, **kwargs): def iam_end_point_user_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of iamEndPointUserPolicy + Update an instance of 'iamEndPointUserPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def iam_end_point_user_policies_moid_post_with_http_info(self, moid, body, **kwa def iam_end_point_user_policies_post(self, body, **kwargs): """ - Create a iamEndPointUserPolicy + Create an instance of 'iamEndPointUserPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def iam_end_point_user_policies_post(self, body, **kwargs): def iam_end_point_user_policies_post_with_http_info(self, body, **kwargs): """ - Create a iamEndPointUserPolicy + Create an instance of 'iamEndPointUserPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iam_end_point_user_role_api.py b/intersight/apis/iam_end_point_user_role_api.py index 01ad141a..ec3299f1 100644 --- a/intersight/apis/iam_end_point_user_role_api.py +++ b/intersight/apis/iam_end_point_user_role_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_end_point_user_roles_get(self, **kwargs): """ - List of iamEndPointUserRoles + Get a list of 'iamEndPointUserRole' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_end_point_user_roles_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamEndPointUserRoleList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_end_point_user_roles_get(self, **kwargs): def iam_end_point_user_roles_get_with_http_info(self, **kwargs): """ - List of iamEndPointUserRoles + Get a list of 'iamEndPointUserRole' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_end_point_user_roles_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamEndPointUserRoleList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_end_point_user_roles_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_end_point_user_roles_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_end_point_user_roles_get_with_http_info(self, **kwargs): def iam_end_point_user_roles_moid_delete(self, moid, **kwargs): """ - Delete an instance of iamEndPointUserRole + Delete an instance of 'iamEndPointUserRole' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_end_point_user_roles_moid_delete(self, moid, **kwargs): def iam_end_point_user_roles_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of iamEndPointUserRole + Delete an instance of 'iamEndPointUserRole' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def iam_end_point_user_roles_moid_delete_with_http_info(self, moid, **kwargs): def iam_end_point_user_roles_moid_get(self, moid, **kwargs): """ - A instance of iamEndPointUserRole + Get a specific instance of 'iamEndPointUserRole' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def iam_end_point_user_roles_moid_get(self, moid, **kwargs): def iam_end_point_user_roles_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamEndPointUserRole + Get a specific instance of 'iamEndPointUserRole' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def iam_end_point_user_roles_moid_get_with_http_info(self, moid, **kwargs): def iam_end_point_user_roles_moid_patch(self, moid, body, **kwargs): """ - Update an instance of iamEndPointUserRole + Update an instance of 'iamEndPointUserRole' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def iam_end_point_user_roles_moid_patch(self, moid, body, **kwargs): def iam_end_point_user_roles_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of iamEndPointUserRole + Update an instance of 'iamEndPointUserRole' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def iam_end_point_user_roles_moid_patch_with_http_info(self, moid, body, **kwarg def iam_end_point_user_roles_moid_post(self, moid, body, **kwargs): """ - Update an instance of iamEndPointUserRole + Update an instance of 'iamEndPointUserRole' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def iam_end_point_user_roles_moid_post(self, moid, body, **kwargs): def iam_end_point_user_roles_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of iamEndPointUserRole + Update an instance of 'iamEndPointUserRole' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def iam_end_point_user_roles_moid_post_with_http_info(self, moid, body, **kwargs def iam_end_point_user_roles_post(self, body, **kwargs): """ - Create a iamEndPointUserRole + Create an instance of 'iamEndPointUserRole' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def iam_end_point_user_roles_post(self, body, **kwargs): def iam_end_point_user_roles_post_with_http_info(self, body, **kwargs): """ - Create a iamEndPointUserRole + Create an instance of 'iamEndPointUserRole' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iam_idp_api.py b/intersight/apis/iam_idp_api.py index eb07a6d5..46e8c51f 100644 --- a/intersight/apis/iam_idp_api.py +++ b/intersight/apis/iam_idp_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_idps_get(self, **kwargs): """ - List of iamIdps + Get a list of 'iamIdp' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_idps_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamIdpList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_idps_get(self, **kwargs): def iam_idps_get_with_http_info(self, **kwargs): """ - List of iamIdps + Get a list of 'iamIdp' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_idps_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamIdpList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_idps_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_idps_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -173,9 +177,113 @@ def iam_idps_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def iam_idps_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'iamIdp' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_idps_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamIdp instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iam_idps_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.iam_idps_moid_delete_with_http_info(moid, **kwargs) + return data + + def iam_idps_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'iamIdp' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_idps_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamIdp instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iam_idps_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iam_idps_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iam/Idps/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def iam_idps_moid_get(self, moid, **kwargs): """ - A instance of iamIdp + Get a specific instance of 'iamIdp' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +308,7 @@ def iam_idps_moid_get(self, moid, **kwargs): def iam_idps_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamIdp + Get a specific instance of 'iamIdp' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -276,3 +384,329 @@ def iam_idps_moid_get_with_http_info(self, moid, **kwargs): _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + + def iam_idps_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'iamIdp' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_idps_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamIdp instance. (required) + :param IamIdp body: iamIdp to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iam_idps_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.iam_idps_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def iam_idps_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'iamIdp' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_idps_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamIdp instance. (required) + :param IamIdp body: iamIdp to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iam_idps_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iam_idps_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `iam_idps_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iam/Idps/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def iam_idps_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'iamIdp' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_idps_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamIdp instance. (required) + :param IamIdp body: iamIdp to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iam_idps_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.iam_idps_moid_post_with_http_info(moid, body, **kwargs) + return data + + def iam_idps_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'iamIdp' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_idps_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamIdp instance. (required) + :param IamIdp body: iamIdp to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iam_idps_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iam_idps_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `iam_idps_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iam/Idps/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def iam_idps_post(self, body, **kwargs): + """ + Create an instance of 'iamIdp' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_idps_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param IamIdp body: iamIdp to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iam_idps_post_with_http_info(body, **kwargs) + else: + (data) = self.iam_idps_post_with_http_info(body, **kwargs) + return data + + def iam_idps_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'iamIdp' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_idps_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param IamIdp body: iamIdp to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iam_idps_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `iam_idps_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iam/Idps', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/iam_idp_reference_api.py b/intersight/apis/iam_idp_reference_api.py index 1741470a..30d542d9 100644 --- a/intersight/apis/iam_idp_reference_api.py +++ b/intersight/apis/iam_idp_reference_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_idp_references_get(self, **kwargs): """ - List of iamIdpReferences + Get a list of 'iamIdpReference' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_idp_references_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamIdpReferenceList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_idp_references_get(self, **kwargs): def iam_idp_references_get_with_http_info(self, **kwargs): """ - List of iamIdpReferences + Get a list of 'iamIdpReference' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_idp_references_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamIdpReferenceList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_idp_references_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_idp_references_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_idp_references_get_with_http_info(self, **kwargs): def iam_idp_references_moid_get(self, moid, **kwargs): """ - A instance of iamIdpReference + Get a specific instance of 'iamIdpReference' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_idp_references_moid_get(self, moid, **kwargs): def iam_idp_references_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamIdpReference + Get a specific instance of 'iamIdpReference' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iam_ldap_group_api.py b/intersight/apis/iam_ldap_group_api.py index 84c98e7e..917cfb47 100644 --- a/intersight/apis/iam_ldap_group_api.py +++ b/intersight/apis/iam_ldap_group_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_ldap_groups_get(self, **kwargs): """ - List of iamLdapGroups + Get a list of 'iamLdapGroup' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_ldap_groups_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamLdapGroupList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_ldap_groups_get(self, **kwargs): def iam_ldap_groups_get_with_http_info(self, **kwargs): """ - List of iamLdapGroups + Get a list of 'iamLdapGroup' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_ldap_groups_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamLdapGroupList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_ldap_groups_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_ldap_groups_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_ldap_groups_get_with_http_info(self, **kwargs): def iam_ldap_groups_moid_delete(self, moid, **kwargs): """ - Delete an instance of iamLdapGroup + Delete an instance of 'iamLdapGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_ldap_groups_moid_delete(self, moid, **kwargs): def iam_ldap_groups_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of iamLdapGroup + Delete an instance of 'iamLdapGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def iam_ldap_groups_moid_delete_with_http_info(self, moid, **kwargs): def iam_ldap_groups_moid_get(self, moid, **kwargs): """ - A instance of iamLdapGroup + Get a specific instance of 'iamLdapGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def iam_ldap_groups_moid_get(self, moid, **kwargs): def iam_ldap_groups_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamLdapGroup + Get a specific instance of 'iamLdapGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def iam_ldap_groups_moid_get_with_http_info(self, moid, **kwargs): def iam_ldap_groups_moid_patch(self, moid, body, **kwargs): """ - Update an instance of iamLdapGroup + Update an instance of 'iamLdapGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def iam_ldap_groups_moid_patch(self, moid, body, **kwargs): def iam_ldap_groups_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of iamLdapGroup + Update an instance of 'iamLdapGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def iam_ldap_groups_moid_patch_with_http_info(self, moid, body, **kwargs): def iam_ldap_groups_moid_post(self, moid, body, **kwargs): """ - Update an instance of iamLdapGroup + Update an instance of 'iamLdapGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def iam_ldap_groups_moid_post(self, moid, body, **kwargs): def iam_ldap_groups_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of iamLdapGroup + Update an instance of 'iamLdapGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def iam_ldap_groups_moid_post_with_http_info(self, moid, body, **kwargs): def iam_ldap_groups_post(self, body, **kwargs): """ - Create a iamLdapGroup + Create an instance of 'iamLdapGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def iam_ldap_groups_post(self, body, **kwargs): def iam_ldap_groups_post_with_http_info(self, body, **kwargs): """ - Create a iamLdapGroup + Create an instance of 'iamLdapGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iam_ldap_policy_api.py b/intersight/apis/iam_ldap_policy_api.py index d63ca84a..f634a9ce 100644 --- a/intersight/apis/iam_ldap_policy_api.py +++ b/intersight/apis/iam_ldap_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_ldap_policies_get(self, **kwargs): """ - List of iamLdapPolicies + Get a list of 'iamLdapPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_ldap_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamLdapPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_ldap_policies_get(self, **kwargs): def iam_ldap_policies_get_with_http_info(self, **kwargs): """ - List of iamLdapPolicies + Get a list of 'iamLdapPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_ldap_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamLdapPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_ldap_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_ldap_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_ldap_policies_get_with_http_info(self, **kwargs): def iam_ldap_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of iamLdapPolicy + Delete an instance of 'iamLdapPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_ldap_policies_moid_delete(self, moid, **kwargs): def iam_ldap_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of iamLdapPolicy + Delete an instance of 'iamLdapPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def iam_ldap_policies_moid_delete_with_http_info(self, moid, **kwargs): def iam_ldap_policies_moid_get(self, moid, **kwargs): """ - A instance of iamLdapPolicy + Get a specific instance of 'iamLdapPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def iam_ldap_policies_moid_get(self, moid, **kwargs): def iam_ldap_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamLdapPolicy + Get a specific instance of 'iamLdapPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def iam_ldap_policies_moid_get_with_http_info(self, moid, **kwargs): def iam_ldap_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of iamLdapPolicy + Update an instance of 'iamLdapPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def iam_ldap_policies_moid_patch(self, moid, body, **kwargs): def iam_ldap_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of iamLdapPolicy + Update an instance of 'iamLdapPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def iam_ldap_policies_moid_patch_with_http_info(self, moid, body, **kwargs): def iam_ldap_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of iamLdapPolicy + Update an instance of 'iamLdapPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def iam_ldap_policies_moid_post(self, moid, body, **kwargs): def iam_ldap_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of iamLdapPolicy + Update an instance of 'iamLdapPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def iam_ldap_policies_moid_post_with_http_info(self, moid, body, **kwargs): def iam_ldap_policies_post(self, body, **kwargs): """ - Create a iamLdapPolicy + Create an instance of 'iamLdapPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def iam_ldap_policies_post(self, body, **kwargs): def iam_ldap_policies_post_with_http_info(self, body, **kwargs): """ - Create a iamLdapPolicy + Create an instance of 'iamLdapPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iam_ldap_provider_api.py b/intersight/apis/iam_ldap_provider_api.py index 37ae1ab7..48f66478 100644 --- a/intersight/apis/iam_ldap_provider_api.py +++ b/intersight/apis/iam_ldap_provider_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_ldap_providers_get(self, **kwargs): """ - List of iamLdapProviders + Get a list of 'iamLdapProvider' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_ldap_providers_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamLdapProviderList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_ldap_providers_get(self, **kwargs): def iam_ldap_providers_get_with_http_info(self, **kwargs): """ - List of iamLdapProviders + Get a list of 'iamLdapProvider' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_ldap_providers_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamLdapProviderList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_ldap_providers_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_ldap_providers_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_ldap_providers_get_with_http_info(self, **kwargs): def iam_ldap_providers_moid_delete(self, moid, **kwargs): """ - Delete an instance of iamLdapProvider + Delete an instance of 'iamLdapProvider' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_ldap_providers_moid_delete(self, moid, **kwargs): def iam_ldap_providers_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of iamLdapProvider + Delete an instance of 'iamLdapProvider' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def iam_ldap_providers_moid_delete_with_http_info(self, moid, **kwargs): def iam_ldap_providers_moid_get(self, moid, **kwargs): """ - A instance of iamLdapProvider + Get a specific instance of 'iamLdapProvider' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def iam_ldap_providers_moid_get(self, moid, **kwargs): def iam_ldap_providers_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamLdapProvider + Get a specific instance of 'iamLdapProvider' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def iam_ldap_providers_moid_get_with_http_info(self, moid, **kwargs): def iam_ldap_providers_moid_patch(self, moid, body, **kwargs): """ - Update an instance of iamLdapProvider + Update an instance of 'iamLdapProvider' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def iam_ldap_providers_moid_patch(self, moid, body, **kwargs): def iam_ldap_providers_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of iamLdapProvider + Update an instance of 'iamLdapProvider' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def iam_ldap_providers_moid_patch_with_http_info(self, moid, body, **kwargs): def iam_ldap_providers_moid_post(self, moid, body, **kwargs): """ - Update an instance of iamLdapProvider + Update an instance of 'iamLdapProvider' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def iam_ldap_providers_moid_post(self, moid, body, **kwargs): def iam_ldap_providers_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of iamLdapProvider + Update an instance of 'iamLdapProvider' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def iam_ldap_providers_moid_post_with_http_info(self, moid, body, **kwargs): def iam_ldap_providers_post(self, body, **kwargs): """ - Create a iamLdapProvider + Create an instance of 'iamLdapProvider' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def iam_ldap_providers_post(self, body, **kwargs): def iam_ldap_providers_post_with_http_info(self, body, **kwargs): """ - Create a iamLdapProvider + Create an instance of 'iamLdapProvider' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iam_permission_api.py b/intersight/apis/iam_permission_api.py index aa6954ba..75ab76a4 100644 --- a/intersight/apis/iam_permission_api.py +++ b/intersight/apis/iam_permission_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_permissions_get(self, **kwargs): """ - List of iamPermissions + Get a list of 'iamPermission' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_permissions_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamPermissionList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_permissions_get(self, **kwargs): def iam_permissions_get_with_http_info(self, **kwargs): """ - List of iamPermissions + Get a list of 'iamPermission' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_permissions_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamPermissionList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_permissions_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_permissions_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -173,113 +177,9 @@ def iam_permissions_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def iam_permissions_moid_delete(self, moid, **kwargs): - """ - Delete an instance of iamPermission - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.iam_permissions_moid_delete(moid, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str moid: The moid of the iamPermission instance. (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.iam_permissions_moid_delete_with_http_info(moid, **kwargs) - else: - (data) = self.iam_permissions_moid_delete_with_http_info(moid, **kwargs) - return data - - def iam_permissions_moid_delete_with_http_info(self, moid, **kwargs): - """ - Delete an instance of iamPermission - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.iam_permissions_moid_delete_with_http_info(moid, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str moid: The moid of the iamPermission instance. (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['moid'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method iam_permissions_moid_delete" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'moid' is set - if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `iam_permissions_moid_delete`") - - - collection_formats = {} - - path_params = {} - if 'moid' in params: - path_params['moid'] = params['moid'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/iam/Permissions/{moid}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - def iam_permissions_moid_get(self, moid, **kwargs): """ - A instance of iamPermission + Get a specific instance of 'iamPermission' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +204,7 @@ def iam_permissions_moid_get(self, moid, **kwargs): def iam_permissions_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamPermission + Get a specific instance of 'iamPermission' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -380,329 +280,3 @@ def iam_permissions_moid_get_with_http_info(self, moid, **kwargs): _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - - def iam_permissions_moid_patch(self, moid, body, **kwargs): - """ - Update an instance of iamPermission - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.iam_permissions_moid_patch(moid, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str moid: The moid of the iamPermission instance. (required) - :param IamPermission body: iamPermission to update (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.iam_permissions_moid_patch_with_http_info(moid, body, **kwargs) - else: - (data) = self.iam_permissions_moid_patch_with_http_info(moid, body, **kwargs) - return data - - def iam_permissions_moid_patch_with_http_info(self, moid, body, **kwargs): - """ - Update an instance of iamPermission - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.iam_permissions_moid_patch_with_http_info(moid, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str moid: The moid of the iamPermission instance. (required) - :param IamPermission body: iamPermission to update (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['moid', 'body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method iam_permissions_moid_patch" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'moid' is set - if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `iam_permissions_moid_patch`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `iam_permissions_moid_patch`") - - - collection_formats = {} - - path_params = {} - if 'moid' in params: - path_params['moid'] = params['moid'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/iam/Permissions/{moid}', 'PATCH', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def iam_permissions_moid_post(self, moid, body, **kwargs): - """ - Update an instance of iamPermission - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.iam_permissions_moid_post(moid, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str moid: The moid of the iamPermission instance. (required) - :param IamPermission body: iamPermission to update (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.iam_permissions_moid_post_with_http_info(moid, body, **kwargs) - else: - (data) = self.iam_permissions_moid_post_with_http_info(moid, body, **kwargs) - return data - - def iam_permissions_moid_post_with_http_info(self, moid, body, **kwargs): - """ - Update an instance of iamPermission - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.iam_permissions_moid_post_with_http_info(moid, body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param str moid: The moid of the iamPermission instance. (required) - :param IamPermission body: iamPermission to update (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['moid', 'body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method iam_permissions_moid_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'moid' is set - if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `iam_permissions_moid_post`") - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `iam_permissions_moid_post`") - - - collection_formats = {} - - path_params = {} - if 'moid' in params: - path_params['moid'] = params['moid'] - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/iam/Permissions/{moid}', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def iam_permissions_post(self, body, **kwargs): - """ - Create a iamPermission - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.iam_permissions_post(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param IamPermission body: iamPermission to add (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('callback'): - return self.iam_permissions_post_with_http_info(body, **kwargs) - else: - (data) = self.iam_permissions_post_with_http_info(body, **kwargs) - return data - - def iam_permissions_post_with_http_info(self, body, **kwargs): - """ - Create a iamPermission - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please define a `callback` function - to be invoked when receiving the response. - >>> def callback_function(response): - >>> pprint(response) - >>> - >>> thread = api.iam_permissions_post_with_http_info(body, callback=callback_function) - - :param callback function: The callback function - for asynchronous request. (optional) - :param IamPermission body: iamPermission to add (required) - :return: None - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] - all_params.append('callback') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method iam_permissions_post" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `iam_permissions_post`") - - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) - - # Authentication setting - auth_settings = [] - - return self.api_client.call_api('/iam/Permissions', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type=None, - auth_settings=auth_settings, - callback=params.get('callback'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/intersight/apis/iam_privilege_api.py b/intersight/apis/iam_privilege_api.py index 7d1c550e..cf71dffa 100644 --- a/intersight/apis/iam_privilege_api.py +++ b/intersight/apis/iam_privilege_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_privileges_get(self, **kwargs): """ - List of iamPrivileges + Get a list of 'iamPrivilege' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_privileges_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamPrivilegeList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_privileges_get(self, **kwargs): def iam_privileges_get_with_http_info(self, **kwargs): """ - List of iamPrivileges + Get a list of 'iamPrivilege' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_privileges_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamPrivilegeList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_privileges_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_privileges_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_privileges_get_with_http_info(self, **kwargs): def iam_privileges_moid_get(self, moid, **kwargs): """ - A instance of iamPrivilege + Get a specific instance of 'iamPrivilege' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_privileges_moid_get(self, moid, **kwargs): def iam_privileges_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamPrivilege + Get a specific instance of 'iamPrivilege' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iam_privilege_set_api.py b/intersight/apis/iam_privilege_set_api.py index 1bda02cf..fd4fa430 100644 --- a/intersight/apis/iam_privilege_set_api.py +++ b/intersight/apis/iam_privilege_set_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_privilege_sets_get(self, **kwargs): """ - List of iamPrivilegeSets + Get a list of 'iamPrivilegeSet' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_privilege_sets_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamPrivilegeSetList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_privilege_sets_get(self, **kwargs): def iam_privilege_sets_get_with_http_info(self, **kwargs): """ - List of iamPrivilegeSets + Get a list of 'iamPrivilegeSet' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_privilege_sets_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamPrivilegeSetList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_privilege_sets_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_privilege_sets_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_privilege_sets_get_with_http_info(self, **kwargs): def iam_privilege_sets_moid_get(self, moid, **kwargs): """ - A instance of iamPrivilegeSet + Get a specific instance of 'iamPrivilegeSet' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_privilege_sets_moid_get(self, moid, **kwargs): def iam_privilege_sets_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamPrivilegeSet + Get a specific instance of 'iamPrivilegeSet' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iam_qualifier_api.py b/intersight/apis/iam_qualifier_api.py index 169755b7..2403b339 100644 --- a/intersight/apis/iam_qualifier_api.py +++ b/intersight/apis/iam_qualifier_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_qualifiers_get(self, **kwargs): """ - List of iamQualifiers + Get a list of 'iamQualifier' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_qualifiers_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamQualifierList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_qualifiers_get(self, **kwargs): def iam_qualifiers_get_with_http_info(self, **kwargs): """ - List of iamQualifiers + Get a list of 'iamQualifier' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_qualifiers_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamQualifierList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_qualifiers_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_qualifiers_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -173,9 +177,113 @@ def iam_qualifiers_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def iam_qualifiers_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'iamQualifier' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_qualifiers_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamQualifier instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iam_qualifiers_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.iam_qualifiers_moid_delete_with_http_info(moid, **kwargs) + return data + + def iam_qualifiers_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'iamQualifier' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_qualifiers_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamQualifier instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iam_qualifiers_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iam_qualifiers_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iam/Qualifiers/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def iam_qualifiers_moid_get(self, moid, **kwargs): """ - A instance of iamQualifier + Get a specific instance of 'iamQualifier' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +308,7 @@ def iam_qualifiers_moid_get(self, moid, **kwargs): def iam_qualifiers_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamQualifier + Get a specific instance of 'iamQualifier' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -276,3 +384,329 @@ def iam_qualifiers_moid_get_with_http_info(self, moid, **kwargs): _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + + def iam_qualifiers_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'iamQualifier' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_qualifiers_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamQualifier instance. (required) + :param IamQualifier body: iamQualifier to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iam_qualifiers_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.iam_qualifiers_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def iam_qualifiers_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'iamQualifier' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_qualifiers_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamQualifier instance. (required) + :param IamQualifier body: iamQualifier to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iam_qualifiers_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iam_qualifiers_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `iam_qualifiers_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iam/Qualifiers/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def iam_qualifiers_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'iamQualifier' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_qualifiers_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamQualifier instance. (required) + :param IamQualifier body: iamQualifier to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iam_qualifiers_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.iam_qualifiers_moid_post_with_http_info(moid, body, **kwargs) + return data + + def iam_qualifiers_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'iamQualifier' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_qualifiers_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamQualifier instance. (required) + :param IamQualifier body: iamQualifier to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iam_qualifiers_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iam_qualifiers_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `iam_qualifiers_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iam/Qualifiers/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def iam_qualifiers_post(self, body, **kwargs): + """ + Create an instance of 'iamQualifier' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_qualifiers_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param IamQualifier body: iamQualifier to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iam_qualifiers_post_with_http_info(body, **kwargs) + else: + (data) = self.iam_qualifiers_post_with_http_info(body, **kwargs) + return data + + def iam_qualifiers_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'iamQualifier' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_qualifiers_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param IamQualifier body: iamQualifier to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iam_qualifiers_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `iam_qualifiers_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iam/Qualifiers', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/iam_resource_limits_api.py b/intersight/apis/iam_resource_limits_api.py index 9c892c0c..3adff24d 100644 --- a/intersight/apis/iam_resource_limits_api.py +++ b/intersight/apis/iam_resource_limits_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_resource_limits_get(self, **kwargs): """ - List of iamResourceLimits + Get a list of 'iamResourceLimits' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_resource_limits_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamResourceLimitsList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_resource_limits_get(self, **kwargs): def iam_resource_limits_get_with_http_info(self, **kwargs): """ - List of iamResourceLimits + Get a list of 'iamResourceLimits' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_resource_limits_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamResourceLimitsList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_resource_limits_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_resource_limits_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_resource_limits_get_with_http_info(self, **kwargs): def iam_resource_limits_moid_get(self, moid, **kwargs): """ - A instance of iamResourceLimits + Get a specific instance of 'iamResourceLimits' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_resource_limits_moid_get(self, moid, **kwargs): def iam_resource_limits_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamResourceLimits + Get a specific instance of 'iamResourceLimits' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iam_role_api.py b/intersight/apis/iam_role_api.py index 34638b21..46a67ab6 100644 --- a/intersight/apis/iam_role_api.py +++ b/intersight/apis/iam_role_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_roles_get(self, **kwargs): """ - List of iamRoles + Get a list of 'iamRole' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_roles_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamRoleList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_roles_get(self, **kwargs): def iam_roles_get_with_http_info(self, **kwargs): """ - List of iamRoles + Get a list of 'iamRole' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_roles_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamRoleList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_roles_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_roles_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_roles_get_with_http_info(self, **kwargs): def iam_roles_moid_get(self, moid, **kwargs): """ - A instance of iamRole + Get a specific instance of 'iamRole' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_roles_moid_get(self, moid, **kwargs): def iam_roles_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamRole + Get a specific instance of 'iamRole' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iam_service_provider_api.py b/intersight/apis/iam_service_provider_api.py new file mode 100644 index 00000000..b6381c14 --- /dev/null +++ b/intersight/apis/iam_service_provider_api.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class IamServiceProviderApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def iam_service_providers_get(self, **kwargs): + """ + Get a list of 'iamServiceProvider' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_service_providers_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: IamServiceProviderList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iam_service_providers_get_with_http_info(**kwargs) + else: + (data) = self.iam_service_providers_get_with_http_info(**kwargs) + return data + + def iam_service_providers_get_with_http_info(self, **kwargs): + """ + Get a list of 'iamServiceProvider' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_service_providers_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: IamServiceProviderList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iam_service_providers_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iam/ServiceProviders', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='IamServiceProviderList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def iam_service_providers_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'iamServiceProvider' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_service_providers_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamServiceProvider instance. (required) + :return: IamServiceProvider + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iam_service_providers_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.iam_service_providers_moid_get_with_http_info(moid, **kwargs) + return data + + def iam_service_providers_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'iamServiceProvider' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_service_providers_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamServiceProvider instance. (required) + :return: IamServiceProvider + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iam_service_providers_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iam_service_providers_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iam/ServiceProviders/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='IamServiceProvider', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/iam_session_api.py b/intersight/apis/iam_session_api.py index e22aa3a1..87e55d1b 100644 --- a/intersight/apis/iam_session_api.py +++ b/intersight/apis/iam_session_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_sessions_get(self, **kwargs): """ - List of iamSessions + Get a list of 'iamSession' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_sessions_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamSessionList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_sessions_get(self, **kwargs): def iam_sessions_get_with_http_info(self, **kwargs): """ - List of iamSessions + Get a list of 'iamSession' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_sessions_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamSessionList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_sessions_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_sessions_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_sessions_get_with_http_info(self, **kwargs): def iam_sessions_moid_delete(self, moid, **kwargs): """ - Delete an instance of iamSession + Delete an instance of 'iamSession' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_sessions_moid_delete(self, moid, **kwargs): def iam_sessions_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of iamSession + Delete an instance of 'iamSession' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def iam_sessions_moid_delete_with_http_info(self, moid, **kwargs): def iam_sessions_moid_get(self, moid, **kwargs): """ - A instance of iamSession + Get a specific instance of 'iamSession' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def iam_sessions_moid_get(self, moid, **kwargs): def iam_sessions_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamSession + Get a specific instance of 'iamSession' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iam_session_limits_api.py b/intersight/apis/iam_session_limits_api.py index 88df00cd..de582ce6 100644 --- a/intersight/apis/iam_session_limits_api.py +++ b/intersight/apis/iam_session_limits_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_session_limits_get(self, **kwargs): """ - List of iamSessionLimits + Get a list of 'iamSessionLimits' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_session_limits_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamSessionLimitsList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_session_limits_get(self, **kwargs): def iam_session_limits_get_with_http_info(self, **kwargs): """ - List of iamSessionLimits + Get a list of 'iamSessionLimits' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_session_limits_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamSessionLimitsList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_session_limits_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_session_limits_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_session_limits_get_with_http_info(self, **kwargs): def iam_session_limits_moid_get(self, moid, **kwargs): """ - A instance of iamSessionLimits + Get a specific instance of 'iamSessionLimits' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_session_limits_moid_get(self, moid, **kwargs): def iam_session_limits_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamSessionLimits + Get a specific instance of 'iamSessionLimits' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iam_system_api.py b/intersight/apis/iam_system_api.py index 8f9a3a71..97284b44 100644 --- a/intersight/apis/iam_system_api.py +++ b/intersight/apis/iam_system_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_systems_get(self, **kwargs): """ - List of iamSystems + Get a list of 'iamSystem' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_systems_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamSystemList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_systems_get(self, **kwargs): def iam_systems_get_with_http_info(self, **kwargs): """ - List of iamSystems + Get a list of 'iamSystem' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_systems_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamSystemList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_systems_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_systems_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_systems_get_with_http_info(self, **kwargs): def iam_systems_moid_get(self, moid, **kwargs): """ - A instance of iamSystem + Get a specific instance of 'iamSystem' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_systems_moid_get(self, moid, **kwargs): def iam_systems_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamSystem + Get a specific instance of 'iamSystem' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iam_user_api.py b/intersight/apis/iam_user_api.py index 75ee652a..62147afd 100644 --- a/intersight/apis/iam_user_api.py +++ b/intersight/apis/iam_user_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_users_get(self, **kwargs): """ - List of iamUsers + Get a list of 'iamUser' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_users_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamUserList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_users_get(self, **kwargs): def iam_users_get_with_http_info(self, **kwargs): """ - List of iamUsers + Get a list of 'iamUser' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_users_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamUserList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_users_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_users_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_users_get_with_http_info(self, **kwargs): def iam_users_moid_delete(self, moid, **kwargs): """ - Delete an instance of iamUser + Delete an instance of 'iamUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_users_moid_delete(self, moid, **kwargs): def iam_users_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of iamUser + Delete an instance of 'iamUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def iam_users_moid_delete_with_http_info(self, moid, **kwargs): def iam_users_moid_get(self, moid, **kwargs): """ - A instance of iamUser + Get a specific instance of 'iamUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def iam_users_moid_get(self, moid, **kwargs): def iam_users_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamUser + Get a specific instance of 'iamUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -381,9 +385,231 @@ def iam_users_moid_get_with_http_info(self, moid, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def iam_users_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'iamUser' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_users_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamUser instance. (required) + :param IamUser body: iamUser to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iam_users_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.iam_users_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def iam_users_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'iamUser' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_users_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamUser instance. (required) + :param IamUser body: iamUser to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iam_users_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iam_users_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `iam_users_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iam/Users/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def iam_users_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'iamUser' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_users_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamUser instance. (required) + :param IamUser body: iamUser to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iam_users_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.iam_users_moid_post_with_http_info(moid, body, **kwargs) + return data + + def iam_users_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'iamUser' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_users_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamUser instance. (required) + :param IamUser body: iamUser to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iam_users_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iam_users_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `iam_users_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iam/Users/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def iam_users_post(self, body, **kwargs): """ - Create a iamUser + Create an instance of 'iamUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -408,7 +634,7 @@ def iam_users_post(self, body, **kwargs): def iam_users_post_with_http_info(self, body, **kwargs): """ - Create a iamUser + Create an instance of 'iamUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/iam_user_group_api.py b/intersight/apis/iam_user_group_api.py index 108c41e3..f0a94c2c 100644 --- a/intersight/apis/iam_user_group_api.py +++ b/intersight/apis/iam_user_group_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_user_groups_get(self, **kwargs): """ - List of iamUserGroups + Get a list of 'iamUserGroup' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_user_groups_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamUserGroupList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_user_groups_get(self, **kwargs): def iam_user_groups_get_with_http_info(self, **kwargs): """ - List of iamUserGroups + Get a list of 'iamUserGroup' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_user_groups_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamUserGroupList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_user_groups_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_user_groups_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -173,9 +177,113 @@ def iam_user_groups_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def iam_user_groups_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'iamUserGroup' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_user_groups_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamUserGroup instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iam_user_groups_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.iam_user_groups_moid_delete_with_http_info(moid, **kwargs) + return data + + def iam_user_groups_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'iamUserGroup' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_user_groups_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamUserGroup instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iam_user_groups_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iam_user_groups_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iam/UserGroups/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def iam_user_groups_moid_get(self, moid, **kwargs): """ - A instance of iamUserGroup + Get a specific instance of 'iamUserGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +308,7 @@ def iam_user_groups_moid_get(self, moid, **kwargs): def iam_user_groups_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamUserGroup + Get a specific instance of 'iamUserGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -276,3 +384,329 @@ def iam_user_groups_moid_get_with_http_info(self, moid, **kwargs): _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + + def iam_user_groups_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'iamUserGroup' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_user_groups_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamUserGroup instance. (required) + :param IamUserGroup body: iamUserGroup to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iam_user_groups_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.iam_user_groups_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def iam_user_groups_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'iamUserGroup' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_user_groups_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamUserGroup instance. (required) + :param IamUserGroup body: iamUserGroup to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iam_user_groups_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iam_user_groups_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `iam_user_groups_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iam/UserGroups/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def iam_user_groups_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'iamUserGroup' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_user_groups_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamUserGroup instance. (required) + :param IamUserGroup body: iamUserGroup to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iam_user_groups_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.iam_user_groups_moid_post_with_http_info(moid, body, **kwargs) + return data + + def iam_user_groups_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'iamUserGroup' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_user_groups_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the iamUserGroup instance. (required) + :param IamUserGroup body: iamUserGroup to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iam_user_groups_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `iam_user_groups_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `iam_user_groups_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iam/UserGroups/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def iam_user_groups_post(self, body, **kwargs): + """ + Create an instance of 'iamUserGroup' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_user_groups_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param IamUserGroup body: iamUserGroup to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.iam_user_groups_post_with_http_info(body, **kwargs) + else: + (data) = self.iam_user_groups_post_with_http_info(body, **kwargs) + return data + + def iam_user_groups_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'iamUserGroup' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.iam_user_groups_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param IamUserGroup body: iamUserGroup to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method iam_user_groups_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `iam_user_groups_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/iam/UserGroups', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/iam_user_preference_api.py b/intersight/apis/iam_user_preference_api.py index f30ef14f..cc012174 100644 --- a/intersight/apis/iam_user_preference_api.py +++ b/intersight/apis/iam_user_preference_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def iam_user_preferences_get(self, **kwargs): """ - List of iamUserPreferences + Get a list of 'iamUserPreference' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def iam_user_preferences_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamUserPreferenceList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def iam_user_preferences_get(self, **kwargs): def iam_user_preferences_get_with_http_info(self, **kwargs): """ - List of iamUserPreferences + Get a list of 'iamUserPreference' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def iam_user_preferences_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IamUserPreferenceList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def iam_user_preferences_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def iam_user_preferences_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def iam_user_preferences_get_with_http_info(self, **kwargs): def iam_user_preferences_moid_get(self, moid, **kwargs): """ - A instance of iamUserPreference + Get a specific instance of 'iamUserPreference' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def iam_user_preferences_moid_get(self, moid, **kwargs): def iam_user_preferences_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of iamUserPreference + Get a specific instance of 'iamUserPreference' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def iam_user_preferences_moid_get_with_http_info(self, moid, **kwargs): def iam_user_preferences_moid_patch(self, moid, body, **kwargs): """ - Update an instance of iamUserPreference + Update an instance of 'iamUserPreference' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def iam_user_preferences_moid_patch(self, moid, body, **kwargs): def iam_user_preferences_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of iamUserPreference + Update an instance of 'iamUserPreference' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def iam_user_preferences_moid_patch_with_http_info(self, moid, body, **kwargs): def iam_user_preferences_moid_post(self, moid, body, **kwargs): """ - Update an instance of iamUserPreference + Update an instance of 'iamUserPreference' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def iam_user_preferences_moid_post(self, moid, body, **kwargs): def iam_user_preferences_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of iamUserPreference + Update an instance of 'iamUserPreference' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/inventory_device_info_api.py b/intersight/apis/inventory_device_info_api.py index 81876652..44c51053 100644 --- a/intersight/apis/inventory_device_info_api.py +++ b/intersight/apis/inventory_device_info_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def inventory_device_infos_get(self, **kwargs): """ - List of inventoryDeviceInfos + Get a list of 'inventoryDeviceInfo' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def inventory_device_infos_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: InventoryDeviceInfoList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def inventory_device_infos_get(self, **kwargs): def inventory_device_infos_get_with_http_info(self, **kwargs): """ - List of inventoryDeviceInfos + Get a list of 'inventoryDeviceInfo' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def inventory_device_infos_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: InventoryDeviceInfoList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def inventory_device_infos_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def inventory_device_infos_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def inventory_device_infos_get_with_http_info(self, **kwargs): def inventory_device_infos_moid_get(self, moid, **kwargs): """ - A instance of inventoryDeviceInfo + Get a specific instance of 'inventoryDeviceInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def inventory_device_infos_moid_get(self, moid, **kwargs): def inventory_device_infos_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of inventoryDeviceInfo + Get a specific instance of 'inventoryDeviceInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/inventory_dn_mo_binding_api.py b/intersight/apis/inventory_dn_mo_binding_api.py index 79c901ab..734726c3 100644 --- a/intersight/apis/inventory_dn_mo_binding_api.py +++ b/intersight/apis/inventory_dn_mo_binding_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def inventory_dn_mo_bindings_get(self, **kwargs): """ - List of inventoryDnMoBindings + Get a list of 'inventoryDnMoBinding' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def inventory_dn_mo_bindings_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: InventoryDnMoBindingList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def inventory_dn_mo_bindings_get(self, **kwargs): def inventory_dn_mo_bindings_get_with_http_info(self, **kwargs): """ - List of inventoryDnMoBindings + Get a list of 'inventoryDnMoBinding' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def inventory_dn_mo_bindings_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: InventoryDnMoBindingList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def inventory_dn_mo_bindings_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def inventory_dn_mo_bindings_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def inventory_dn_mo_bindings_get_with_http_info(self, **kwargs): def inventory_dn_mo_bindings_moid_get(self, moid, **kwargs): """ - A instance of inventoryDnMoBinding + Get a specific instance of 'inventoryDnMoBinding' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def inventory_dn_mo_bindings_moid_get(self, moid, **kwargs): def inventory_dn_mo_bindings_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of inventoryDnMoBinding + Get a specific instance of 'inventoryDnMoBinding' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/inventory_generic_inventory_api.py b/intersight/apis/inventory_generic_inventory_api.py index 55d6edba..a5ed99da 100644 --- a/intersight/apis/inventory_generic_inventory_api.py +++ b/intersight/apis/inventory_generic_inventory_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def inventory_generic_inventories_get(self, **kwargs): """ - List of inventoryGenericInventories + Get a list of 'inventoryGenericInventory' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def inventory_generic_inventories_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: InventoryGenericInventoryList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def inventory_generic_inventories_get(self, **kwargs): def inventory_generic_inventories_get_with_http_info(self, **kwargs): """ - List of inventoryGenericInventories + Get a list of 'inventoryGenericInventory' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def inventory_generic_inventories_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: InventoryGenericInventoryList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def inventory_generic_inventories_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def inventory_generic_inventories_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def inventory_generic_inventories_get_with_http_info(self, **kwargs): def inventory_generic_inventories_moid_get(self, moid, **kwargs): """ - A instance of inventoryGenericInventory + Get a specific instance of 'inventoryGenericInventory' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def inventory_generic_inventories_moid_get(self, moid, **kwargs): def inventory_generic_inventories_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of inventoryGenericInventory + Get a specific instance of 'inventoryGenericInventory' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def inventory_generic_inventories_moid_get_with_http_info(self, moid, **kwargs): def inventory_generic_inventories_moid_patch(self, moid, body, **kwargs): """ - Update an instance of inventoryGenericInventory + Update an instance of 'inventoryGenericInventory' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def inventory_generic_inventories_moid_patch(self, moid, body, **kwargs): def inventory_generic_inventories_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of inventoryGenericInventory + Update an instance of 'inventoryGenericInventory' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def inventory_generic_inventories_moid_patch_with_http_info(self, moid, body, ** def inventory_generic_inventories_moid_post(self, moid, body, **kwargs): """ - Update an instance of inventoryGenericInventory + Update an instance of 'inventoryGenericInventory' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def inventory_generic_inventories_moid_post(self, moid, body, **kwargs): def inventory_generic_inventories_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of inventoryGenericInventory + Update an instance of 'inventoryGenericInventory' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/inventory_generic_inventory_holder_api.py b/intersight/apis/inventory_generic_inventory_holder_api.py index c880a627..e9e66d80 100644 --- a/intersight/apis/inventory_generic_inventory_holder_api.py +++ b/intersight/apis/inventory_generic_inventory_holder_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def inventory_generic_inventory_holders_get(self, **kwargs): """ - List of inventoryGenericInventoryHolders + Get a list of 'inventoryGenericInventoryHolder' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def inventory_generic_inventory_holders_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: InventoryGenericInventoryHolderList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def inventory_generic_inventory_holders_get(self, **kwargs): def inventory_generic_inventory_holders_get_with_http_info(self, **kwargs): """ - List of inventoryGenericInventoryHolders + Get a list of 'inventoryGenericInventoryHolder' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def inventory_generic_inventory_holders_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: InventoryGenericInventoryHolderList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def inventory_generic_inventory_holders_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def inventory_generic_inventory_holders_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def inventory_generic_inventory_holders_get_with_http_info(self, **kwargs): def inventory_generic_inventory_holders_moid_get(self, moid, **kwargs): """ - A instance of inventoryGenericInventoryHolder + Get a specific instance of 'inventoryGenericInventoryHolder' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def inventory_generic_inventory_holders_moid_get(self, moid, **kwargs): def inventory_generic_inventory_holders_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of inventoryGenericInventoryHolder + Get a specific instance of 'inventoryGenericInventoryHolder' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def inventory_generic_inventory_holders_moid_get_with_http_info(self, moid, **kw def inventory_generic_inventory_holders_moid_patch(self, moid, body, **kwargs): """ - Update an instance of inventoryGenericInventoryHolder + Update an instance of 'inventoryGenericInventoryHolder' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def inventory_generic_inventory_holders_moid_patch(self, moid, body, **kwargs): def inventory_generic_inventory_holders_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of inventoryGenericInventoryHolder + Update an instance of 'inventoryGenericInventoryHolder' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def inventory_generic_inventory_holders_moid_patch_with_http_info(self, moid, bo def inventory_generic_inventory_holders_moid_post(self, moid, body, **kwargs): """ - Update an instance of inventoryGenericInventoryHolder + Update an instance of 'inventoryGenericInventoryHolder' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def inventory_generic_inventory_holders_moid_post(self, moid, body, **kwargs): def inventory_generic_inventory_holders_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of inventoryGenericInventoryHolder + Update an instance of 'inventoryGenericInventoryHolder' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/inventory_request_api.py b/intersight/apis/inventory_request_api.py new file mode 100644 index 00000000..884c0a8e --- /dev/null +++ b/intersight/apis/inventory_request_api.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class InventoryRequestApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def inventory_requests_post(self, body, **kwargs): + """ + Create an instance of 'inventoryRequest' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.inventory_requests_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param InventoryRequest body: inventoryRequest to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.inventory_requests_post_with_http_info(body, **kwargs) + else: + (data) = self.inventory_requests_post_with_http_info(body, **kwargs) + return data + + def inventory_requests_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'inventoryRequest' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.inventory_requests_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param InventoryRequest body: inventoryRequest to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method inventory_requests_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `inventory_requests_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/inventory/Requests', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/ipmioverlan_policy_api.py b/intersight/apis/ipmioverlan_policy_api.py index c66a3302..28d2cb28 100644 --- a/intersight/apis/ipmioverlan_policy_api.py +++ b/intersight/apis/ipmioverlan_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def ipmioverlan_policies_get(self, **kwargs): """ - List of ipmioverlanPolicies + Get a list of 'ipmioverlanPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def ipmioverlan_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IpmioverlanPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def ipmioverlan_policies_get(self, **kwargs): def ipmioverlan_policies_get_with_http_info(self, **kwargs): """ - List of ipmioverlanPolicies + Get a list of 'ipmioverlanPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def ipmioverlan_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: IpmioverlanPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def ipmioverlan_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def ipmioverlan_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def ipmioverlan_policies_get_with_http_info(self, **kwargs): def ipmioverlan_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of ipmioverlanPolicy + Delete an instance of 'ipmioverlanPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def ipmioverlan_policies_moid_delete(self, moid, **kwargs): def ipmioverlan_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of ipmioverlanPolicy + Delete an instance of 'ipmioverlanPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def ipmioverlan_policies_moid_delete_with_http_info(self, moid, **kwargs): def ipmioverlan_policies_moid_get(self, moid, **kwargs): """ - A instance of ipmioverlanPolicy + Get a specific instance of 'ipmioverlanPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def ipmioverlan_policies_moid_get(self, moid, **kwargs): def ipmioverlan_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of ipmioverlanPolicy + Get a specific instance of 'ipmioverlanPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def ipmioverlan_policies_moid_get_with_http_info(self, moid, **kwargs): def ipmioverlan_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of ipmioverlanPolicy + Update an instance of 'ipmioverlanPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def ipmioverlan_policies_moid_patch(self, moid, body, **kwargs): def ipmioverlan_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of ipmioverlanPolicy + Update an instance of 'ipmioverlanPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def ipmioverlan_policies_moid_patch_with_http_info(self, moid, body, **kwargs): def ipmioverlan_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of ipmioverlanPolicy + Update an instance of 'ipmioverlanPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def ipmioverlan_policies_moid_post(self, moid, body, **kwargs): def ipmioverlan_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of ipmioverlanPolicy + Update an instance of 'ipmioverlanPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def ipmioverlan_policies_moid_post_with_http_info(self, moid, body, **kwargs): def ipmioverlan_policies_post(self, body, **kwargs): """ - Create a ipmioverlanPolicy + Create an instance of 'ipmioverlanPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def ipmioverlan_policies_post(self, body, **kwargs): def ipmioverlan_policies_post_with_http_info(self, body, **kwargs): """ - Create a ipmioverlanPolicy + Create an instance of 'ipmioverlanPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/kvm_policy_api.py b/intersight/apis/kvm_policy_api.py index 2538bef3..71001173 100644 --- a/intersight/apis/kvm_policy_api.py +++ b/intersight/apis/kvm_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def kvm_policies_get(self, **kwargs): """ - List of kvmPolicies + Get a list of 'kvmPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def kvm_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: KvmPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def kvm_policies_get(self, **kwargs): def kvm_policies_get_with_http_info(self, **kwargs): """ - List of kvmPolicies + Get a list of 'kvmPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def kvm_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: KvmPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def kvm_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def kvm_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def kvm_policies_get_with_http_info(self, **kwargs): def kvm_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of kvmPolicy + Delete an instance of 'kvmPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def kvm_policies_moid_delete(self, moid, **kwargs): def kvm_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of kvmPolicy + Delete an instance of 'kvmPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def kvm_policies_moid_delete_with_http_info(self, moid, **kwargs): def kvm_policies_moid_get(self, moid, **kwargs): """ - A instance of kvmPolicy + Get a specific instance of 'kvmPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def kvm_policies_moid_get(self, moid, **kwargs): def kvm_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of kvmPolicy + Get a specific instance of 'kvmPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def kvm_policies_moid_get_with_http_info(self, moid, **kwargs): def kvm_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of kvmPolicy + Update an instance of 'kvmPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def kvm_policies_moid_patch(self, moid, body, **kwargs): def kvm_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of kvmPolicy + Update an instance of 'kvmPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def kvm_policies_moid_patch_with_http_info(self, moid, body, **kwargs): def kvm_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of kvmPolicy + Update an instance of 'kvmPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def kvm_policies_moid_post(self, moid, body, **kwargs): def kvm_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of kvmPolicy + Update an instance of 'kvmPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def kvm_policies_moid_post_with_http_info(self, moid, body, **kwargs): def kvm_policies_post(self, body, **kwargs): """ - Create a kvmPolicy + Create an instance of 'kvmPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def kvm_policies_post(self, body, **kwargs): def kvm_policies_post_with_http_info(self, body, **kwargs): """ - Create a kvmPolicy + Create an instance of 'kvmPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/license_account_license_data_api.py b/intersight/apis/license_account_license_data_api.py index 79ae3133..cd6b5e44 100644 --- a/intersight/apis/license_account_license_data_api.py +++ b/intersight/apis/license_account_license_data_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def license_account_license_data_get(self, **kwargs): """ - List of licenseAccountLicenseData + Get a list of 'licenseAccountLicenseData' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def license_account_license_data_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: LicenseAccountLicenseDataList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def license_account_license_data_get(self, **kwargs): def license_account_license_data_get_with_http_info(self, **kwargs): """ - List of licenseAccountLicenseData + Get a list of 'licenseAccountLicenseData' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def license_account_license_data_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: LicenseAccountLicenseDataList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def license_account_license_data_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def license_account_license_data_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def license_account_license_data_get_with_http_info(self, **kwargs): def license_account_license_data_moid_get(self, moid, **kwargs): """ - A instance of licenseAccountLicenseData + Get a specific instance of 'licenseAccountLicenseData' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def license_account_license_data_moid_get(self, moid, **kwargs): def license_account_license_data_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of licenseAccountLicenseData + Get a specific instance of 'licenseAccountLicenseData' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/license_customer_op_api.py b/intersight/apis/license_customer_op_api.py index 8837dba4..aa7169d4 100644 --- a/intersight/apis/license_customer_op_api.py +++ b/intersight/apis/license_customer_op_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def license_customer_ops_get(self, **kwargs): """ - List of licenseCustomerOps + Get a list of 'licenseCustomerOp' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def license_customer_ops_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: LicenseCustomerOpList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def license_customer_ops_get(self, **kwargs): def license_customer_ops_get_with_http_info(self, **kwargs): """ - List of licenseCustomerOps + Get a list of 'licenseCustomerOp' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def license_customer_ops_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: LicenseCustomerOpList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def license_customer_ops_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def license_customer_ops_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def license_customer_ops_get_with_http_info(self, **kwargs): def license_customer_ops_moid_get(self, moid, **kwargs): """ - A instance of licenseCustomerOp + Get a specific instance of 'licenseCustomerOp' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def license_customer_ops_moid_get(self, moid, **kwargs): def license_customer_ops_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of licenseCustomerOp + Get a specific instance of 'licenseCustomerOp' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def license_customer_ops_moid_get_with_http_info(self, moid, **kwargs): def license_customer_ops_moid_patch(self, moid, body, **kwargs): """ - Update an instance of licenseCustomerOp + Update an instance of 'licenseCustomerOp' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def license_customer_ops_moid_patch(self, moid, body, **kwargs): def license_customer_ops_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of licenseCustomerOp + Update an instance of 'licenseCustomerOp' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def license_customer_ops_moid_patch_with_http_info(self, moid, body, **kwargs): def license_customer_ops_moid_post(self, moid, body, **kwargs): """ - Update an instance of licenseCustomerOp + Update an instance of 'licenseCustomerOp' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def license_customer_ops_moid_post(self, moid, body, **kwargs): def license_customer_ops_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of licenseCustomerOp + Update an instance of 'licenseCustomerOp' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/license_license_info_api.py b/intersight/apis/license_license_info_api.py index 329fb8bd..d6b64915 100644 --- a/intersight/apis/license_license_info_api.py +++ b/intersight/apis/license_license_info_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def license_license_infos_get(self, **kwargs): """ - List of licenseLicenseInfos + Get a list of 'licenseLicenseInfo' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def license_license_infos_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: LicenseLicenseInfoList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def license_license_infos_get(self, **kwargs): def license_license_infos_get_with_http_info(self, **kwargs): """ - List of licenseLicenseInfos + Get a list of 'licenseLicenseInfo' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def license_license_infos_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: LicenseLicenseInfoList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def license_license_infos_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def license_license_infos_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def license_license_infos_get_with_http_info(self, **kwargs): def license_license_infos_moid_get(self, moid, **kwargs): """ - A instance of licenseLicenseInfo + Get a specific instance of 'licenseLicenseInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def license_license_infos_moid_get(self, moid, **kwargs): def license_license_infos_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of licenseLicenseInfo + Get a specific instance of 'licenseLicenseInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def license_license_infos_moid_get_with_http_info(self, moid, **kwargs): def license_license_infos_moid_patch(self, moid, body, **kwargs): """ - Update an instance of licenseLicenseInfo + Update an instance of 'licenseLicenseInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def license_license_infos_moid_patch(self, moid, body, **kwargs): def license_license_infos_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of licenseLicenseInfo + Update an instance of 'licenseLicenseInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def license_license_infos_moid_patch_with_http_info(self, moid, body, **kwargs): def license_license_infos_moid_post(self, moid, body, **kwargs): """ - Update an instance of licenseLicenseInfo + Update an instance of 'licenseLicenseInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def license_license_infos_moid_post(self, moid, body, **kwargs): def license_license_infos_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of licenseLicenseInfo + Update an instance of 'licenseLicenseInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -501,7 +505,7 @@ def license_license_infos_moid_post_with_http_info(self, moid, body, **kwargs): def license_license_infos_post(self, body, **kwargs): """ - Create a licenseLicenseInfo + Create an instance of 'licenseLicenseInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -526,7 +530,7 @@ def license_license_infos_post(self, body, **kwargs): def license_license_infos_post_with_http_info(self, body, **kwargs): """ - Create a licenseLicenseInfo + Create an instance of 'licenseLicenseInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/license_smartlicense_token_api.py b/intersight/apis/license_smartlicense_token_api.py index 4affecde..b92e8f73 100644 --- a/intersight/apis/license_smartlicense_token_api.py +++ b/intersight/apis/license_smartlicense_token_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def license_smartlicense_tokens_get(self, **kwargs): """ - List of licenseSmartlicenseTokens + Get a list of 'licenseSmartlicenseToken' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def license_smartlicense_tokens_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: LicenseSmartlicenseTokenList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def license_smartlicense_tokens_get(self, **kwargs): def license_smartlicense_tokens_get_with_http_info(self, **kwargs): """ - List of licenseSmartlicenseTokens + Get a list of 'licenseSmartlicenseToken' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def license_smartlicense_tokens_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: LicenseSmartlicenseTokenList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def license_smartlicense_tokens_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def license_smartlicense_tokens_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def license_smartlicense_tokens_get_with_http_info(self, **kwargs): def license_smartlicense_tokens_moid_get(self, moid, **kwargs): """ - A instance of licenseSmartlicenseToken + Get a specific instance of 'licenseSmartlicenseToken' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def license_smartlicense_tokens_moid_get(self, moid, **kwargs): def license_smartlicense_tokens_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of licenseSmartlicenseToken + Get a specific instance of 'licenseSmartlicenseToken' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def license_smartlicense_tokens_moid_get_with_http_info(self, moid, **kwargs): def license_smartlicense_tokens_moid_patch(self, moid, body, **kwargs): """ - Update an instance of licenseSmartlicenseToken + Update an instance of 'licenseSmartlicenseToken' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def license_smartlicense_tokens_moid_patch(self, moid, body, **kwargs): def license_smartlicense_tokens_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of licenseSmartlicenseToken + Update an instance of 'licenseSmartlicenseToken' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def license_smartlicense_tokens_moid_patch_with_http_info(self, moid, body, **kw def license_smartlicense_tokens_moid_post(self, moid, body, **kwargs): """ - Update an instance of licenseSmartlicenseToken + Update an instance of 'licenseSmartlicenseToken' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def license_smartlicense_tokens_moid_post(self, moid, body, **kwargs): def license_smartlicense_tokens_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of licenseSmartlicenseToken + Update an instance of 'licenseSmartlicenseToken' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/ls_service_profile_api.py b/intersight/apis/ls_service_profile_api.py index 30e3f69d..73577d98 100644 --- a/intersight/apis/ls_service_profile_api.py +++ b/intersight/apis/ls_service_profile_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def ls_service_profiles_get(self, **kwargs): """ - List of lsServiceProfiles + Get a list of 'lsServiceProfile' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def ls_service_profiles_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: LsServiceProfileList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def ls_service_profiles_get(self, **kwargs): def ls_service_profiles_get_with_http_info(self, **kwargs): """ - List of lsServiceProfiles + Get a list of 'lsServiceProfile' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def ls_service_profiles_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: LsServiceProfileList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def ls_service_profiles_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def ls_service_profiles_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def ls_service_profiles_get_with_http_info(self, **kwargs): def ls_service_profiles_moid_get(self, moid, **kwargs): """ - A instance of lsServiceProfile + Get a specific instance of 'lsServiceProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def ls_service_profiles_moid_get(self, moid, **kwargs): def ls_service_profiles_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of lsServiceProfile + Get a specific instance of 'lsServiceProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def ls_service_profiles_moid_get_with_http_info(self, moid, **kwargs): def ls_service_profiles_moid_patch(self, moid, body, **kwargs): """ - Update an instance of lsServiceProfile + Update an instance of 'lsServiceProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def ls_service_profiles_moid_patch(self, moid, body, **kwargs): def ls_service_profiles_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of lsServiceProfile + Update an instance of 'lsServiceProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def ls_service_profiles_moid_patch_with_http_info(self, moid, body, **kwargs): def ls_service_profiles_moid_post(self, moid, body, **kwargs): """ - Update an instance of lsServiceProfile + Update an instance of 'lsServiceProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def ls_service_profiles_moid_post(self, moid, body, **kwargs): def ls_service_profiles_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of lsServiceProfile + Update an instance of 'lsServiceProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/management_controller_api.py b/intersight/apis/management_controller_api.py index 23d96d3d..2088cfe0 100644 --- a/intersight/apis/management_controller_api.py +++ b/intersight/apis/management_controller_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def management_controllers_get(self, **kwargs): """ - List of managementControllers + Get a list of 'managementController' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def management_controllers_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ManagementControllerList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def management_controllers_get(self, **kwargs): def management_controllers_get_with_http_info(self, **kwargs): """ - List of managementControllers + Get a list of 'managementController' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def management_controllers_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ManagementControllerList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def management_controllers_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def management_controllers_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def management_controllers_get_with_http_info(self, **kwargs): def management_controllers_moid_get(self, moid, **kwargs): """ - A instance of managementController + Get a specific instance of 'managementController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def management_controllers_moid_get(self, moid, **kwargs): def management_controllers_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of managementController + Get a specific instance of 'managementController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def management_controllers_moid_get_with_http_info(self, moid, **kwargs): def management_controllers_moid_patch(self, moid, body, **kwargs): """ - Update an instance of managementController + Update an instance of 'managementController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def management_controllers_moid_patch(self, moid, body, **kwargs): def management_controllers_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of managementController + Update an instance of 'managementController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def management_controllers_moid_patch_with_http_info(self, moid, body, **kwargs) def management_controllers_moid_post(self, moid, body, **kwargs): """ - Update an instance of managementController + Update an instance of 'managementController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def management_controllers_moid_post(self, moid, body, **kwargs): def management_controllers_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of managementController + Update an instance of 'managementController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/management_entity_api.py b/intersight/apis/management_entity_api.py index 4e33a36b..3c8eeee5 100644 --- a/intersight/apis/management_entity_api.py +++ b/intersight/apis/management_entity_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def management_entities_get(self, **kwargs): """ - List of managementEntities + Get a list of 'managementEntity' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def management_entities_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ManagementEntityList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def management_entities_get(self, **kwargs): def management_entities_get_with_http_info(self, **kwargs): """ - List of managementEntities + Get a list of 'managementEntity' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def management_entities_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ManagementEntityList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def management_entities_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def management_entities_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def management_entities_get_with_http_info(self, **kwargs): def management_entities_moid_get(self, moid, **kwargs): """ - A instance of managementEntity + Get a specific instance of 'managementEntity' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def management_entities_moid_get(self, moid, **kwargs): def management_entities_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of managementEntity + Get a specific instance of 'managementEntity' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def management_entities_moid_get_with_http_info(self, moid, **kwargs): def management_entities_moid_patch(self, moid, body, **kwargs): """ - Update an instance of managementEntity + Update an instance of 'managementEntity' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def management_entities_moid_patch(self, moid, body, **kwargs): def management_entities_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of managementEntity + Update an instance of 'managementEntity' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def management_entities_moid_patch_with_http_info(self, moid, body, **kwargs): def management_entities_moid_post(self, moid, body, **kwargs): """ - Update an instance of managementEntity + Update an instance of 'managementEntity' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def management_entities_moid_post(self, moid, body, **kwargs): def management_entities_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of managementEntity + Update an instance of 'managementEntity' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/management_interface_api.py b/intersight/apis/management_interface_api.py index 00877e2b..2487b13a 100644 --- a/intersight/apis/management_interface_api.py +++ b/intersight/apis/management_interface_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def management_interfaces_get(self, **kwargs): """ - List of managementInterfaces + Get a list of 'managementInterface' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def management_interfaces_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ManagementInterfaceList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def management_interfaces_get(self, **kwargs): def management_interfaces_get_with_http_info(self, **kwargs): """ - List of managementInterfaces + Get a list of 'managementInterface' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def management_interfaces_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ManagementInterfaceList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def management_interfaces_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def management_interfaces_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def management_interfaces_get_with_http_info(self, **kwargs): def management_interfaces_moid_get(self, moid, **kwargs): """ - A instance of managementInterface + Get a specific instance of 'managementInterface' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def management_interfaces_moid_get(self, moid, **kwargs): def management_interfaces_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of managementInterface + Get a specific instance of 'managementInterface' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def management_interfaces_moid_get_with_http_info(self, moid, **kwargs): def management_interfaces_moid_patch(self, moid, body, **kwargs): """ - Update an instance of managementInterface + Update an instance of 'managementInterface' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def management_interfaces_moid_patch(self, moid, body, **kwargs): def management_interfaces_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of managementInterface + Update an instance of 'managementInterface' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def management_interfaces_moid_patch_with_http_info(self, moid, body, **kwargs): def management_interfaces_moid_post(self, moid, body, **kwargs): """ - Update an instance of managementInterface + Update an instance of 'managementInterface' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def management_interfaces_moid_post(self, moid, body, **kwargs): def management_interfaces_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of managementInterface + Update an instance of 'managementInterface' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/memory_array_api.py b/intersight/apis/memory_array_api.py index 6468a27c..702abc1f 100644 --- a/intersight/apis/memory_array_api.py +++ b/intersight/apis/memory_array_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def memory_arrays_get(self, **kwargs): """ - List of memoryArrays + Get a list of 'memoryArray' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def memory_arrays_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: MemoryArrayList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def memory_arrays_get(self, **kwargs): def memory_arrays_get_with_http_info(self, **kwargs): """ - List of memoryArrays + Get a list of 'memoryArray' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def memory_arrays_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: MemoryArrayList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def memory_arrays_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def memory_arrays_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def memory_arrays_get_with_http_info(self, **kwargs): def memory_arrays_moid_get(self, moid, **kwargs): """ - A instance of memoryArray + Get a specific instance of 'memoryArray' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def memory_arrays_moid_get(self, moid, **kwargs): def memory_arrays_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of memoryArray + Get a specific instance of 'memoryArray' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def memory_arrays_moid_get_with_http_info(self, moid, **kwargs): def memory_arrays_moid_patch(self, moid, body, **kwargs): """ - Update an instance of memoryArray + Update an instance of 'memoryArray' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def memory_arrays_moid_patch(self, moid, body, **kwargs): def memory_arrays_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of memoryArray + Update an instance of 'memoryArray' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def memory_arrays_moid_patch_with_http_info(self, moid, body, **kwargs): def memory_arrays_moid_post(self, moid, body, **kwargs): """ - Update an instance of memoryArray + Update an instance of 'memoryArray' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def memory_arrays_moid_post(self, moid, body, **kwargs): def memory_arrays_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of memoryArray + Update an instance of 'memoryArray' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/memory_unit_api.py b/intersight/apis/memory_unit_api.py index 1ccd90e1..40e128d1 100644 --- a/intersight/apis/memory_unit_api.py +++ b/intersight/apis/memory_unit_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def memory_units_get(self, **kwargs): """ - List of memoryUnits + Get a list of 'memoryUnit' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def memory_units_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: MemoryUnitList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def memory_units_get(self, **kwargs): def memory_units_get_with_http_info(self, **kwargs): """ - List of memoryUnits + Get a list of 'memoryUnit' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def memory_units_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: MemoryUnitList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def memory_units_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def memory_units_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def memory_units_get_with_http_info(self, **kwargs): def memory_units_moid_get(self, moid, **kwargs): """ - A instance of memoryUnit + Get a specific instance of 'memoryUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def memory_units_moid_get(self, moid, **kwargs): def memory_units_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of memoryUnit + Get a specific instance of 'memoryUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def memory_units_moid_get_with_http_info(self, moid, **kwargs): def memory_units_moid_patch(self, moid, body, **kwargs): """ - Update an instance of memoryUnit + Update an instance of 'memoryUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def memory_units_moid_patch(self, moid, body, **kwargs): def memory_units_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of memoryUnit + Update an instance of 'memoryUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def memory_units_moid_patch_with_http_info(self, moid, body, **kwargs): def memory_units_moid_post(self, moid, body, **kwargs): """ - Update an instance of memoryUnit + Update an instance of 'memoryUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def memory_units_moid_post(self, moid, body, **kwargs): def memory_units_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of memoryUnit + Update an instance of 'memoryUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/meta_definition_api.py b/intersight/apis/meta_definition_api.py index f9e43b81..2ecae61d 100644 --- a/intersight/apis/meta_definition_api.py +++ b/intersight/apis/meta_definition_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def meta_definitions_get(self, **kwargs): """ - List of metaDefinitions + Get a list of 'metaDefinition' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def meta_definitions_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: MetaDefinitionList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def meta_definitions_get(self, **kwargs): def meta_definitions_get_with_http_info(self, **kwargs): """ - List of metaDefinitions + Get a list of 'metaDefinition' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def meta_definitions_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: MetaDefinitionList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def meta_definitions_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def meta_definitions_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -173,9 +177,113 @@ def meta_definitions_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def meta_definitions_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'metaDefinition' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.meta_definitions_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the metaDefinition instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.meta_definitions_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.meta_definitions_moid_delete_with_http_info(moid, **kwargs) + return data + + def meta_definitions_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'metaDefinition' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.meta_definitions_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the metaDefinition instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method meta_definitions_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `meta_definitions_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/meta/Definitions/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def meta_definitions_moid_get(self, moid, **kwargs): """ - A instance of metaDefinition + Get a specific instance of 'metaDefinition' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +308,7 @@ def meta_definitions_moid_get(self, moid, **kwargs): def meta_definitions_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of metaDefinition + Get a specific instance of 'metaDefinition' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/network_element_api.py b/intersight/apis/network_element_api.py index b50ea2fd..522c699c 100644 --- a/intersight/apis/network_element_api.py +++ b/intersight/apis/network_element_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def network_elements_get(self, **kwargs): """ - List of networkElements + Get a list of 'networkElement' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def network_elements_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: NetworkElementList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def network_elements_get(self, **kwargs): def network_elements_get_with_http_info(self, **kwargs): """ - List of networkElements + Get a list of 'networkElement' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def network_elements_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: NetworkElementList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def network_elements_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def network_elements_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def network_elements_get_with_http_info(self, **kwargs): def network_elements_moid_get(self, moid, **kwargs): """ - A instance of networkElement + Get a specific instance of 'networkElement' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def network_elements_moid_get(self, moid, **kwargs): def network_elements_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of networkElement + Get a specific instance of 'networkElement' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def network_elements_moid_get_with_http_info(self, moid, **kwargs): def network_elements_moid_patch(self, moid, body, **kwargs): """ - Update an instance of networkElement + Update an instance of 'networkElement' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def network_elements_moid_patch(self, moid, body, **kwargs): def network_elements_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of networkElement + Update an instance of 'networkElement' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def network_elements_moid_patch_with_http_info(self, moid, body, **kwargs): def network_elements_moid_post(self, moid, body, **kwargs): """ - Update an instance of networkElement + Update an instance of 'networkElement' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def network_elements_moid_post(self, moid, body, **kwargs): def network_elements_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of networkElement + Update an instance of 'networkElement' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/network_element_summary_api.py b/intersight/apis/network_element_summary_api.py index fa36552d..ffccdae5 100644 --- a/intersight/apis/network_element_summary_api.py +++ b/intersight/apis/network_element_summary_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def network_element_summaries_get(self, **kwargs): """ - List of networkElementSummaries + Get a list of 'networkElementSummary' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def network_element_summaries_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: NetworkElementSummaryList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def network_element_summaries_get(self, **kwargs): def network_element_summaries_get_with_http_info(self, **kwargs): """ - List of networkElementSummaries + Get a list of 'networkElementSummary' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def network_element_summaries_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: NetworkElementSummaryList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def network_element_summaries_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def network_element_summaries_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def network_element_summaries_get_with_http_info(self, **kwargs): def network_element_summaries_moid_get(self, moid, **kwargs): """ - A instance of networkElementSummary + Get a specific instance of 'networkElementSummary' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def network_element_summaries_moid_get(self, moid, **kwargs): def network_element_summaries_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of networkElementSummary + Get a specific instance of 'networkElementSummary' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/networkconfig_policy_api.py b/intersight/apis/networkconfig_policy_api.py index 848befb0..fd7e8fac 100644 --- a/intersight/apis/networkconfig_policy_api.py +++ b/intersight/apis/networkconfig_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def networkconfig_policies_get(self, **kwargs): """ - List of networkconfigPolicies + Get a list of 'networkconfigPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def networkconfig_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: NetworkconfigPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def networkconfig_policies_get(self, **kwargs): def networkconfig_policies_get_with_http_info(self, **kwargs): """ - List of networkconfigPolicies + Get a list of 'networkconfigPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def networkconfig_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: NetworkconfigPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def networkconfig_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def networkconfig_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def networkconfig_policies_get_with_http_info(self, **kwargs): def networkconfig_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of networkconfigPolicy + Delete an instance of 'networkconfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def networkconfig_policies_moid_delete(self, moid, **kwargs): def networkconfig_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of networkconfigPolicy + Delete an instance of 'networkconfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def networkconfig_policies_moid_delete_with_http_info(self, moid, **kwargs): def networkconfig_policies_moid_get(self, moid, **kwargs): """ - A instance of networkconfigPolicy + Get a specific instance of 'networkconfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def networkconfig_policies_moid_get(self, moid, **kwargs): def networkconfig_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of networkconfigPolicy + Get a specific instance of 'networkconfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def networkconfig_policies_moid_get_with_http_info(self, moid, **kwargs): def networkconfig_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of networkconfigPolicy + Update an instance of 'networkconfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def networkconfig_policies_moid_patch(self, moid, body, **kwargs): def networkconfig_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of networkconfigPolicy + Update an instance of 'networkconfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def networkconfig_policies_moid_patch_with_http_info(self, moid, body, **kwargs) def networkconfig_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of networkconfigPolicy + Update an instance of 'networkconfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def networkconfig_policies_moid_post(self, moid, body, **kwargs): def networkconfig_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of networkconfigPolicy + Update an instance of 'networkconfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def networkconfig_policies_moid_post_with_http_info(self, moid, body, **kwargs): def networkconfig_policies_post(self, body, **kwargs): """ - Create a networkconfigPolicy + Create an instance of 'networkconfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def networkconfig_policies_post(self, body, **kwargs): def networkconfig_policies_post_with_http_info(self, body, **kwargs): """ - Create a networkconfigPolicy + Create an instance of 'networkconfigPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/ntp_policy_api.py b/intersight/apis/ntp_policy_api.py index 726739c2..c85e0212 100644 --- a/intersight/apis/ntp_policy_api.py +++ b/intersight/apis/ntp_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def ntp_policies_get(self, **kwargs): """ - List of ntpPolicies + Get a list of 'ntpPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def ntp_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: NtpPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def ntp_policies_get(self, **kwargs): def ntp_policies_get_with_http_info(self, **kwargs): """ - List of ntpPolicies + Get a list of 'ntpPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def ntp_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: NtpPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def ntp_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def ntp_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def ntp_policies_get_with_http_info(self, **kwargs): def ntp_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of ntpPolicy + Delete an instance of 'ntpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def ntp_policies_moid_delete(self, moid, **kwargs): def ntp_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of ntpPolicy + Delete an instance of 'ntpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def ntp_policies_moid_delete_with_http_info(self, moid, **kwargs): def ntp_policies_moid_get(self, moid, **kwargs): """ - A instance of ntpPolicy + Get a specific instance of 'ntpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def ntp_policies_moid_get(self, moid, **kwargs): def ntp_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of ntpPolicy + Get a specific instance of 'ntpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def ntp_policies_moid_get_with_http_info(self, moid, **kwargs): def ntp_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of ntpPolicy + Update an instance of 'ntpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def ntp_policies_moid_patch(self, moid, body, **kwargs): def ntp_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of ntpPolicy + Update an instance of 'ntpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def ntp_policies_moid_patch_with_http_info(self, moid, body, **kwargs): def ntp_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of ntpPolicy + Update an instance of 'ntpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def ntp_policies_moid_post(self, moid, body, **kwargs): def ntp_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of ntpPolicy + Update an instance of 'ntpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def ntp_policies_moid_post_with_http_info(self, moid, body, **kwargs): def ntp_policies_post(self, body, **kwargs): """ - Create a ntpPolicy + Create an instance of 'ntpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def ntp_policies_post(self, body, **kwargs): def ntp_policies_post_with_http_info(self, body, **kwargs): """ - Create a ntpPolicy + Create an instance of 'ntpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/epansible_runner_api.py b/intersight/apis/oauth_oauth_user_api.py similarity index 74% rename from intersight/apis/epansible_runner_api.py rename to intersight/apis/oauth_oauth_user_api.py index e7064db5..5b1d9a73 100644 --- a/intersight/apis/epansible_runner_api.py +++ b/intersight/apis/oauth_oauth_user_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -24,7 +24,7 @@ from ..api_client import ApiClient -class EpansibleRunnerApi(object): +class OauthOauthUserApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,67 +40,69 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def epansible_runners_get(self, **kwargs): + def oauth_oauth_users_get(self, **kwargs): """ - List of epansibleRunners + Get a list of 'oauthOauthUser' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.epansible_runners_get(callback=callback_function) + >>> thread = api.oauth_oauth_users_get(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: EpansibleRunnerList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: OauthOauthUserList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.epansible_runners_get_with_http_info(**kwargs) + return self.oauth_oauth_users_get_with_http_info(**kwargs) else: - (data) = self.epansible_runners_get_with_http_info(**kwargs) + (data) = self.oauth_oauth_users_get_with_http_info(**kwargs) return data - def epansible_runners_get_with_http_info(self, **kwargs): + def oauth_oauth_users_get_with_http_info(self, **kwargs): """ - List of epansibleRunners + Get a list of 'oauthOauthUser' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.epansible_runners_get_with_http_info(callback=callback_function) + >>> thread = api.oauth_oauth_users_get_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: EpansibleRunnerList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: OauthOauthUserList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -111,7 +113,7 @@ def epansible_runners_get_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method epansible_runners_get" % key + " to method oauth_oauth_users_get" % key ) params[key] = val del params['kwargs'] @@ -126,8 +128,6 @@ def epansible_runners_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def epansible_runners_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -158,14 +162,14 @@ def epansible_runners_get_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/epansible/Runners', 'GET', + return self.api_client.call_api('/oauth/OauthUsers', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='EpansibleRunnerList', + response_type='OauthOauthUserList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -173,45 +177,45 @@ def epansible_runners_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def epansible_runners_moid_delete(self, moid, **kwargs): + def oauth_oauth_users_moid_delete(self, moid, **kwargs): """ - Delete an instance of epansibleRunner + Delete an instance of 'oauthOauthUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.epansible_runners_moid_delete(moid, callback=callback_function) + >>> thread = api.oauth_oauth_users_moid_delete(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the epansibleRunner instance. (required) + :param str moid: The moid of the oauthOauthUser instance. (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.epansible_runners_moid_delete_with_http_info(moid, **kwargs) + return self.oauth_oauth_users_moid_delete_with_http_info(moid, **kwargs) else: - (data) = self.epansible_runners_moid_delete_with_http_info(moid, **kwargs) + (data) = self.oauth_oauth_users_moid_delete_with_http_info(moid, **kwargs) return data - def epansible_runners_moid_delete_with_http_info(self, moid, **kwargs): + def oauth_oauth_users_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of epansibleRunner + Delete an instance of 'oauthOauthUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.epansible_runners_moid_delete_with_http_info(moid, callback=callback_function) + >>> thread = api.oauth_oauth_users_moid_delete_with_http_info(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the epansibleRunner instance. (required) + :param str moid: The moid of the oauthOauthUser instance. (required) :return: None If the method is called asynchronously, returns the request thread. @@ -228,13 +232,13 @@ def epansible_runners_moid_delete_with_http_info(self, moid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method epansible_runners_moid_delete" % key + " to method oauth_oauth_users_moid_delete" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `epansible_runners_moid_delete`") + raise ValueError("Missing the required parameter `moid` when calling `oauth_oauth_users_moid_delete`") collection_formats = {} @@ -262,7 +266,7 @@ def epansible_runners_moid_delete_with_http_info(self, moid, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/epansible/Runners/{moid}', 'DELETE', + return self.api_client.call_api('/oauth/OauthUsers/{moid}', 'DELETE', path_params, query_params, header_params, @@ -277,46 +281,46 @@ def epansible_runners_moid_delete_with_http_info(self, moid, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def epansible_runners_moid_get(self, moid, **kwargs): + def oauth_oauth_users_moid_get(self, moid, **kwargs): """ - A instance of epansibleRunner + Get a specific instance of 'oauthOauthUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.epansible_runners_moid_get(moid, callback=callback_function) + >>> thread = api.oauth_oauth_users_moid_get(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the epansibleRunner instance. (required) - :return: EpansibleRunner + :param str moid: The moid of the oauthOauthUser instance. (required) + :return: OauthOauthUser If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.epansible_runners_moid_get_with_http_info(moid, **kwargs) + return self.oauth_oauth_users_moid_get_with_http_info(moid, **kwargs) else: - (data) = self.epansible_runners_moid_get_with_http_info(moid, **kwargs) + (data) = self.oauth_oauth_users_moid_get_with_http_info(moid, **kwargs) return data - def epansible_runners_moid_get_with_http_info(self, moid, **kwargs): + def oauth_oauth_users_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of epansibleRunner + Get a specific instance of 'oauthOauthUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.epansible_runners_moid_get_with_http_info(moid, callback=callback_function) + >>> thread = api.oauth_oauth_users_moid_get_with_http_info(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the epansibleRunner instance. (required) - :return: EpansibleRunner + :param str moid: The moid of the oauthOauthUser instance. (required) + :return: OauthOauthUser If the method is called asynchronously, returns the request thread. """ @@ -332,13 +336,13 @@ def epansible_runners_moid_get_with_http_info(self, moid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method epansible_runners_moid_get" % key + " to method oauth_oauth_users_moid_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `epansible_runners_moid_get`") + raise ValueError("Missing the required parameter `moid` when calling `oauth_oauth_users_moid_get`") collection_formats = {} @@ -366,14 +370,14 @@ def epansible_runners_moid_get_with_http_info(self, moid, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/epansible/Runners/{moid}', 'GET', + return self.api_client.call_api('/oauth/OauthUsers/{moid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='EpansibleRunner', + response_type='OauthOauthUser', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -381,47 +385,47 @@ def epansible_runners_moid_get_with_http_info(self, moid, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def epansible_runners_moid_patch(self, moid, body, **kwargs): + def oauth_oauth_users_moid_patch(self, moid, body, **kwargs): """ - Update an instance of epansibleRunner + Update an instance of 'oauthOauthUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.epansible_runners_moid_patch(moid, body, callback=callback_function) + >>> thread = api.oauth_oauth_users_moid_patch(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the epansibleRunner instance. (required) - :param EpansibleRunner body: epansibleRunner to update (required) + :param str moid: The moid of the oauthOauthUser instance. (required) + :param OauthOauthUser body: oauthOauthUser to update (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.epansible_runners_moid_patch_with_http_info(moid, body, **kwargs) + return self.oauth_oauth_users_moid_patch_with_http_info(moid, body, **kwargs) else: - (data) = self.epansible_runners_moid_patch_with_http_info(moid, body, **kwargs) + (data) = self.oauth_oauth_users_moid_patch_with_http_info(moid, body, **kwargs) return data - def epansible_runners_moid_patch_with_http_info(self, moid, body, **kwargs): + def oauth_oauth_users_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of epansibleRunner + Update an instance of 'oauthOauthUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.epansible_runners_moid_patch_with_http_info(moid, body, callback=callback_function) + >>> thread = api.oauth_oauth_users_moid_patch_with_http_info(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the epansibleRunner instance. (required) - :param EpansibleRunner body: epansibleRunner to update (required) + :param str moid: The moid of the oauthOauthUser instance. (required) + :param OauthOauthUser body: oauthOauthUser to update (required) :return: None If the method is called asynchronously, returns the request thread. @@ -438,16 +442,16 @@ def epansible_runners_moid_patch_with_http_info(self, moid, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method epansible_runners_moid_patch" % key + " to method oauth_oauth_users_moid_patch" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `epansible_runners_moid_patch`") + raise ValueError("Missing the required parameter `moid` when calling `oauth_oauth_users_moid_patch`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `epansible_runners_moid_patch`") + raise ValueError("Missing the required parameter `body` when calling `oauth_oauth_users_moid_patch`") collection_formats = {} @@ -477,7 +481,7 @@ def epansible_runners_moid_patch_with_http_info(self, moid, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/epansible/Runners/{moid}', 'PATCH', + return self.api_client.call_api('/oauth/OauthUsers/{moid}', 'PATCH', path_params, query_params, header_params, @@ -492,47 +496,47 @@ def epansible_runners_moid_patch_with_http_info(self, moid, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def epansible_runners_moid_post(self, moid, body, **kwargs): + def oauth_oauth_users_moid_post(self, moid, body, **kwargs): """ - Update an instance of epansibleRunner + Update an instance of 'oauthOauthUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.epansible_runners_moid_post(moid, body, callback=callback_function) + >>> thread = api.oauth_oauth_users_moid_post(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the epansibleRunner instance. (required) - :param EpansibleRunner body: epansibleRunner to update (required) + :param str moid: The moid of the oauthOauthUser instance. (required) + :param OauthOauthUser body: oauthOauthUser to update (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.epansible_runners_moid_post_with_http_info(moid, body, **kwargs) + return self.oauth_oauth_users_moid_post_with_http_info(moid, body, **kwargs) else: - (data) = self.epansible_runners_moid_post_with_http_info(moid, body, **kwargs) + (data) = self.oauth_oauth_users_moid_post_with_http_info(moid, body, **kwargs) return data - def epansible_runners_moid_post_with_http_info(self, moid, body, **kwargs): + def oauth_oauth_users_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of epansibleRunner + Update an instance of 'oauthOauthUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.epansible_runners_moid_post_with_http_info(moid, body, callback=callback_function) + >>> thread = api.oauth_oauth_users_moid_post_with_http_info(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the epansibleRunner instance. (required) - :param EpansibleRunner body: epansibleRunner to update (required) + :param str moid: The moid of the oauthOauthUser instance. (required) + :param OauthOauthUser body: oauthOauthUser to update (required) :return: None If the method is called asynchronously, returns the request thread. @@ -549,16 +553,16 @@ def epansible_runners_moid_post_with_http_info(self, moid, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method epansible_runners_moid_post" % key + " to method oauth_oauth_users_moid_post" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `epansible_runners_moid_post`") + raise ValueError("Missing the required parameter `moid` when calling `oauth_oauth_users_moid_post`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `epansible_runners_moid_post`") + raise ValueError("Missing the required parameter `body` when calling `oauth_oauth_users_moid_post`") collection_formats = {} @@ -588,7 +592,7 @@ def epansible_runners_moid_post_with_http_info(self, moid, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/epansible/Runners/{moid}', 'POST', + return self.api_client.call_api('/oauth/OauthUsers/{moid}', 'POST', path_params, query_params, header_params, @@ -603,45 +607,45 @@ def epansible_runners_moid_post_with_http_info(self, moid, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def epansible_runners_post(self, body, **kwargs): + def oauth_oauth_users_post(self, body, **kwargs): """ - Create a epansibleRunner + Create an instance of 'oauthOauthUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.epansible_runners_post(body, callback=callback_function) + >>> thread = api.oauth_oauth_users_post(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param EpansibleRunner body: epansibleRunner to add (required) + :param OauthOauthUser body: oauthOauthUser to add (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.epansible_runners_post_with_http_info(body, **kwargs) + return self.oauth_oauth_users_post_with_http_info(body, **kwargs) else: - (data) = self.epansible_runners_post_with_http_info(body, **kwargs) + (data) = self.oauth_oauth_users_post_with_http_info(body, **kwargs) return data - def epansible_runners_post_with_http_info(self, body, **kwargs): + def oauth_oauth_users_post_with_http_info(self, body, **kwargs): """ - Create a epansibleRunner + Create an instance of 'oauthOauthUser' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.epansible_runners_post_with_http_info(body, callback=callback_function) + >>> thread = api.oauth_oauth_users_post_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param EpansibleRunner body: epansibleRunner to add (required) + :param OauthOauthUser body: oauthOauthUser to add (required) :return: None If the method is called asynchronously, returns the request thread. @@ -658,13 +662,13 @@ def epansible_runners_post_with_http_info(self, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method epansible_runners_post" % key + " to method oauth_oauth_users_post" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `epansible_runners_post`") + raise ValueError("Missing the required parameter `body` when calling `oauth_oauth_users_post`") collection_formats = {} @@ -692,7 +696,7 @@ def epansible_runners_post_with_http_info(self, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/epansible/Runners', 'POST', + return self.api_client.call_api('/oauth/OauthUsers', 'POST', path_params, query_params, header_params, diff --git a/intersight/apis/packagemanagement_connector_image_api.py b/intersight/apis/pci_device_api.py similarity index 69% rename from intersight/apis/packagemanagement_connector_image_api.py rename to intersight/apis/pci_device_api.py index f897599b..cf88b787 100644 --- a/intersight/apis/packagemanagement_connector_image_api.py +++ b/intersight/apis/pci_device_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -24,7 +24,7 @@ from ..api_client import ApiClient -class PackagemanagementConnectorImageApi(object): +class PciDeviceApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,67 +40,69 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def packagemanagement_connector_images_get(self, **kwargs): + def pci_devices_get(self, **kwargs): """ - List of packagemanagementConnectorImages + Get a list of 'pciDevice' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_images_get(callback=callback_function) + >>> thread = api.pci_devices_get(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: PackagemanagementConnectorImageList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: PciDeviceList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.packagemanagement_connector_images_get_with_http_info(**kwargs) + return self.pci_devices_get_with_http_info(**kwargs) else: - (data) = self.packagemanagement_connector_images_get_with_http_info(**kwargs) + (data) = self.pci_devices_get_with_http_info(**kwargs) return data - def packagemanagement_connector_images_get_with_http_info(self, **kwargs): + def pci_devices_get_with_http_info(self, **kwargs): """ - List of packagemanagementConnectorImages + Get a list of 'pciDevice' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_images_get_with_http_info(callback=callback_function) + >>> thread = api.pci_devices_get_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: PackagemanagementConnectorImageList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: PciDeviceList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -111,7 +113,7 @@ def packagemanagement_connector_images_get_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method packagemanagement_connector_images_get" % key + " to method pci_devices_get" % key ) params[key] = val del params['kwargs'] @@ -126,8 +128,6 @@ def packagemanagement_connector_images_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def packagemanagement_connector_images_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -158,14 +162,14 @@ def packagemanagement_connector_images_get_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/packagemanagement/ConnectorImages', 'GET', + return self.api_client.call_api('/pci/Devices', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='PackagemanagementConnectorImageList', + response_type='PciDeviceList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -173,46 +177,46 @@ def packagemanagement_connector_images_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def packagemanagement_connector_images_moid_delete(self, moid, **kwargs): + def pci_devices_moid_get(self, moid, **kwargs): """ - Delete an instance of packagemanagementConnectorImage + Get a specific instance of 'pciDevice' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_images_moid_delete(moid, callback=callback_function) + >>> thread = api.pci_devices_moid_get(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorImage instance. (required) - :return: None + :param str moid: The moid of the pciDevice instance. (required) + :return: PciDevice If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.packagemanagement_connector_images_moid_delete_with_http_info(moid, **kwargs) + return self.pci_devices_moid_get_with_http_info(moid, **kwargs) else: - (data) = self.packagemanagement_connector_images_moid_delete_with_http_info(moid, **kwargs) + (data) = self.pci_devices_moid_get_with_http_info(moid, **kwargs) return data - def packagemanagement_connector_images_moid_delete_with_http_info(self, moid, **kwargs): + def pci_devices_moid_get_with_http_info(self, moid, **kwargs): """ - Delete an instance of packagemanagementConnectorImage + Get a specific instance of 'pciDevice' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_images_moid_delete_with_http_info(moid, callback=callback_function) + >>> thread = api.pci_devices_moid_get_with_http_info(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorImage instance. (required) - :return: None + :param str moid: The moid of the pciDevice instance. (required) + :return: PciDevice If the method is called asynchronously, returns the request thread. """ @@ -228,13 +232,13 @@ def packagemanagement_connector_images_moid_delete_with_http_info(self, moid, ** if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method packagemanagement_connector_images_moid_delete" % key + " to method pci_devices_moid_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `packagemanagement_connector_images_moid_delete`") + raise ValueError("Missing the required parameter `moid` when calling `pci_devices_moid_get`") collection_formats = {} @@ -262,14 +266,14 @@ def packagemanagement_connector_images_moid_delete_with_http_info(self, moid, ** # Authentication setting auth_settings = [] - return self.api_client.call_api('/packagemanagement/ConnectorImages/{moid}', 'DELETE', + return self.api_client.call_api('/pci/Devices/{moid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='PciDevice', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -277,51 +281,53 @@ def packagemanagement_connector_images_moid_delete_with_http_info(self, moid, ** _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def packagemanagement_connector_images_moid_get(self, moid, **kwargs): + def pci_devices_moid_patch(self, moid, body, **kwargs): """ - A instance of packagemanagementConnectorImage + Update an instance of 'pciDevice' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_images_moid_get(moid, callback=callback_function) + >>> thread = api.pci_devices_moid_patch(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorImage instance. (required) - :return: PackagemanagementConnectorImage + :param str moid: The moid of the pciDevice instance. (required) + :param PciDevice body: pciDevice to update (required) + :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.packagemanagement_connector_images_moid_get_with_http_info(moid, **kwargs) + return self.pci_devices_moid_patch_with_http_info(moid, body, **kwargs) else: - (data) = self.packagemanagement_connector_images_moid_get_with_http_info(moid, **kwargs) + (data) = self.pci_devices_moid_patch_with_http_info(moid, body, **kwargs) return data - def packagemanagement_connector_images_moid_get_with_http_info(self, moid, **kwargs): + def pci_devices_moid_patch_with_http_info(self, moid, body, **kwargs): """ - A instance of packagemanagementConnectorImage + Update an instance of 'pciDevice' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_images_moid_get_with_http_info(moid, callback=callback_function) + >>> thread = api.pci_devices_moid_patch_with_http_info(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorImage instance. (required) - :return: PackagemanagementConnectorImage + :param str moid: The moid of the pciDevice instance. (required) + :param PciDevice body: pciDevice to update (required) + :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['moid'] + all_params = ['moid', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -332,13 +338,16 @@ def packagemanagement_connector_images_moid_get_with_http_info(self, moid, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method packagemanagement_connector_images_moid_get" % key + " to method pci_devices_moid_patch" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `packagemanagement_connector_images_moid_get`") + raise ValueError("Missing the required parameter `moid` when calling `pci_devices_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `pci_devices_moid_patch`") collection_formats = {} @@ -355,6 +364,8 @@ def packagemanagement_connector_images_moid_get_with_http_info(self, moid, **kwa local_var_files = {} body_params = None + if 'body' in params: + body_params = params['body'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) @@ -366,14 +377,14 @@ def packagemanagement_connector_images_moid_get_with_http_info(self, moid, **kwa # Authentication setting auth_settings = [] - return self.api_client.call_api('/packagemanagement/ConnectorImages/{moid}', 'GET', + return self.api_client.call_api('/pci/Devices/{moid}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='PackagemanagementConnectorImage', + response_type=None, auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -381,51 +392,53 @@ def packagemanagement_connector_images_moid_get_with_http_info(self, moid, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def packagemanagement_connector_images_post(self, body, **kwargs): + def pci_devices_moid_post(self, moid, body, **kwargs): """ - Create a packagemanagementConnectorImage + Update an instance of 'pciDevice' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_images_post(body, callback=callback_function) + >>> thread = api.pci_devices_moid_post(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param PackagemanagementConnectorImage body: packagemanagementConnectorImage to add (required) + :param str moid: The moid of the pciDevice instance. (required) + :param PciDevice body: pciDevice to update (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.packagemanagement_connector_images_post_with_http_info(body, **kwargs) + return self.pci_devices_moid_post_with_http_info(moid, body, **kwargs) else: - (data) = self.packagemanagement_connector_images_post_with_http_info(body, **kwargs) + (data) = self.pci_devices_moid_post_with_http_info(moid, body, **kwargs) return data - def packagemanagement_connector_images_post_with_http_info(self, body, **kwargs): + def pci_devices_moid_post_with_http_info(self, moid, body, **kwargs): """ - Create a packagemanagementConnectorImage + Update an instance of 'pciDevice' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_images_post_with_http_info(body, callback=callback_function) + >>> thread = api.pci_devices_moid_post_with_http_info(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param PackagemanagementConnectorImage body: packagemanagementConnectorImage to add (required) + :param str moid: The moid of the pciDevice instance. (required) + :param PciDevice body: pciDevice to update (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['body'] + all_params = ['moid', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -436,18 +449,23 @@ def packagemanagement_connector_images_post_with_http_info(self, body, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method packagemanagement_connector_images_post" % key + " to method pci_devices_moid_post" % key ) params[key] = val del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `pci_devices_moid_post`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `packagemanagement_connector_images_post`") + raise ValueError("Missing the required parameter `body` when calling `pci_devices_moid_post`") collection_formats = {} path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] query_params = [] @@ -470,7 +488,7 @@ def packagemanagement_connector_images_post_with_http_info(self, body, **kwargs) # Authentication setting auth_settings = [] - return self.api_client.call_api('/packagemanagement/ConnectorImages', 'POST', + return self.api_client.call_api('/pci/Devices/{moid}', 'POST', path_params, query_params, header_params, diff --git a/intersight/apis/port_group_api.py b/intersight/apis/port_group_api.py index 6f0bdded..0a272ab1 100644 --- a/intersight/apis/port_group_api.py +++ b/intersight/apis/port_group_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def port_groups_get(self, **kwargs): """ - List of portGroups + Get a list of 'portGroup' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def port_groups_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: PortGroupList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def port_groups_get(self, **kwargs): def port_groups_get_with_http_info(self, **kwargs): """ - List of portGroups + Get a list of 'portGroup' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def port_groups_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: PortGroupList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def port_groups_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def port_groups_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def port_groups_get_with_http_info(self, **kwargs): def port_groups_moid_get(self, moid, **kwargs): """ - A instance of portGroup + Get a specific instance of 'portGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def port_groups_moid_get(self, moid, **kwargs): def port_groups_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of portGroup + Get a specific instance of 'portGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def port_groups_moid_get_with_http_info(self, moid, **kwargs): def port_groups_moid_patch(self, moid, body, **kwargs): """ - Update an instance of portGroup + Update an instance of 'portGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def port_groups_moid_patch(self, moid, body, **kwargs): def port_groups_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of portGroup + Update an instance of 'portGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def port_groups_moid_patch_with_http_info(self, moid, body, **kwargs): def port_groups_moid_post(self, moid, body, **kwargs): """ - Update an instance of portGroup + Update an instance of 'portGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def port_groups_moid_post(self, moid, body, **kwargs): def port_groups_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of portGroup + Update an instance of 'portGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/port_sub_group_api.py b/intersight/apis/port_sub_group_api.py index b7e7de61..326a7652 100644 --- a/intersight/apis/port_sub_group_api.py +++ b/intersight/apis/port_sub_group_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def port_sub_groups_get(self, **kwargs): """ - List of portSubGroups + Get a list of 'portSubGroup' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def port_sub_groups_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: PortSubGroupList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def port_sub_groups_get(self, **kwargs): def port_sub_groups_get_with_http_info(self, **kwargs): """ - List of portSubGroups + Get a list of 'portSubGroup' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def port_sub_groups_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: PortSubGroupList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def port_sub_groups_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def port_sub_groups_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def port_sub_groups_get_with_http_info(self, **kwargs): def port_sub_groups_moid_get(self, moid, **kwargs): """ - A instance of portSubGroup + Get a specific instance of 'portSubGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def port_sub_groups_moid_get(self, moid, **kwargs): def port_sub_groups_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of portSubGroup + Get a specific instance of 'portSubGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def port_sub_groups_moid_get_with_http_info(self, moid, **kwargs): def port_sub_groups_moid_patch(self, moid, body, **kwargs): """ - Update an instance of portSubGroup + Update an instance of 'portSubGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def port_sub_groups_moid_patch(self, moid, body, **kwargs): def port_sub_groups_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of portSubGroup + Update an instance of 'portSubGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def port_sub_groups_moid_patch_with_http_info(self, moid, body, **kwargs): def port_sub_groups_moid_post(self, moid, body, **kwargs): """ - Update an instance of portSubGroup + Update an instance of 'portSubGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def port_sub_groups_moid_post(self, moid, body, **kwargs): def port_sub_groups_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of portSubGroup + Update an instance of 'portSubGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/processor_unit_api.py b/intersight/apis/processor_unit_api.py index 27b48c50..db4fdeb8 100644 --- a/intersight/apis/processor_unit_api.py +++ b/intersight/apis/processor_unit_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def processor_units_get(self, **kwargs): """ - List of processorUnits + Get a list of 'processorUnit' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def processor_units_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ProcessorUnitList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def processor_units_get(self, **kwargs): def processor_units_get_with_http_info(self, **kwargs): """ - List of processorUnits + Get a list of 'processorUnit' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def processor_units_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ProcessorUnitList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def processor_units_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def processor_units_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def processor_units_get_with_http_info(self, **kwargs): def processor_units_moid_get(self, moid, **kwargs): """ - A instance of processorUnit + Get a specific instance of 'processorUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def processor_units_moid_get(self, moid, **kwargs): def processor_units_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of processorUnit + Get a specific instance of 'processorUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def processor_units_moid_get_with_http_info(self, moid, **kwargs): def processor_units_moid_patch(self, moid, body, **kwargs): """ - Update an instance of processorUnit + Update an instance of 'processorUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def processor_units_moid_patch(self, moid, body, **kwargs): def processor_units_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of processorUnit + Update an instance of 'processorUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def processor_units_moid_patch_with_http_info(self, moid, body, **kwargs): def processor_units_moid_post(self, moid, body, **kwargs): """ - Update an instance of processorUnit + Update an instance of 'processorUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def processor_units_moid_post(self, moid, body, **kwargs): def processor_units_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of processorUnit + Update an instance of 'processorUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/packagemanagement_connector_deploy_policy_api.py b/intersight/apis/resource_group_api.py similarity index 73% rename from intersight/apis/packagemanagement_connector_deploy_policy_api.py rename to intersight/apis/resource_group_api.py index 97034d2c..937cae1b 100644 --- a/intersight/apis/packagemanagement_connector_deploy_policy_api.py +++ b/intersight/apis/resource_group_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -24,7 +24,7 @@ from ..api_client import ApiClient -class PackagemanagementConnectorDeployPolicyApi(object): +class ResourceGroupApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,67 +40,69 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def packagemanagement_connector_deploy_policies_get(self, **kwargs): + def resource_groups_get(self, **kwargs): """ - List of packagemanagementConnectorDeployPolicies + Get a list of 'resourceGroup' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_deploy_policies_get(callback=callback_function) + >>> thread = api.resource_groups_get(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: PackagemanagementConnectorDeployPolicyList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: ResourceGroupList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.packagemanagement_connector_deploy_policies_get_with_http_info(**kwargs) + return self.resource_groups_get_with_http_info(**kwargs) else: - (data) = self.packagemanagement_connector_deploy_policies_get_with_http_info(**kwargs) + (data) = self.resource_groups_get_with_http_info(**kwargs) return data - def packagemanagement_connector_deploy_policies_get_with_http_info(self, **kwargs): + def resource_groups_get_with_http_info(self, **kwargs): """ - List of packagemanagementConnectorDeployPolicies + Get a list of 'resourceGroup' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_deploy_policies_get_with_http_info(callback=callback_function) + >>> thread = api.resource_groups_get_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: PackagemanagementConnectorDeployPolicyList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: ResourceGroupList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -111,7 +113,7 @@ def packagemanagement_connector_deploy_policies_get_with_http_info(self, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method packagemanagement_connector_deploy_policies_get" % key + " to method resource_groups_get" % key ) params[key] = val del params['kwargs'] @@ -126,8 +128,6 @@ def packagemanagement_connector_deploy_policies_get_with_http_info(self, **kwarg query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def packagemanagement_connector_deploy_policies_get_with_http_info(self, **kwarg query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -158,14 +162,14 @@ def packagemanagement_connector_deploy_policies_get_with_http_info(self, **kwarg # Authentication setting auth_settings = [] - return self.api_client.call_api('/packagemanagement/ConnectorDeployPolicies', 'GET', + return self.api_client.call_api('/resource/Groups', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='PackagemanagementConnectorDeployPolicyList', + response_type='ResourceGroupList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -173,45 +177,45 @@ def packagemanagement_connector_deploy_policies_get_with_http_info(self, **kwarg _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def packagemanagement_connector_deploy_policies_moid_delete(self, moid, **kwargs): + def resource_groups_moid_delete(self, moid, **kwargs): """ - Delete an instance of packagemanagementConnectorDeployPolicy + Delete an instance of 'resourceGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_deploy_policies_moid_delete(moid, callback=callback_function) + >>> thread = api.resource_groups_moid_delete(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorDeployPolicy instance. (required) + :param str moid: The moid of the resourceGroup instance. (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.packagemanagement_connector_deploy_policies_moid_delete_with_http_info(moid, **kwargs) + return self.resource_groups_moid_delete_with_http_info(moid, **kwargs) else: - (data) = self.packagemanagement_connector_deploy_policies_moid_delete_with_http_info(moid, **kwargs) + (data) = self.resource_groups_moid_delete_with_http_info(moid, **kwargs) return data - def packagemanagement_connector_deploy_policies_moid_delete_with_http_info(self, moid, **kwargs): + def resource_groups_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of packagemanagementConnectorDeployPolicy + Delete an instance of 'resourceGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_deploy_policies_moid_delete_with_http_info(moid, callback=callback_function) + >>> thread = api.resource_groups_moid_delete_with_http_info(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorDeployPolicy instance. (required) + :param str moid: The moid of the resourceGroup instance. (required) :return: None If the method is called asynchronously, returns the request thread. @@ -228,13 +232,13 @@ def packagemanagement_connector_deploy_policies_moid_delete_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method packagemanagement_connector_deploy_policies_moid_delete" % key + " to method resource_groups_moid_delete" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `packagemanagement_connector_deploy_policies_moid_delete`") + raise ValueError("Missing the required parameter `moid` when calling `resource_groups_moid_delete`") collection_formats = {} @@ -262,7 +266,7 @@ def packagemanagement_connector_deploy_policies_moid_delete_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/packagemanagement/ConnectorDeployPolicies/{moid}', 'DELETE', + return self.api_client.call_api('/resource/Groups/{moid}', 'DELETE', path_params, query_params, header_params, @@ -277,46 +281,46 @@ def packagemanagement_connector_deploy_policies_moid_delete_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def packagemanagement_connector_deploy_policies_moid_get(self, moid, **kwargs): + def resource_groups_moid_get(self, moid, **kwargs): """ - A instance of packagemanagementConnectorDeployPolicy + Get a specific instance of 'resourceGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_deploy_policies_moid_get(moid, callback=callback_function) + >>> thread = api.resource_groups_moid_get(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorDeployPolicy instance. (required) - :return: PackagemanagementConnectorDeployPolicy + :param str moid: The moid of the resourceGroup instance. (required) + :return: ResourceGroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.packagemanagement_connector_deploy_policies_moid_get_with_http_info(moid, **kwargs) + return self.resource_groups_moid_get_with_http_info(moid, **kwargs) else: - (data) = self.packagemanagement_connector_deploy_policies_moid_get_with_http_info(moid, **kwargs) + (data) = self.resource_groups_moid_get_with_http_info(moid, **kwargs) return data - def packagemanagement_connector_deploy_policies_moid_get_with_http_info(self, moid, **kwargs): + def resource_groups_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of packagemanagementConnectorDeployPolicy + Get a specific instance of 'resourceGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_deploy_policies_moid_get_with_http_info(moid, callback=callback_function) + >>> thread = api.resource_groups_moid_get_with_http_info(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorDeployPolicy instance. (required) - :return: PackagemanagementConnectorDeployPolicy + :param str moid: The moid of the resourceGroup instance. (required) + :return: ResourceGroup If the method is called asynchronously, returns the request thread. """ @@ -332,13 +336,13 @@ def packagemanagement_connector_deploy_policies_moid_get_with_http_info(self, mo if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method packagemanagement_connector_deploy_policies_moid_get" % key + " to method resource_groups_moid_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `packagemanagement_connector_deploy_policies_moid_get`") + raise ValueError("Missing the required parameter `moid` when calling `resource_groups_moid_get`") collection_formats = {} @@ -366,14 +370,14 @@ def packagemanagement_connector_deploy_policies_moid_get_with_http_info(self, mo # Authentication setting auth_settings = [] - return self.api_client.call_api('/packagemanagement/ConnectorDeployPolicies/{moid}', 'GET', + return self.api_client.call_api('/resource/Groups/{moid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='PackagemanagementConnectorDeployPolicy', + response_type='ResourceGroup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -381,47 +385,47 @@ def packagemanagement_connector_deploy_policies_moid_get_with_http_info(self, mo _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def packagemanagement_connector_deploy_policies_moid_patch(self, moid, body, **kwargs): + def resource_groups_moid_patch(self, moid, body, **kwargs): """ - Update an instance of packagemanagementConnectorDeployPolicy + Update an instance of 'resourceGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_deploy_policies_moid_patch(moid, body, callback=callback_function) + >>> thread = api.resource_groups_moid_patch(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorDeployPolicy instance. (required) - :param PackagemanagementConnectorDeployPolicy body: packagemanagementConnectorDeployPolicy to update (required) + :param str moid: The moid of the resourceGroup instance. (required) + :param ResourceGroup body: resourceGroup to update (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.packagemanagement_connector_deploy_policies_moid_patch_with_http_info(moid, body, **kwargs) + return self.resource_groups_moid_patch_with_http_info(moid, body, **kwargs) else: - (data) = self.packagemanagement_connector_deploy_policies_moid_patch_with_http_info(moid, body, **kwargs) + (data) = self.resource_groups_moid_patch_with_http_info(moid, body, **kwargs) return data - def packagemanagement_connector_deploy_policies_moid_patch_with_http_info(self, moid, body, **kwargs): + def resource_groups_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of packagemanagementConnectorDeployPolicy + Update an instance of 'resourceGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_deploy_policies_moid_patch_with_http_info(moid, body, callback=callback_function) + >>> thread = api.resource_groups_moid_patch_with_http_info(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorDeployPolicy instance. (required) - :param PackagemanagementConnectorDeployPolicy body: packagemanagementConnectorDeployPolicy to update (required) + :param str moid: The moid of the resourceGroup instance. (required) + :param ResourceGroup body: resourceGroup to update (required) :return: None If the method is called asynchronously, returns the request thread. @@ -438,16 +442,16 @@ def packagemanagement_connector_deploy_policies_moid_patch_with_http_info(self, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method packagemanagement_connector_deploy_policies_moid_patch" % key + " to method resource_groups_moid_patch" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `packagemanagement_connector_deploy_policies_moid_patch`") + raise ValueError("Missing the required parameter `moid` when calling `resource_groups_moid_patch`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `packagemanagement_connector_deploy_policies_moid_patch`") + raise ValueError("Missing the required parameter `body` when calling `resource_groups_moid_patch`") collection_formats = {} @@ -477,7 +481,7 @@ def packagemanagement_connector_deploy_policies_moid_patch_with_http_info(self, # Authentication setting auth_settings = [] - return self.api_client.call_api('/packagemanagement/ConnectorDeployPolicies/{moid}', 'PATCH', + return self.api_client.call_api('/resource/Groups/{moid}', 'PATCH', path_params, query_params, header_params, @@ -492,47 +496,47 @@ def packagemanagement_connector_deploy_policies_moid_patch_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def packagemanagement_connector_deploy_policies_moid_post(self, moid, body, **kwargs): + def resource_groups_moid_post(self, moid, body, **kwargs): """ - Update an instance of packagemanagementConnectorDeployPolicy + Update an instance of 'resourceGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_deploy_policies_moid_post(moid, body, callback=callback_function) + >>> thread = api.resource_groups_moid_post(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorDeployPolicy instance. (required) - :param PackagemanagementConnectorDeployPolicy body: packagemanagementConnectorDeployPolicy to update (required) + :param str moid: The moid of the resourceGroup instance. (required) + :param ResourceGroup body: resourceGroup to update (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.packagemanagement_connector_deploy_policies_moid_post_with_http_info(moid, body, **kwargs) + return self.resource_groups_moid_post_with_http_info(moid, body, **kwargs) else: - (data) = self.packagemanagement_connector_deploy_policies_moid_post_with_http_info(moid, body, **kwargs) + (data) = self.resource_groups_moid_post_with_http_info(moid, body, **kwargs) return data - def packagemanagement_connector_deploy_policies_moid_post_with_http_info(self, moid, body, **kwargs): + def resource_groups_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of packagemanagementConnectorDeployPolicy + Update an instance of 'resourceGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_deploy_policies_moid_post_with_http_info(moid, body, callback=callback_function) + >>> thread = api.resource_groups_moid_post_with_http_info(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the packagemanagementConnectorDeployPolicy instance. (required) - :param PackagemanagementConnectorDeployPolicy body: packagemanagementConnectorDeployPolicy to update (required) + :param str moid: The moid of the resourceGroup instance. (required) + :param ResourceGroup body: resourceGroup to update (required) :return: None If the method is called asynchronously, returns the request thread. @@ -549,16 +553,16 @@ def packagemanagement_connector_deploy_policies_moid_post_with_http_info(self, m if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method packagemanagement_connector_deploy_policies_moid_post" % key + " to method resource_groups_moid_post" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `packagemanagement_connector_deploy_policies_moid_post`") + raise ValueError("Missing the required parameter `moid` when calling `resource_groups_moid_post`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `packagemanagement_connector_deploy_policies_moid_post`") + raise ValueError("Missing the required parameter `body` when calling `resource_groups_moid_post`") collection_formats = {} @@ -588,7 +592,7 @@ def packagemanagement_connector_deploy_policies_moid_post_with_http_info(self, m # Authentication setting auth_settings = [] - return self.api_client.call_api('/packagemanagement/ConnectorDeployPolicies/{moid}', 'POST', + return self.api_client.call_api('/resource/Groups/{moid}', 'POST', path_params, query_params, header_params, @@ -603,45 +607,45 @@ def packagemanagement_connector_deploy_policies_moid_post_with_http_info(self, m _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def packagemanagement_connector_deploy_policies_post(self, body, **kwargs): + def resource_groups_post(self, body, **kwargs): """ - Create a packagemanagementConnectorDeployPolicy + Create an instance of 'resourceGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_deploy_policies_post(body, callback=callback_function) + >>> thread = api.resource_groups_post(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param PackagemanagementConnectorDeployPolicy body: packagemanagementConnectorDeployPolicy to add (required) + :param ResourceGroup body: resourceGroup to add (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.packagemanagement_connector_deploy_policies_post_with_http_info(body, **kwargs) + return self.resource_groups_post_with_http_info(body, **kwargs) else: - (data) = self.packagemanagement_connector_deploy_policies_post_with_http_info(body, **kwargs) + (data) = self.resource_groups_post_with_http_info(body, **kwargs) return data - def packagemanagement_connector_deploy_policies_post_with_http_info(self, body, **kwargs): + def resource_groups_post_with_http_info(self, body, **kwargs): """ - Create a packagemanagementConnectorDeployPolicy + Create an instance of 'resourceGroup' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.packagemanagement_connector_deploy_policies_post_with_http_info(body, callback=callback_function) + >>> thread = api.resource_groups_post_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param PackagemanagementConnectorDeployPolicy body: packagemanagementConnectorDeployPolicy to add (required) + :param ResourceGroup body: resourceGroup to add (required) :return: None If the method is called asynchronously, returns the request thread. @@ -658,13 +662,13 @@ def packagemanagement_connector_deploy_policies_post_with_http_info(self, body, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method packagemanagement_connector_deploy_policies_post" % key + " to method resource_groups_post" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `packagemanagement_connector_deploy_policies_post`") + raise ValueError("Missing the required parameter `body` when calling `resource_groups_post`") collection_formats = {} @@ -692,7 +696,7 @@ def packagemanagement_connector_deploy_policies_post_with_http_info(self, body, # Authentication setting auth_settings = [] - return self.api_client.call_api('/packagemanagement/ConnectorDeployPolicies', 'POST', + return self.api_client.call_api('/resource/Groups', 'POST', path_params, query_params, header_params, diff --git a/intersight/apis/sdcard_policy_api.py b/intersight/apis/sdcard_policy_api.py new file mode 100644 index 00000000..2be3cfe9 --- /dev/null +++ b/intersight/apis/sdcard_policy_api.py @@ -0,0 +1,712 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class SdcardPolicyApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def sdcard_policies_get(self, **kwargs): + """ + Get a list of 'sdcardPolicy' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.sdcard_policies_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: SdcardPolicyList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.sdcard_policies_get_with_http_info(**kwargs) + else: + (data) = self.sdcard_policies_get_with_http_info(**kwargs) + return data + + def sdcard_policies_get_with_http_info(self, **kwargs): + """ + Get a list of 'sdcardPolicy' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.sdcard_policies_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: SdcardPolicyList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method sdcard_policies_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/sdcard/Policies', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SdcardPolicyList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def sdcard_policies_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'sdcardPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.sdcard_policies_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the sdcardPolicy instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.sdcard_policies_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.sdcard_policies_moid_delete_with_http_info(moid, **kwargs) + return data + + def sdcard_policies_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'sdcardPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.sdcard_policies_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the sdcardPolicy instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method sdcard_policies_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `sdcard_policies_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/sdcard/Policies/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def sdcard_policies_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'sdcardPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.sdcard_policies_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the sdcardPolicy instance. (required) + :return: SdcardPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.sdcard_policies_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.sdcard_policies_moid_get_with_http_info(moid, **kwargs) + return data + + def sdcard_policies_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'sdcardPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.sdcard_policies_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the sdcardPolicy instance. (required) + :return: SdcardPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method sdcard_policies_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `sdcard_policies_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/sdcard/Policies/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SdcardPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def sdcard_policies_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'sdcardPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.sdcard_policies_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the sdcardPolicy instance. (required) + :param SdcardPolicy body: sdcardPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.sdcard_policies_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.sdcard_policies_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def sdcard_policies_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'sdcardPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.sdcard_policies_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the sdcardPolicy instance. (required) + :param SdcardPolicy body: sdcardPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method sdcard_policies_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `sdcard_policies_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `sdcard_policies_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/sdcard/Policies/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def sdcard_policies_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'sdcardPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.sdcard_policies_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the sdcardPolicy instance. (required) + :param SdcardPolicy body: sdcardPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.sdcard_policies_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.sdcard_policies_moid_post_with_http_info(moid, body, **kwargs) + return data + + def sdcard_policies_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'sdcardPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.sdcard_policies_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the sdcardPolicy instance. (required) + :param SdcardPolicy body: sdcardPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method sdcard_policies_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `sdcard_policies_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `sdcard_policies_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/sdcard/Policies/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def sdcard_policies_post(self, body, **kwargs): + """ + Create an instance of 'sdcardPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.sdcard_policies_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param SdcardPolicy body: sdcardPolicy to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.sdcard_policies_post_with_http_info(body, **kwargs) + else: + (data) = self.sdcard_policies_post_with_http_info(body, **kwargs) + return data + + def sdcard_policies_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'sdcardPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.sdcard_policies_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param SdcardPolicy body: sdcardPolicy to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method sdcard_policies_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `sdcard_policies_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/sdcard/Policies', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/search_search_item_api.py b/intersight/apis/search_search_item_api.py index 9872f54b..52097fab 100644 --- a/intersight/apis/search_search_item_api.py +++ b/intersight/apis/search_search_item_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def search_search_items_get(self, **kwargs): """ - List of searchSearchItems + Get a list of 'searchSearchItem' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def search_search_items_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: SearchSearchItemList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def search_search_items_get(self, **kwargs): def search_search_items_get_with_http_info(self, **kwargs): """ - List of searchSearchItems + Get a list of 'searchSearchItem' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def search_search_items_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: SearchSearchItemList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def search_search_items_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def search_search_items_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def search_search_items_get_with_http_info(self, **kwargs): def search_search_items_moid_get(self, moid, **kwargs): """ - A instance of searchSearchItem + Get a specific instance of 'searchSearchItem' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def search_search_items_moid_get(self, moid, **kwargs): def search_search_items_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of searchSearchItem + Get a specific instance of 'searchSearchItem' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/search_suggest_item_api.py b/intersight/apis/search_suggest_item_api.py index 514f7046..70c4160d 100644 --- a/intersight/apis/search_suggest_item_api.py +++ b/intersight/apis/search_suggest_item_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def search_suggest_items_post(self, body, **kwargs): """ - Create a searchSuggestItem + Create an instance of 'searchSuggestItem' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -67,7 +67,7 @@ def search_suggest_items_post(self, body, **kwargs): def search_suggest_items_post_with_http_info(self, body, **kwargs): """ - Create a searchSuggestItem + Create an instance of 'searchSuggestItem' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/search_tag_item_api.py b/intersight/apis/search_tag_item_api.py index 71ac2c5c..0a29173e 100644 --- a/intersight/apis/search_tag_item_api.py +++ b/intersight/apis/search_tag_item_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def search_tag_items_get(self, **kwargs): """ - List of searchTagItems + Get a list of 'searchTagItem' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def search_tag_items_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: SearchTagItemList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def search_tag_items_get(self, **kwargs): def search_tag_items_get_with_http_info(self, **kwargs): """ - List of searchTagItems + Get a list of 'searchTagItem' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def search_tag_items_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: SearchTagItemList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def search_tag_items_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def search_tag_items_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def search_tag_items_get_with_http_info(self, **kwargs): def search_tag_items_moid_get(self, moid, **kwargs): """ - A instance of searchTagItem + Get a specific instance of 'searchTagItem' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def search_tag_items_moid_get(self, moid, **kwargs): def search_tag_items_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of searchTagItem + Get a specific instance of 'searchTagItem' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/security_unit_api.py b/intersight/apis/security_unit_api.py index 992adcd0..ce9682d0 100644 --- a/intersight/apis/security_unit_api.py +++ b/intersight/apis/security_unit_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def security_units_get(self, **kwargs): """ - List of securityUnits + Get a list of 'securityUnit' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def security_units_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: SecurityUnitList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def security_units_get(self, **kwargs): def security_units_get_with_http_info(self, **kwargs): """ - List of securityUnits + Get a list of 'securityUnit' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def security_units_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: SecurityUnitList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def security_units_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def security_units_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def security_units_get_with_http_info(self, **kwargs): def security_units_moid_get(self, moid, **kwargs): """ - A instance of securityUnit + Get a specific instance of 'securityUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def security_units_moid_get(self, moid, **kwargs): def security_units_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of securityUnit + Get a specific instance of 'securityUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def security_units_moid_get_with_http_info(self, moid, **kwargs): def security_units_moid_patch(self, moid, body, **kwargs): """ - Update an instance of securityUnit + Update an instance of 'securityUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def security_units_moid_patch(self, moid, body, **kwargs): def security_units_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of securityUnit + Update an instance of 'securityUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def security_units_moid_patch_with_http_info(self, moid, body, **kwargs): def security_units_moid_post(self, moid, body, **kwargs): """ - Update an instance of securityUnit + Update an instance of 'securityUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def security_units_moid_post(self, moid, body, **kwargs): def security_units_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of securityUnit + Update an instance of 'securityUnit' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/server_config_change_detail_api.py b/intersight/apis/server_config_change_detail_api.py new file mode 100644 index 00000000..b2f26e09 --- /dev/null +++ b/intersight/apis/server_config_change_detail_api.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class ServerConfigChangeDetailApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def server_config_change_details_get(self, **kwargs): + """ + Get a list of 'serverConfigChangeDetail' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.server_config_change_details_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: ServerConfigChangeDetailList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.server_config_change_details_get_with_http_info(**kwargs) + else: + (data) = self.server_config_change_details_get_with_http_info(**kwargs) + return data + + def server_config_change_details_get_with_http_info(self, **kwargs): + """ + Get a list of 'serverConfigChangeDetail' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.server_config_change_details_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: ServerConfigChangeDetailList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method server_config_change_details_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/server/ConfigChangeDetails', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ServerConfigChangeDetailList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def server_config_change_details_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'serverConfigChangeDetail' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.server_config_change_details_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the serverConfigChangeDetail instance. (required) + :return: ServerConfigChangeDetail + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.server_config_change_details_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.server_config_change_details_moid_get_with_http_info(moid, **kwargs) + return data + + def server_config_change_details_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'serverConfigChangeDetail' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.server_config_change_details_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the serverConfigChangeDetail instance. (required) + :return: ServerConfigChangeDetail + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method server_config_change_details_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `server_config_change_details_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/server/ConfigChangeDetails/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ServerConfigChangeDetail', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/server_config_result_api.py b/intersight/apis/server_config_result_api.py index 4d4f823d..6d8283d4 100644 --- a/intersight/apis/server_config_result_api.py +++ b/intersight/apis/server_config_result_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def server_config_results_get(self, **kwargs): """ - List of serverConfigResults + Get a list of 'serverConfigResult' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def server_config_results_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ServerConfigResultList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def server_config_results_get(self, **kwargs): def server_config_results_get_with_http_info(self, **kwargs): """ - List of serverConfigResults + Get a list of 'serverConfigResult' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def server_config_results_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ServerConfigResultList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def server_config_results_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def server_config_results_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def server_config_results_get_with_http_info(self, **kwargs): def server_config_results_moid_get(self, moid, **kwargs): """ - A instance of serverConfigResult + Get a specific instance of 'serverConfigResult' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def server_config_results_moid_get(self, moid, **kwargs): def server_config_results_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of serverConfigResult + Get a specific instance of 'serverConfigResult' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/server_config_result_entry_api.py b/intersight/apis/server_config_result_entry_api.py new file mode 100644 index 00000000..5768f68c --- /dev/null +++ b/intersight/apis/server_config_result_entry_api.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class ServerConfigResultEntryApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def server_config_result_entries_get(self, **kwargs): + """ + Get a list of 'serverConfigResultEntry' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.server_config_result_entries_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: ServerConfigResultEntryList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.server_config_result_entries_get_with_http_info(**kwargs) + else: + (data) = self.server_config_result_entries_get_with_http_info(**kwargs) + return data + + def server_config_result_entries_get_with_http_info(self, **kwargs): + """ + Get a list of 'serverConfigResultEntry' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.server_config_result_entries_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: ServerConfigResultEntryList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method server_config_result_entries_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/server/ConfigResultEntries', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ServerConfigResultEntryList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def server_config_result_entries_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'serverConfigResultEntry' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.server_config_result_entries_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the serverConfigResultEntry instance. (required) + :return: ServerConfigResultEntry + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.server_config_result_entries_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.server_config_result_entries_moid_get_with_http_info(moid, **kwargs) + return data + + def server_config_result_entries_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'serverConfigResultEntry' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.server_config_result_entries_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the serverConfigResultEntry instance. (required) + :return: ServerConfigResultEntry + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method server_config_result_entries_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `server_config_result_entries_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/server/ConfigResultEntries/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ServerConfigResultEntry', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/server_profile_api.py b/intersight/apis/server_profile_api.py index 097cc07b..436c1f54 100644 --- a/intersight/apis/server_profile_api.py +++ b/intersight/apis/server_profile_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def server_profiles_get(self, **kwargs): """ - List of serverProfiles + Get a list of 'serverProfile' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def server_profiles_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ServerProfileList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def server_profiles_get(self, **kwargs): def server_profiles_get_with_http_info(self, **kwargs): """ - List of serverProfiles + Get a list of 'serverProfile' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def server_profiles_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: ServerProfileList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def server_profiles_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def server_profiles_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def server_profiles_get_with_http_info(self, **kwargs): def server_profiles_moid_delete(self, moid, **kwargs): """ - Delete an instance of serverProfile + Delete an instance of 'serverProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def server_profiles_moid_delete(self, moid, **kwargs): def server_profiles_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of serverProfile + Delete an instance of 'serverProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def server_profiles_moid_delete_with_http_info(self, moid, **kwargs): def server_profiles_moid_get(self, moid, **kwargs): """ - A instance of serverProfile + Get a specific instance of 'serverProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def server_profiles_moid_get(self, moid, **kwargs): def server_profiles_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of serverProfile + Get a specific instance of 'serverProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def server_profiles_moid_get_with_http_info(self, moid, **kwargs): def server_profiles_moid_patch(self, moid, body, **kwargs): """ - Update an instance of serverProfile + Update an instance of 'serverProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def server_profiles_moid_patch(self, moid, body, **kwargs): def server_profiles_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of serverProfile + Update an instance of 'serverProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def server_profiles_moid_patch_with_http_info(self, moid, body, **kwargs): def server_profiles_moid_post(self, moid, body, **kwargs): """ - Update an instance of serverProfile + Update an instance of 'serverProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def server_profiles_moid_post(self, moid, body, **kwargs): def server_profiles_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of serverProfile + Update an instance of 'serverProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def server_profiles_moid_post_with_http_info(self, moid, body, **kwargs): def server_profiles_post(self, body, **kwargs): """ - Create a serverProfile + Create an instance of 'serverProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def server_profiles_post(self, body, **kwargs): def server_profiles_post_with_http_info(self, body, **kwargs): """ - Create a serverProfile + Create an instance of 'serverProfile' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/smtp_policy_api.py b/intersight/apis/smtp_policy_api.py index 4353a225..8496513c 100644 --- a/intersight/apis/smtp_policy_api.py +++ b/intersight/apis/smtp_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def smtp_policies_get(self, **kwargs): """ - List of smtpPolicies + Get a list of 'smtpPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def smtp_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: SmtpPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def smtp_policies_get(self, **kwargs): def smtp_policies_get_with_http_info(self, **kwargs): """ - List of smtpPolicies + Get a list of 'smtpPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def smtp_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: SmtpPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def smtp_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def smtp_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def smtp_policies_get_with_http_info(self, **kwargs): def smtp_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of smtpPolicy + Delete an instance of 'smtpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def smtp_policies_moid_delete(self, moid, **kwargs): def smtp_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of smtpPolicy + Delete an instance of 'smtpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def smtp_policies_moid_delete_with_http_info(self, moid, **kwargs): def smtp_policies_moid_get(self, moid, **kwargs): """ - A instance of smtpPolicy + Get a specific instance of 'smtpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def smtp_policies_moid_get(self, moid, **kwargs): def smtp_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of smtpPolicy + Get a specific instance of 'smtpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def smtp_policies_moid_get_with_http_info(self, moid, **kwargs): def smtp_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of smtpPolicy + Update an instance of 'smtpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def smtp_policies_moid_patch(self, moid, body, **kwargs): def smtp_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of smtpPolicy + Update an instance of 'smtpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def smtp_policies_moid_patch_with_http_info(self, moid, body, **kwargs): def smtp_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of smtpPolicy + Update an instance of 'smtpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def smtp_policies_moid_post(self, moid, body, **kwargs): def smtp_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of smtpPolicy + Update an instance of 'smtpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def smtp_policies_moid_post_with_http_info(self, moid, body, **kwargs): def smtp_policies_post(self, body, **kwargs): """ - Create a smtpPolicy + Create an instance of 'smtpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def smtp_policies_post(self, body, **kwargs): def smtp_policies_post_with_http_info(self, body, **kwargs): """ - Create a smtpPolicy + Create an instance of 'smtpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/snmp_policy_api.py b/intersight/apis/snmp_policy_api.py index f4514baa..d568a4f2 100644 --- a/intersight/apis/snmp_policy_api.py +++ b/intersight/apis/snmp_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def snmp_policies_get(self, **kwargs): """ - List of snmpPolicies + Get a list of 'snmpPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def snmp_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: SnmpPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def snmp_policies_get(self, **kwargs): def snmp_policies_get_with_http_info(self, **kwargs): """ - List of snmpPolicies + Get a list of 'snmpPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def snmp_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: SnmpPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def snmp_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def snmp_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def snmp_policies_get_with_http_info(self, **kwargs): def snmp_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of snmpPolicy + Delete an instance of 'snmpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def snmp_policies_moid_delete(self, moid, **kwargs): def snmp_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of snmpPolicy + Delete an instance of 'snmpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def snmp_policies_moid_delete_with_http_info(self, moid, **kwargs): def snmp_policies_moid_get(self, moid, **kwargs): """ - A instance of snmpPolicy + Get a specific instance of 'snmpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def snmp_policies_moid_get(self, moid, **kwargs): def snmp_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of snmpPolicy + Get a specific instance of 'snmpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def snmp_policies_moid_get_with_http_info(self, moid, **kwargs): def snmp_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of snmpPolicy + Update an instance of 'snmpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def snmp_policies_moid_patch(self, moid, body, **kwargs): def snmp_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of snmpPolicy + Update an instance of 'snmpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def snmp_policies_moid_patch_with_http_info(self, moid, body, **kwargs): def snmp_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of snmpPolicy + Update an instance of 'snmpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def snmp_policies_moid_post(self, moid, body, **kwargs): def snmp_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of snmpPolicy + Update an instance of 'snmpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def snmp_policies_moid_post_with_http_info(self, moid, body, **kwargs): def snmp_policies_post(self, body, **kwargs): """ - Create a snmpPolicy + Create an instance of 'snmpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def snmp_policies_post(self, body, **kwargs): def snmp_policies_post_with_http_info(self, body, **kwargs): """ - Create a snmpPolicy + Create an instance of 'snmpPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/softwarerepository_authorization_api.py b/intersight/apis/softwarerepository_authorization_api.py new file mode 100644 index 00000000..9ea8d0e8 --- /dev/null +++ b/intersight/apis/softwarerepository_authorization_api.py @@ -0,0 +1,608 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class SoftwarerepositoryAuthorizationApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def softwarerepository_authorizations_get(self, **kwargs): + """ + Get a list of 'softwarerepositoryAuthorization' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.softwarerepository_authorizations_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: SoftwarerepositoryAuthorizationList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.softwarerepository_authorizations_get_with_http_info(**kwargs) + else: + (data) = self.softwarerepository_authorizations_get_with_http_info(**kwargs) + return data + + def softwarerepository_authorizations_get_with_http_info(self, **kwargs): + """ + Get a list of 'softwarerepositoryAuthorization' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.softwarerepository_authorizations_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: SoftwarerepositoryAuthorizationList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method softwarerepository_authorizations_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/softwarerepository/Authorizations', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SoftwarerepositoryAuthorizationList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def softwarerepository_authorizations_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'softwarerepositoryAuthorization' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.softwarerepository_authorizations_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the softwarerepositoryAuthorization instance. (required) + :return: SoftwarerepositoryAuthorization + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.softwarerepository_authorizations_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.softwarerepository_authorizations_moid_get_with_http_info(moid, **kwargs) + return data + + def softwarerepository_authorizations_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'softwarerepositoryAuthorization' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.softwarerepository_authorizations_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the softwarerepositoryAuthorization instance. (required) + :return: SoftwarerepositoryAuthorization + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method softwarerepository_authorizations_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `softwarerepository_authorizations_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/softwarerepository/Authorizations/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SoftwarerepositoryAuthorization', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def softwarerepository_authorizations_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'softwarerepositoryAuthorization' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.softwarerepository_authorizations_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the softwarerepositoryAuthorization instance. (required) + :param SoftwarerepositoryAuthorization body: softwarerepositoryAuthorization to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.softwarerepository_authorizations_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.softwarerepository_authorizations_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def softwarerepository_authorizations_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'softwarerepositoryAuthorization' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.softwarerepository_authorizations_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the softwarerepositoryAuthorization instance. (required) + :param SoftwarerepositoryAuthorization body: softwarerepositoryAuthorization to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method softwarerepository_authorizations_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `softwarerepository_authorizations_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `softwarerepository_authorizations_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/softwarerepository/Authorizations/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def softwarerepository_authorizations_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'softwarerepositoryAuthorization' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.softwarerepository_authorizations_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the softwarerepositoryAuthorization instance. (required) + :param SoftwarerepositoryAuthorization body: softwarerepositoryAuthorization to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.softwarerepository_authorizations_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.softwarerepository_authorizations_moid_post_with_http_info(moid, body, **kwargs) + return data + + def softwarerepository_authorizations_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'softwarerepositoryAuthorization' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.softwarerepository_authorizations_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the softwarerepositoryAuthorization instance. (required) + :param SoftwarerepositoryAuthorization body: softwarerepositoryAuthorization to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method softwarerepository_authorizations_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `softwarerepository_authorizations_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `softwarerepository_authorizations_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/softwarerepository/Authorizations/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def softwarerepository_authorizations_post(self, body, **kwargs): + """ + Create an instance of 'softwarerepositoryAuthorization' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.softwarerepository_authorizations_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param SoftwarerepositoryAuthorization body: softwarerepositoryAuthorization to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.softwarerepository_authorizations_post_with_http_info(body, **kwargs) + else: + (data) = self.softwarerepository_authorizations_post_with_http_info(body, **kwargs) + return data + + def softwarerepository_authorizations_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'softwarerepositoryAuthorization' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.softwarerepository_authorizations_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param SoftwarerepositoryAuthorization body: softwarerepositoryAuthorization to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method softwarerepository_authorizations_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `softwarerepository_authorizations_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/softwarerepository/Authorizations', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/sol_policy_api.py b/intersight/apis/sol_policy_api.py index 8b74eadb..4af3184f 100644 --- a/intersight/apis/sol_policy_api.py +++ b/intersight/apis/sol_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def sol_policies_get(self, **kwargs): """ - List of solPolicies + Get a list of 'solPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def sol_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: SolPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def sol_policies_get(self, **kwargs): def sol_policies_get_with_http_info(self, **kwargs): """ - List of solPolicies + Get a list of 'solPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def sol_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: SolPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def sol_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def sol_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def sol_policies_get_with_http_info(self, **kwargs): def sol_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of solPolicy + Delete an instance of 'solPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def sol_policies_moid_delete(self, moid, **kwargs): def sol_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of solPolicy + Delete an instance of 'solPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def sol_policies_moid_delete_with_http_info(self, moid, **kwargs): def sol_policies_moid_get(self, moid, **kwargs): """ - A instance of solPolicy + Get a specific instance of 'solPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def sol_policies_moid_get(self, moid, **kwargs): def sol_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of solPolicy + Get a specific instance of 'solPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def sol_policies_moid_get_with_http_info(self, moid, **kwargs): def sol_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of solPolicy + Update an instance of 'solPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def sol_policies_moid_patch(self, moid, body, **kwargs): def sol_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of solPolicy + Update an instance of 'solPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def sol_policies_moid_patch_with_http_info(self, moid, body, **kwargs): def sol_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of solPolicy + Update an instance of 'solPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def sol_policies_moid_post(self, moid, body, **kwargs): def sol_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of solPolicy + Update an instance of 'solPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def sol_policies_moid_post_with_http_info(self, moid, body, **kwargs): def sol_policies_post(self, body, **kwargs): """ - Create a solPolicy + Create an instance of 'solPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def sol_policies_post(self, body, **kwargs): def sol_policies_post_with_http_info(self, body, **kwargs): """ - Create a solPolicy + Create an instance of 'solPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/ssh_policy_api.py b/intersight/apis/ssh_policy_api.py index da294083..6b706f27 100644 --- a/intersight/apis/ssh_policy_api.py +++ b/intersight/apis/ssh_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def ssh_policies_get(self, **kwargs): """ - List of sshPolicies + Get a list of 'sshPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def ssh_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: SshPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def ssh_policies_get(self, **kwargs): def ssh_policies_get_with_http_info(self, **kwargs): """ - List of sshPolicies + Get a list of 'sshPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def ssh_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: SshPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def ssh_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def ssh_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def ssh_policies_get_with_http_info(self, **kwargs): def ssh_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of sshPolicy + Delete an instance of 'sshPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def ssh_policies_moid_delete(self, moid, **kwargs): def ssh_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of sshPolicy + Delete an instance of 'sshPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def ssh_policies_moid_delete_with_http_info(self, moid, **kwargs): def ssh_policies_moid_get(self, moid, **kwargs): """ - A instance of sshPolicy + Get a specific instance of 'sshPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def ssh_policies_moid_get(self, moid, **kwargs): def ssh_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of sshPolicy + Get a specific instance of 'sshPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def ssh_policies_moid_get_with_http_info(self, moid, **kwargs): def ssh_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of sshPolicy + Update an instance of 'sshPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def ssh_policies_moid_patch(self, moid, body, **kwargs): def ssh_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of sshPolicy + Update an instance of 'sshPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def ssh_policies_moid_patch_with_http_info(self, moid, body, **kwargs): def ssh_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of sshPolicy + Update an instance of 'sshPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def ssh_policies_moid_post(self, moid, body, **kwargs): def ssh_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of sshPolicy + Update an instance of 'sshPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def ssh_policies_moid_post_with_http_info(self, moid, body, **kwargs): def ssh_policies_post(self, body, **kwargs): """ - Create a sshPolicy + Create an instance of 'sshPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def ssh_policies_post(self, body, **kwargs): def ssh_policies_post_with_http_info(self, body, **kwargs): """ - Create a sshPolicy + Create an instance of 'sshPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/storage_controller_api.py b/intersight/apis/storage_controller_api.py index e9c4bfa8..3367432a 100644 --- a/intersight/apis/storage_controller_api.py +++ b/intersight/apis/storage_controller_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def storage_controllers_get(self, **kwargs): """ - List of storageControllers + Get a list of 'storageController' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def storage_controllers_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StorageControllerList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def storage_controllers_get(self, **kwargs): def storage_controllers_get_with_http_info(self, **kwargs): """ - List of storageControllers + Get a list of 'storageController' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def storage_controllers_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StorageControllerList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def storage_controllers_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def storage_controllers_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def storage_controllers_get_with_http_info(self, **kwargs): def storage_controllers_moid_get(self, moid, **kwargs): """ - A instance of storageController + Get a specific instance of 'storageController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def storage_controllers_moid_get(self, moid, **kwargs): def storage_controllers_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of storageController + Get a specific instance of 'storageController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def storage_controllers_moid_get_with_http_info(self, moid, **kwargs): def storage_controllers_moid_patch(self, moid, body, **kwargs): """ - Update an instance of storageController + Update an instance of 'storageController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def storage_controllers_moid_patch(self, moid, body, **kwargs): def storage_controllers_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storageController + Update an instance of 'storageController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def storage_controllers_moid_patch_with_http_info(self, moid, body, **kwargs): def storage_controllers_moid_post(self, moid, body, **kwargs): """ - Update an instance of storageController + Update an instance of 'storageController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def storage_controllers_moid_post(self, moid, body, **kwargs): def storage_controllers_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storageController + Update an instance of 'storageController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/storage_disk_group_policy_api.py b/intersight/apis/storage_disk_group_policy_api.py index a5023f5a..94b0ddb1 100644 --- a/intersight/apis/storage_disk_group_policy_api.py +++ b/intersight/apis/storage_disk_group_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def storage_disk_group_policies_get(self, **kwargs): """ - List of storageDiskGroupPolicies + Get a list of 'storageDiskGroupPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def storage_disk_group_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StorageDiskGroupPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def storage_disk_group_policies_get(self, **kwargs): def storage_disk_group_policies_get_with_http_info(self, **kwargs): """ - List of storageDiskGroupPolicies + Get a list of 'storageDiskGroupPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def storage_disk_group_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StorageDiskGroupPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def storage_disk_group_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def storage_disk_group_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def storage_disk_group_policies_get_with_http_info(self, **kwargs): def storage_disk_group_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of storageDiskGroupPolicy + Delete an instance of 'storageDiskGroupPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def storage_disk_group_policies_moid_delete(self, moid, **kwargs): def storage_disk_group_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of storageDiskGroupPolicy + Delete an instance of 'storageDiskGroupPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def storage_disk_group_policies_moid_delete_with_http_info(self, moid, **kwargs) def storage_disk_group_policies_moid_get(self, moid, **kwargs): """ - A instance of storageDiskGroupPolicy + Get a specific instance of 'storageDiskGroupPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def storage_disk_group_policies_moid_get(self, moid, **kwargs): def storage_disk_group_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of storageDiskGroupPolicy + Get a specific instance of 'storageDiskGroupPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def storage_disk_group_policies_moid_get_with_http_info(self, moid, **kwargs): def storage_disk_group_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of storageDiskGroupPolicy + Update an instance of 'storageDiskGroupPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def storage_disk_group_policies_moid_patch(self, moid, body, **kwargs): def storage_disk_group_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storageDiskGroupPolicy + Update an instance of 'storageDiskGroupPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def storage_disk_group_policies_moid_patch_with_http_info(self, moid, body, **kw def storage_disk_group_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of storageDiskGroupPolicy + Update an instance of 'storageDiskGroupPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def storage_disk_group_policies_moid_post(self, moid, body, **kwargs): def storage_disk_group_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storageDiskGroupPolicy + Update an instance of 'storageDiskGroupPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def storage_disk_group_policies_moid_post_with_http_info(self, moid, body, **kwa def storage_disk_group_policies_post(self, body, **kwargs): """ - Create a storageDiskGroupPolicy + Create an instance of 'storageDiskGroupPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def storage_disk_group_policies_post(self, body, **kwargs): def storage_disk_group_policies_post_with_http_info(self, body, **kwargs): """ - Create a storageDiskGroupPolicy + Create an instance of 'storageDiskGroupPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/storage_enclosure_api.py b/intersight/apis/storage_enclosure_api.py new file mode 100644 index 00000000..db55eaf7 --- /dev/null +++ b/intersight/apis/storage_enclosure_api.py @@ -0,0 +1,504 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class StorageEnclosureApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def storage_enclosures_get(self, **kwargs): + """ + Get a list of 'storageEnclosure' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_enclosures_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: StorageEnclosureList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_enclosures_get_with_http_info(**kwargs) + else: + (data) = self.storage_enclosures_get_with_http_info(**kwargs) + return data + + def storage_enclosures_get_with_http_info(self, **kwargs): + """ + Get a list of 'storageEnclosure' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_enclosures_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: StorageEnclosureList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_enclosures_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/Enclosures', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageEnclosureList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_enclosures_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'storageEnclosure' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_enclosures_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageEnclosure instance. (required) + :return: StorageEnclosure + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_enclosures_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.storage_enclosures_moid_get_with_http_info(moid, **kwargs) + return data + + def storage_enclosures_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'storageEnclosure' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_enclosures_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageEnclosure instance. (required) + :return: StorageEnclosure + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_enclosures_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_enclosures_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/Enclosures/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageEnclosure', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_enclosures_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'storageEnclosure' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_enclosures_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageEnclosure instance. (required) + :param StorageEnclosure body: storageEnclosure to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_enclosures_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_enclosures_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def storage_enclosures_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'storageEnclosure' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_enclosures_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageEnclosure instance. (required) + :param StorageEnclosure body: storageEnclosure to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_enclosures_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_enclosures_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_enclosures_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/Enclosures/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_enclosures_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'storageEnclosure' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_enclosures_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageEnclosure instance. (required) + :param StorageEnclosure body: storageEnclosure to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_enclosures_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_enclosures_moid_post_with_http_info(moid, body, **kwargs) + return data + + def storage_enclosures_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'storageEnclosure' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_enclosures_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageEnclosure instance. (required) + :param StorageEnclosure body: storageEnclosure to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_enclosures_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_enclosures_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_enclosures_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/Enclosures/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/storage_flex_flash_controller_api.py b/intersight/apis/storage_flex_flash_controller_api.py index f354da74..e27d448a 100644 --- a/intersight/apis/storage_flex_flash_controller_api.py +++ b/intersight/apis/storage_flex_flash_controller_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def storage_flex_flash_controllers_get(self, **kwargs): """ - List of storageFlexFlashControllers + Get a list of 'storageFlexFlashController' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def storage_flex_flash_controllers_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StorageFlexFlashControllerList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def storage_flex_flash_controllers_get(self, **kwargs): def storage_flex_flash_controllers_get_with_http_info(self, **kwargs): """ - List of storageFlexFlashControllers + Get a list of 'storageFlexFlashController' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def storage_flex_flash_controllers_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StorageFlexFlashControllerList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def storage_flex_flash_controllers_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def storage_flex_flash_controllers_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def storage_flex_flash_controllers_get_with_http_info(self, **kwargs): def storage_flex_flash_controllers_moid_get(self, moid, **kwargs): """ - A instance of storageFlexFlashController + Get a specific instance of 'storageFlexFlashController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def storage_flex_flash_controllers_moid_get(self, moid, **kwargs): def storage_flex_flash_controllers_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of storageFlexFlashController + Get a specific instance of 'storageFlexFlashController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def storage_flex_flash_controllers_moid_get_with_http_info(self, moid, **kwargs) def storage_flex_flash_controllers_moid_patch(self, moid, body, **kwargs): """ - Update an instance of storageFlexFlashController + Update an instance of 'storageFlexFlashController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def storage_flex_flash_controllers_moid_patch(self, moid, body, **kwargs): def storage_flex_flash_controllers_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storageFlexFlashController + Update an instance of 'storageFlexFlashController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def storage_flex_flash_controllers_moid_patch_with_http_info(self, moid, body, * def storage_flex_flash_controllers_moid_post(self, moid, body, **kwargs): """ - Update an instance of storageFlexFlashController + Update an instance of 'storageFlexFlashController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def storage_flex_flash_controllers_moid_post(self, moid, body, **kwargs): def storage_flex_flash_controllers_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storageFlexFlashController + Update an instance of 'storageFlexFlashController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/storage_flex_flash_controller_props_api.py b/intersight/apis/storage_flex_flash_controller_props_api.py new file mode 100644 index 00000000..d6181056 --- /dev/null +++ b/intersight/apis/storage_flex_flash_controller_props_api.py @@ -0,0 +1,504 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class StorageFlexFlashControllerPropsApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def storage_flex_flash_controller_props_get(self, **kwargs): + """ + Get a list of 'storageFlexFlashControllerProps' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_controller_props_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: StorageFlexFlashControllerPropsList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_flash_controller_props_get_with_http_info(**kwargs) + else: + (data) = self.storage_flex_flash_controller_props_get_with_http_info(**kwargs) + return data + + def storage_flex_flash_controller_props_get_with_http_info(self, **kwargs): + """ + Get a list of 'storageFlexFlashControllerProps' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_controller_props_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: StorageFlexFlashControllerPropsList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_flash_controller_props_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexFlashControllerProps', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageFlexFlashControllerPropsList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_flash_controller_props_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'storageFlexFlashControllerProps' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_controller_props_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashControllerProps instance. (required) + :return: StorageFlexFlashControllerProps + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_flash_controller_props_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.storage_flex_flash_controller_props_moid_get_with_http_info(moid, **kwargs) + return data + + def storage_flex_flash_controller_props_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'storageFlexFlashControllerProps' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_controller_props_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashControllerProps instance. (required) + :return: StorageFlexFlashControllerProps + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_flash_controller_props_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_flash_controller_props_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexFlashControllerProps/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageFlexFlashControllerProps', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_flash_controller_props_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'storageFlexFlashControllerProps' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_controller_props_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashControllerProps instance. (required) + :param StorageFlexFlashControllerProps body: storageFlexFlashControllerProps to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_flash_controller_props_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_flex_flash_controller_props_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def storage_flex_flash_controller_props_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'storageFlexFlashControllerProps' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_controller_props_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashControllerProps instance. (required) + :param StorageFlexFlashControllerProps body: storageFlexFlashControllerProps to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_flash_controller_props_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_flash_controller_props_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_flex_flash_controller_props_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexFlashControllerProps/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_flash_controller_props_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'storageFlexFlashControllerProps' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_controller_props_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashControllerProps instance. (required) + :param StorageFlexFlashControllerProps body: storageFlexFlashControllerProps to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_flash_controller_props_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_flex_flash_controller_props_moid_post_with_http_info(moid, body, **kwargs) + return data + + def storage_flex_flash_controller_props_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'storageFlexFlashControllerProps' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_controller_props_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashControllerProps instance. (required) + :param StorageFlexFlashControllerProps body: storageFlexFlashControllerProps to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_flash_controller_props_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_flash_controller_props_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_flex_flash_controller_props_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexFlashControllerProps/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/storage_flex_flash_physical_drive_api.py b/intersight/apis/storage_flex_flash_physical_drive_api.py index b1171770..0f390898 100644 --- a/intersight/apis/storage_flex_flash_physical_drive_api.py +++ b/intersight/apis/storage_flex_flash_physical_drive_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def storage_flex_flash_physical_drives_get(self, **kwargs): """ - List of storageFlexFlashPhysicalDrives + Get a list of 'storageFlexFlashPhysicalDrive' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def storage_flex_flash_physical_drives_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StorageFlexFlashPhysicalDriveList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def storage_flex_flash_physical_drives_get(self, **kwargs): def storage_flex_flash_physical_drives_get_with_http_info(self, **kwargs): """ - List of storageFlexFlashPhysicalDrives + Get a list of 'storageFlexFlashPhysicalDrive' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def storage_flex_flash_physical_drives_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StorageFlexFlashPhysicalDriveList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def storage_flex_flash_physical_drives_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def storage_flex_flash_physical_drives_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def storage_flex_flash_physical_drives_get_with_http_info(self, **kwargs): def storage_flex_flash_physical_drives_moid_get(self, moid, **kwargs): """ - A instance of storageFlexFlashPhysicalDrive + Get a specific instance of 'storageFlexFlashPhysicalDrive' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def storage_flex_flash_physical_drives_moid_get(self, moid, **kwargs): def storage_flex_flash_physical_drives_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of storageFlexFlashPhysicalDrive + Get a specific instance of 'storageFlexFlashPhysicalDrive' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def storage_flex_flash_physical_drives_moid_get_with_http_info(self, moid, **kwa def storage_flex_flash_physical_drives_moid_patch(self, moid, body, **kwargs): """ - Update an instance of storageFlexFlashPhysicalDrive + Update an instance of 'storageFlexFlashPhysicalDrive' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def storage_flex_flash_physical_drives_moid_patch(self, moid, body, **kwargs): def storage_flex_flash_physical_drives_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storageFlexFlashPhysicalDrive + Update an instance of 'storageFlexFlashPhysicalDrive' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def storage_flex_flash_physical_drives_moid_patch_with_http_info(self, moid, bod def storage_flex_flash_physical_drives_moid_post(self, moid, body, **kwargs): """ - Update an instance of storageFlexFlashPhysicalDrive + Update an instance of 'storageFlexFlashPhysicalDrive' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def storage_flex_flash_physical_drives_moid_post(self, moid, body, **kwargs): def storage_flex_flash_physical_drives_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storageFlexFlashPhysicalDrive + Update an instance of 'storageFlexFlashPhysicalDrive' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/storage_flex_flash_virtual_drive_api.py b/intersight/apis/storage_flex_flash_virtual_drive_api.py new file mode 100644 index 00000000..baec7197 --- /dev/null +++ b/intersight/apis/storage_flex_flash_virtual_drive_api.py @@ -0,0 +1,504 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class StorageFlexFlashVirtualDriveApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def storage_flex_flash_virtual_drives_get(self, **kwargs): + """ + Get a list of 'storageFlexFlashVirtualDrive' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_virtual_drives_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: StorageFlexFlashVirtualDriveList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_flash_virtual_drives_get_with_http_info(**kwargs) + else: + (data) = self.storage_flex_flash_virtual_drives_get_with_http_info(**kwargs) + return data + + def storage_flex_flash_virtual_drives_get_with_http_info(self, **kwargs): + """ + Get a list of 'storageFlexFlashVirtualDrive' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_virtual_drives_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: StorageFlexFlashVirtualDriveList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_flash_virtual_drives_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexFlashVirtualDrives', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageFlexFlashVirtualDriveList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_flash_virtual_drives_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'storageFlexFlashVirtualDrive' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_virtual_drives_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashVirtualDrive instance. (required) + :return: StorageFlexFlashVirtualDrive + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_flash_virtual_drives_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.storage_flex_flash_virtual_drives_moid_get_with_http_info(moid, **kwargs) + return data + + def storage_flex_flash_virtual_drives_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'storageFlexFlashVirtualDrive' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_virtual_drives_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashVirtualDrive instance. (required) + :return: StorageFlexFlashVirtualDrive + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_flash_virtual_drives_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_flash_virtual_drives_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexFlashVirtualDrives/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageFlexFlashVirtualDrive', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_flash_virtual_drives_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'storageFlexFlashVirtualDrive' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_virtual_drives_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashVirtualDrive instance. (required) + :param StorageFlexFlashVirtualDrive body: storageFlexFlashVirtualDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_flash_virtual_drives_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_flex_flash_virtual_drives_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def storage_flex_flash_virtual_drives_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'storageFlexFlashVirtualDrive' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_virtual_drives_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashVirtualDrive instance. (required) + :param StorageFlexFlashVirtualDrive body: storageFlexFlashVirtualDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_flash_virtual_drives_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_flash_virtual_drives_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_flex_flash_virtual_drives_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexFlashVirtualDrives/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_flash_virtual_drives_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'storageFlexFlashVirtualDrive' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_virtual_drives_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashVirtualDrive instance. (required) + :param StorageFlexFlashVirtualDrive body: storageFlexFlashVirtualDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_flash_virtual_drives_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_flex_flash_virtual_drives_moid_post_with_http_info(moid, body, **kwargs) + return data + + def storage_flex_flash_virtual_drives_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'storageFlexFlashVirtualDrive' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_flash_virtual_drives_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexFlashVirtualDrive instance. (required) + :param StorageFlexFlashVirtualDrive body: storageFlexFlashVirtualDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_flash_virtual_drives_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_flash_virtual_drives_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_flex_flash_virtual_drives_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexFlashVirtualDrives/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/storage_flex_util_controller_api.py b/intersight/apis/storage_flex_util_controller_api.py index 09a50323..2f922fbb 100644 --- a/intersight/apis/storage_flex_util_controller_api.py +++ b/intersight/apis/storage_flex_util_controller_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def storage_flex_util_controllers_get(self, **kwargs): """ - List of storageFlexUtilControllers + Get a list of 'storageFlexUtilController' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def storage_flex_util_controllers_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StorageFlexUtilControllerList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def storage_flex_util_controllers_get(self, **kwargs): def storage_flex_util_controllers_get_with_http_info(self, **kwargs): """ - List of storageFlexUtilControllers + Get a list of 'storageFlexUtilController' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def storage_flex_util_controllers_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StorageFlexUtilControllerList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def storage_flex_util_controllers_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def storage_flex_util_controllers_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def storage_flex_util_controllers_get_with_http_info(self, **kwargs): def storage_flex_util_controllers_moid_get(self, moid, **kwargs): """ - A instance of storageFlexUtilController + Get a specific instance of 'storageFlexUtilController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def storage_flex_util_controllers_moid_get(self, moid, **kwargs): def storage_flex_util_controllers_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of storageFlexUtilController + Get a specific instance of 'storageFlexUtilController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def storage_flex_util_controllers_moid_get_with_http_info(self, moid, **kwargs): def storage_flex_util_controllers_moid_patch(self, moid, body, **kwargs): """ - Update an instance of storageFlexUtilController + Update an instance of 'storageFlexUtilController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def storage_flex_util_controllers_moid_patch(self, moid, body, **kwargs): def storage_flex_util_controllers_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storageFlexUtilController + Update an instance of 'storageFlexUtilController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def storage_flex_util_controllers_moid_patch_with_http_info(self, moid, body, ** def storage_flex_util_controllers_moid_post(self, moid, body, **kwargs): """ - Update an instance of storageFlexUtilController + Update an instance of 'storageFlexUtilController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def storage_flex_util_controllers_moid_post(self, moid, body, **kwargs): def storage_flex_util_controllers_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storageFlexUtilController + Update an instance of 'storageFlexUtilController' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/storage_flex_util_physical_drive_api.py b/intersight/apis/storage_flex_util_physical_drive_api.py new file mode 100644 index 00000000..4f6fc806 --- /dev/null +++ b/intersight/apis/storage_flex_util_physical_drive_api.py @@ -0,0 +1,504 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class StorageFlexUtilPhysicalDriveApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def storage_flex_util_physical_drives_get(self, **kwargs): + """ + Get a list of 'storageFlexUtilPhysicalDrive' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_physical_drives_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: StorageFlexUtilPhysicalDriveList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_util_physical_drives_get_with_http_info(**kwargs) + else: + (data) = self.storage_flex_util_physical_drives_get_with_http_info(**kwargs) + return data + + def storage_flex_util_physical_drives_get_with_http_info(self, **kwargs): + """ + Get a list of 'storageFlexUtilPhysicalDrive' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_physical_drives_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: StorageFlexUtilPhysicalDriveList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_util_physical_drives_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexUtilPhysicalDrives', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageFlexUtilPhysicalDriveList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_util_physical_drives_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'storageFlexUtilPhysicalDrive' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_physical_drives_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilPhysicalDrive instance. (required) + :return: StorageFlexUtilPhysicalDrive + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_util_physical_drives_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.storage_flex_util_physical_drives_moid_get_with_http_info(moid, **kwargs) + return data + + def storage_flex_util_physical_drives_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'storageFlexUtilPhysicalDrive' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_physical_drives_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilPhysicalDrive instance. (required) + :return: StorageFlexUtilPhysicalDrive + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_util_physical_drives_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_util_physical_drives_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexUtilPhysicalDrives/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageFlexUtilPhysicalDrive', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_util_physical_drives_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'storageFlexUtilPhysicalDrive' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_physical_drives_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilPhysicalDrive instance. (required) + :param StorageFlexUtilPhysicalDrive body: storageFlexUtilPhysicalDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_util_physical_drives_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_flex_util_physical_drives_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def storage_flex_util_physical_drives_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'storageFlexUtilPhysicalDrive' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_physical_drives_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilPhysicalDrive instance. (required) + :param StorageFlexUtilPhysicalDrive body: storageFlexUtilPhysicalDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_util_physical_drives_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_util_physical_drives_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_flex_util_physical_drives_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexUtilPhysicalDrives/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_util_physical_drives_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'storageFlexUtilPhysicalDrive' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_physical_drives_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilPhysicalDrive instance. (required) + :param StorageFlexUtilPhysicalDrive body: storageFlexUtilPhysicalDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_util_physical_drives_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_flex_util_physical_drives_moid_post_with_http_info(moid, body, **kwargs) + return data + + def storage_flex_util_physical_drives_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'storageFlexUtilPhysicalDrive' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_physical_drives_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilPhysicalDrive instance. (required) + :param StorageFlexUtilPhysicalDrive body: storageFlexUtilPhysicalDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_util_physical_drives_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_util_physical_drives_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_flex_util_physical_drives_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexUtilPhysicalDrives/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/storage_flex_util_virtual_drive_api.py b/intersight/apis/storage_flex_util_virtual_drive_api.py new file mode 100644 index 00000000..1222eca6 --- /dev/null +++ b/intersight/apis/storage_flex_util_virtual_drive_api.py @@ -0,0 +1,504 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class StorageFlexUtilVirtualDriveApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def storage_flex_util_virtual_drives_get(self, **kwargs): + """ + Get a list of 'storageFlexUtilVirtualDrive' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_virtual_drives_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: StorageFlexUtilVirtualDriveList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_util_virtual_drives_get_with_http_info(**kwargs) + else: + (data) = self.storage_flex_util_virtual_drives_get_with_http_info(**kwargs) + return data + + def storage_flex_util_virtual_drives_get_with_http_info(self, **kwargs): + """ + Get a list of 'storageFlexUtilVirtualDrive' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_virtual_drives_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: StorageFlexUtilVirtualDriveList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_util_virtual_drives_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexUtilVirtualDrives', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageFlexUtilVirtualDriveList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_util_virtual_drives_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'storageFlexUtilVirtualDrive' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_virtual_drives_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilVirtualDrive instance. (required) + :return: StorageFlexUtilVirtualDrive + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_util_virtual_drives_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.storage_flex_util_virtual_drives_moid_get_with_http_info(moid, **kwargs) + return data + + def storage_flex_util_virtual_drives_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'storageFlexUtilVirtualDrive' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_virtual_drives_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilVirtualDrive instance. (required) + :return: StorageFlexUtilVirtualDrive + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_util_virtual_drives_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_util_virtual_drives_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexUtilVirtualDrives/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageFlexUtilVirtualDrive', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_util_virtual_drives_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'storageFlexUtilVirtualDrive' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_virtual_drives_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilVirtualDrive instance. (required) + :param StorageFlexUtilVirtualDrive body: storageFlexUtilVirtualDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_util_virtual_drives_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_flex_util_virtual_drives_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def storage_flex_util_virtual_drives_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'storageFlexUtilVirtualDrive' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_virtual_drives_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilVirtualDrive instance. (required) + :param StorageFlexUtilVirtualDrive body: storageFlexUtilVirtualDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_util_virtual_drives_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_util_virtual_drives_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_flex_util_virtual_drives_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexUtilVirtualDrives/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_flex_util_virtual_drives_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'storageFlexUtilVirtualDrive' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_virtual_drives_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilVirtualDrive instance. (required) + :param StorageFlexUtilVirtualDrive body: storageFlexUtilVirtualDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_flex_util_virtual_drives_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_flex_util_virtual_drives_moid_post_with_http_info(moid, body, **kwargs) + return data + + def storage_flex_util_virtual_drives_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'storageFlexUtilVirtualDrive' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_flex_util_virtual_drives_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageFlexUtilVirtualDrive instance. (required) + :param StorageFlexUtilVirtualDrive body: storageFlexUtilVirtualDrive to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_flex_util_virtual_drives_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_flex_util_virtual_drives_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_flex_util_virtual_drives_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/FlexUtilVirtualDrives/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/storage_physical_disk_api.py b/intersight/apis/storage_physical_disk_api.py index 08938a4d..6aa8dfc0 100644 --- a/intersight/apis/storage_physical_disk_api.py +++ b/intersight/apis/storage_physical_disk_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def storage_physical_disks_get(self, **kwargs): """ - List of storagePhysicalDisks + Get a list of 'storagePhysicalDisk' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def storage_physical_disks_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StoragePhysicalDiskList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def storage_physical_disks_get(self, **kwargs): def storage_physical_disks_get_with_http_info(self, **kwargs): """ - List of storagePhysicalDisks + Get a list of 'storagePhysicalDisk' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def storage_physical_disks_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StoragePhysicalDiskList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def storage_physical_disks_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def storage_physical_disks_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def storage_physical_disks_get_with_http_info(self, **kwargs): def storage_physical_disks_moid_get(self, moid, **kwargs): """ - A instance of storagePhysicalDisk + Get a specific instance of 'storagePhysicalDisk' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def storage_physical_disks_moid_get(self, moid, **kwargs): def storage_physical_disks_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of storagePhysicalDisk + Get a specific instance of 'storagePhysicalDisk' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def storage_physical_disks_moid_get_with_http_info(self, moid, **kwargs): def storage_physical_disks_moid_patch(self, moid, body, **kwargs): """ - Update an instance of storagePhysicalDisk + Update an instance of 'storagePhysicalDisk' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def storage_physical_disks_moid_patch(self, moid, body, **kwargs): def storage_physical_disks_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storagePhysicalDisk + Update an instance of 'storagePhysicalDisk' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def storage_physical_disks_moid_patch_with_http_info(self, moid, body, **kwargs) def storage_physical_disks_moid_post(self, moid, body, **kwargs): """ - Update an instance of storagePhysicalDisk + Update an instance of 'storagePhysicalDisk' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def storage_physical_disks_moid_post(self, moid, body, **kwargs): def storage_physical_disks_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storagePhysicalDisk + Update an instance of 'storagePhysicalDisk' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/storage_physical_disk_extension_api.py b/intersight/apis/storage_physical_disk_extension_api.py new file mode 100644 index 00000000..481b30ad --- /dev/null +++ b/intersight/apis/storage_physical_disk_extension_api.py @@ -0,0 +1,504 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class StoragePhysicalDiskExtensionApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def storage_physical_disk_extensions_get(self, **kwargs): + """ + Get a list of 'storagePhysicalDiskExtension' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_physical_disk_extensions_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: StoragePhysicalDiskExtensionList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_physical_disk_extensions_get_with_http_info(**kwargs) + else: + (data) = self.storage_physical_disk_extensions_get_with_http_info(**kwargs) + return data + + def storage_physical_disk_extensions_get_with_http_info(self, **kwargs): + """ + Get a list of 'storagePhysicalDiskExtension' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_physical_disk_extensions_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: StoragePhysicalDiskExtensionList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_physical_disk_extensions_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/PhysicalDiskExtensions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StoragePhysicalDiskExtensionList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_physical_disk_extensions_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'storagePhysicalDiskExtension' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_physical_disk_extensions_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storagePhysicalDiskExtension instance. (required) + :return: StoragePhysicalDiskExtension + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_physical_disk_extensions_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.storage_physical_disk_extensions_moid_get_with_http_info(moid, **kwargs) + return data + + def storage_physical_disk_extensions_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'storagePhysicalDiskExtension' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_physical_disk_extensions_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storagePhysicalDiskExtension instance. (required) + :return: StoragePhysicalDiskExtension + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_physical_disk_extensions_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_physical_disk_extensions_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/PhysicalDiskExtensions/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StoragePhysicalDiskExtension', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_physical_disk_extensions_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'storagePhysicalDiskExtension' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_physical_disk_extensions_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storagePhysicalDiskExtension instance. (required) + :param StoragePhysicalDiskExtension body: storagePhysicalDiskExtension to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_physical_disk_extensions_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_physical_disk_extensions_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def storage_physical_disk_extensions_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'storagePhysicalDiskExtension' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_physical_disk_extensions_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storagePhysicalDiskExtension instance. (required) + :param StoragePhysicalDiskExtension body: storagePhysicalDiskExtension to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_physical_disk_extensions_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_physical_disk_extensions_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_physical_disk_extensions_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/PhysicalDiskExtensions/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_physical_disk_extensions_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'storagePhysicalDiskExtension' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_physical_disk_extensions_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storagePhysicalDiskExtension instance. (required) + :param StoragePhysicalDiskExtension body: storagePhysicalDiskExtension to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_physical_disk_extensions_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_physical_disk_extensions_moid_post_with_http_info(moid, body, **kwargs) + return data + + def storage_physical_disk_extensions_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'storagePhysicalDiskExtension' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_physical_disk_extensions_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storagePhysicalDiskExtension instance. (required) + :param StoragePhysicalDiskExtension body: storagePhysicalDiskExtension to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_physical_disk_extensions_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_physical_disk_extensions_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_physical_disk_extensions_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/PhysicalDiskExtensions/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/storage_physical_disk_usage_api.py b/intersight/apis/storage_physical_disk_usage_api.py index a52c7bc9..71250be9 100644 --- a/intersight/apis/storage_physical_disk_usage_api.py +++ b/intersight/apis/storage_physical_disk_usage_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def storage_physical_disk_usages_get(self, **kwargs): """ - List of storagePhysicalDiskUsages + Get a list of 'storagePhysicalDiskUsage' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def storage_physical_disk_usages_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StoragePhysicalDiskUsageList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def storage_physical_disk_usages_get(self, **kwargs): def storage_physical_disk_usages_get_with_http_info(self, **kwargs): """ - List of storagePhysicalDiskUsages + Get a list of 'storagePhysicalDiskUsage' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def storage_physical_disk_usages_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StoragePhysicalDiskUsageList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def storage_physical_disk_usages_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def storage_physical_disk_usages_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def storage_physical_disk_usages_get_with_http_info(self, **kwargs): def storage_physical_disk_usages_moid_get(self, moid, **kwargs): """ - A instance of storagePhysicalDiskUsage + Get a specific instance of 'storagePhysicalDiskUsage' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def storage_physical_disk_usages_moid_get(self, moid, **kwargs): def storage_physical_disk_usages_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of storagePhysicalDiskUsage + Get a specific instance of 'storagePhysicalDiskUsage' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def storage_physical_disk_usages_moid_get_with_http_info(self, moid, **kwargs): def storage_physical_disk_usages_moid_patch(self, moid, body, **kwargs): """ - Update an instance of storagePhysicalDiskUsage + Update an instance of 'storagePhysicalDiskUsage' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def storage_physical_disk_usages_moid_patch(self, moid, body, **kwargs): def storage_physical_disk_usages_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storagePhysicalDiskUsage + Update an instance of 'storagePhysicalDiskUsage' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def storage_physical_disk_usages_moid_patch_with_http_info(self, moid, body, **k def storage_physical_disk_usages_moid_post(self, moid, body, **kwargs): """ - Update an instance of storagePhysicalDiskUsage + Update an instance of 'storagePhysicalDiskUsage' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def storage_physical_disk_usages_moid_post(self, moid, body, **kwargs): def storage_physical_disk_usages_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storagePhysicalDiskUsage + Update an instance of 'storagePhysicalDiskUsage' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/storage_sas_expander_api.py b/intersight/apis/storage_sas_expander_api.py index 39094dd2..c2e4d060 100644 --- a/intersight/apis/storage_sas_expander_api.py +++ b/intersight/apis/storage_sas_expander_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def storage_sas_expanders_get(self, **kwargs): """ - List of storageSasExpanders + Get a list of 'storageSasExpander' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def storage_sas_expanders_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StorageSasExpanderList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def storage_sas_expanders_get(self, **kwargs): def storage_sas_expanders_get_with_http_info(self, **kwargs): """ - List of storageSasExpanders + Get a list of 'storageSasExpander' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def storage_sas_expanders_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StorageSasExpanderList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def storage_sas_expanders_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def storage_sas_expanders_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def storage_sas_expanders_get_with_http_info(self, **kwargs): def storage_sas_expanders_moid_get(self, moid, **kwargs): """ - A instance of storageSasExpander + Get a specific instance of 'storageSasExpander' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def storage_sas_expanders_moid_get(self, moid, **kwargs): def storage_sas_expanders_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of storageSasExpander + Get a specific instance of 'storageSasExpander' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def storage_sas_expanders_moid_get_with_http_info(self, moid, **kwargs): def storage_sas_expanders_moid_patch(self, moid, body, **kwargs): """ - Update an instance of storageSasExpander + Update an instance of 'storageSasExpander' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def storage_sas_expanders_moid_patch(self, moid, body, **kwargs): def storage_sas_expanders_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storageSasExpander + Update an instance of 'storageSasExpander' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def storage_sas_expanders_moid_patch_with_http_info(self, moid, body, **kwargs): def storage_sas_expanders_moid_post(self, moid, body, **kwargs): """ - Update an instance of storageSasExpander + Update an instance of 'storageSasExpander' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def storage_sas_expanders_moid_post(self, moid, body, **kwargs): def storage_sas_expanders_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storageSasExpander + Update an instance of 'storageSasExpander' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/storage_storage_policy_api.py b/intersight/apis/storage_storage_policy_api.py index 00d49b33..23e8f356 100644 --- a/intersight/apis/storage_storage_policy_api.py +++ b/intersight/apis/storage_storage_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def storage_storage_policies_get(self, **kwargs): """ - List of storageStoragePolicies + Get a list of 'storageStoragePolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def storage_storage_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StorageStoragePolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def storage_storage_policies_get(self, **kwargs): def storage_storage_policies_get_with_http_info(self, **kwargs): """ - List of storageStoragePolicies + Get a list of 'storageStoragePolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def storage_storage_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StorageStoragePolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def storage_storage_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def storage_storage_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def storage_storage_policies_get_with_http_info(self, **kwargs): def storage_storage_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of storageStoragePolicy + Delete an instance of 'storageStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def storage_storage_policies_moid_delete(self, moid, **kwargs): def storage_storage_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of storageStoragePolicy + Delete an instance of 'storageStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def storage_storage_policies_moid_delete_with_http_info(self, moid, **kwargs): def storage_storage_policies_moid_get(self, moid, **kwargs): """ - A instance of storageStoragePolicy + Get a specific instance of 'storageStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def storage_storage_policies_moid_get(self, moid, **kwargs): def storage_storage_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of storageStoragePolicy + Get a specific instance of 'storageStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def storage_storage_policies_moid_get_with_http_info(self, moid, **kwargs): def storage_storage_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of storageStoragePolicy + Update an instance of 'storageStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def storage_storage_policies_moid_patch(self, moid, body, **kwargs): def storage_storage_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storageStoragePolicy + Update an instance of 'storageStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def storage_storage_policies_moid_patch_with_http_info(self, moid, body, **kwarg def storage_storage_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of storageStoragePolicy + Update an instance of 'storageStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def storage_storage_policies_moid_post(self, moid, body, **kwargs): def storage_storage_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storageStoragePolicy + Update an instance of 'storageStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def storage_storage_policies_moid_post_with_http_info(self, moid, body, **kwargs def storage_storage_policies_post(self, body, **kwargs): """ - Create a storageStoragePolicy + Create an instance of 'storageStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def storage_storage_policies_post(self, body, **kwargs): def storage_storage_policies_post_with_http_info(self, body, **kwargs): """ - Create a storageStoragePolicy + Create an instance of 'storageStoragePolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/storage_vd_member_ep_api.py b/intersight/apis/storage_vd_member_ep_api.py index e92f9159..9fb8bede 100644 --- a/intersight/apis/storage_vd_member_ep_api.py +++ b/intersight/apis/storage_vd_member_ep_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def storage_vd_member_eps_get(self, **kwargs): """ - List of storageVdMemberEps + Get a list of 'storageVdMemberEp' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def storage_vd_member_eps_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StorageVdMemberEpList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def storage_vd_member_eps_get(self, **kwargs): def storage_vd_member_eps_get_with_http_info(self, **kwargs): """ - List of storageVdMemberEps + Get a list of 'storageVdMemberEp' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def storage_vd_member_eps_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StorageVdMemberEpList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def storage_vd_member_eps_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def storage_vd_member_eps_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def storage_vd_member_eps_get_with_http_info(self, **kwargs): def storage_vd_member_eps_moid_get(self, moid, **kwargs): """ - A instance of storageVdMemberEp + Get a specific instance of 'storageVdMemberEp' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def storage_vd_member_eps_moid_get(self, moid, **kwargs): def storage_vd_member_eps_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of storageVdMemberEp + Get a specific instance of 'storageVdMemberEp' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def storage_vd_member_eps_moid_get_with_http_info(self, moid, **kwargs): def storage_vd_member_eps_moid_patch(self, moid, body, **kwargs): """ - Update an instance of storageVdMemberEp + Update an instance of 'storageVdMemberEp' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def storage_vd_member_eps_moid_patch(self, moid, body, **kwargs): def storage_vd_member_eps_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storageVdMemberEp + Update an instance of 'storageVdMemberEp' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def storage_vd_member_eps_moid_patch_with_http_info(self, moid, body, **kwargs): def storage_vd_member_eps_moid_post(self, moid, body, **kwargs): """ - Update an instance of storageVdMemberEp + Update an instance of 'storageVdMemberEp' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def storage_vd_member_eps_moid_post(self, moid, body, **kwargs): def storage_vd_member_eps_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storageVdMemberEp + Update an instance of 'storageVdMemberEp' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/storage_virtual_drive_api.py b/intersight/apis/storage_virtual_drive_api.py index 8a39eb03..37cb2c9d 100644 --- a/intersight/apis/storage_virtual_drive_api.py +++ b/intersight/apis/storage_virtual_drive_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def storage_virtual_drives_get(self, **kwargs): """ - List of storageVirtualDrives + Get a list of 'storageVirtualDrive' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def storage_virtual_drives_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StorageVirtualDriveList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def storage_virtual_drives_get(self, **kwargs): def storage_virtual_drives_get_with_http_info(self, **kwargs): """ - List of storageVirtualDrives + Get a list of 'storageVirtualDrive' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def storage_virtual_drives_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: StorageVirtualDriveList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def storage_virtual_drives_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def storage_virtual_drives_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def storage_virtual_drives_get_with_http_info(self, **kwargs): def storage_virtual_drives_moid_get(self, moid, **kwargs): """ - A instance of storageVirtualDrive + Get a specific instance of 'storageVirtualDrive' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def storage_virtual_drives_moid_get(self, moid, **kwargs): def storage_virtual_drives_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of storageVirtualDrive + Get a specific instance of 'storageVirtualDrive' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def storage_virtual_drives_moid_get_with_http_info(self, moid, **kwargs): def storage_virtual_drives_moid_patch(self, moid, body, **kwargs): """ - Update an instance of storageVirtualDrive + Update an instance of 'storageVirtualDrive' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def storage_virtual_drives_moid_patch(self, moid, body, **kwargs): def storage_virtual_drives_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storageVirtualDrive + Update an instance of 'storageVirtualDrive' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def storage_virtual_drives_moid_patch_with_http_info(self, moid, body, **kwargs) def storage_virtual_drives_moid_post(self, moid, body, **kwargs): """ - Update an instance of storageVirtualDrive + Update an instance of 'storageVirtualDrive' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def storage_virtual_drives_moid_post(self, moid, body, **kwargs): def storage_virtual_drives_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of storageVirtualDrive + Update an instance of 'storageVirtualDrive' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/storage_virtual_drive_extension_api.py b/intersight/apis/storage_virtual_drive_extension_api.py new file mode 100644 index 00000000..c85e861b --- /dev/null +++ b/intersight/apis/storage_virtual_drive_extension_api.py @@ -0,0 +1,504 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class StorageVirtualDriveExtensionApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def storage_virtual_drive_extensions_get(self, **kwargs): + """ + Get a list of 'storageVirtualDriveExtension' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_virtual_drive_extensions_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: StorageVirtualDriveExtensionList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_virtual_drive_extensions_get_with_http_info(**kwargs) + else: + (data) = self.storage_virtual_drive_extensions_get_with_http_info(**kwargs) + return data + + def storage_virtual_drive_extensions_get_with_http_info(self, **kwargs): + """ + Get a list of 'storageVirtualDriveExtension' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_virtual_drive_extensions_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: StorageVirtualDriveExtensionList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_virtual_drive_extensions_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/VirtualDriveExtensions', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageVirtualDriveExtensionList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_virtual_drive_extensions_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'storageVirtualDriveExtension' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_virtual_drive_extensions_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageVirtualDriveExtension instance. (required) + :return: StorageVirtualDriveExtension + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_virtual_drive_extensions_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.storage_virtual_drive_extensions_moid_get_with_http_info(moid, **kwargs) + return data + + def storage_virtual_drive_extensions_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'storageVirtualDriveExtension' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_virtual_drive_extensions_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageVirtualDriveExtension instance. (required) + :return: StorageVirtualDriveExtension + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_virtual_drive_extensions_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_virtual_drive_extensions_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/VirtualDriveExtensions/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='StorageVirtualDriveExtension', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_virtual_drive_extensions_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'storageVirtualDriveExtension' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_virtual_drive_extensions_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageVirtualDriveExtension instance. (required) + :param StorageVirtualDriveExtension body: storageVirtualDriveExtension to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_virtual_drive_extensions_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_virtual_drive_extensions_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def storage_virtual_drive_extensions_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'storageVirtualDriveExtension' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_virtual_drive_extensions_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageVirtualDriveExtension instance. (required) + :param StorageVirtualDriveExtension body: storageVirtualDriveExtension to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_virtual_drive_extensions_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_virtual_drive_extensions_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_virtual_drive_extensions_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/VirtualDriveExtensions/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def storage_virtual_drive_extensions_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'storageVirtualDriveExtension' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_virtual_drive_extensions_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageVirtualDriveExtension instance. (required) + :param StorageVirtualDriveExtension body: storageVirtualDriveExtension to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.storage_virtual_drive_extensions_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.storage_virtual_drive_extensions_moid_post_with_http_info(moid, body, **kwargs) + return data + + def storage_virtual_drive_extensions_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'storageVirtualDriveExtension' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.storage_virtual_drive_extensions_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the storageVirtualDriveExtension instance. (required) + :param StorageVirtualDriveExtension body: storageVirtualDriveExtension to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method storage_virtual_drive_extensions_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `storage_virtual_drive_extensions_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `storage_virtual_drive_extensions_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/storage/VirtualDriveExtensions/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/syslog_policy_api.py b/intersight/apis/syslog_policy_api.py new file mode 100644 index 00000000..ddbc61c3 --- /dev/null +++ b/intersight/apis/syslog_policy_api.py @@ -0,0 +1,712 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class SyslogPolicyApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def syslog_policies_get(self, **kwargs): + """ + Get a list of 'syslogPolicy' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.syslog_policies_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: SyslogPolicyList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.syslog_policies_get_with_http_info(**kwargs) + else: + (data) = self.syslog_policies_get_with_http_info(**kwargs) + return data + + def syslog_policies_get_with_http_info(self, **kwargs): + """ + Get a list of 'syslogPolicy' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.syslog_policies_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: SyslogPolicyList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method syslog_policies_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/syslog/Policies', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SyslogPolicyList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def syslog_policies_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'syslogPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.syslog_policies_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the syslogPolicy instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.syslog_policies_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.syslog_policies_moid_delete_with_http_info(moid, **kwargs) + return data + + def syslog_policies_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'syslogPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.syslog_policies_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the syslogPolicy instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method syslog_policies_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `syslog_policies_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/syslog/Policies/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def syslog_policies_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'syslogPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.syslog_policies_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the syslogPolicy instance. (required) + :return: SyslogPolicy + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.syslog_policies_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.syslog_policies_moid_get_with_http_info(moid, **kwargs) + return data + + def syslog_policies_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'syslogPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.syslog_policies_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the syslogPolicy instance. (required) + :return: SyslogPolicy + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method syslog_policies_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `syslog_policies_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/syslog/Policies/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='SyslogPolicy', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def syslog_policies_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'syslogPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.syslog_policies_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the syslogPolicy instance. (required) + :param SyslogPolicy body: syslogPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.syslog_policies_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.syslog_policies_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def syslog_policies_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'syslogPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.syslog_policies_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the syslogPolicy instance. (required) + :param SyslogPolicy body: syslogPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method syslog_policies_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `syslog_policies_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `syslog_policies_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/syslog/Policies/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def syslog_policies_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'syslogPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.syslog_policies_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the syslogPolicy instance. (required) + :param SyslogPolicy body: syslogPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.syslog_policies_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.syslog_policies_moid_post_with_http_info(moid, body, **kwargs) + return data + + def syslog_policies_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'syslogPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.syslog_policies_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the syslogPolicy instance. (required) + :param SyslogPolicy body: syslogPolicy to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method syslog_policies_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `syslog_policies_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `syslog_policies_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/syslog/Policies/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def syslog_policies_post(self, body, **kwargs): + """ + Create an instance of 'syslogPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.syslog_policies_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param SyslogPolicy body: syslogPolicy to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.syslog_policies_post_with_http_info(body, **kwargs) + else: + (data) = self.syslog_policies_post_with_http_info(body, **kwargs) + return data + + def syslog_policies_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'syslogPolicy' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.syslog_policies_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param SyslogPolicy body: syslogPolicy to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method syslog_policies_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `syslog_policies_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/syslog/Policies', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/task_workflow_action_api.py b/intersight/apis/task_workflow_action_api.py index 1cd4cf55..4b1d1ec0 100644 --- a/intersight/apis/task_workflow_action_api.py +++ b/intersight/apis/task_workflow_action_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def task_workflow_actions_get(self, **kwargs): """ - List of taskWorkflowActions + Get a list of 'taskWorkflowAction' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def task_workflow_actions_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: TaskWorkflowActionList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def task_workflow_actions_get(self, **kwargs): def task_workflow_actions_get_with_http_info(self, **kwargs): """ - List of taskWorkflowActions + Get a list of 'taskWorkflowAction' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def task_workflow_actions_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: TaskWorkflowActionList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def task_workflow_actions_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def task_workflow_actions_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def task_workflow_actions_get_with_http_info(self, **kwargs): def task_workflow_actions_moid_get(self, moid, **kwargs): """ - A instance of taskWorkflowAction + Get a specific instance of 'taskWorkflowAction' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def task_workflow_actions_moid_get(self, moid, **kwargs): def task_workflow_actions_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of taskWorkflowAction + Get a specific instance of 'taskWorkflowAction' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def task_workflow_actions_moid_get_with_http_info(self, moid, **kwargs): def task_workflow_actions_moid_patch(self, moid, body, **kwargs): """ - Update an instance of taskWorkflowAction + Update an instance of 'taskWorkflowAction' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def task_workflow_actions_moid_patch(self, moid, body, **kwargs): def task_workflow_actions_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of taskWorkflowAction + Update an instance of 'taskWorkflowAction' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def task_workflow_actions_moid_patch_with_http_info(self, moid, body, **kwargs): def task_workflow_actions_moid_post(self, moid, body, **kwargs): """ - Update an instance of taskWorkflowAction + Update an instance of 'taskWorkflowAction' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def task_workflow_actions_moid_post(self, moid, body, **kwargs): def task_workflow_actions_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of taskWorkflowAction + Update an instance of 'taskWorkflowAction' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -501,7 +505,7 @@ def task_workflow_actions_moid_post_with_http_info(self, moid, body, **kwargs): def task_workflow_actions_post(self, body, **kwargs): """ - Create a taskWorkflowAction + Create an instance of 'taskWorkflowAction' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -526,7 +530,7 @@ def task_workflow_actions_post(self, body, **kwargs): def task_workflow_actions_post_with_http_info(self, body, **kwargs): """ - Create a taskWorkflowAction + Create an instance of 'taskWorkflowAction' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/telemetry_time_series_api.py b/intersight/apis/telemetry_time_series_api.py new file mode 100644 index 00000000..b26c2dc1 --- /dev/null +++ b/intersight/apis/telemetry_time_series_api.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class TelemetryTimeSeriesApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def telemetry_time_series_post(self, body, **kwargs): + """ + Create an instance of 'telemetryTimeSeries' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.telemetry_time_series_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param TelemetryTimeSeries body: telemetryTimeSeries to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.telemetry_time_series_post_with_http_info(body, **kwargs) + else: + (data) = self.telemetry_time_series_post_with_http_info(body, **kwargs) + return data + + def telemetry_time_series_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'telemetryTimeSeries' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.telemetry_time_series_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param TelemetryTimeSeries body: telemetryTimeSeries to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method telemetry_time_series_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `telemetry_time_series_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/telemetry/TimeSeries', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/terminal_audit_log_api.py b/intersight/apis/terminal_audit_log_api.py index 88ff2e42..fb2c6a46 100644 --- a/intersight/apis/terminal_audit_log_api.py +++ b/intersight/apis/terminal_audit_log_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def terminal_audit_logs_get(self, **kwargs): """ - List of terminalAuditLogs + Get a list of 'terminalAuditLog' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def terminal_audit_logs_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: TerminalAuditLogList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def terminal_audit_logs_get(self, **kwargs): def terminal_audit_logs_get_with_http_info(self, **kwargs): """ - List of terminalAuditLogs + Get a list of 'terminalAuditLog' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def terminal_audit_logs_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: TerminalAuditLogList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def terminal_audit_logs_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def terminal_audit_logs_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def terminal_audit_logs_get_with_http_info(self, **kwargs): def terminal_audit_logs_moid_get(self, moid, **kwargs): """ - A instance of terminalAuditLog + Get a specific instance of 'terminalAuditLog' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def terminal_audit_logs_moid_get(self, moid, **kwargs): def terminal_audit_logs_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of terminalAuditLog + Get a specific instance of 'terminalAuditLog' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/externalsite_auth_profile_api.py b/intersight/apis/testcrypt_administrator_api.py similarity index 71% rename from intersight/apis/externalsite_auth_profile_api.py rename to intersight/apis/testcrypt_administrator_api.py index 5126df5d..78502f9c 100644 --- a/intersight/apis/externalsite_auth_profile_api.py +++ b/intersight/apis/testcrypt_administrator_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -24,7 +24,7 @@ from ..api_client import ApiClient -class ExternalsiteAuthProfileApi(object): +class TestcryptAdministratorApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,67 +40,69 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def externalsite_auth_profiles_get(self, **kwargs): + def testcrypt_administrators_get(self, **kwargs): """ - List of externalsiteAuthProfiles + Get a list of 'testcryptAdministrator' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.externalsite_auth_profiles_get(callback=callback_function) + >>> thread = api.testcrypt_administrators_get(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: ExternalsiteAuthProfileList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: TestcryptAdministratorList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.externalsite_auth_profiles_get_with_http_info(**kwargs) + return self.testcrypt_administrators_get_with_http_info(**kwargs) else: - (data) = self.externalsite_auth_profiles_get_with_http_info(**kwargs) + (data) = self.testcrypt_administrators_get_with_http_info(**kwargs) return data - def externalsite_auth_profiles_get_with_http_info(self, **kwargs): + def testcrypt_administrators_get_with_http_info(self, **kwargs): """ - List of externalsiteAuthProfiles + Get a list of 'testcryptAdministrator' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.externalsite_auth_profiles_get_with_http_info(callback=callback_function) + >>> thread = api.testcrypt_administrators_get_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: ExternalsiteAuthProfileList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: TestcryptAdministratorList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -111,7 +113,7 @@ def externalsite_auth_profiles_get_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method externalsite_auth_profiles_get" % key + " to method testcrypt_administrators_get" % key ) params[key] = val del params['kwargs'] @@ -126,8 +128,6 @@ def externalsite_auth_profiles_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def externalsite_auth_profiles_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -158,14 +162,14 @@ def externalsite_auth_profiles_get_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/externalsite/AuthProfiles', 'GET', + return self.api_client.call_api('/testcrypt/Administrators', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ExternalsiteAuthProfileList', + response_type='TestcryptAdministratorList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -173,46 +177,46 @@ def externalsite_auth_profiles_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def externalsite_auth_profiles_moid_get(self, moid, **kwargs): + def testcrypt_administrators_moid_get(self, moid, **kwargs): """ - A instance of externalsiteAuthProfile + Get a specific instance of 'testcryptAdministrator' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.externalsite_auth_profiles_moid_get(moid, callback=callback_function) + >>> thread = api.testcrypt_administrators_moid_get(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the externalsiteAuthProfile instance. (required) - :return: ExternalsiteAuthProfile + :param str moid: The moid of the testcryptAdministrator instance. (required) + :return: TestcryptAdministrator If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.externalsite_auth_profiles_moid_get_with_http_info(moid, **kwargs) + return self.testcrypt_administrators_moid_get_with_http_info(moid, **kwargs) else: - (data) = self.externalsite_auth_profiles_moid_get_with_http_info(moid, **kwargs) + (data) = self.testcrypt_administrators_moid_get_with_http_info(moid, **kwargs) return data - def externalsite_auth_profiles_moid_get_with_http_info(self, moid, **kwargs): + def testcrypt_administrators_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of externalsiteAuthProfile + Get a specific instance of 'testcryptAdministrator' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.externalsite_auth_profiles_moid_get_with_http_info(moid, callback=callback_function) + >>> thread = api.testcrypt_administrators_moid_get_with_http_info(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the externalsiteAuthProfile instance. (required) - :return: ExternalsiteAuthProfile + :param str moid: The moid of the testcryptAdministrator instance. (required) + :return: TestcryptAdministrator If the method is called asynchronously, returns the request thread. """ @@ -228,13 +232,13 @@ def externalsite_auth_profiles_moid_get_with_http_info(self, moid, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method externalsite_auth_profiles_moid_get" % key + " to method testcrypt_administrators_moid_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `externalsite_auth_profiles_moid_get`") + raise ValueError("Missing the required parameter `moid` when calling `testcrypt_administrators_moid_get`") collection_formats = {} @@ -262,14 +266,14 @@ def externalsite_auth_profiles_moid_get_with_http_info(self, moid, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/externalsite/AuthProfiles/{moid}', 'GET', + return self.api_client.call_api('/testcrypt/Administrators/{moid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='ExternalsiteAuthProfile', + response_type='TestcryptAdministrator', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -277,47 +281,47 @@ def externalsite_auth_profiles_moid_get_with_http_info(self, moid, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def externalsite_auth_profiles_moid_patch(self, moid, body, **kwargs): + def testcrypt_administrators_moid_patch(self, moid, body, **kwargs): """ - Update an instance of externalsiteAuthProfile + Update an instance of 'testcryptAdministrator' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.externalsite_auth_profiles_moid_patch(moid, body, callback=callback_function) + >>> thread = api.testcrypt_administrators_moid_patch(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the externalsiteAuthProfile instance. (required) - :param ExternalsiteAuthProfile body: externalsiteAuthProfile to update (required) + :param str moid: The moid of the testcryptAdministrator instance. (required) + :param TestcryptAdministrator body: testcryptAdministrator to update (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.externalsite_auth_profiles_moid_patch_with_http_info(moid, body, **kwargs) + return self.testcrypt_administrators_moid_patch_with_http_info(moid, body, **kwargs) else: - (data) = self.externalsite_auth_profiles_moid_patch_with_http_info(moid, body, **kwargs) + (data) = self.testcrypt_administrators_moid_patch_with_http_info(moid, body, **kwargs) return data - def externalsite_auth_profiles_moid_patch_with_http_info(self, moid, body, **kwargs): + def testcrypt_administrators_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of externalsiteAuthProfile + Update an instance of 'testcryptAdministrator' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.externalsite_auth_profiles_moid_patch_with_http_info(moid, body, callback=callback_function) + >>> thread = api.testcrypt_administrators_moid_patch_with_http_info(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the externalsiteAuthProfile instance. (required) - :param ExternalsiteAuthProfile body: externalsiteAuthProfile to update (required) + :param str moid: The moid of the testcryptAdministrator instance. (required) + :param TestcryptAdministrator body: testcryptAdministrator to update (required) :return: None If the method is called asynchronously, returns the request thread. @@ -334,16 +338,16 @@ def externalsite_auth_profiles_moid_patch_with_http_info(self, moid, body, **kwa if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method externalsite_auth_profiles_moid_patch" % key + " to method testcrypt_administrators_moid_patch" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `externalsite_auth_profiles_moid_patch`") + raise ValueError("Missing the required parameter `moid` when calling `testcrypt_administrators_moid_patch`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `externalsite_auth_profiles_moid_patch`") + raise ValueError("Missing the required parameter `body` when calling `testcrypt_administrators_moid_patch`") collection_formats = {} @@ -373,7 +377,7 @@ def externalsite_auth_profiles_moid_patch_with_http_info(self, moid, body, **kwa # Authentication setting auth_settings = [] - return self.api_client.call_api('/externalsite/AuthProfiles/{moid}', 'PATCH', + return self.api_client.call_api('/testcrypt/Administrators/{moid}', 'PATCH', path_params, query_params, header_params, @@ -388,47 +392,47 @@ def externalsite_auth_profiles_moid_patch_with_http_info(self, moid, body, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def externalsite_auth_profiles_moid_post(self, moid, body, **kwargs): + def testcrypt_administrators_moid_post(self, moid, body, **kwargs): """ - Update an instance of externalsiteAuthProfile + Update an instance of 'testcryptAdministrator' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.externalsite_auth_profiles_moid_post(moid, body, callback=callback_function) + >>> thread = api.testcrypt_administrators_moid_post(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the externalsiteAuthProfile instance. (required) - :param ExternalsiteAuthProfile body: externalsiteAuthProfile to update (required) + :param str moid: The moid of the testcryptAdministrator instance. (required) + :param TestcryptAdministrator body: testcryptAdministrator to update (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.externalsite_auth_profiles_moid_post_with_http_info(moid, body, **kwargs) + return self.testcrypt_administrators_moid_post_with_http_info(moid, body, **kwargs) else: - (data) = self.externalsite_auth_profiles_moid_post_with_http_info(moid, body, **kwargs) + (data) = self.testcrypt_administrators_moid_post_with_http_info(moid, body, **kwargs) return data - def externalsite_auth_profiles_moid_post_with_http_info(self, moid, body, **kwargs): + def testcrypt_administrators_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of externalsiteAuthProfile + Update an instance of 'testcryptAdministrator' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.externalsite_auth_profiles_moid_post_with_http_info(moid, body, callback=callback_function) + >>> thread = api.testcrypt_administrators_moid_post_with_http_info(moid, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the externalsiteAuthProfile instance. (required) - :param ExternalsiteAuthProfile body: externalsiteAuthProfile to update (required) + :param str moid: The moid of the testcryptAdministrator instance. (required) + :param TestcryptAdministrator body: testcryptAdministrator to update (required) :return: None If the method is called asynchronously, returns the request thread. @@ -445,16 +449,16 @@ def externalsite_auth_profiles_moid_post_with_http_info(self, moid, body, **kwar if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method externalsite_auth_profiles_moid_post" % key + " to method testcrypt_administrators_moid_post" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `externalsite_auth_profiles_moid_post`") + raise ValueError("Missing the required parameter `moid` when calling `testcrypt_administrators_moid_post`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `externalsite_auth_profiles_moid_post`") + raise ValueError("Missing the required parameter `body` when calling `testcrypt_administrators_moid_post`") collection_formats = {} @@ -484,7 +488,7 @@ def externalsite_auth_profiles_moid_post_with_http_info(self, moid, body, **kwar # Authentication setting auth_settings = [] - return self.api_client.call_api('/externalsite/AuthProfiles/{moid}', 'POST', + return self.api_client.call_api('/testcrypt/Administrators/{moid}', 'POST', path_params, query_params, header_params, @@ -499,45 +503,45 @@ def externalsite_auth_profiles_moid_post_with_http_info(self, moid, body, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def externalsite_auth_profiles_post(self, body, **kwargs): + def testcrypt_administrators_post(self, body, **kwargs): """ - Create a externalsiteAuthProfile + Create an instance of 'testcryptAdministrator' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.externalsite_auth_profiles_post(body, callback=callback_function) + >>> thread = api.testcrypt_administrators_post(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ExternalsiteAuthProfile body: externalsiteAuthProfile to add (required) + :param TestcryptAdministrator body: testcryptAdministrator to add (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.externalsite_auth_profiles_post_with_http_info(body, **kwargs) + return self.testcrypt_administrators_post_with_http_info(body, **kwargs) else: - (data) = self.externalsite_auth_profiles_post_with_http_info(body, **kwargs) + (data) = self.testcrypt_administrators_post_with_http_info(body, **kwargs) return data - def externalsite_auth_profiles_post_with_http_info(self, body, **kwargs): + def testcrypt_administrators_post_with_http_info(self, body, **kwargs): """ - Create a externalsiteAuthProfile + Create an instance of 'testcryptAdministrator' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.externalsite_auth_profiles_post_with_http_info(body, callback=callback_function) + >>> thread = api.testcrypt_administrators_post_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param ExternalsiteAuthProfile body: externalsiteAuthProfile to add (required) + :param TestcryptAdministrator body: testcryptAdministrator to add (required) :return: None If the method is called asynchronously, returns the request thread. @@ -554,13 +558,13 @@ def externalsite_auth_profiles_post_with_http_info(self, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method externalsite_auth_profiles_post" % key + " to method testcrypt_administrators_post" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `externalsite_auth_profiles_post`") + raise ValueError("Missing the required parameter `body` when calling `testcrypt_administrators_post`") collection_formats = {} @@ -588,7 +592,7 @@ def externalsite_auth_profiles_post_with_http_info(self, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/externalsite/AuthProfiles', 'POST', + return self.api_client.call_api('/testcrypt/Administrators', 'POST', path_params, query_params, header_params, diff --git a/intersight/apis/testcrypt_credential_api.py b/intersight/apis/testcrypt_credential_api.py new file mode 100644 index 00000000..7884caf8 --- /dev/null +++ b/intersight/apis/testcrypt_credential_api.py @@ -0,0 +1,712 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class TestcryptCredentialApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def testcrypt_credentials_get(self, **kwargs): + """ + Get a list of 'testcryptCredential' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_credentials_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: TestcryptCredentialList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.testcrypt_credentials_get_with_http_info(**kwargs) + else: + (data) = self.testcrypt_credentials_get_with_http_info(**kwargs) + return data + + def testcrypt_credentials_get_with_http_info(self, **kwargs): + """ + Get a list of 'testcryptCredential' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_credentials_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: TestcryptCredentialList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method testcrypt_credentials_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/testcrypt/Credentials', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TestcryptCredentialList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def testcrypt_credentials_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'testcryptCredential' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_credentials_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the testcryptCredential instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.testcrypt_credentials_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.testcrypt_credentials_moid_delete_with_http_info(moid, **kwargs) + return data + + def testcrypt_credentials_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'testcryptCredential' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_credentials_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the testcryptCredential instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method testcrypt_credentials_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `testcrypt_credentials_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/testcrypt/Credentials/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def testcrypt_credentials_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'testcryptCredential' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_credentials_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the testcryptCredential instance. (required) + :return: TestcryptCredential + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.testcrypt_credentials_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.testcrypt_credentials_moid_get_with_http_info(moid, **kwargs) + return data + + def testcrypt_credentials_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'testcryptCredential' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_credentials_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the testcryptCredential instance. (required) + :return: TestcryptCredential + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method testcrypt_credentials_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `testcrypt_credentials_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/testcrypt/Credentials/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TestcryptCredential', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def testcrypt_credentials_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'testcryptCredential' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_credentials_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the testcryptCredential instance. (required) + :param TestcryptCredential body: testcryptCredential to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.testcrypt_credentials_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.testcrypt_credentials_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def testcrypt_credentials_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'testcryptCredential' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_credentials_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the testcryptCredential instance. (required) + :param TestcryptCredential body: testcryptCredential to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method testcrypt_credentials_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `testcrypt_credentials_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `testcrypt_credentials_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/testcrypt/Credentials/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def testcrypt_credentials_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'testcryptCredential' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_credentials_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the testcryptCredential instance. (required) + :param TestcryptCredential body: testcryptCredential to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.testcrypt_credentials_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.testcrypt_credentials_moid_post_with_http_info(moid, body, **kwargs) + return data + + def testcrypt_credentials_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'testcryptCredential' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_credentials_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the testcryptCredential instance. (required) + :param TestcryptCredential body: testcryptCredential to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method testcrypt_credentials_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `testcrypt_credentials_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `testcrypt_credentials_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/testcrypt/Credentials/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def testcrypt_credentials_post(self, body, **kwargs): + """ + Create an instance of 'testcryptCredential' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_credentials_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param TestcryptCredential body: testcryptCredential to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.testcrypt_credentials_post_with_http_info(body, **kwargs) + else: + (data) = self.testcrypt_credentials_post_with_http_info(body, **kwargs) + return data + + def testcrypt_credentials_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'testcryptCredential' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_credentials_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param TestcryptCredential body: testcryptCredential to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method testcrypt_credentials_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `testcrypt_credentials_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/testcrypt/Credentials', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/testcrypt_read_only_user_api.py b/intersight/apis/testcrypt_read_only_user_api.py new file mode 100644 index 00000000..f07a1471 --- /dev/null +++ b/intersight/apis/testcrypt_read_only_user_api.py @@ -0,0 +1,712 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class TestcryptReadOnlyUserApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def testcrypt_read_only_users_get(self, **kwargs): + """ + Get a list of 'testcryptReadOnlyUser' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_read_only_users_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: TestcryptReadOnlyUserList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.testcrypt_read_only_users_get_with_http_info(**kwargs) + else: + (data) = self.testcrypt_read_only_users_get_with_http_info(**kwargs) + return data + + def testcrypt_read_only_users_get_with_http_info(self, **kwargs): + """ + Get a list of 'testcryptReadOnlyUser' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_read_only_users_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: TestcryptReadOnlyUserList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method testcrypt_read_only_users_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/testcrypt/ReadOnlyUsers', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TestcryptReadOnlyUserList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def testcrypt_read_only_users_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'testcryptReadOnlyUser' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_read_only_users_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the testcryptReadOnlyUser instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.testcrypt_read_only_users_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.testcrypt_read_only_users_moid_delete_with_http_info(moid, **kwargs) + return data + + def testcrypt_read_only_users_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'testcryptReadOnlyUser' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_read_only_users_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the testcryptReadOnlyUser instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method testcrypt_read_only_users_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `testcrypt_read_only_users_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/testcrypt/ReadOnlyUsers/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def testcrypt_read_only_users_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'testcryptReadOnlyUser' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_read_only_users_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the testcryptReadOnlyUser instance. (required) + :return: TestcryptReadOnlyUser + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.testcrypt_read_only_users_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.testcrypt_read_only_users_moid_get_with_http_info(moid, **kwargs) + return data + + def testcrypt_read_only_users_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'testcryptReadOnlyUser' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_read_only_users_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the testcryptReadOnlyUser instance. (required) + :return: TestcryptReadOnlyUser + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method testcrypt_read_only_users_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `testcrypt_read_only_users_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/testcrypt/ReadOnlyUsers/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TestcryptReadOnlyUser', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def testcrypt_read_only_users_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'testcryptReadOnlyUser' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_read_only_users_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the testcryptReadOnlyUser instance. (required) + :param TestcryptReadOnlyUser body: testcryptReadOnlyUser to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.testcrypt_read_only_users_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.testcrypt_read_only_users_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def testcrypt_read_only_users_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'testcryptReadOnlyUser' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_read_only_users_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the testcryptReadOnlyUser instance. (required) + :param TestcryptReadOnlyUser body: testcryptReadOnlyUser to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method testcrypt_read_only_users_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `testcrypt_read_only_users_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `testcrypt_read_only_users_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/testcrypt/ReadOnlyUsers/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def testcrypt_read_only_users_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'testcryptReadOnlyUser' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_read_only_users_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the testcryptReadOnlyUser instance. (required) + :param TestcryptReadOnlyUser body: testcryptReadOnlyUser to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.testcrypt_read_only_users_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.testcrypt_read_only_users_moid_post_with_http_info(moid, body, **kwargs) + return data + + def testcrypt_read_only_users_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'testcryptReadOnlyUser' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_read_only_users_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the testcryptReadOnlyUser instance. (required) + :param TestcryptReadOnlyUser body: testcryptReadOnlyUser to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method testcrypt_read_only_users_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `testcrypt_read_only_users_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `testcrypt_read_only_users_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/testcrypt/ReadOnlyUsers/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def testcrypt_read_only_users_post(self, body, **kwargs): + """ + Create an instance of 'testcryptReadOnlyUser' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_read_only_users_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param TestcryptReadOnlyUser body: testcryptReadOnlyUser to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.testcrypt_read_only_users_post_with_http_info(body, **kwargs) + else: + (data) = self.testcrypt_read_only_users_post_with_http_info(body, **kwargs) + return data + + def testcrypt_read_only_users_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'testcryptReadOnlyUser' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_read_only_users_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param TestcryptReadOnlyUser body: testcryptReadOnlyUser to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method testcrypt_read_only_users_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `testcrypt_read_only_users_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/testcrypt/ReadOnlyUsers', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/testcrypt_shadow_credential_api.py b/intersight/apis/testcrypt_shadow_credential_api.py new file mode 100644 index 00000000..a188681b --- /dev/null +++ b/intersight/apis/testcrypt_shadow_credential_api.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class TestcryptShadowCredentialApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def testcrypt_shadow_credentials_get(self, **kwargs): + """ + Get a list of 'testcryptShadowCredential' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_shadow_credentials_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: TestcryptShadowCredentialList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.testcrypt_shadow_credentials_get_with_http_info(**kwargs) + else: + (data) = self.testcrypt_shadow_credentials_get_with_http_info(**kwargs) + return data + + def testcrypt_shadow_credentials_get_with_http_info(self, **kwargs): + """ + Get a list of 'testcryptShadowCredential' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_shadow_credentials_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: TestcryptShadowCredentialList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method testcrypt_shadow_credentials_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/testcrypt/ShadowCredentials', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TestcryptShadowCredentialList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def testcrypt_shadow_credentials_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'testcryptShadowCredential' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_shadow_credentials_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the testcryptShadowCredential instance. (required) + :return: TestcryptShadowCredential + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.testcrypt_shadow_credentials_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.testcrypt_shadow_credentials_moid_get_with_http_info(moid, **kwargs) + return data + + def testcrypt_shadow_credentials_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'testcryptShadowCredential' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.testcrypt_shadow_credentials_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the testcryptShadowCredential instance. (required) + :return: TestcryptShadowCredential + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method testcrypt_shadow_credentials_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `testcrypt_shadow_credentials_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/testcrypt/ShadowCredentials/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TestcryptShadowCredential', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/top_system_api.py b/intersight/apis/top_system_api.py index ba616820..2ac38b19 100644 --- a/intersight/apis/top_system_api.py +++ b/intersight/apis/top_system_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def top_systems_get(self, **kwargs): """ - List of topSystems + Get a list of 'topSystem' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def top_systems_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: TopSystemList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def top_systems_get(self, **kwargs): def top_systems_get_with_http_info(self, **kwargs): """ - List of topSystems + Get a list of 'topSystem' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def top_systems_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: TopSystemList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def top_systems_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def top_systems_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def top_systems_get_with_http_info(self, **kwargs): def top_systems_moid_get(self, moid, **kwargs): """ - A instance of topSystem + Get a specific instance of 'topSystem' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def top_systems_moid_get(self, moid, **kwargs): def top_systems_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of topSystem + Get a specific instance of 'topSystem' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def top_systems_moid_get_with_http_info(self, moid, **kwargs): def top_systems_moid_patch(self, moid, body, **kwargs): """ - Update an instance of topSystem + Update an instance of 'topSystem' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -305,7 +309,7 @@ def top_systems_moid_patch(self, moid, body, **kwargs): def top_systems_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of topSystem + Update an instance of 'topSystem' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -390,7 +394,7 @@ def top_systems_moid_patch_with_http_info(self, moid, body, **kwargs): def top_systems_moid_post(self, moid, body, **kwargs): """ - Update an instance of topSystem + Update an instance of 'topSystem' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -416,7 +420,7 @@ def top_systems_moid_post(self, moid, body, **kwargs): def top_systems_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of topSystem + Update an instance of 'topSystem' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/vmedia_policy_api.py b/intersight/apis/vmedia_policy_api.py index 14442967..3631fc85 100644 --- a/intersight/apis/vmedia_policy_api.py +++ b/intersight/apis/vmedia_policy_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def vmedia_policies_get(self, **kwargs): """ - List of vmediaPolicies + Get a list of 'vmediaPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def vmedia_policies_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: VmediaPolicyList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def vmedia_policies_get(self, **kwargs): def vmedia_policies_get_with_http_info(self, **kwargs): """ - List of vmediaPolicies + Get a list of 'vmediaPolicy' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def vmedia_policies_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: VmediaPolicyList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def vmedia_policies_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def vmedia_policies_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def vmedia_policies_get_with_http_info(self, **kwargs): def vmedia_policies_moid_delete(self, moid, **kwargs): """ - Delete an instance of vmediaPolicy + Delete an instance of 'vmediaPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def vmedia_policies_moid_delete(self, moid, **kwargs): def vmedia_policies_moid_delete_with_http_info(self, moid, **kwargs): """ - Delete an instance of vmediaPolicy + Delete an instance of 'vmediaPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -279,7 +283,7 @@ def vmedia_policies_moid_delete_with_http_info(self, moid, **kwargs): def vmedia_policies_moid_get(self, moid, **kwargs): """ - A instance of vmediaPolicy + Get a specific instance of 'vmediaPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -304,7 +308,7 @@ def vmedia_policies_moid_get(self, moid, **kwargs): def vmedia_policies_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of vmediaPolicy + Get a specific instance of 'vmediaPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -383,7 +387,7 @@ def vmedia_policies_moid_get_with_http_info(self, moid, **kwargs): def vmedia_policies_moid_patch(self, moid, body, **kwargs): """ - Update an instance of vmediaPolicy + Update an instance of 'vmediaPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -409,7 +413,7 @@ def vmedia_policies_moid_patch(self, moid, body, **kwargs): def vmedia_policies_moid_patch_with_http_info(self, moid, body, **kwargs): """ - Update an instance of vmediaPolicy + Update an instance of 'vmediaPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -494,7 +498,7 @@ def vmedia_policies_moid_patch_with_http_info(self, moid, body, **kwargs): def vmedia_policies_moid_post(self, moid, body, **kwargs): """ - Update an instance of vmediaPolicy + Update an instance of 'vmediaPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -520,7 +524,7 @@ def vmedia_policies_moid_post(self, moid, body, **kwargs): def vmedia_policies_moid_post_with_http_info(self, moid, body, **kwargs): """ - Update an instance of vmediaPolicy + Update an instance of 'vmediaPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -605,7 +609,7 @@ def vmedia_policies_moid_post_with_http_info(self, moid, body, **kwargs): def vmedia_policies_post(self, body, **kwargs): """ - Create a vmediaPolicy + Create an instance of 'vmediaPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -630,7 +634,7 @@ def vmedia_policies_post(self, body, **kwargs): def vmedia_policies_post_with_http_info(self, body, **kwargs): """ - Create a vmediaPolicy + Create an instance of 'vmediaPolicy' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/workflow_build_task_meta_api.py b/intersight/apis/workflow_build_task_meta_api.py index 5f702012..d145fc15 100644 --- a/intersight/apis/workflow_build_task_meta_api.py +++ b/intersight/apis/workflow_build_task_meta_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def workflow_build_task_meta_get(self, **kwargs): """ - List of workflowBuildTaskMeta + Get a list of 'workflowBuildTaskMeta' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def workflow_build_task_meta_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: WorkflowBuildTaskMetaList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def workflow_build_task_meta_get(self, **kwargs): def workflow_build_task_meta_get_with_http_info(self, **kwargs): """ - List of workflowBuildTaskMeta + Get a list of 'workflowBuildTaskMeta' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def workflow_build_task_meta_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: WorkflowBuildTaskMetaList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def workflow_build_task_meta_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def workflow_build_task_meta_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def workflow_build_task_meta_get_with_http_info(self, **kwargs): def workflow_build_task_meta_moid_get(self, moid, **kwargs): """ - A instance of workflowBuildTaskMeta + Get a specific instance of 'workflowBuildTaskMeta' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def workflow_build_task_meta_moid_get(self, moid, **kwargs): def workflow_build_task_meta_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of workflowBuildTaskMeta + Get a specific instance of 'workflowBuildTaskMeta' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/techsupportmanagement_download_api.py b/intersight/apis/workflow_build_task_meta_owner_api.py similarity index 68% rename from intersight/apis/techsupportmanagement_download_api.py rename to intersight/apis/workflow_build_task_meta_owner_api.py index 46e5e76a..8f31b1ec 100644 --- a/intersight/apis/techsupportmanagement_download_api.py +++ b/intersight/apis/workflow_build_task_meta_owner_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -24,7 +24,7 @@ from ..api_client import ApiClient -class TechsupportmanagementDownloadApi(object): +class WorkflowBuildTaskMetaOwnerApi(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,67 +40,69 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def techsupportmanagement_downloads_get(self, **kwargs): + def workflow_build_task_meta_owners_get(self, **kwargs): """ - List of techsupportmanagementDownloads + Get a list of 'workflowBuildTaskMetaOwner' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.techsupportmanagement_downloads_get(callback=callback_function) + >>> thread = api.workflow_build_task_meta_owners_get(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: TechsupportmanagementDownloadList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: WorkflowBuildTaskMetaOwnerList If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.techsupportmanagement_downloads_get_with_http_info(**kwargs) + return self.workflow_build_task_meta_owners_get_with_http_info(**kwargs) else: - (data) = self.techsupportmanagement_downloads_get_with_http_info(**kwargs) + (data) = self.workflow_build_task_meta_owners_get_with_http_info(**kwargs) return data - def techsupportmanagement_downloads_get_with_http_info(self, **kwargs): + def workflow_build_task_meta_owners_get_with_http_info(self, **kwargs): """ - List of techsupportmanagementDownloads + Get a list of 'workflowBuildTaskMetaOwner' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.techsupportmanagement_downloads_get_with_http_info(callback=callback_function) + >>> thread = api.workflow_build_task_meta_owners_get_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames - :return: TechsupportmanagementDownloadList + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: WorkflowBuildTaskMetaOwnerList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -111,7 +113,7 @@ def techsupportmanagement_downloads_get_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method techsupportmanagement_downloads_get" % key + " to method workflow_build_task_meta_owners_get" % key ) params[key] = val del params['kwargs'] @@ -126,8 +128,6 @@ def techsupportmanagement_downloads_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def techsupportmanagement_downloads_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -158,14 +162,14 @@ def techsupportmanagement_downloads_get_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/techsupportmanagement/Downloads', 'GET', + return self.api_client.call_api('/workflow/BuildTaskMetaOwners', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='TechsupportmanagementDownloadList', + response_type='WorkflowBuildTaskMetaOwnerList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -173,46 +177,46 @@ def techsupportmanagement_downloads_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def techsupportmanagement_downloads_moid_get(self, moid, **kwargs): + def workflow_build_task_meta_owners_moid_get(self, moid, **kwargs): """ - A instance of techsupportmanagementDownload + Get a specific instance of 'workflowBuildTaskMetaOwner' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.techsupportmanagement_downloads_moid_get(moid, callback=callback_function) + >>> thread = api.workflow_build_task_meta_owners_moid_get(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the techsupportmanagementDownload instance. (required) - :return: TechsupportmanagementDownload + :param str moid: The moid of the workflowBuildTaskMetaOwner instance. (required) + :return: WorkflowBuildTaskMetaOwner If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.techsupportmanagement_downloads_moid_get_with_http_info(moid, **kwargs) + return self.workflow_build_task_meta_owners_moid_get_with_http_info(moid, **kwargs) else: - (data) = self.techsupportmanagement_downloads_moid_get_with_http_info(moid, **kwargs) + (data) = self.workflow_build_task_meta_owners_moid_get_with_http_info(moid, **kwargs) return data - def techsupportmanagement_downloads_moid_get_with_http_info(self, moid, **kwargs): + def workflow_build_task_meta_owners_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of techsupportmanagementDownload + Get a specific instance of 'workflowBuildTaskMetaOwner' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.techsupportmanagement_downloads_moid_get_with_http_info(moid, callback=callback_function) + >>> thread = api.workflow_build_task_meta_owners_moid_get_with_http_info(moid, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str moid: The moid of the techsupportmanagementDownload instance. (required) - :return: TechsupportmanagementDownload + :param str moid: The moid of the workflowBuildTaskMetaOwner instance. (required) + :return: WorkflowBuildTaskMetaOwner If the method is called asynchronously, returns the request thread. """ @@ -228,13 +232,13 @@ def techsupportmanagement_downloads_moid_get_with_http_info(self, moid, **kwargs if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method techsupportmanagement_downloads_moid_get" % key + " to method workflow_build_task_meta_owners_moid_get" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'moid' is set if ('moid' not in params) or (params['moid'] is None): - raise ValueError("Missing the required parameter `moid` when calling `techsupportmanagement_downloads_moid_get`") + raise ValueError("Missing the required parameter `moid` when calling `workflow_build_task_meta_owners_moid_get`") collection_formats = {} @@ -262,14 +266,14 @@ def techsupportmanagement_downloads_moid_get_with_http_info(self, moid, **kwargs # Authentication setting auth_settings = [] - return self.api_client.call_api('/techsupportmanagement/Downloads/{moid}', 'GET', + return self.api_client.call_api('/workflow/BuildTaskMetaOwners/{moid}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='TechsupportmanagementDownload', + response_type='WorkflowBuildTaskMetaOwner', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/intersight/apis/workflow_pending_dynamic_workflow_info_api.py b/intersight/apis/workflow_pending_dynamic_workflow_info_api.py new file mode 100644 index 00000000..fb085d80 --- /dev/null +++ b/intersight/apis/workflow_pending_dynamic_workflow_info_api.py @@ -0,0 +1,282 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import sys +import os +import re + +# python 2 and python 3 compatibility library +from six import iteritems + +from ..configuration import Configuration +from ..api_client import ApiClient + + +class WorkflowPendingDynamicWorkflowInfoApi(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + config = Configuration() + if api_client: + self.api_client = api_client + else: + if not config.api_client: + config.api_client = ApiClient() + self.api_client = config.api_client + + def workflow_pending_dynamic_workflow_infos_get(self, **kwargs): + """ + Get a list of 'workflowPendingDynamicWorkflowInfo' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.workflow_pending_dynamic_workflow_infos_get(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: WorkflowPendingDynamicWorkflowInfoList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.workflow_pending_dynamic_workflow_infos_get_with_http_info(**kwargs) + else: + (data) = self.workflow_pending_dynamic_workflow_infos_get_with_http_info(**kwargs) + return data + + def workflow_pending_dynamic_workflow_infos_get_with_http_info(self, **kwargs): + """ + Get a list of 'workflowPendingDynamicWorkflowInfo' instances + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.workflow_pending_dynamic_workflow_infos_get_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param bool count: The $count query option allows clients to request a count of the matching resources. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response + :param int top: The max number of records to return + :param int skip: The number of records to skip + :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') + :param str select: Specifies a subset of properties to return + :param str orderby: Determines what values are used to order a collection of records + :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' + :return: WorkflowPendingDynamicWorkflowInfoList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method workflow_pending_dynamic_workflow_infos_get" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'count' in params: + query_params.append(('$count', params['count'])) + if 'inlinecount' in params: + query_params.append(('$inlinecount', params['inlinecount'])) + if 'top' in params: + query_params.append(('$top', params['top'])) + if 'skip' in params: + query_params.append(('$skip', params['skip'])) + if 'filter' in params: + query_params.append(('$filter', params['filter'])) + if 'select' in params: + query_params.append(('$select', params['select'])) + if 'orderby' in params: + query_params.append(('$orderby', params['orderby'])) + if 'expand' in params: + query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/workflow/PendingDynamicWorkflowInfos', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='WorkflowPendingDynamicWorkflowInfoList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def workflow_pending_dynamic_workflow_infos_moid_get(self, moid, **kwargs): + """ + Get a specific instance of 'workflowPendingDynamicWorkflowInfo' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.workflow_pending_dynamic_workflow_infos_moid_get(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the workflowPendingDynamicWorkflowInfo instance. (required) + :return: WorkflowPendingDynamicWorkflowInfo + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.workflow_pending_dynamic_workflow_infos_moid_get_with_http_info(moid, **kwargs) + else: + (data) = self.workflow_pending_dynamic_workflow_infos_moid_get_with_http_info(moid, **kwargs) + return data + + def workflow_pending_dynamic_workflow_infos_moid_get_with_http_info(self, moid, **kwargs): + """ + Get a specific instance of 'workflowPendingDynamicWorkflowInfo' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.workflow_pending_dynamic_workflow_infos_moid_get_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the workflowPendingDynamicWorkflowInfo instance. (required) + :return: WorkflowPendingDynamicWorkflowInfo + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method workflow_pending_dynamic_workflow_infos_moid_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `workflow_pending_dynamic_workflow_infos_moid_get`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/workflow/PendingDynamicWorkflowInfos/{moid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='WorkflowPendingDynamicWorkflowInfo', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/workflow_task_info_api.py b/intersight/apis/workflow_task_info_api.py index f8fccb4d..82828825 100644 --- a/intersight/apis/workflow_task_info_api.py +++ b/intersight/apis/workflow_task_info_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def workflow_task_infos_get(self, **kwargs): """ - List of workflowTaskInfos + Get a list of 'workflowTaskInfo' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def workflow_task_infos_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: WorkflowTaskInfoList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def workflow_task_infos_get(self, **kwargs): def workflow_task_infos_get_with_http_info(self, **kwargs): """ - List of workflowTaskInfos + Get a list of 'workflowTaskInfo' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def workflow_task_infos_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: WorkflowTaskInfoList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def workflow_task_infos_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def workflow_task_infos_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def workflow_task_infos_get_with_http_info(self, **kwargs): def workflow_task_infos_moid_get(self, moid, **kwargs): """ - A instance of workflowTaskInfo + Get a specific instance of 'workflowTaskInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def workflow_task_infos_moid_get(self, moid, **kwargs): def workflow_task_infos_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of workflowTaskInfo + Get a specific instance of 'workflowTaskInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/workflow_task_meta_api.py b/intersight/apis/workflow_task_meta_api.py index a7a60a2d..8cf39089 100644 --- a/intersight/apis/workflow_task_meta_api.py +++ b/intersight/apis/workflow_task_meta_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def workflow_task_meta_get(self, **kwargs): """ - List of workflowTaskMeta + Get a list of 'workflowTaskMeta' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def workflow_task_meta_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: WorkflowTaskMetaList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def workflow_task_meta_get(self, **kwargs): def workflow_task_meta_get_with_http_info(self, **kwargs): """ - List of workflowTaskMeta + Get a list of 'workflowTaskMeta' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def workflow_task_meta_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: WorkflowTaskMetaList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def workflow_task_meta_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def workflow_task_meta_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def workflow_task_meta_get_with_http_info(self, **kwargs): def workflow_task_meta_moid_get(self, moid, **kwargs): """ - A instance of workflowTaskMeta + Get a specific instance of 'workflowTaskMeta' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def workflow_task_meta_moid_get(self, moid, **kwargs): def workflow_task_meta_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of workflowTaskMeta + Get a specific instance of 'workflowTaskMeta' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/apis/workflow_workflow_info_api.py b/intersight/apis/workflow_workflow_info_api.py index bde4278b..33eed7f9 100644 --- a/intersight/apis/workflow_workflow_info_api.py +++ b/intersight/apis/workflow_workflow_info_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def workflow_workflow_infos_get(self, **kwargs): """ - List of workflowWorkflowInfos + Get a list of 'workflowWorkflowInfo' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def workflow_workflow_infos_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: WorkflowWorkflowInfoList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def workflow_workflow_infos_get(self, **kwargs): def workflow_workflow_infos_get_with_http_info(self, **kwargs): """ - List of workflowWorkflowInfos + Get a list of 'workflowWorkflowInfo' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def workflow_workflow_infos_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: WorkflowWorkflowInfoList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def workflow_workflow_infos_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def workflow_workflow_infos_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -173,9 +177,113 @@ def workflow_workflow_infos_get_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def workflow_workflow_infos_moid_delete(self, moid, **kwargs): + """ + Delete an instance of 'workflowWorkflowInfo' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.workflow_workflow_infos_moid_delete(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the workflowWorkflowInfo instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.workflow_workflow_infos_moid_delete_with_http_info(moid, **kwargs) + else: + (data) = self.workflow_workflow_infos_moid_delete_with_http_info(moid, **kwargs) + return data + + def workflow_workflow_infos_moid_delete_with_http_info(self, moid, **kwargs): + """ + Delete an instance of 'workflowWorkflowInfo' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.workflow_workflow_infos_moid_delete_with_http_info(moid, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the workflowWorkflowInfo instance. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method workflow_workflow_infos_moid_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `workflow_workflow_infos_moid_delete`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/workflow/WorkflowInfos/{moid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def workflow_workflow_infos_moid_get(self, moid, **kwargs): """ - A instance of workflowWorkflowInfo + Get a specific instance of 'workflowWorkflowInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +308,7 @@ def workflow_workflow_infos_moid_get(self, moid, **kwargs): def workflow_workflow_infos_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of workflowWorkflowInfo + Get a specific instance of 'workflowWorkflowInfo' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -276,3 +384,329 @@ def workflow_workflow_infos_moid_get_with_http_info(self, moid, **kwargs): _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + + def workflow_workflow_infos_moid_patch(self, moid, body, **kwargs): + """ + Update an instance of 'workflowWorkflowInfo' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.workflow_workflow_infos_moid_patch(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the workflowWorkflowInfo instance. (required) + :param WorkflowWorkflowInfo body: workflowWorkflowInfo to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.workflow_workflow_infos_moid_patch_with_http_info(moid, body, **kwargs) + else: + (data) = self.workflow_workflow_infos_moid_patch_with_http_info(moid, body, **kwargs) + return data + + def workflow_workflow_infos_moid_patch_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'workflowWorkflowInfo' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.workflow_workflow_infos_moid_patch_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the workflowWorkflowInfo instance. (required) + :param WorkflowWorkflowInfo body: workflowWorkflowInfo to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method workflow_workflow_infos_moid_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `workflow_workflow_infos_moid_patch`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `workflow_workflow_infos_moid_patch`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/workflow/WorkflowInfos/{moid}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def workflow_workflow_infos_moid_post(self, moid, body, **kwargs): + """ + Update an instance of 'workflowWorkflowInfo' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.workflow_workflow_infos_moid_post(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the workflowWorkflowInfo instance. (required) + :param WorkflowWorkflowInfo body: workflowWorkflowInfo to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.workflow_workflow_infos_moid_post_with_http_info(moid, body, **kwargs) + else: + (data) = self.workflow_workflow_infos_moid_post_with_http_info(moid, body, **kwargs) + return data + + def workflow_workflow_infos_moid_post_with_http_info(self, moid, body, **kwargs): + """ + Update an instance of 'workflowWorkflowInfo' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.workflow_workflow_infos_moid_post_with_http_info(moid, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str moid: The moid of the workflowWorkflowInfo instance. (required) + :param WorkflowWorkflowInfo body: workflowWorkflowInfo to update (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['moid', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method workflow_workflow_infos_moid_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'moid' is set + if ('moid' not in params) or (params['moid'] is None): + raise ValueError("Missing the required parameter `moid` when calling `workflow_workflow_infos_moid_post`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `workflow_workflow_infos_moid_post`") + + + collection_formats = {} + + path_params = {} + if 'moid' in params: + path_params['moid'] = params['moid'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/workflow/WorkflowInfos/{moid}', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def workflow_workflow_infos_post(self, body, **kwargs): + """ + Create an instance of 'workflowWorkflowInfo' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.workflow_workflow_infos_post(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param WorkflowWorkflowInfo body: workflowWorkflowInfo to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.workflow_workflow_infos_post_with_http_info(body, **kwargs) + else: + (data) = self.workflow_workflow_infos_post_with_http_info(body, **kwargs) + return data + + def workflow_workflow_infos_post_with_http_info(self, body, **kwargs): + """ + Create an instance of 'workflowWorkflowInfo' + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.workflow_workflow_infos_post_with_http_info(body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param WorkflowWorkflowInfo body: workflowWorkflowInfo to add (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method workflow_workflow_infos_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `workflow_workflow_infos_post`") + + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/workflow/WorkflowInfos', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/intersight/apis/workflow_workflow_meta_api.py b/intersight/apis/workflow_workflow_meta_api.py index 8b317e8b..9802013f 100644 --- a/intersight/apis/workflow_workflow_meta_api.py +++ b/intersight/apis/workflow_workflow_meta_api.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -42,7 +42,7 @@ def __init__(self, api_client=None): def workflow_workflow_meta_get(self, **kwargs): """ - List of workflowWorkflowMeta + Get a list of 'workflowWorkflowMeta' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -54,14 +54,15 @@ def workflow_workflow_meta_get(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: WorkflowWorkflowMetaList If the method is called asynchronously, returns the request thread. @@ -75,7 +76,7 @@ def workflow_workflow_meta_get(self, **kwargs): def workflow_workflow_meta_get_with_http_info(self, **kwargs): """ - List of workflowWorkflowMeta + Get a list of 'workflowWorkflowMeta' instances This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -87,20 +88,21 @@ def workflow_workflow_meta_get_with_http_info(self, **kwargs): :param callback function: The callback function for asynchronous request. (optional) :param bool count: The $count query option allows clients to request a count of the matching resources. - :param bool inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response - :param bool tags: The 'tags' query option allows clients to request a document with tag usage summary. + :param str inlinecount: The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response :param int top: The max number of records to return :param int skip: The number of records to skip :param str filter: Filter criteria for records to return. A URI with a $filter System Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in $filter operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: $filter=Name eq 'Bob' $filter=Tags/any(t: t/Key eq 'Site') $filter=Tags/any(t: t/Key eq 'Site' and t/Value eq 'London') :param str select: Specifies a subset of properties to return :param str orderby: Determines what values are used to order a collection of records :param str expand: Specify additional attributes or related records to return. Supports only 'DisplayNames' attribute now. Query examples: $expand=DisplayNames + :param str apply: Specify one or more transformation operations to perform aggregation on records. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. Query examples: $apply=groupby((Model), aggregate($count as Total)) $apply=groupby((Model), aggregate(AvailableMemory with average as AverageAvailableMemory)) + :param str at: Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for records to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. Query examples: at=VersionType eq 'Configured' at=InterestedMos.Moid eq '5b5877e56c6730367acf46cd' :return: WorkflowWorkflowMetaList If the method is called asynchronously, returns the request thread. """ - all_params = ['count', 'inlinecount', 'tags', 'top', 'skip', 'filter', 'select', 'orderby', 'expand'] + all_params = ['count', 'inlinecount', 'top', 'skip', 'filter', 'select', 'orderby', 'expand', 'apply', 'at'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -126,8 +128,6 @@ def workflow_workflow_meta_get_with_http_info(self, **kwargs): query_params.append(('$count', params['count'])) if 'inlinecount' in params: query_params.append(('$inlinecount', params['inlinecount'])) - if 'tags' in params: - query_params.append(('tags', params['tags'])) if 'top' in params: query_params.append(('$top', params['top'])) if 'skip' in params: @@ -140,6 +140,10 @@ def workflow_workflow_meta_get_with_http_info(self, **kwargs): query_params.append(('$orderby', params['orderby'])) if 'expand' in params: query_params.append(('$expand', params['expand'])) + if 'apply' in params: + query_params.append(('$apply', params['apply'])) + if 'at' in params: + query_params.append(('at', params['at'])) header_params = {} @@ -175,7 +179,7 @@ def workflow_workflow_meta_get_with_http_info(self, **kwargs): def workflow_workflow_meta_moid_get(self, moid, **kwargs): """ - A instance of workflowWorkflowMeta + Get a specific instance of 'workflowWorkflowMeta' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. @@ -200,7 +204,7 @@ def workflow_workflow_meta_moid_get(self, moid, **kwargs): def workflow_workflow_meta_moid_get_with_http_info(self, moid, **kwargs): """ - A instance of workflowWorkflowMeta + Get a specific instance of 'workflowWorkflowMeta' This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. diff --git a/intersight/configuration.py b/intersight/configuration.py index 755da626..0922c6af 100644 --- a/intersight/configuration.py +++ b/intersight/configuration.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -45,7 +45,7 @@ def __init__(self): Constructor """ # Default Base url - self.host = "https://ucs.cisco.com/api/v1" + self.host = "https://intersight.com/api/v1" # Default api client self.api_client = None # Temp file folder for downloading files @@ -219,6 +219,6 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.0.0\n"\ + "Version of the API: 1.0.9-255\n"\ "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/intersight/intersight_api_client.py b/intersight/intersight_api_client.py index 72fecc7e..2922b1ad 100644 --- a/intersight/intersight_api_client.py +++ b/intersight/intersight_api_client.py @@ -11,9 +11,7 @@ import json import threading -from six.moves.urllib.parse import quote -from six.moves.urllib.parse import urlencode -from six.moves.urllib.parse import urlparse +from six.moves.urllib.parse import quote, urlencode, urlparse from Crypto.PublicKey import RSA from Crypto.Signature import PKCS1_v1_5 from Crypto.Hash import SHA256 @@ -206,4 +204,4 @@ def prepare_auth_header(self, resource_path, method, body, query_params): self.set_default_header('Host', '{0}'.format(target_host)) self.set_default_header('Digest', 'SHA-256={0}'.format(b64_body_digest.decode('ascii'))) self.set_default_header('Authorization', '{0}'.format(auth_header)) - + \ No newline at end of file diff --git a/intersight/models/__init__.py b/intersight/models/__init__.py index 9e537283..5c5f4c20 100644 --- a/intersight/models/__init__.py +++ b/intersight/models/__init__.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -20,19 +20,16 @@ from .adapter_host_fc_interface_list import AdapterHostFcInterfaceList from .adapter_host_iscsi_interface_list import AdapterHostIscsiInterfaceList from .adapter_unit_list import AdapterUnitList +from .asset_cluster_member_list import AssetClusterMemberList +from .asset_device_configuration_list import AssetDeviceConfigurationList from .asset_device_registration_list import AssetDeviceRegistrationList -from .bios_input_output import BiosInputOutput -from .bios_lom_and_pcie_slots_configuration import BiosLomAndPcieSlotsConfiguration -from .bios_memory import BiosMemory from .bios_policy_list import BiosPolicyList -from .bios_power_or_performance import BiosPowerOrPerformance -from .bios_processor import BiosProcessor -from .bios_security import BiosSecurity -from .bios_serial_configuration import BiosSerialConfiguration -from .bios_server_management import BiosServerManagement from .bios_unit_list import BiosUnitList +from .boot_bootloader import BootBootloader from .boot_device_base import BootDeviceBase from .boot_precision_policy_list import BootPrecisionPolicyList +from .comm_ip_v4_interface import CommIpV4Interface +from .comm_ip_v6_interface import CommIpV6Interface from .compute_blade_list import ComputeBladeList from .compute_board_list import ComputeBoardList from .compute_ip_address import ComputeIpAddress @@ -41,29 +38,39 @@ from .compute_server_config import ComputeServerConfig from .compute_server_setting_list import ComputeServerSettingList from .cond_alarm_list import CondAlarmList -from .cond_hcl_status_action_list import CondHclStatusActionList from .cond_hcl_status_detail_list import CondHclStatusDetailList from .cond_hcl_status_job_list import CondHclStatusJobList from .cond_hcl_status_list import CondHclStatusList +from .connector_auth_message import ConnectorAuthMessage +from .connector_stream_message import ConnectorStreamMessage +from .connectorpack_connector_pack_summary import ConnectorpackConnectorPackSummary from .crypt_encryption_token_list import CryptEncryptionTokenList +from .cvd_deployment_task_list import CvdDeploymentTaskList +from .cvd_input_meta import CvdInputMeta +from .cvd_template_list import CvdTemplateList +from .cvd_validation_task_list import CvdValidationTaskList +from .deviceconnector_policy_list import DeviceconnectorPolicyList from .deviceinfo_serial_number_info_list import DeviceinfoSerialNumberInfoList -from .epansible_runner_list import EpansibleRunnerList +from .devops_abstract_trigger_details import DevopsAbstractTriggerDetails from .equipment_chassis_list import EquipmentChassisList from .equipment_device_summary_list import EquipmentDeviceSummaryList from .equipment_fan_list import EquipmentFanList from .equipment_fan_module_list import EquipmentFanModuleList from .equipment_fex_list import EquipmentFexList from .equipment_io_card_list import EquipmentIoCardList +from .equipment_io_expander_list import EquipmentIoExpanderList from .equipment_locator_led_list import EquipmentLocatorLedList from .equipment_psu_list import EquipmentPsuList +from .equipment_rack_enclosure_list import EquipmentRackEnclosureList +from .equipment_rack_enclosure_slot_list import EquipmentRackEnclosureSlotList from .equipment_switch_card_list import EquipmentSwitchCardList from .equipment_system_io_controller_list import EquipmentSystemIoControllerList +from .equipment_tpm_list import EquipmentTpmList from .error import Error from .ether_physical_port_list import EtherPhysicalPortList -from .externalsite_auth_profile_list import ExternalsiteAuthProfileList -from .extsearch_import_list import ExtsearchImportList from .fault_instance_list import FaultInstanceList from .fc_physical_port_list import FcPhysicalPortList +from .feedback_feedback_data import FeedbackFeedbackData from .firmware_cifs_server import FirmwareCifsServer from .firmware_direct_download import FirmwareDirectDownload from .firmware_distributable_list import FirmwareDistributableList @@ -76,39 +83,67 @@ from .firmware_upgrade_status_list import FirmwareUpgradeStatusList from .graphics_card_list import GraphicsCardList from .graphics_controller_list import GraphicsControllerList -from .hcl_compatibility_info_list import HclCompatibilityInfoList -from .hcl_data_import_log_list import HclDataImportLogList +from .hcl_driver import HclDriver +from .hcl_driver_image_list import HclDriverImageList from .hcl_firmware import HclFirmware from .hcl_hardware_compatibility_profile import HclHardwareCompatibilityProfile -from .hcl_note_list import HclNoteList +from .hcl_operating_system_list import HclOperatingSystemList +from .hcl_operating_system_vendor_list import HclOperatingSystemVendorList from .hcl_product import HclProduct +from .hcl_service_status_list import HclServiceStatusList +from .hyperflex_abstract_app_setting import HyperflexAbstractAppSetting from .hyperflex_alarm_list import HyperflexAlarmList +from .hyperflex_app_catalog_list import HyperflexAppCatalogList +from .hyperflex_app_setting_constraint import HyperflexAppSettingConstraint from .hyperflex_auto_support_policy_list import HyperflexAutoSupportPolicyList from .hyperflex_cluster_list import HyperflexClusterList from .hyperflex_cluster_network_policy_list import HyperflexClusterNetworkPolicyList from .hyperflex_cluster_profile_list import HyperflexClusterProfileList from .hyperflex_cluster_storage_policy_list import HyperflexClusterStoragePolicyList +from .hyperflex_config_result_entry_list import HyperflexConfigResultEntryList from .hyperflex_config_result_list import HyperflexConfigResultList from .hyperflex_ext_fc_storage_policy_list import HyperflexExtFcStoragePolicyList from .hyperflex_ext_iscsi_storage_policy_list import HyperflexExtIscsiStoragePolicyList +from .hyperflex_feature_limit_external_list import HyperflexFeatureLimitExternalList +from .hyperflex_feature_limit_internal_list import HyperflexFeatureLimitInternalList +from .hyperflex_hx_link_dt import HyperflexHxLinkDt +from .hyperflex_hx_network_address_dt import HyperflexHxNetworkAddressDt +from .hyperflex_hx_uu_id_dt import HyperflexHxUuIdDt +from .hyperflex_hxdp_version_list import HyperflexHxdpVersionList from .hyperflex_ip_addr_range import HyperflexIpAddrRange -from .hyperflex_iterator_string import HyperflexIteratorString from .hyperflex_local_credential_policy_list import HyperflexLocalCredentialPolicyList +from .hyperflex_logical_availability_zone import HyperflexLogicalAvailabilityZone from .hyperflex_mac_addr_prefix_range import HyperflexMacAddrPrefixRange from .hyperflex_managed_object_reference import HyperflexManagedObjectReference from .hyperflex_named_vlan import HyperflexNamedVlan from .hyperflex_named_vsan import HyperflexNamedVsan from .hyperflex_node_config_policy_list import HyperflexNodeConfigPolicyList +from .hyperflex_node_list import HyperflexNodeList from .hyperflex_node_profile_list import HyperflexNodeProfileList +from .hyperflex_proxy_setting_policy_list import HyperflexProxySettingPolicyList +from .hyperflex_server_firmware_version_list import HyperflexServerFirmwareVersionList +from .hyperflex_server_model_list import HyperflexServerModelList from .hyperflex_st_platform_cluster_healing_info import HyperflexStPlatformClusterHealingInfo from .hyperflex_st_platform_cluster_resiliency_info import HyperflexStPlatformClusterResiliencyInfo from .hyperflex_summary import HyperflexSummary from .hyperflex_sys_config_policy_list import HyperflexSysConfigPolicyList from .hyperflex_ucsm_config_policy_list import HyperflexUcsmConfigPolicyList from .hyperflex_vcenter_config_policy_list import HyperflexVcenterConfigPolicyList -from .hyperflex_wwxn_range import HyperflexWwxnRange +from .hyperflex_wwxn_prefix_range import HyperflexWwxnPrefixRange +from .i18n_message import I18nMessage +from .i18n_message_param import I18nMessageParam +from .iaas_connector_pack_list import IaasConnectorPackList +from .iaas_device_status_list import IaasDeviceStatusList +from .iaas_license_info_list import IaasLicenseInfoList +from .iaas_license_keys_info import IaasLicenseKeysInfo +from .iaas_license_utilization_info import IaasLicenseUtilizationInfo +from .iaas_most_run_tasks_list import IaasMostRunTasksList +from .iaas_ucsd_info_list import IaasUcsdInfoList +from .iaas_ucsd_managed_infra_list import IaasUcsdManagedInfraList from .iam_account_list import IamAccountList +from .iam_account_permissions import IamAccountPermissions from .iam_api_key_list import IamApiKeyList +from .iam_domain_group_list import IamDomainGroupList from .iam_end_point_password_properties import IamEndPointPasswordProperties from .iam_end_point_privilege_list import IamEndPointPrivilegeList from .iam_end_point_role_list import IamEndPointRoleList @@ -123,13 +158,16 @@ from .iam_ldap_policy_list import IamLdapPolicyList from .iam_ldap_provider_list import IamLdapProviderList from .iam_permission_list import IamPermissionList +from .iam_permission_reference import IamPermissionReference from .iam_privilege_list import IamPrivilegeList from .iam_privilege_set_list import IamPrivilegeSetList from .iam_qualifier_list import IamQualifierList from .iam_resource_limits_list import IamResourceLimitsList from .iam_role_list import IamRoleList +from .iam_service_provider_list import IamServiceProviderList from .iam_session_limits_list import IamSessionLimitsList from .iam_session_list import IamSessionList +from .iam_sso_session_attributes import IamSsoSessionAttributes from .iam_system_list import IamSystemList from .iam_user_group_list import IamUserGroupList from .iam_user_list import IamUserList @@ -138,6 +176,8 @@ from .inventory_dn_mo_binding_list import InventoryDnMoBindingList from .inventory_generic_inventory_holder_list import InventoryGenericInventoryHolderList from .inventory_generic_inventory_list import InventoryGenericInventoryList +from .inventory_inventory_mo import InventoryInventoryMo +from .inventory_job_info import InventoryJobInfo from .ipmioverlan_policy_list import IpmioverlanPolicyList from .kvm_policy_list import KvmPolicyList from .license_account_license_data_list import LicenseAccountLicenseDataList @@ -157,43 +197,51 @@ from .mo_base_mo import MoBaseMo from .mo_mo_ref import MoMoRef from .mo_tag import MoTag +from .mo_version_context import MoVersionContext from .network_element_list import NetworkElementList from .network_element_summary_list import NetworkElementSummaryList from .networkconfig_policy_list import NetworkconfigPolicyList +from .notifs_condition import NotifsCondition from .ntp_policy_list import NtpPolicyList -from .packagemanagement_connector_deploy_policy_list import PackagemanagementConnectorDeployPolicyList -from .packagemanagement_connector_image_list import PackagemanagementConnectorImageList -from .packagemanagement_connector_install_list import PackagemanagementConnectorInstallList -from .policy_attachable_service_object import PolicyAttachableServiceObject -from .policy_category import PolicyCategory +from .oauth_access_token import OauthAccessToken +from .oauth_oauth_user_list import OauthOauthUserList +from .pci_device_list import PciDeviceList +from .policy_config_change import PolicyConfigChange from .policy_config_context import PolicyConfigContext from .policy_config_result_context import PolicyConfigResultContext -from .policy_config_result_entry import PolicyConfigResultEntry -from .policy_hardware_platform import PolicyHardwarePlatform -from .policy_management_platform import PolicyManagementPlatform -from .policy_policy_meta_list import PolicyPolicyMetaList from .port_group_list import PortGroupList from .port_sub_group_list import PortSubGroupList from .processor_unit_list import ProcessorUnitList +from .resource_group_list import ResourceGroupList +from .sdcard_partition import SdcardPartition +from .sdcard_policy_list import SdcardPolicyList +from .sdcard_virtual_drive import SdcardVirtualDrive from .search_search_item_list import SearchSearchItemList from .search_tag_item_list import SearchTagItemList from .security_unit_list import SecurityUnitList -from .server_config_change import ServerConfigChange -from .server_config_change_detail import ServerConfigChangeDetail +from .server_config_change_detail_list import ServerConfigChangeDetailList +from .server_config_result_entry_list import ServerConfigResultEntryList from .server_config_result_list import ServerConfigResultList from .server_profile_list import ServerProfileList from .smtp_policy_list import SmtpPolicyList from .snmp_policy_list import SnmpPolicyList from .snmp_trap import SnmpTrap from .snmp_user import SnmpUser +from .softwarerepository_authorization_list import SoftwarerepositoryAuthorizationList from .sol_policy_list import SolPolicyList from .ssh_policy_list import SshPolicyList from .storage_controller_list import StorageControllerList from .storage_disk_group_policy_list import StorageDiskGroupPolicyList +from .storage_enclosure_list import StorageEnclosureList from .storage_flex_flash_controller_list import StorageFlexFlashControllerList +from .storage_flex_flash_controller_props_list import StorageFlexFlashControllerPropsList from .storage_flex_flash_physical_drive_list import StorageFlexFlashPhysicalDriveList +from .storage_flex_flash_virtual_drive_list import StorageFlexFlashVirtualDriveList from .storage_flex_util_controller_list import StorageFlexUtilControllerList +from .storage_flex_util_physical_drive_list import StorageFlexUtilPhysicalDriveList +from .storage_flex_util_virtual_drive_list import StorageFlexUtilVirtualDriveList from .storage_local_disk import StorageLocalDisk +from .storage_physical_disk_extension_list import StoragePhysicalDiskExtensionList from .storage_physical_disk_list import StoragePhysicalDiskList from .storage_physical_disk_usage_list import StoragePhysicalDiskUsageList from .storage_remote_key_setting import StorageRemoteKeySetting @@ -202,115 +250,586 @@ from .storage_storage_policy_list import StorageStoragePolicyList from .storage_vd_member_ep_list import StorageVdMemberEpList from .storage_virtual_drive_config import StorageVirtualDriveConfig +from .storage_virtual_drive_extension_list import StorageVirtualDriveExtensionList from .storage_virtual_drive_list import StorageVirtualDriveList +from .syslog_local_client_base import SyslogLocalClientBase +from .syslog_policy_list import SyslogPolicyList +from .syslog_remote_client_base import SyslogRemoteClientBase from .task_file_download_info import TaskFileDownloadInfo from .task_workflow_action_list import TaskWorkflowActionList -from .techsupportmanagement_download_list import TechsupportmanagementDownloadList -from .techsupportmanagement_tech_support_bundle_list import TechsupportmanagementTechSupportBundleList -from .techsupportmanagement_tech_support_status_list import TechsupportmanagementTechSupportStatusList from .terminal_audit_log_list import TerminalAuditLogList +from .testcrypt_administrator_list import TestcryptAdministratorList +from .testcrypt_credential_list import TestcryptCredentialList +from .testcrypt_read_only_user_list import TestcryptReadOnlyUserList +from .testcrypt_shadow_credential_list import TestcryptShadowCredentialList +from .testcrypt_user import TestcryptUser from .top_system_list import TopSystemList +from .ucsdconnector_field_query import UcsdconnectorFieldQuery +from .ucsdconnector_sql_query import UcsdconnectorSqlQuery +from .ucsdconnector_telemetry_mo import UcsdconnectorTelemetryMo from .vmedia_mapping import VmediaMapping from .vmedia_policy_list import VmediaPolicyList from .workflow_build_task_meta_list import WorkflowBuildTaskMetaList +from .workflow_build_task_meta_owner_list import WorkflowBuildTaskMetaOwnerList +from .workflow_dynamic_workflow_action_task_list import WorkflowDynamicWorkflowActionTaskList +from .workflow_pending_dynamic_workflow_info_list import WorkflowPendingDynamicWorkflowInfoList from .workflow_task_info_list import WorkflowTaskInfoList from .workflow_task_meta_list import WorkflowTaskMetaList from .workflow_task_retry_info import WorkflowTaskRetryInfo from .workflow_workflow_info_list import WorkflowWorkflowInfoList from .workflow_workflow_meta_list import WorkflowWorkflowMetaList -from .workflow_workflow_task_list import WorkflowWorkflowTaskList from .aaa_abstract_audit_record import AaaAbstractAuditRecord +from .aaa_abstract_audit_record_ref import AaaAbstractAuditRecordRef +from .aaa_audit_record_local_ref import AaaAuditRecordLocalRef +from .aaa_audit_record_ref import AaaAuditRecordRef +from .adapter_ext_eth_interface_ref import AdapterExtEthInterfaceRef +from .adapter_host_eth_interface_ref import AdapterHostEthInterfaceRef +from .adapter_host_fc_interface_ref import AdapterHostFcInterfaceRef +from .adapter_host_iscsi_interface_ref import AdapterHostIscsiInterfaceRef +from .adapter_unit_ref import AdapterUnitRef +from .asset_cluster_member_ref import AssetClusterMemberRef +from .asset_connection_control_message_ref import AssetConnectionControlMessageRef from .asset_device_claim import AssetDeviceClaim -from .asset_device_registration import AssetDeviceRegistration -from .boot_iscsi import BootIscsi -from .boot_local_cdd import BootLocalCdd -from .boot_local_disk import BootLocalDisk -from .boot_nvme import BootNvme -from .boot_pch_storage import BootPchStorage -from .boot_pxe import BootPxe -from .boot_san import BootSan -from .boot_sd_card import BootSdCard -from .boot_uefi_shell import BootUefiShell -from .boot_usb import BootUsb -from .boot_virtual_media import BootVirtualMedia +from .asset_device_claim_ref import AssetDeviceClaimRef +from .asset_device_configuration import AssetDeviceConfiguration +from .asset_device_configuration_ref import AssetDeviceConfigurationRef +from .asset_device_connection import AssetDeviceConnection +from .asset_device_connection_ref import AssetDeviceConnectionRef +from .asset_device_registration_ref import AssetDeviceRegistrationRef +from .asset_security_token_ref import AssetSecurityTokenRef +from .bios_deploy_task_ref import BiosDeployTaskRef +from .bios_policy_ref import BiosPolicyRef +from .bios_unit_ref import BiosUnitRef +from .bios_validation_task_ref import BiosValidationTaskRef +from .boot_bootloader_ref import BootBootloaderRef +from .boot_device_base_ref import BootDeviceBaseRef +from .boot_iscsi_ref import BootIscsiRef +from .boot_local_cdd_ref import BootLocalCddRef +from .boot_local_disk_ref import BootLocalDiskRef +from .boot_nvme_ref import BootNvmeRef +from .boot_pch_storage_ref import BootPchStorageRef +from .boot_precision_deploy_task_ref import BootPrecisionDeployTaskRef +from .boot_precision_policy_ref import BootPrecisionPolicyRef +from .boot_precision_validation_task_ref import BootPrecisionValidationTaskRef +from .boot_pxe_ref import BootPxeRef +from .boot_san_ref import BootSanRef +from .boot_sd_card_ref import BootSdCardRef +from .boot_uefi_shell_ref import BootUefiShellRef +from .boot_usb_ref import BootUsbRef +from .boot_virtual_media_ref import BootVirtualMediaRef +from .comm_ip_v4_interface_ref import CommIpV4InterfaceRef +from .comm_ip_v6_interface_ref import CommIpV6InterfaceRef +from .compute_blade_ref import ComputeBladeRef +from .compute_board_ref import ComputeBoardRef +from .compute_ip_address_ref import ComputeIpAddressRef +from .compute_locator_led_operation_task_ref import ComputeLocatorLedOperationTaskRef +from .compute_operation_result_handler_ref import ComputeOperationResultHandlerRef +from .compute_physical_ref import ComputePhysicalRef +from .compute_physical_summary_ref import ComputePhysicalSummaryRef +from .compute_rack_unit_ref import ComputeRackUnitRef +from .compute_server_config_ref import ComputeServerConfigRef +from .compute_server_operation_task_ref import ComputeServerOperationTaskRef +from .compute_server_setting_ref import ComputeServerSettingRef from .cond_alarm import CondAlarm +from .cond_alarm_ref import CondAlarmRef from .cond_hcl_status import CondHclStatus -from .cond_hcl_status_action import CondHclStatusAction from .cond_hcl_status_detail import CondHclStatusDetail +from .cond_hcl_status_detail_ref import CondHclStatusDetailRef from .cond_hcl_status_job import CondHclStatusJob +from .cond_hcl_status_job_ref import CondHclStatusJobRef +from .cond_hcl_status_ref import CondHclStatusRef +from .connector_auth_message_ref import ConnectorAuthMessageRef +from .connector_close_stream_message import ConnectorCloseStreamMessage +from .connector_close_stream_message_ref import ConnectorCloseStreamMessageRef +from .connector_command_message_ref import ConnectorCommandMessageRef +from .connector_control_message_ref import ConnectorControlMessageRef +from .connector_event_channel_control_ref import ConnectorEventChannelControlRef +from .connector_event_ref import ConnectorEventRef +from .connector_fetch_stream_message import ConnectorFetchStreamMessage +from .connector_fetch_stream_message_ref import ConnectorFetchStreamMessageRef +from .connector_job_async_response_ref import ConnectorJobAsyncResponseRef +from .connector_job_message_ref import ConnectorJobMessageRef +from .connector_start_stream import ConnectorStartStream +from .connector_start_stream_ref import ConnectorStartStreamRef +from .connector_stream_input import ConnectorStreamInput +from .connector_stream_input_ref import ConnectorStreamInputRef +from .connector_stream_message_ref import ConnectorStreamMessageRef +from .connector_stream_ref import ConnectorStreamRef +from .connector_xml_api_message_ref import ConnectorXmlApiMessageRef +from .connectorpack_connector_pack_summary_ref import ConnectorpackConnectorPackSummaryRef +from .connectorpack_upgrade_ref import ConnectorpackUpgradeRef +from .crypt_account_key_ref import CryptAccountKeyRef +from .crypt_decrypt_ref import CryptDecryptRef +from .crypt_encrypt_ref import CryptEncryptRef +from .crypt_encryption_key_ref import CryptEncryptionKeyRef from .crypt_encryption_token import CryptEncryptionToken +from .crypt_encryption_token_ref import CryptEncryptionTokenRef +from .cvd_deployment_task import CvdDeploymentTask +from .cvd_deployment_task_ref import CvdDeploymentTaskRef +from .cvd_input_meta_ref import CvdInputMetaRef +from .cvd_template import CvdTemplate +from .cvd_template_ref import CvdTemplateRef +from .cvd_validation_task import CvdValidationTask +from .cvd_validation_task_ref import CvdValidationTaskRef +from .deviceconnector_deploy_task_ref import DeviceconnectorDeployTaskRef +from .deviceconnector_policy_ref import DeviceconnectorPolicyRef +from .deviceconnector_validation_task_ref import DeviceconnectorValidationTaskRef from .deviceinfo_serial_number_info import DeviceinfoSerialNumberInfo -from .epansible_runner import EpansibleRunner -from .externalsite_auth_profile import ExternalsiteAuthProfile -from .extsearch_import import ExtsearchImport +from .deviceinfo_serial_number_info_ref import DeviceinfoSerialNumberInfoRef +from .devops_abstract_trigger_details_ref import DevopsAbstractTriggerDetailsRef +from .devops_notification_trigger import DevopsNotificationTrigger +from .devops_notification_trigger_ref import DevopsNotificationTriggerRef +from .devops_trigger_ref import DevopsTriggerRef +from .epansible_runner_ref import EpansibleRunnerRef +from .equipment_base_ref import EquipmentBaseRef +from .equipment_chassis_ref import EquipmentChassisRef +from .equipment_device_summary_ref import EquipmentDeviceSummaryRef +from .equipment_fan_module_ref import EquipmentFanModuleRef +from .equipment_fan_ref import EquipmentFanRef +from .equipment_fex_ref import EquipmentFexRef +from .equipment_io_card_ref import EquipmentIoCardRef +from .equipment_io_expander_ref import EquipmentIoExpanderRef +from .equipment_locator_led_ref import EquipmentLocatorLedRef +from .equipment_psu_ref import EquipmentPsuRef +from .equipment_rack_enclosure_ref import EquipmentRackEnclosureRef +from .equipment_rack_enclosure_slot_ref import EquipmentRackEnclosureSlotRef +from .equipment_switch_card_ref import EquipmentSwitchCardRef +from .equipment_system_io_controller_ref import EquipmentSystemIoControllerRef +from .equipment_tpm_ref import EquipmentTpmRef +from .ether_physical_port_ref import EtherPhysicalPortRef +from .extsearch_app_config_ref import ExtsearchAppConfigRef +from .extsearch_import_ref import ExtsearchImportRef +from .fault_instance_ref import FaultInstanceRef +from .fc_physical_port_ref import FcPhysicalPortRef +from .feedback_feedback_data_ref import FeedbackFeedbackDataRef +from .feedback_feedback_post import FeedbackFeedbackPost +from .feedback_feedback_post_ref import FeedbackFeedbackPostRef +from .feedback_feedback_ref import FeedbackFeedbackRef +from .feedback_feedback_settings_ref import FeedbackFeedbackSettingsRef +from .feedback_history_item_ref import FeedbackHistoryItemRef +from .firmware_cifs_server_ref import FirmwareCifsServerRef +from .firmware_direct_download_ref import FirmwareDirectDownloadRef from .firmware_distributable import FirmwareDistributable +from .firmware_distributable_ref import FirmwareDistributableRef +from .firmware_download_spec_ref import FirmwareDownloadSpecRef from .firmware_eula import FirmwareEula +from .firmware_eula_ref import FirmwareEulaRef +from .firmware_http_server_ref import FirmwareHttpServerRef +from .firmware_network_share_ref import FirmwareNetworkShareRef +from .firmware_nfs_server_ref import FirmwareNfsServerRef +from .firmware_running_firmware_ref import FirmwareRunningFirmwareRef from .firmware_upgrade import FirmwareUpgrade +from .firmware_upgrade_ref import FirmwareUpgradeRef from .firmware_upgrade_status import FirmwareUpgradeStatus -from .hcl_compatibility_info import HclCompatibilityInfo +from .firmware_upgrade_status_ref import FirmwareUpgradeStatusRef +from .firmwareimc_cancel_pending_firmware_upgrade_ref import FirmwareimcCancelPendingFirmwareUpgradeRef +from .firmwareimc_check_for_existing_upgrade_ref import FirmwareimcCheckForExistingUpgradeRef +from .firmwareimc_firmware_upgrade_result_handler_ref import FirmwareimcFirmwareUpgradeResultHandlerRef +from .firmwareimc_huu_firmware_upgrade_ref import FirmwareimcHuuFirmwareUpgradeRef +from .firmwareimc_initiate_download_ref import FirmwareimcInitiateDownloadRef +from .firmwareimc_wait_for_download_ref import FirmwareimcWaitForDownloadRef +from .firmwareimc_wait_for_firmware_upgrade_ref import FirmwareimcWaitForFirmwareUpgradeRef +from .graphics_card_ref import GraphicsCardRef +from .graphics_controller_ref import GraphicsControllerRef +from .hcl_compatibility_info_ref import HclCompatibilityInfoRef from .hcl_compatibility_status import HclCompatibilityStatus -from .hcl_data_import_log import HclDataImportLog -from .hcl_note import HclNote +from .hcl_compatibility_status_ref import HclCompatibilityStatusRef +from .hcl_data_import_log_ref import HclDataImportLogRef +from .hcl_driver_image import HclDriverImage +from .hcl_driver_image_ref import HclDriverImageRef +from .hcl_driver_ref import HclDriverRef +from .hcl_firmware_ref import HclFirmwareRef +from .hcl_hardware_compatibility_profile_ref import HclHardwareCompatibilityProfileRef +from .hcl_note_ref import HclNoteRef +from .hcl_operating_system import HclOperatingSystem +from .hcl_operating_system_ref import HclOperatingSystemRef +from .hcl_operating_system_vendor import HclOperatingSystemVendor +from .hcl_operating_system_vendor_ref import HclOperatingSystemVendorRef +from .hcl_product_ref import HclProductRef +from .hcl_service_status import HclServiceStatus +from .hcl_service_status_ref import HclServiceStatusRef from .hcl_supported_driver_name import HclSupportedDriverName +from .hcl_supported_driver_name_ref import HclSupportedDriverNameRef +from .hxdpconnector_hx_inventory_msg_ref import HxdpconnectorHxInventoryMsgRef +from .hyperflex_abstract_app_setting_ref import HyperflexAbstractAppSettingRef from .hyperflex_alarm import HyperflexAlarm +from .hyperflex_alarm_ref import HyperflexAlarmRef +from .hyperflex_app_catalog import HyperflexAppCatalog +from .hyperflex_app_catalog_ref import HyperflexAppCatalogRef +from .hyperflex_app_setting_constraint_ref import HyperflexAppSettingConstraintRef +from .hyperflex_auto_support_policy_ref import HyperflexAutoSupportPolicyRef from .hyperflex_cluster import HyperflexCluster +from .hyperflex_cluster_network_policy_ref import HyperflexClusterNetworkPolicyRef +from .hyperflex_cluster_profile_ref import HyperflexClusterProfileRef +from .hyperflex_cluster_ref import HyperflexClusterRef +from .hyperflex_cluster_storage_policy_ref import HyperflexClusterStoragePolicyRef +from .hyperflex_config_result_entry_ref import HyperflexConfigResultEntryRef +from .hyperflex_config_result_ref import HyperflexConfigResultRef +from .hyperflex_credentials_ref import HyperflexCredentialsRef +from .hyperflex_ext_fc_storage_policy_ref import HyperflexExtFcStoragePolicyRef +from .hyperflex_ext_iscsi_storage_policy_ref import HyperflexExtIscsiStoragePolicyRef +from .hyperflex_feature_limit_entry import HyperflexFeatureLimitEntry +from .hyperflex_feature_limit_entry_ref import HyperflexFeatureLimitEntryRef +from .hyperflex_feature_limit_external import HyperflexFeatureLimitExternal +from .hyperflex_feature_limit_external_ref import HyperflexFeatureLimitExternalRef +from .hyperflex_feature_limit_internal import HyperflexFeatureLimitInternal +from .hyperflex_feature_limit_internal_ref import HyperflexFeatureLimitInternalRef +from .hyperflex_hx_link_dt_ref import HyperflexHxLinkDtRef +from .hyperflex_hx_network_address_dt_ref import HyperflexHxNetworkAddressDtRef +from .hyperflex_hx_uu_id_dt_ref import HyperflexHxUuIdDtRef +from .hyperflex_hxdp_version import HyperflexHxdpVersion +from .hyperflex_hxdp_version_ref import HyperflexHxdpVersionRef +from .hyperflex_installer_image_ref import HyperflexInstallerImageRef +from .hyperflex_ip_addr_range_ref import HyperflexIpAddrRangeRef +from .hyperflex_local_credential_policy_ref import HyperflexLocalCredentialPolicyRef +from .hyperflex_logical_availability_zone_ref import HyperflexLogicalAvailabilityZoneRef +from .hyperflex_mac_addr_prefix_range_ref import HyperflexMacAddrPrefixRangeRef +from .hyperflex_managed_object_reference_ref import HyperflexManagedObjectReferenceRef +from .hyperflex_named_vlan_ref import HyperflexNamedVlanRef +from .hyperflex_named_vsan_ref import HyperflexNamedVsanRef +from .hyperflex_node import HyperflexNode +from .hyperflex_node_config_policy_ref import HyperflexNodeConfigPolicyRef +from .hyperflex_node_profile_ref import HyperflexNodeProfileRef +from .hyperflex_node_ref import HyperflexNodeRef +from .hyperflex_proxy_setting_policy_ref import HyperflexProxySettingPolicyRef +from .hyperflex_server_firmware_version import HyperflexServerFirmwareVersion +from .hyperflex_server_firmware_version_entry import HyperflexServerFirmwareVersionEntry +from .hyperflex_server_firmware_version_entry_ref import HyperflexServerFirmwareVersionEntryRef +from .hyperflex_server_firmware_version_ref import HyperflexServerFirmwareVersionRef +from .hyperflex_server_model import HyperflexServerModel +from .hyperflex_server_model_entry import HyperflexServerModelEntry +from .hyperflex_server_model_entry_ref import HyperflexServerModelEntryRef +from .hyperflex_server_model_ref import HyperflexServerModelRef +from .hyperflex_st_platform_cluster_healing_info_ref import HyperflexStPlatformClusterHealingInfoRef +from .hyperflex_st_platform_cluster_resiliency_info_ref import HyperflexStPlatformClusterResiliencyInfoRef +from .hyperflex_summary_ref import HyperflexSummaryRef +from .hyperflex_sys_config_policy_ref import HyperflexSysConfigPolicyRef +from .hyperflex_ucsm_config_policy_ref import HyperflexUcsmConfigPolicyRef +from .hyperflex_vcenter_config_policy_ref import HyperflexVcenterConfigPolicyRef +from .hyperflex_wwxn_prefix_range_ref import HyperflexWwxnPrefixRangeRef +from .i18n_message_param_ref import I18nMessageParamRef +from .i18n_message_ref import I18nMessageRef +from .iaas_connector_pack import IaasConnectorPack +from .iaas_connector_pack_ref import IaasConnectorPackRef +from .iaas_device_status import IaasDeviceStatus +from .iaas_device_status_ref import IaasDeviceStatusRef +from .iaas_license_info import IaasLicenseInfo +from .iaas_license_info_ref import IaasLicenseInfoRef +from .iaas_license_keys_info_ref import IaasLicenseKeysInfoRef +from .iaas_license_utilization_info_ref import IaasLicenseUtilizationInfoRef +from .iaas_most_run_tasks import IaasMostRunTasks +from .iaas_most_run_tasks_ref import IaasMostRunTasksRef +from .iaas_ucsd_info import IaasUcsdInfo +from .iaas_ucsd_info_ref import IaasUcsdInfoRef +from .iaas_ucsd_managed_infra import IaasUcsdManagedInfra +from .iaas_ucsd_managed_infra_ref import IaasUcsdManagedInfraRef from .iam_account import IamAccount +from .iam_account_permissions_ref import IamAccountPermissionsRef +from .iam_account_ref import IamAccountRef from .iam_api_key import IamApiKey +from .iam_api_key_ref import IamApiKeyRef +from .iam_domain_group import IamDomainGroup +from .iam_domain_group_ref import IamDomainGroupRef +from .iam_end_point_password_properties_ref import IamEndPointPasswordPropertiesRef from .iam_end_point_privilege import IamEndPointPrivilege +from .iam_end_point_privilege_ref import IamEndPointPrivilegeRef from .iam_end_point_role import IamEndPointRole +from .iam_end_point_role_ref import IamEndPointRoleRef from .iam_end_point_user import IamEndPointUser +from .iam_end_point_user_deploy_task_ref import IamEndPointUserDeployTaskRef +from .iam_end_point_user_policy_ref import IamEndPointUserPolicyRef +from .iam_end_point_user_ref import IamEndPointUserRef from .iam_end_point_user_role import IamEndPointUserRole +from .iam_end_point_user_role_ref import IamEndPointUserRoleRef +from .iam_end_point_user_validation_task_ref import IamEndPointUserValidationTaskRef from .iam_idp import IamIdp +from .iam_idp_ref import IamIdpRef from .iam_idp_reference import IamIdpReference +from .iam_idp_reference_ref import IamIdpReferenceRef +from .iam_ldap_base_properties_ref import IamLdapBasePropertiesRef +from .iam_ldap_credentials_ref import IamLdapCredentialsRef +from .iam_ldap_deploy_task_ref import IamLdapDeployTaskRef +from .iam_ldap_dns_parameters_ref import IamLdapDnsParametersRef from .iam_ldap_group import IamLdapGroup +from .iam_ldap_group_ref import IamLdapGroupRef +from .iam_ldap_policy_ref import IamLdapPolicyRef from .iam_ldap_provider import IamLdapProvider +from .iam_ldap_provider_ref import IamLdapProviderRef +from .iam_ldap_validation_task_ref import IamLdapValidationTaskRef from .iam_permission import IamPermission +from .iam_permission_ref import IamPermissionRef +from .iam_permission_reference_ref import IamPermissionReferenceRef from .iam_privilege import IamPrivilege +from .iam_privilege_ref import IamPrivilegeRef from .iam_privilege_set import IamPrivilegeSet +from .iam_privilege_set_ref import IamPrivilegeSetRef from .iam_qualifier import IamQualifier +from .iam_qualifier_ref import IamQualifierRef from .iam_resource_limits import IamResourceLimits +from .iam_resource_limits_ref import IamResourceLimitsRef from .iam_role import IamRole +from .iam_role_ref import IamRoleRef +from .iam_service_provider import IamServiceProvider +from .iam_service_provider_ref import IamServiceProviderRef from .iam_session import IamSession from .iam_session_limits import IamSessionLimits +from .iam_session_limits_ref import IamSessionLimitsRef +from .iam_session_ref import IamSessionRef +from .iam_sp_console_ref import IamSpConsoleRef +from .iam_sp_engine_ref import IamSpEngineRef +from .iam_sso_session_attributes_ref import IamSsoSessionAttributesRef from .iam_system import IamSystem +from .iam_system_ref import IamSystemRef from .iam_user import IamUser from .iam_user_group import IamUserGroup +from .iam_user_group_ref import IamUserGroupRef +from .iam_user_login_time_ref import IamUserLoginTimeRef from .iam_user_preference import IamUserPreference +from .iam_user_preference_ref import IamUserPreferenceRef +from .iam_user_ref import IamUserRef +from .imcconnector_sd_card_image_download_message_ref import ImcconnectorSdCardImageDownloadMessageRef from .inventory_base import InventoryBase +from .inventory_base_ref import InventoryBaseRef from .inventory_device_info import InventoryDeviceInfo +from .inventory_device_info_ref import InventoryDeviceInfoRef from .inventory_dn_mo_binding import InventoryDnMoBinding +from .inventory_dn_mo_binding_ref import InventoryDnMoBindingRef +from .inventory_generic_inventory_holder_ref import InventoryGenericInventoryHolderRef +from .inventory_generic_inventory_ref import InventoryGenericInventoryRef +from .inventory_inventory_mo_ref import InventoryInventoryMoRef +from .inventory_job_info_ref import InventoryJobInfoRef +from .inventory_request import InventoryRequest +from .inventory_request_ref import InventoryRequestRef +from .inventory_scoped_inventory_task_ref import InventoryScopedInventoryTaskRef +from .ipmioverlan_deploy_task_ref import IpmioverlanDeployTaskRef +from .ipmioverlan_policy_ref import IpmioverlanPolicyRef +from .ipmioverlan_validation_task_ref import IpmioverlanValidationTaskRef +from .kvm_deploy_task_ref import KvmDeployTaskRef +from .kvm_policy_ref import KvmPolicyRef +from .kvm_validation_task_ref import KvmValidationTaskRef from .license_account_license_data import LicenseAccountLicenseData +from .license_account_license_data_ref import LicenseAccountLicenseDataRef from .license_customer_op import LicenseCustomerOp +from .license_customer_op_ref import LicenseCustomerOpRef from .license_license_info import LicenseLicenseInfo +from .license_license_info_ref import LicenseLicenseInfoRef from .license_smartlicense_token import LicenseSmartlicenseToken +from .license_smartlicense_token_ref import LicenseSmartlicenseTokenRef +from .license_sync_response_ref import LicenseSyncResponseRef +from .ls_service_profile_ref import LsServiceProfileRef +from .management_controller_ref import ManagementControllerRef +from .management_entity_ref import ManagementEntityRef +from .management_interface_ref import ManagementInterfaceRef +from .memory_array_ref import MemoryArrayRef +from .memory_unit_ref import MemoryUnitRef from .meta_definition import MetaDefinition -from .packagemanagement_connector_deploy_policy import PackagemanagementConnectorDeployPolicy -from .packagemanagement_connector_image import PackagemanagementConnectorImage -from .packagemanagement_connector_install import PackagemanagementConnectorInstall +from .meta_definition_ref import MetaDefinitionRef +from .meta_prop_definition_ref import MetaPropDefinitionRef +from .meta_relationship_definition_ref import MetaRelationshipDefinitionRef +from .mo_base_complex_type_ref import MoBaseComplexTypeRef +from .mo_base_mo_ref import MoBaseMoRef +from .mo_interest_registration_ref import MoInterestRegistrationRef +from .mo_mo_ref_ref import MoMoRefRef +from .mo_tag_ref import MoTagRef +from .mo_version_context_ref import MoVersionContextRef +from .network_element_ref import NetworkElementRef +from .network_element_summary_ref import NetworkElementSummaryRef +from .networkconfig_deploy_task_ref import NetworkconfigDeployTaskRef +from .networkconfig_policy_ref import NetworkconfigPolicyRef +from .networkconfig_validation_task_ref import NetworkconfigValidationTaskRef +from .notifs_condition_ref import NotifsConditionRef +from .notifs_mo_subscription_ref import NotifsMoSubscriptionRef +from .ntp_deploy_task_ref import NtpDeployTaskRef +from .ntp_policy_ref import NtpPolicyRef +from .ntp_validation_task_ref import NtpValidationTaskRef +from .oauth2_auth_token_ref import Oauth2AuthTokenRef +from .oauth_access_token_ref import OauthAccessTokenRef +from .oauth_oauth_user import OauthOauthUser +from .oauth_oauth_user_ref import OauthOauthUserRef +from .pci_device_ref import PciDeviceRef +from .policy_abstract_config_change_detail import PolicyAbstractConfigChangeDetail +from .policy_abstract_config_change_detail_ref import PolicyAbstractConfigChangeDetailRef +from .policy_abstract_config_profile_ref import PolicyAbstractConfigProfileRef from .policy_abstract_config_result import PolicyAbstractConfigResult +from .policy_abstract_config_result_entry import PolicyAbstractConfigResultEntry +from .policy_abstract_config_result_entry_ref import PolicyAbstractConfigResultEntryRef +from .policy_abstract_config_result_ref import PolicyAbstractConfigResultRef from .policy_abstract_policy import PolicyAbstractPolicy +from .policy_abstract_policy_ref import PolicyAbstractPolicyRef from .policy_abstract_profile import PolicyAbstractProfile -from .policy_policy_meta import PolicyPolicyMeta +from .policy_abstract_profile_ref import PolicyAbstractProfileRef +from .policy_analyze_impact_task_ref import PolicyAnalyzeImpactTaskRef +from .policy_config_change_detail_type_ref import PolicyConfigChangeDetailTypeRef +from .policy_config_change_ref import PolicyConfigChangeRef +from .policy_config_context_ref import PolicyConfigContextRef +from .policy_config_result_context_ref import PolicyConfigResultContextRef +from .policy_take_snapshot_task_ref import PolicyTakeSnapshotTaskRef +from .port_group_ref import PortGroupRef +from .port_physical_ref import PortPhysicalRef +from .port_sub_group_ref import PortSubGroupRef +from .processor_unit_ref import ProcessorUnitRef +from .qatask_execution_status_task_ref import QataskExecutionStatusTaskRef +from .qatask_expobackoff_retry_ref import QataskExpobackoffRetryRef +from .qatask_fail_async_task_ref import QataskFailAsyncTaskRef +from .qatask_failed_no_retry_ref import QataskFailedNoRetryRef +from .qatask_huu_firmware_upgrade_ref import QataskHuuFirmwareUpgradeRef +from .qatask_initiate_download_ref import QataskInitiateDownloadRef +from .qatask_retry30timeout60task_ref import QataskRetry30timeout60taskRef +from .qatask_retry_fixed_ref import QataskRetryFixedRef +from .qatask_success_async_task_ref import QataskSuccessAsyncTaskRef +from .qatask_taskin_scheuled_ref import QataskTaskinScheuledRef +from .qatask_timeoutwf_exponential_ref import QataskTimeoutwfExponentialRef +from .qatask_timeoutwf_fixed_ref import QataskTimeoutwfFixedRef +from .qatask_ucs_task1_ref import QataskUcsTask1Ref +from .qatask_ucs_task2_ref import QataskUcsTask2Ref +from .qatask_ucs_task3_ref import QataskUcsTask3Ref +from .qatask_ucs_task4_ref import QataskUcsTask4Ref +from .qatask_ucs_task5_ref import QataskUcsTask5Ref +from .qatask_ucs_task6_ref import QataskUcsTask6Ref +from .qatask_ucs_task7_ref import QataskUcsTask7Ref +from .qatask_ucs_task8_ref import QataskUcsTask8Ref +from .qatask_ucs_task9_ref import QataskUcsTask9Ref +from .qatask_wait_for_download_ref import QataskWaitForDownloadRef +from .qatask_wait_for_firmware_upgrade_ref import QataskWaitForFirmwareUpgradeRef +from .resource_group import ResourceGroup +from .resource_group_ref import ResourceGroupRef +from .sdcard_deploy_task_ref import SdcardDeployTaskRef +from .sdcard_diagnostics_ref import SdcardDiagnosticsRef +from .sdcard_drivers_ref import SdcardDriversRef +from .sdcard_host_upgrade_utility_ref import SdcardHostUpgradeUtilityRef +from .sdcard_operating_system_ref import SdcardOperatingSystemRef +from .sdcard_partition_ref import SdcardPartitionRef +from .sdcard_policy_ref import SdcardPolicyRef +from .sdcard_server_configuration_utility_ref import SdcardServerConfigurationUtilityRef +from .sdcard_user_partition_ref import SdcardUserPartitionRef +from .sdcard_validation_task_ref import SdcardValidationTaskRef +from .sdcard_virtual_drive_ref import SdcardVirtualDriveRef from .search_search_item import SearchSearchItem +from .search_search_item_ref import SearchSearchItemRef from .search_suggest_item import SearchSuggestItem +from .search_suggest_item_ref import SearchSuggestItemRef from .search_tag_item import SearchTagItem +from .search_tag_item_ref import SearchTagItemRef +from .security_unit_ref import SecurityUnitRef +from .server_config_change_detail_ref import ServerConfigChangeDetailRef +from .server_config_result_entry_ref import ServerConfigResultEntryRef +from .server_config_result_ref import ServerConfigResultRef +from .server_profile_apply_task_ref import ServerProfileApplyTaskRef +from .server_profile_ref import ServerProfileRef +from .server_result_handler_task_ref import ServerResultHandlerTaskRef +from .smtp_deploy_task_ref import SmtpDeployTaskRef +from .smtp_policy_ref import SmtpPolicyRef +from .smtp_validation_task_ref import SmtpValidationTaskRef +from .snmp_deploy_task_ref import SnmpDeployTaskRef +from .snmp_policy_ref import SnmpPolicyRef +from .snmp_trap_ref import SnmpTrapRef +from .snmp_user_ref import SnmpUserRef +from .snmp_validation_task_ref import SnmpValidationTaskRef +from .softwarerepository_authorization import SoftwarerepositoryAuthorization +from .softwarerepository_authorization_ref import SoftwarerepositoryAuthorizationRef +from .sol_deploy_task_ref import SolDeployTaskRef +from .sol_policy_ref import SolPolicyRef +from .sol_validation_task_ref import SolValidationTaskRef +from .ssh_deploy_task_ref import SshDeployTaskRef +from .ssh_policy_ref import SshPolicyRef +from .ssh_validation_task_ref import SshValidationTaskRef +from .storage_analyze_impact_task_ref import StorageAnalyzeImpactTaskRef +from .storage_controller_ref import StorageControllerRef +from .storage_deploy_task_ref import StorageDeployTaskRef +from .storage_disk_group_policy_ref import StorageDiskGroupPolicyRef +from .storage_enclosure_ref import StorageEnclosureRef +from .storage_flex_flash_controller_props_ref import StorageFlexFlashControllerPropsRef +from .storage_flex_flash_controller_ref import StorageFlexFlashControllerRef +from .storage_flex_flash_physical_drive_ref import StorageFlexFlashPhysicalDriveRef +from .storage_flex_flash_virtual_drive_ref import StorageFlexFlashVirtualDriveRef +from .storage_flex_util_controller_ref import StorageFlexUtilControllerRef +from .storage_flex_util_physical_drive_ref import StorageFlexUtilPhysicalDriveRef +from .storage_flex_util_virtual_drive_ref import StorageFlexUtilVirtualDriveRef +from .storage_local_disk_ref import StorageLocalDiskRef +from .storage_physical_disk_extension_ref import StoragePhysicalDiskExtensionRef +from .storage_physical_disk_ref import StoragePhysicalDiskRef +from .storage_physical_disk_usage_ref import StoragePhysicalDiskUsageRef +from .storage_remote_key_setting_ref import StorageRemoteKeySettingRef +from .storage_sas_expander_ref import StorageSasExpanderRef +from .storage_span_group_ref import StorageSpanGroupRef +from .storage_storage_policy_ref import StorageStoragePolicyRef +from .storage_take_snapshot_task_ref import StorageTakeSnapshotTaskRef +from .storage_validation_task_ref import StorageValidationTaskRef +from .storage_vd_member_ep_ref import StorageVdMemberEpRef +from .storage_virtual_drive_config_ref import StorageVirtualDriveConfigRef +from .storage_virtual_drive_extension_ref import StorageVirtualDriveExtensionRef +from .storage_virtual_drive_ref import StorageVirtualDriveRef +from .syslog_deploy_task_ref import SyslogDeployTaskRef +from .syslog_local_client_base_ref import SyslogLocalClientBaseRef +from .syslog_local_file_logging_client_ref import SyslogLocalFileLoggingClientRef +from .syslog_policy_ref import SyslogPolicyRef +from .syslog_remote_client_base_ref import SyslogRemoteClientBaseRef +from .syslog_remote_logging_client_ref import SyslogRemoteLoggingClientRef +from .syslog_validation_task_ref import SyslogValidationTaskRef +from .task_file_download_info_ref import TaskFileDownloadInfoRef +from .task_input_task_ref import TaskInputTaskRef +from .task_ucs_task1_ref import TaskUcsTask1Ref +from .task_ucs_task2_ref import TaskUcsTask2Ref +from .task_ucs_task3_ref import TaskUcsTask3Ref +from .task_ucs_task4_ref import TaskUcsTask4Ref +from .task_ucs_task5_ref import TaskUcsTask5Ref +from .task_ucs_task6_ref import TaskUcsTask6Ref +from .task_ucs_task7_ref import TaskUcsTask7Ref +from .task_ucs_task8_ref import TaskUcsTask8Ref +from .task_ucs_task9_ref import TaskUcsTask9Ref from .task_workflow_action import TaskWorkflowAction -from .techsupportmanagement_download import TechsupportmanagementDownload -from .techsupportmanagement_tech_support_bundle import TechsupportmanagementTechSupportBundle -from .techsupportmanagement_tech_support_status import TechsupportmanagementTechSupportStatus +from .task_workflow_action_ref import TaskWorkflowActionRef +from .telemetry_time_series import TelemetryTimeSeries +from .telemetry_time_series_ref import TelemetryTimeSeriesRef from .terminal_audit_log import TerminalAuditLog +from .terminal_audit_log_ref import TerminalAuditLogRef +from .testcrypt_administrator import TestcryptAdministrator +from .testcrypt_administrator_ref import TestcryptAdministratorRef +from .testcrypt_credential import TestcryptCredential +from .testcrypt_credential_ref import TestcryptCredentialRef +from .testcrypt_read_only_user import TestcryptReadOnlyUser +from .testcrypt_read_only_user_ref import TestcryptReadOnlyUserRef +from .testcrypt_shadow_credential import TestcryptShadowCredential +from .testcrypt_shadow_credential_ref import TestcryptShadowCredentialRef +from .testcrypt_user_ref import TestcryptUserRef +from .top_system_ref import TopSystemRef +from .ucsdconnector_field_query_ref import UcsdconnectorFieldQueryRef +from .ucsdconnector_inventory_message_ref import UcsdconnectorInventoryMessageRef +from .ucsdconnector_sql_query_ref import UcsdconnectorSqlQueryRef +from .ucsdconnector_telemetry_message_ref import UcsdconnectorTelemetryMessageRef +from .ucsdconnector_telemetry_mo_ref import UcsdconnectorTelemetryMoRef from .views_view import ViewsView +from .views_view_ref import ViewsViewRef +from .vmedia_deploy_task_ref import VmediaDeployTaskRef +from .vmedia_mapping_ref import VmediaMappingRef +from .vmedia_policy_ref import VmediaPolicyRef +from .vmedia_validation_task_ref import VmediaValidationTaskRef from .workflow_build_task_meta import WorkflowBuildTaskMeta +from .workflow_build_task_meta_owner import WorkflowBuildTaskMetaOwner +from .workflow_build_task_meta_owner_ref import WorkflowBuildTaskMetaOwnerRef +from .workflow_build_task_meta_ref import WorkflowBuildTaskMetaRef +from .workflow_dynamic_workflow_action_task_list_ref import WorkflowDynamicWorkflowActionTaskListRef +from .workflow_input_definition_ref import WorkflowInputDefinitionRef +from .workflow_input_parameter_ref import WorkflowInputParameterRef +from .workflow_pending_dynamic_workflow_info import WorkflowPendingDynamicWorkflowInfo +from .workflow_pending_dynamic_workflow_info_ref import WorkflowPendingDynamicWorkflowInfoRef from .workflow_task_info import WorkflowTaskInfo +from .workflow_task_info_ref import WorkflowTaskInfoRef from .workflow_task_meta import WorkflowTaskMeta +from .workflow_task_meta_ref import WorkflowTaskMetaRef +from .workflow_task_retry_info_ref import WorkflowTaskRetryInfoRef from .workflow_workflow_info import WorkflowWorkflowInfo +from .workflow_workflow_info_ref import WorkflowWorkflowInfoRef from .workflow_workflow_meta import WorkflowWorkflowMeta -from .workflow_workflow_task import WorkflowWorkflowTask +from .workflow_workflow_meta_ref import WorkflowWorkflowMetaRef from .aaa_audit_record import AaaAuditRecord +from .asset_cluster_member import AssetClusterMember +from .asset_device_registration import AssetDeviceRegistration from .bios_policy import BiosPolicy from .boot_precision_policy import BootPrecisionPolicy from .compute_physical_summary import ComputePhysicalSummary from .compute_server_setting import ComputeServerSetting +from .deviceconnector_policy import DeviceconnectorPolicy from .equipment_base import EquipmentBase from .equipment_device_summary import EquipmentDeviceSummary from .equipment_locator_led import EquipmentLocatorLed @@ -320,11 +839,13 @@ from .hyperflex_cluster_network_policy import HyperflexClusterNetworkPolicy from .hyperflex_cluster_storage_policy import HyperflexClusterStoragePolicy from .hyperflex_config_result import HyperflexConfigResult +from .hyperflex_config_result_entry import HyperflexConfigResultEntry from .hyperflex_ext_fc_storage_policy import HyperflexExtFcStoragePolicy from .hyperflex_ext_iscsi_storage_policy import HyperflexExtIscsiStoragePolicy from .hyperflex_local_credential_policy import HyperflexLocalCredentialPolicy from .hyperflex_node_config_policy import HyperflexNodeConfigPolicy from .hyperflex_node_profile import HyperflexNodeProfile +from .hyperflex_proxy_setting_policy import HyperflexProxySettingPolicy from .hyperflex_sys_config_policy import HyperflexSysConfigPolicy from .hyperflex_ucsm_config_policy import HyperflexUcsmConfigPolicy from .hyperflex_vcenter_config_policy import HyperflexVcenterConfigPolicy @@ -345,16 +866,22 @@ from .port_group import PortGroup from .port_physical import PortPhysical from .port_sub_group import PortSubGroup +from .sdcard_policy import SdcardPolicy +from .server_config_change_detail import ServerConfigChangeDetail from .server_config_result import ServerConfigResult +from .server_config_result_entry import ServerConfigResultEntry from .smtp_policy import SmtpPolicy from .snmp_policy import SnmpPolicy from .sol_policy import SolPolicy from .ssh_policy import SshPolicy from .storage_disk_group_policy import StorageDiskGroupPolicy from .storage_flex_util_controller import StorageFlexUtilController +from .storage_flex_util_virtual_drive import StorageFlexUtilVirtualDrive from .storage_physical_disk_usage import StoragePhysicalDiskUsage from .storage_storage_policy import StorageStoragePolicy from .storage_vd_member_ep import StorageVdMemberEp +from .storage_virtual_drive_extension import StorageVirtualDriveExtension +from .syslog_policy import SyslogPolicy from .top_system import TopSystem from .vmedia_policy import VmediaPolicy from .adapter_ext_eth_interface import AdapterExtEthInterface @@ -370,9 +897,13 @@ from .equipment_fan_module import EquipmentFanModule from .equipment_fex import EquipmentFex from .equipment_io_card import EquipmentIoCard +from .equipment_io_expander import EquipmentIoExpander from .equipment_psu import EquipmentPsu +from .equipment_rack_enclosure import EquipmentRackEnclosure +from .equipment_rack_enclosure_slot import EquipmentRackEnclosureSlot from .equipment_switch_card import EquipmentSwitchCard from .equipment_system_io_controller import EquipmentSystemIoController +from .equipment_tpm import EquipmentTpm from .ether_physical_port import EtherPhysicalPort from .fc_physical_port import FcPhysicalPort from .graphics_card import GraphicsCard @@ -381,13 +912,19 @@ from .memory_array import MemoryArray from .memory_unit import MemoryUnit from .network_element import NetworkElement +from .pci_device import PciDevice from .processor_unit import ProcessorUnit from .security_unit import SecurityUnit from .server_profile import ServerProfile from .storage_controller import StorageController +from .storage_enclosure import StorageEnclosure from .storage_flex_flash_controller import StorageFlexFlashController +from .storage_flex_flash_controller_props import StorageFlexFlashControllerProps from .storage_flex_flash_physical_drive import StorageFlexFlashPhysicalDrive +from .storage_flex_flash_virtual_drive import StorageFlexFlashVirtualDrive +from .storage_flex_util_physical_drive import StorageFlexUtilPhysicalDrive from .storage_physical_disk import StoragePhysicalDisk +from .storage_physical_disk_extension import StoragePhysicalDiskExtension from .storage_sas_expander import StorageSasExpander from .storage_virtual_drive import StorageVirtualDrive from .compute_blade import ComputeBlade diff --git a/intersight/models/aaa_abstract_audit_record.py b/intersight/models/aaa_abstract_audit_record.py index 5cabbcc3..ad46b5c3 100644 --- a/intersight/models/aaa_abstract_audit_record.py +++ b/intersight/models/aaa_abstract_audit_record.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class AaaAbstractAuditRecord(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'event': 'str', 'mo_type': 'str', 'object_moid': 'str', @@ -57,6 +58,7 @@ class AaaAbstractAuditRecord(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'event': 'Event', 'mo_type': 'MoType', 'object_moid': 'ObjectMoid', @@ -64,7 +66,7 @@ class AaaAbstractAuditRecord(object): 'trace_id': 'TraceId' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, event=None, mo_type=None, object_moid=None, request=None, trace_id=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, event=None, mo_type=None, object_moid=None, request=None, trace_id=None): """ AaaAbstractAuditRecord - a model defined in Swagger """ @@ -78,6 +80,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._event = None self._mo_type = None self._object_moid = None @@ -102,6 +105,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if event is not None: self.event = event if mo_type is not None: @@ -143,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this AaaAbstractAuditRecord. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -154,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this AaaAbstractAuditRecord. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -281,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this AaaAbstractAuditRecord. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -292,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this AaaAbstractAuditRecord. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -301,7 +306,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this AaaAbstractAuditRecord. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this AaaAbstractAuditRecord. :rtype: list[MoTag] @@ -312,7 +317,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this AaaAbstractAuditRecord. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this AaaAbstractAuditRecord. :type: list[MoTag] @@ -320,6 +325,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this AaaAbstractAuditRecord. + The versioning info for this managed object + + :return: The version_context of this AaaAbstractAuditRecord. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this AaaAbstractAuditRecord. + The versioning info for this managed object + + :param version_context: The version_context of this AaaAbstractAuditRecord. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def event(self): """ diff --git a/intersight/models/aaa_abstract_audit_record_ref.py b/intersight/models/aaa_abstract_audit_record_ref.py new file mode 100644 index 00000000..ed2ebe78 --- /dev/null +++ b/intersight/models/aaa_abstract_audit_record_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AaaAbstractAuditRecordRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AaaAbstractAuditRecordRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AaaAbstractAuditRecordRef. + + :return: The moid of this AaaAbstractAuditRecordRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AaaAbstractAuditRecordRef. + + :param moid: The moid of this AaaAbstractAuditRecordRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AaaAbstractAuditRecordRef. + + :return: The object_type of this AaaAbstractAuditRecordRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AaaAbstractAuditRecordRef. + + :param object_type: The object_type of this AaaAbstractAuditRecordRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AaaAbstractAuditRecordRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/aaa_audit_record.py b/intersight/models/aaa_audit_record.py index 1c1e60fc..202e68d0 100644 --- a/intersight/models/aaa_audit_record.py +++ b/intersight/models/aaa_audit_record.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,25 +32,27 @@ class AaaAuditRecord(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'event': 'str', 'mo_type': 'str', 'object_moid': 'str', 'request': 'object', 'trace_id': 'str', - 'account': 'MoMoRef', + 'account': 'IamAccountRef', + 'email': 'str', 'inst_id': 'str', - 'sessions': 'MoMoRef', + 'sessions': 'IamSessionRef', 'source_ip': 'str', 'timestamp': 'datetime', - 'user': 'MoMoRef' + 'user': 'IamUserRef' } attribute_map = { @@ -63,12 +65,14 @@ class AaaAuditRecord(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'event': 'Event', 'mo_type': 'MoType', 'object_moid': 'ObjectMoid', 'request': 'Request', 'trace_id': 'TraceId', 'account': 'Account', + 'email': 'Email', 'inst_id': 'InstId', 'sessions': 'Sessions', 'source_ip': 'SourceIp', @@ -76,7 +80,7 @@ class AaaAuditRecord(object): 'user': 'User' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, event=None, mo_type=None, object_moid=None, request=None, trace_id=None, account=None, inst_id=None, sessions=None, source_ip=None, timestamp=None, user=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, event=None, mo_type=None, object_moid=None, request=None, trace_id=None, account=None, email=None, inst_id=None, sessions=None, source_ip=None, timestamp=None, user=None): """ AaaAuditRecord - a model defined in Swagger """ @@ -90,12 +94,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._event = None self._mo_type = None self._object_moid = None self._request = None self._trace_id = None self._account = None + self._email = None self._inst_id = None self._sessions = None self._source_ip = None @@ -120,6 +126,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if event is not None: self.event = event if mo_type is not None: @@ -132,6 +140,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.trace_id = trace_id if account is not None: self.account = account + if email is not None: + self.email = email if inst_id is not None: self.inst_id = inst_id if sessions is not None: @@ -173,7 +183,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this AaaAuditRecord. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -184,7 +194,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this AaaAuditRecord. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -311,7 +321,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this AaaAuditRecord. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -322,7 +332,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this AaaAuditRecord. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -331,7 +341,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this AaaAuditRecord. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this AaaAuditRecord. :rtype: list[MoTag] @@ -342,7 +352,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this AaaAuditRecord. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this AaaAuditRecord. :type: list[MoTag] @@ -350,6 +360,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this AaaAuditRecord. + The versioning info for this managed object + + :return: The version_context of this AaaAuditRecord. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this AaaAuditRecord. + The versioning info for this managed object + + :param version_context: The version_context of this AaaAuditRecord. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def event(self): """ @@ -472,7 +505,7 @@ def account(self): The account of the user who performed the operation. :return: The account of this AaaAuditRecord. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -483,11 +516,34 @@ def account(self, account): The account of the user who performed the operation. :param account: The account of this AaaAuditRecord. - :type: MoMoRef + :type: IamAccountRef """ self._account = account + @property + def email(self): + """ + Gets the email of this AaaAuditRecord. + The email of the associated user that made the change. This is needed in case that user is later deleted, we still have some reference to the information. + + :return: The email of this AaaAuditRecord. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this AaaAuditRecord. + The email of the associated user that made the change. This is needed in case that user is later deleted, we still have some reference to the information. + + :param email: The email of this AaaAuditRecord. + :type: str + """ + + self._email = email + @property def inst_id(self): """ @@ -518,7 +574,7 @@ def sessions(self): The sessions of the user who performed the operation. :return: The sessions of this AaaAuditRecord. - :rtype: MoMoRef + :rtype: IamSessionRef """ return self._sessions @@ -529,7 +585,7 @@ def sessions(self, sessions): The sessions of the user who performed the operation. :param sessions: The sessions of this AaaAuditRecord. - :type: MoMoRef + :type: IamSessionRef """ self._sessions = sessions @@ -587,7 +643,7 @@ def user(self): The user who performed the operation. :return: The user of this AaaAuditRecord. - :rtype: MoMoRef + :rtype: IamUserRef """ return self._user @@ -598,7 +654,7 @@ def user(self, user): The user who performed the operation. :param user: The user of this AaaAuditRecord. - :type: MoMoRef + :type: IamUserRef """ self._user = user diff --git a/intersight/models/aaa_audit_record_list.py b/intersight/models/aaa_audit_record_list.py index 6e11f622..500c2947 100644 --- a/intersight/models/aaa_audit_record_list.py +++ b/intersight/models/aaa_audit_record_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/aaa_audit_record_local_ref.py b/intersight/models/aaa_audit_record_local_ref.py new file mode 100644 index 00000000..d3de2760 --- /dev/null +++ b/intersight/models/aaa_audit_record_local_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AaaAuditRecordLocalRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AaaAuditRecordLocalRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AaaAuditRecordLocalRef. + + :return: The moid of this AaaAuditRecordLocalRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AaaAuditRecordLocalRef. + + :param moid: The moid of this AaaAuditRecordLocalRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AaaAuditRecordLocalRef. + + :return: The object_type of this AaaAuditRecordLocalRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AaaAuditRecordLocalRef. + + :param object_type: The object_type of this AaaAuditRecordLocalRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AaaAuditRecordLocalRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/aaa_audit_record_ref.py b/intersight/models/aaa_audit_record_ref.py new file mode 100644 index 00000000..b5646e7b --- /dev/null +++ b/intersight/models/aaa_audit_record_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AaaAuditRecordRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AaaAuditRecordRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AaaAuditRecordRef. + + :return: The moid of this AaaAuditRecordRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AaaAuditRecordRef. + + :param moid: The moid of this AaaAuditRecordRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AaaAuditRecordRef. + + :return: The object_type of this AaaAuditRecordRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AaaAuditRecordRef. + + :param object_type: The object_type of this AaaAuditRecordRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AaaAuditRecordRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/adapter_ext_eth_interface.py b/intersight/models/adapter_ext_eth_interface.py index 75c03286..7e38800a 100644 --- a/intersight/models/adapter_ext_eth_interface.py +++ b/intersight/models/adapter_ext_eth_interface.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class AdapterExtEthInterface(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -47,14 +48,15 @@ class AdapterExtEthInterface(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'adapter_unit': 'MoMoRef', + 'adapter_unit': 'AdapterUnitRef', 'admin_state': 'str', 'ep_dn': 'str', + 'ext_eth_interface_id': 'str', 'interface_type': 'str', 'mac_address': 'str', 'oper_state': 'str', 'peer_dn': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -67,6 +69,7 @@ class AdapterExtEthInterface(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -77,6 +80,7 @@ class AdapterExtEthInterface(object): 'adapter_unit': 'AdapterUnit', 'admin_state': 'AdminState', 'ep_dn': 'EpDn', + 'ext_eth_interface_id': 'ExtEthInterfaceId', 'interface_type': 'InterfaceType', 'mac_address': 'MacAddress', 'oper_state': 'OperState', @@ -84,7 +88,7 @@ class AdapterExtEthInterface(object): 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, adapter_unit=None, admin_state=None, ep_dn=None, interface_type=None, mac_address=None, oper_state=None, peer_dn=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, adapter_unit=None, admin_state=None, ep_dn=None, ext_eth_interface_id=None, interface_type=None, mac_address=None, oper_state=None, peer_dn=None, registered_device=None): """ AdapterExtEthInterface - a model defined in Swagger """ @@ -98,6 +102,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -108,6 +113,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._adapter_unit = None self._admin_state = None self._ep_dn = None + self._ext_eth_interface_id = None self._interface_type = None self._mac_address = None self._oper_state = None @@ -132,6 +138,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -152,6 +160,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.admin_state = admin_state if ep_dn is not None: self.ep_dn = ep_dn + if ext_eth_interface_id is not None: + self.ext_eth_interface_id = ext_eth_interface_id if interface_type is not None: self.interface_type = interface_type if mac_address is not None: @@ -193,7 +203,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this AdapterExtEthInterface. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -204,7 +214,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this AdapterExtEthInterface. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -331,7 +341,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this AdapterExtEthInterface. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -342,7 +352,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this AdapterExtEthInterface. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -351,7 +361,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this AdapterExtEthInterface. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this AdapterExtEthInterface. :rtype: list[MoTag] @@ -362,7 +372,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this AdapterExtEthInterface. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this AdapterExtEthInterface. :type: list[MoTag] @@ -370,6 +380,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this AdapterExtEthInterface. + The versioning info for this managed object + + :return: The version_context of this AdapterExtEthInterface. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this AdapterExtEthInterface. + The versioning info for this managed object + + :param version_context: The version_context of this AdapterExtEthInterface. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -523,7 +556,7 @@ def adapter_unit(self): Gets the adapter_unit of this AdapterExtEthInterface. :return: The adapter_unit of this AdapterExtEthInterface. - :rtype: MoMoRef + :rtype: AdapterUnitRef """ return self._adapter_unit @@ -533,7 +566,7 @@ def adapter_unit(self, adapter_unit): Sets the adapter_unit of this AdapterExtEthInterface. :param adapter_unit: The adapter_unit of this AdapterExtEthInterface. - :type: MoMoRef + :type: AdapterUnitRef """ self._adapter_unit = adapter_unit @@ -580,6 +613,27 @@ def ep_dn(self, ep_dn): self._ep_dn = ep_dn + @property + def ext_eth_interface_id(self): + """ + Gets the ext_eth_interface_id of this AdapterExtEthInterface. + + :return: The ext_eth_interface_id of this AdapterExtEthInterface. + :rtype: str + """ + return self._ext_eth_interface_id + + @ext_eth_interface_id.setter + def ext_eth_interface_id(self, ext_eth_interface_id): + """ + Sets the ext_eth_interface_id of this AdapterExtEthInterface. + + :param ext_eth_interface_id: The ext_eth_interface_id of this AdapterExtEthInterface. + :type: str + """ + + self._ext_eth_interface_id = ext_eth_interface_id + @property def interface_type(self): """ @@ -670,7 +724,7 @@ def registered_device(self): Gets the registered_device of this AdapterExtEthInterface. :return: The registered_device of this AdapterExtEthInterface. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -680,7 +734,7 @@ def registered_device(self, registered_device): Sets the registered_device of this AdapterExtEthInterface. :param registered_device: The registered_device of this AdapterExtEthInterface. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/adapter_ext_eth_interface_list.py b/intersight/models/adapter_ext_eth_interface_list.py index 553154bf..273740c4 100644 --- a/intersight/models/adapter_ext_eth_interface_list.py +++ b/intersight/models/adapter_ext_eth_interface_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/adapter_ext_eth_interface_ref.py b/intersight/models/adapter_ext_eth_interface_ref.py new file mode 100644 index 00000000..0efa0430 --- /dev/null +++ b/intersight/models/adapter_ext_eth_interface_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AdapterExtEthInterfaceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AdapterExtEthInterfaceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AdapterExtEthInterfaceRef. + + :return: The moid of this AdapterExtEthInterfaceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AdapterExtEthInterfaceRef. + + :param moid: The moid of this AdapterExtEthInterfaceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AdapterExtEthInterfaceRef. + + :return: The object_type of this AdapterExtEthInterfaceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AdapterExtEthInterfaceRef. + + :param object_type: The object_type of this AdapterExtEthInterfaceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AdapterExtEthInterfaceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/adapter_host_eth_interface.py b/intersight/models/adapter_host_eth_interface.py index 00242b06..87e9eda7 100644 --- a/intersight/models/adapter_host_eth_interface.py +++ b/intersight/models/adapter_host_eth_interface.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class AdapterHostEthInterface(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -47,7 +48,7 @@ class AdapterHostEthInterface(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'adapter_unit': 'MoMoRef', + 'adapter_unit': 'AdapterUnitRef', 'admin_state': 'str', 'ep_dn': 'str', 'host_eth_interface_id': 'int', @@ -59,7 +60,7 @@ class AdapterHostEthInterface(object): 'original_mac_address': 'str', 'pci_addr': 'str', 'peer_dn': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'virtualization_preference': 'str', 'vnic_dn': 'str' } @@ -74,6 +75,7 @@ class AdapterHostEthInterface(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -98,7 +100,7 @@ class AdapterHostEthInterface(object): 'vnic_dn': 'VnicDn' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, adapter_unit=None, admin_state=None, ep_dn=None, host_eth_interface_id=None, interface_type=None, mac_address=None, name=None, oper_state=None, operability=None, original_mac_address=None, pci_addr=None, peer_dn=None, registered_device=None, virtualization_preference=None, vnic_dn=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, adapter_unit=None, admin_state=None, ep_dn=None, host_eth_interface_id=None, interface_type=None, mac_address=None, name=None, oper_state=None, operability=None, original_mac_address=None, pci_addr=None, peer_dn=None, registered_device=None, virtualization_preference=None, vnic_dn=None): """ AdapterHostEthInterface - a model defined in Swagger """ @@ -112,6 +114,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -153,6 +156,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -228,7 +233,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this AdapterHostEthInterface. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -239,7 +244,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this AdapterHostEthInterface. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -366,7 +371,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this AdapterHostEthInterface. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -377,7 +382,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this AdapterHostEthInterface. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -386,7 +391,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this AdapterHostEthInterface. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this AdapterHostEthInterface. :rtype: list[MoTag] @@ -397,7 +402,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this AdapterHostEthInterface. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this AdapterHostEthInterface. :type: list[MoTag] @@ -405,6 +410,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this AdapterHostEthInterface. + The versioning info for this managed object + + :return: The version_context of this AdapterHostEthInterface. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this AdapterHostEthInterface. + The versioning info for this managed object + + :param version_context: The version_context of this AdapterHostEthInterface. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -558,7 +586,7 @@ def adapter_unit(self): Gets the adapter_unit of this AdapterHostEthInterface. :return: The adapter_unit of this AdapterHostEthInterface. - :rtype: MoMoRef + :rtype: AdapterUnitRef """ return self._adapter_unit @@ -568,7 +596,7 @@ def adapter_unit(self, adapter_unit): Sets the adapter_unit of this AdapterHostEthInterface. :param adapter_unit: The adapter_unit of this AdapterHostEthInterface. - :type: MoMoRef + :type: AdapterUnitRef """ self._adapter_unit = adapter_unit @@ -810,7 +838,7 @@ def registered_device(self): Gets the registered_device of this AdapterHostEthInterface. :return: The registered_device of this AdapterHostEthInterface. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -820,7 +848,7 @@ def registered_device(self, registered_device): Sets the registered_device of this AdapterHostEthInterface. :param registered_device: The registered_device of this AdapterHostEthInterface. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/adapter_host_eth_interface_list.py b/intersight/models/adapter_host_eth_interface_list.py index 30a3ebc6..a4d2b36c 100644 --- a/intersight/models/adapter_host_eth_interface_list.py +++ b/intersight/models/adapter_host_eth_interface_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/adapter_host_eth_interface_ref.py b/intersight/models/adapter_host_eth_interface_ref.py new file mode 100644 index 00000000..ec8f1eb3 --- /dev/null +++ b/intersight/models/adapter_host_eth_interface_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AdapterHostEthInterfaceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AdapterHostEthInterfaceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AdapterHostEthInterfaceRef. + + :return: The moid of this AdapterHostEthInterfaceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AdapterHostEthInterfaceRef. + + :param moid: The moid of this AdapterHostEthInterfaceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AdapterHostEthInterfaceRef. + + :return: The object_type of this AdapterHostEthInterfaceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AdapterHostEthInterfaceRef. + + :param object_type: The object_type of this AdapterHostEthInterfaceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AdapterHostEthInterfaceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/adapter_host_fc_interface.py b/intersight/models/adapter_host_fc_interface.py index 480cd794..7416dff9 100644 --- a/intersight/models/adapter_host_fc_interface.py +++ b/intersight/models/adapter_host_fc_interface.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class AdapterHostFcInterface(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -47,7 +48,7 @@ class AdapterHostFcInterface(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'adapter_unit': 'MoMoRef', + 'adapter_unit': 'AdapterUnitRef', 'admin_state': 'str', 'ep_dn': 'str', 'host_fc_interface_id': 'int', @@ -57,7 +58,7 @@ class AdapterHostFcInterface(object): 'original_wwnn': 'str', 'original_wwpn': 'str', 'peer_dn': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'wwnn': 'str', 'wwpn': 'str' } @@ -72,6 +73,7 @@ class AdapterHostFcInterface(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -94,7 +96,7 @@ class AdapterHostFcInterface(object): 'wwpn': 'Wwpn' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, adapter_unit=None, admin_state=None, ep_dn=None, host_fc_interface_id=None, name=None, oper_state=None, operability=None, original_wwnn=None, original_wwpn=None, peer_dn=None, registered_device=None, wwnn=None, wwpn=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, adapter_unit=None, admin_state=None, ep_dn=None, host_fc_interface_id=None, name=None, oper_state=None, operability=None, original_wwnn=None, original_wwpn=None, peer_dn=None, registered_device=None, wwnn=None, wwpn=None): """ AdapterHostFcInterface - a model defined in Swagger """ @@ -108,6 +110,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -147,6 +150,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -218,7 +223,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this AdapterHostFcInterface. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -229,7 +234,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this AdapterHostFcInterface. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -356,7 +361,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this AdapterHostFcInterface. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -367,7 +372,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this AdapterHostFcInterface. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -376,7 +381,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this AdapterHostFcInterface. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this AdapterHostFcInterface. :rtype: list[MoTag] @@ -387,7 +392,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this AdapterHostFcInterface. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this AdapterHostFcInterface. :type: list[MoTag] @@ -395,6 +400,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this AdapterHostFcInterface. + The versioning info for this managed object + + :return: The version_context of this AdapterHostFcInterface. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this AdapterHostFcInterface. + The versioning info for this managed object + + :param version_context: The version_context of this AdapterHostFcInterface. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -548,7 +576,7 @@ def adapter_unit(self): Gets the adapter_unit of this AdapterHostFcInterface. :return: The adapter_unit of this AdapterHostFcInterface. - :rtype: MoMoRef + :rtype: AdapterUnitRef """ return self._adapter_unit @@ -558,7 +586,7 @@ def adapter_unit(self, adapter_unit): Sets the adapter_unit of this AdapterHostFcInterface. :param adapter_unit: The adapter_unit of this AdapterHostFcInterface. - :type: MoMoRef + :type: AdapterUnitRef """ self._adapter_unit = adapter_unit @@ -758,7 +786,7 @@ def registered_device(self): Gets the registered_device of this AdapterHostFcInterface. :return: The registered_device of this AdapterHostFcInterface. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -768,7 +796,7 @@ def registered_device(self, registered_device): Sets the registered_device of this AdapterHostFcInterface. :param registered_device: The registered_device of this AdapterHostFcInterface. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/adapter_host_fc_interface_list.py b/intersight/models/adapter_host_fc_interface_list.py index c1ec8cfd..27c6062c 100644 --- a/intersight/models/adapter_host_fc_interface_list.py +++ b/intersight/models/adapter_host_fc_interface_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/adapter_host_fc_interface_ref.py b/intersight/models/adapter_host_fc_interface_ref.py new file mode 100644 index 00000000..11de9d67 --- /dev/null +++ b/intersight/models/adapter_host_fc_interface_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AdapterHostFcInterfaceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AdapterHostFcInterfaceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AdapterHostFcInterfaceRef. + + :return: The moid of this AdapterHostFcInterfaceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AdapterHostFcInterfaceRef. + + :param moid: The moid of this AdapterHostFcInterfaceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AdapterHostFcInterfaceRef. + + :return: The object_type of this AdapterHostFcInterfaceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AdapterHostFcInterfaceRef. + + :param object_type: The object_type of this AdapterHostFcInterfaceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AdapterHostFcInterfaceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/adapter_host_iscsi_interface.py b/intersight/models/adapter_host_iscsi_interface.py index ba1c88ff..cedceb15 100644 --- a/intersight/models/adapter_host_iscsi_interface.py +++ b/intersight/models/adapter_host_iscsi_interface.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class AdapterHostIscsiInterface(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -47,7 +48,7 @@ class AdapterHostIscsiInterface(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'adapter_unit': 'MoMoRef', + 'adapter_unit': 'AdapterUnitRef', 'admin_state': 'str', 'ep_dn': 'str', 'host_iscsi_interface_id': 'int', @@ -57,7 +58,7 @@ class AdapterHostIscsiInterface(object): 'oper_state': 'str', 'operability': 'str', 'peer_dn': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -70,6 +71,7 @@ class AdapterHostIscsiInterface(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -90,7 +92,7 @@ class AdapterHostIscsiInterface(object): 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, adapter_unit=None, admin_state=None, ep_dn=None, host_iscsi_interface_id=None, host_visible=None, mac_address=None, name=None, oper_state=None, operability=None, peer_dn=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, adapter_unit=None, admin_state=None, ep_dn=None, host_iscsi_interface_id=None, host_visible=None, mac_address=None, name=None, oper_state=None, operability=None, peer_dn=None, registered_device=None): """ AdapterHostIscsiInterface - a model defined in Swagger """ @@ -104,6 +106,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -141,6 +144,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -208,7 +213,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this AdapterHostIscsiInterface. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -219,7 +224,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this AdapterHostIscsiInterface. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -346,7 +351,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this AdapterHostIscsiInterface. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -357,7 +362,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this AdapterHostIscsiInterface. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -366,7 +371,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this AdapterHostIscsiInterface. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this AdapterHostIscsiInterface. :rtype: list[MoTag] @@ -377,7 +382,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this AdapterHostIscsiInterface. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this AdapterHostIscsiInterface. :type: list[MoTag] @@ -385,6 +390,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this AdapterHostIscsiInterface. + The versioning info for this managed object + + :return: The version_context of this AdapterHostIscsiInterface. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this AdapterHostIscsiInterface. + The versioning info for this managed object + + :param version_context: The version_context of this AdapterHostIscsiInterface. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -538,7 +566,7 @@ def adapter_unit(self): Gets the adapter_unit of this AdapterHostIscsiInterface. :return: The adapter_unit of this AdapterHostIscsiInterface. - :rtype: MoMoRef + :rtype: AdapterUnitRef """ return self._adapter_unit @@ -548,7 +576,7 @@ def adapter_unit(self, adapter_unit): Sets the adapter_unit of this AdapterHostIscsiInterface. :param adapter_unit: The adapter_unit of this AdapterHostIscsiInterface. - :type: MoMoRef + :type: AdapterUnitRef """ self._adapter_unit = adapter_unit @@ -748,7 +776,7 @@ def registered_device(self): Gets the registered_device of this AdapterHostIscsiInterface. :return: The registered_device of this AdapterHostIscsiInterface. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -758,7 +786,7 @@ def registered_device(self, registered_device): Sets the registered_device of this AdapterHostIscsiInterface. :param registered_device: The registered_device of this AdapterHostIscsiInterface. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/adapter_host_iscsi_interface_list.py b/intersight/models/adapter_host_iscsi_interface_list.py index 27157fec..af21f31e 100644 --- a/intersight/models/adapter_host_iscsi_interface_list.py +++ b/intersight/models/adapter_host_iscsi_interface_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/adapter_host_iscsi_interface_ref.py b/intersight/models/adapter_host_iscsi_interface_ref.py new file mode 100644 index 00000000..6675014c --- /dev/null +++ b/intersight/models/adapter_host_iscsi_interface_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AdapterHostIscsiInterfaceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AdapterHostIscsiInterfaceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AdapterHostIscsiInterfaceRef. + + :return: The moid of this AdapterHostIscsiInterfaceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AdapterHostIscsiInterfaceRef. + + :param moid: The moid of this AdapterHostIscsiInterfaceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AdapterHostIscsiInterfaceRef. + + :return: The object_type of this AdapterHostIscsiInterfaceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AdapterHostIscsiInterfaceRef. + + :param object_type: The object_type of this AdapterHostIscsiInterfaceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AdapterHostIscsiInterfaceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/adapter_unit.py b/intersight/models/adapter_unit.py index cb0a2fd3..49e03386 100644 --- a/intersight/models/adapter_unit.py +++ b/intersight/models/adapter_unit.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class AdapterUnit(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -49,13 +50,13 @@ class AdapterUnit(object): 'vendor': 'str', 'adapter_id': 'str', 'base_mac_address': 'str', - 'compute_blade': 'MoMoRef', - 'compute_rack_unit': 'MoMoRef', - 'controller': 'MoMoRef', - 'ext_eth_ifs': 'list[MoMoRef]', - 'host_eth_ifs': 'list[MoMoRef]', - 'host_fc_ifs': 'list[MoMoRef]', - 'host_iscsi_ifs': 'list[MoMoRef]', + 'compute_blade': 'ComputeBladeRef', + 'compute_rack_unit': 'ComputeRackUnitRef', + 'controller': 'ManagementControllerRef', + 'ext_eth_ifs': 'list[AdapterExtEthInterfaceRef]', + 'host_eth_ifs': 'list[AdapterHostEthInterfaceRef]', + 'host_fc_ifs': 'list[AdapterHostFcInterfaceRef]', + 'host_iscsi_ifs': 'list[AdapterHostIscsiInterfaceRef]', 'integrated': 'str', 'oper_state': 'str', 'operability': 'str', @@ -63,7 +64,7 @@ class AdapterUnit(object): 'pci_slot': 'str', 'power': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'thermal': 'str', 'vid': 'str' } @@ -78,6 +79,7 @@ class AdapterUnit(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -106,7 +108,7 @@ class AdapterUnit(object): 'vid': 'Vid' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, adapter_id=None, base_mac_address=None, compute_blade=None, compute_rack_unit=None, controller=None, ext_eth_ifs=None, host_eth_ifs=None, host_fc_ifs=None, host_iscsi_ifs=None, integrated=None, oper_state=None, operability=None, part_number=None, pci_slot=None, power=None, presence=None, registered_device=None, thermal=None, vid=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, adapter_id=None, base_mac_address=None, compute_blade=None, compute_rack_unit=None, controller=None, ext_eth_ifs=None, host_eth_ifs=None, host_fc_ifs=None, host_iscsi_ifs=None, integrated=None, oper_state=None, operability=None, part_number=None, pci_slot=None, power=None, presence=None, registered_device=None, thermal=None, vid=None): """ AdapterUnit - a model defined in Swagger """ @@ -120,6 +122,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -165,6 +168,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -248,7 +253,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this AdapterUnit. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -259,7 +264,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this AdapterUnit. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -386,7 +391,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this AdapterUnit. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -397,7 +402,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this AdapterUnit. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -406,7 +411,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this AdapterUnit. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this AdapterUnit. :rtype: list[MoTag] @@ -417,7 +422,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this AdapterUnit. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this AdapterUnit. :type: list[MoTag] @@ -425,6 +430,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this AdapterUnit. + The versioning info for this managed object + + :return: The version_context of this AdapterUnit. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this AdapterUnit. + The versioning info for this managed object + + :param version_context: The version_context of this AdapterUnit. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -620,7 +648,7 @@ def compute_blade(self): Gets the compute_blade of this AdapterUnit. :return: The compute_blade of this AdapterUnit. - :rtype: MoMoRef + :rtype: ComputeBladeRef """ return self._compute_blade @@ -630,7 +658,7 @@ def compute_blade(self, compute_blade): Sets the compute_blade of this AdapterUnit. :param compute_blade: The compute_blade of this AdapterUnit. - :type: MoMoRef + :type: ComputeBladeRef """ self._compute_blade = compute_blade @@ -641,7 +669,7 @@ def compute_rack_unit(self): Gets the compute_rack_unit of this AdapterUnit. :return: The compute_rack_unit of this AdapterUnit. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._compute_rack_unit @@ -651,7 +679,7 @@ def compute_rack_unit(self, compute_rack_unit): Sets the compute_rack_unit of this AdapterUnit. :param compute_rack_unit: The compute_rack_unit of this AdapterUnit. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._compute_rack_unit = compute_rack_unit @@ -662,7 +690,7 @@ def controller(self): Gets the controller of this AdapterUnit. :return: The controller of this AdapterUnit. - :rtype: MoMoRef + :rtype: ManagementControllerRef """ return self._controller @@ -672,7 +700,7 @@ def controller(self, controller): Sets the controller of this AdapterUnit. :param controller: The controller of this AdapterUnit. - :type: MoMoRef + :type: ManagementControllerRef """ self._controller = controller @@ -683,7 +711,7 @@ def ext_eth_ifs(self): Gets the ext_eth_ifs of this AdapterUnit. :return: The ext_eth_ifs of this AdapterUnit. - :rtype: list[MoMoRef] + :rtype: list[AdapterExtEthInterfaceRef] """ return self._ext_eth_ifs @@ -693,7 +721,7 @@ def ext_eth_ifs(self, ext_eth_ifs): Sets the ext_eth_ifs of this AdapterUnit. :param ext_eth_ifs: The ext_eth_ifs of this AdapterUnit. - :type: list[MoMoRef] + :type: list[AdapterExtEthInterfaceRef] """ self._ext_eth_ifs = ext_eth_ifs @@ -704,7 +732,7 @@ def host_eth_ifs(self): Gets the host_eth_ifs of this AdapterUnit. :return: The host_eth_ifs of this AdapterUnit. - :rtype: list[MoMoRef] + :rtype: list[AdapterHostEthInterfaceRef] """ return self._host_eth_ifs @@ -714,7 +742,7 @@ def host_eth_ifs(self, host_eth_ifs): Sets the host_eth_ifs of this AdapterUnit. :param host_eth_ifs: The host_eth_ifs of this AdapterUnit. - :type: list[MoMoRef] + :type: list[AdapterHostEthInterfaceRef] """ self._host_eth_ifs = host_eth_ifs @@ -725,7 +753,7 @@ def host_fc_ifs(self): Gets the host_fc_ifs of this AdapterUnit. :return: The host_fc_ifs of this AdapterUnit. - :rtype: list[MoMoRef] + :rtype: list[AdapterHostFcInterfaceRef] """ return self._host_fc_ifs @@ -735,7 +763,7 @@ def host_fc_ifs(self, host_fc_ifs): Sets the host_fc_ifs of this AdapterUnit. :param host_fc_ifs: The host_fc_ifs of this AdapterUnit. - :type: list[MoMoRef] + :type: list[AdapterHostFcInterfaceRef] """ self._host_fc_ifs = host_fc_ifs @@ -746,7 +774,7 @@ def host_iscsi_ifs(self): Gets the host_iscsi_ifs of this AdapterUnit. :return: The host_iscsi_ifs of this AdapterUnit. - :rtype: list[MoMoRef] + :rtype: list[AdapterHostIscsiInterfaceRef] """ return self._host_iscsi_ifs @@ -756,7 +784,7 @@ def host_iscsi_ifs(self, host_iscsi_ifs): Sets the host_iscsi_ifs of this AdapterUnit. :param host_iscsi_ifs: The host_iscsi_ifs of this AdapterUnit. - :type: list[MoMoRef] + :type: list[AdapterHostIscsiInterfaceRef] """ self._host_iscsi_ifs = host_iscsi_ifs @@ -914,7 +942,7 @@ def registered_device(self): Gets the registered_device of this AdapterUnit. :return: The registered_device of this AdapterUnit. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -924,7 +952,7 @@ def registered_device(self, registered_device): Sets the registered_device of this AdapterUnit. :param registered_device: The registered_device of this AdapterUnit. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/adapter_unit_list.py b/intersight/models/adapter_unit_list.py index 20828cb1..ccebc98a 100644 --- a/intersight/models/adapter_unit_list.py +++ b/intersight/models/adapter_unit_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/adapter_unit_ref.py b/intersight/models/adapter_unit_ref.py new file mode 100644 index 00000000..9562374b --- /dev/null +++ b/intersight/models/adapter_unit_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AdapterUnitRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AdapterUnitRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AdapterUnitRef. + + :return: The moid of this AdapterUnitRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AdapterUnitRef. + + :param moid: The moid of this AdapterUnitRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AdapterUnitRef. + + :return: The object_type of this AdapterUnitRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AdapterUnitRef. + + :param object_type: The object_type of this AdapterUnitRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AdapterUnitRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/asset_cluster_member.py b/intersight/models/asset_cluster_member.py new file mode 100644 index 00000000..56e690b5 --- /dev/null +++ b/intersight/models/asset_cluster_member.py @@ -0,0 +1,723 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AssetClusterMember(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'api_version': 'int', + 'app_partition_number': 'int', + 'connection_id': 'str', + 'connection_reason': 'str', + 'connection_status': 'str', + 'connection_status_last_change_time': 'datetime', + 'connector_version': 'str', + 'device_external_ip_address': 'str', + 'proxy_app': 'str', + 'device': 'AssetDeviceRegistrationRef', + 'leadership': 'str', + 'member_identity': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'api_version': 'ApiVersion', + 'app_partition_number': 'AppPartitionNumber', + 'connection_id': 'ConnectionId', + 'connection_reason': 'ConnectionReason', + 'connection_status': 'ConnectionStatus', + 'connection_status_last_change_time': 'ConnectionStatusLastChangeTime', + 'connector_version': 'ConnectorVersion', + 'device_external_ip_address': 'DeviceExternalIpAddress', + 'proxy_app': 'ProxyApp', + 'device': 'Device', + 'leadership': 'Leadership', + 'member_identity': 'MemberIdentity' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, api_version=None, app_partition_number=None, connection_id=None, connection_reason=None, connection_status='null', connection_status_last_change_time=None, connector_version=None, device_external_ip_address=None, proxy_app=None, device=None, leadership='Unknown', member_identity=None): + """ + AssetClusterMember - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._api_version = None + self._app_partition_number = None + self._connection_id = None + self._connection_reason = None + self._connection_status = None + self._connection_status_last_change_time = None + self._connector_version = None + self._device_external_ip_address = None + self._proxy_app = None + self._device = None + self._leadership = None + self._member_identity = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if api_version is not None: + self.api_version = api_version + if app_partition_number is not None: + self.app_partition_number = app_partition_number + if connection_id is not None: + self.connection_id = connection_id + if connection_reason is not None: + self.connection_reason = connection_reason + if connection_status is not None: + self.connection_status = connection_status + if connection_status_last_change_time is not None: + self.connection_status_last_change_time = connection_status_last_change_time + if connector_version is not None: + self.connector_version = connector_version + if device_external_ip_address is not None: + self.device_external_ip_address = device_external_ip_address + if proxy_app is not None: + self.proxy_app = proxy_app + if device is not None: + self.device = device + if leadership is not None: + self.leadership = leadership + if member_identity is not None: + self.member_identity = member_identity + + @property + def account_moid(self): + """ + Gets the account_moid of this AssetClusterMember. + The Account ID for this managed object. + + :return: The account_moid of this AssetClusterMember. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this AssetClusterMember. + The Account ID for this managed object. + + :param account_moid: The account_moid of this AssetClusterMember. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this AssetClusterMember. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this AssetClusterMember. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this AssetClusterMember. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this AssetClusterMember. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this AssetClusterMember. + The time when this managed object was created. + + :return: The create_time of this AssetClusterMember. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this AssetClusterMember. + The time when this managed object was created. + + :param create_time: The create_time of this AssetClusterMember. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this AssetClusterMember. + The time when this managed object was last modified. + + :return: The mod_time of this AssetClusterMember. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this AssetClusterMember. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this AssetClusterMember. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this AssetClusterMember. + A unique identifier of this Managed Object instance. + + :return: The moid of this AssetClusterMember. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AssetClusterMember. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this AssetClusterMember. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AssetClusterMember. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this AssetClusterMember. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AssetClusterMember. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this AssetClusterMember. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this AssetClusterMember. + An array of owners which represent effective ownership of this object. + + :return: The owners of this AssetClusterMember. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this AssetClusterMember. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this AssetClusterMember. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this AssetClusterMember. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this AssetClusterMember. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this AssetClusterMember. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this AssetClusterMember. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this AssetClusterMember. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this AssetClusterMember. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this AssetClusterMember. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this AssetClusterMember. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this AssetClusterMember. + The versioning info for this managed object + + :return: The version_context of this AssetClusterMember. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this AssetClusterMember. + The versioning info for this managed object + + :param version_context: The version_context of this AssetClusterMember. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def api_version(self): + """ + Gets the api_version of this AssetClusterMember. + The version of the connector api. Describes the capability of the connector's framework. If the version is lower than the current minimum supported version defined in the service managing the connection, the device connector will be connected with limited capabilities until the device connector is upgraded to a fully supported version. For example if a device connector that was released without delta inventory capabilities registers and connects to Intersight, inventory collection may be disabled until it has been upgraded. + + :return: The api_version of this AssetClusterMember. + :rtype: int + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this AssetClusterMember. + The version of the connector api. Describes the capability of the connector's framework. If the version is lower than the current minimum supported version defined in the service managing the connection, the device connector will be connected with limited capabilities until the device connector is upgraded to a fully supported version. For example if a device connector that was released without delta inventory capabilities registers and connects to Intersight, inventory collection may be disabled until it has been upgraded. + + :param api_version: The api_version of this AssetClusterMember. + :type: int + """ + + self._api_version = api_version + + @property + def app_partition_number(self): + """ + Gets the app_partition_number of this AssetClusterMember. + The partition number corresponding to the instance of the Proxy App which is managing the web-socket to the device connector. + + :return: The app_partition_number of this AssetClusterMember. + :rtype: int + """ + return self._app_partition_number + + @app_partition_number.setter + def app_partition_number(self, app_partition_number): + """ + Sets the app_partition_number of this AssetClusterMember. + The partition number corresponding to the instance of the Proxy App which is managing the web-socket to the device connector. + + :param app_partition_number: The app_partition_number of this AssetClusterMember. + :type: int + """ + + self._app_partition_number = app_partition_number + + @property + def connection_id(self): + """ + Gets the connection_id of this AssetClusterMember. + The unique identifier for the current connection. The identifier persists across network connectivity loss and is reset on device connector process restart or platform administrator toggle of the Intersight connectivity. The connectionId can be used by services that need to interact with stateful plugins running in the device connector process. For example if a service schedules an inventory in a devices job scheduler plugin at registration it is not necessary to reschedule the job if the device loses network connectivity due to an Intersight service upgrade or intermittent network issues in the devices datacenter. + + :return: The connection_id of this AssetClusterMember. + :rtype: str + """ + return self._connection_id + + @connection_id.setter + def connection_id(self, connection_id): + """ + Sets the connection_id of this AssetClusterMember. + The unique identifier for the current connection. The identifier persists across network connectivity loss and is reset on device connector process restart or platform administrator toggle of the Intersight connectivity. The connectionId can be used by services that need to interact with stateful plugins running in the device connector process. For example if a service schedules an inventory in a devices job scheduler plugin at registration it is not necessary to reschedule the job if the device loses network connectivity due to an Intersight service upgrade or intermittent network issues in the devices datacenter. + + :param connection_id: The connection_id of this AssetClusterMember. + :type: str + """ + + self._connection_id = connection_id + + @property + def connection_reason(self): + """ + Gets the connection_reason of this AssetClusterMember. + If 'connectionStatus' is not equal to Connected, connectionReason provides further details about why the device is not connected with the cloud. + + :return: The connection_reason of this AssetClusterMember. + :rtype: str + """ + return self._connection_reason + + @connection_reason.setter + def connection_reason(self, connection_reason): + """ + Sets the connection_reason of this AssetClusterMember. + If 'connectionStatus' is not equal to Connected, connectionReason provides further details about why the device is not connected with the cloud. + + :param connection_reason: The connection_reason of this AssetClusterMember. + :type: str + """ + + self._connection_reason = connection_reason + + @property + def connection_status(self): + """ + Gets the connection_status of this AssetClusterMember. + The status of the persistent connection between the device connector and Intersight. + + :return: The connection_status of this AssetClusterMember. + :rtype: str + """ + return self._connection_status + + @connection_status.setter + def connection_status(self, connection_status): + """ + Sets the connection_status of this AssetClusterMember. + The status of the persistent connection between the device connector and Intersight. + + :param connection_status: The connection_status of this AssetClusterMember. + :type: str + """ + allowed_values = ["", "Connected", "NotConnected"] + if connection_status not in allowed_values: + raise ValueError( + "Invalid value for `connection_status` ({0}), must be one of {1}" + .format(connection_status, allowed_values) + ) + + self._connection_status = connection_status + + @property + def connection_status_last_change_time(self): + """ + Gets the connection_status_last_change_time of this AssetClusterMember. + The last time at which the 'connectionStatus' property value changed. If connectionStatus is Connected, this time can be interpreted as the starting time since which a persistent connection has been maintained between the cloud and device connector. If connectionStatus is NotConnected, this time can be interpreted as the last time the device connector was connected with the cloud. + + :return: The connection_status_last_change_time of this AssetClusterMember. + :rtype: datetime + """ + return self._connection_status_last_change_time + + @connection_status_last_change_time.setter + def connection_status_last_change_time(self, connection_status_last_change_time): + """ + Sets the connection_status_last_change_time of this AssetClusterMember. + The last time at which the 'connectionStatus' property value changed. If connectionStatus is Connected, this time can be interpreted as the starting time since which a persistent connection has been maintained between the cloud and device connector. If connectionStatus is NotConnected, this time can be interpreted as the last time the device connector was connected with the cloud. + + :param connection_status_last_change_time: The connection_status_last_change_time of this AssetClusterMember. + :type: datetime + """ + + self._connection_status_last_change_time = connection_status_last_change_time + + @property + def connector_version(self): + """ + Gets the connector_version of this AssetClusterMember. + The version of the device connector running on the managed device. + + :return: The connector_version of this AssetClusterMember. + :rtype: str + """ + return self._connector_version + + @connector_version.setter + def connector_version(self, connector_version): + """ + Sets the connector_version of this AssetClusterMember. + The version of the device connector running on the managed device. + + :param connector_version: The connector_version of this AssetClusterMember. + :type: str + """ + + self._connector_version = connector_version + + @property + def device_external_ip_address(self): + """ + Gets the device_external_ip_address of this AssetClusterMember. + The IP Address of the managed device as seen from the cloud at the time of registration. Eg this could be the IP of the managed device's interface which has a route to the internet or a NAT IP when the managed device is deployed in a private network. + + :return: The device_external_ip_address of this AssetClusterMember. + :rtype: str + """ + return self._device_external_ip_address + + @device_external_ip_address.setter + def device_external_ip_address(self, device_external_ip_address): + """ + Sets the device_external_ip_address of this AssetClusterMember. + The IP Address of the managed device as seen from the cloud at the time of registration. Eg this could be the IP of the managed device's interface which has a route to the internet or a NAT IP when the managed device is deployed in a private network. + + :param device_external_ip_address: The device_external_ip_address of this AssetClusterMember. + :type: str + """ + + self._device_external_ip_address = device_external_ip_address + + @property + def proxy_app(self): + """ + Gets the proxy_app of this AssetClusterMember. + The name of the app which will proxy the messages to the device connector. + + :return: The proxy_app of this AssetClusterMember. + :rtype: str + """ + return self._proxy_app + + @proxy_app.setter + def proxy_app(self, proxy_app): + """ + Sets the proxy_app of this AssetClusterMember. + The name of the app which will proxy the messages to the device connector. + + :param proxy_app: The proxy_app of this AssetClusterMember. + :type: str + """ + + self._proxy_app = proxy_app + + @property + def device(self): + """ + Gets the device of this AssetClusterMember. + + :return: The device of this AssetClusterMember. + :rtype: AssetDeviceRegistrationRef + """ + return self._device + + @device.setter + def device(self, device): + """ + Sets the device of this AssetClusterMember. + + :param device: The device of this AssetClusterMember. + :type: AssetDeviceRegistrationRef + """ + + self._device = device + + @property + def leadership(self): + """ + Gets the leadership of this AssetClusterMember. + The current leadershipstate of this member. Updated by the device connector on failover or leadership change. If a member is elected as Primary within the cluster this connection will be the same as the DeviceRegistration connection. E.g a message addressed to the DeviceRegistration will be forwarded to the ClusterMember connection. + + :return: The leadership of this AssetClusterMember. + :rtype: str + """ + return self._leadership + + @leadership.setter + def leadership(self, leadership): + """ + Sets the leadership of this AssetClusterMember. + The current leadershipstate of this member. Updated by the device connector on failover or leadership change. If a member is elected as Primary within the cluster this connection will be the same as the DeviceRegistration connection. E.g a message addressed to the DeviceRegistration will be forwarded to the ClusterMember connection. + + :param leadership: The leadership of this AssetClusterMember. + :type: str + """ + allowed_values = ["Unknown", "Primary", "Secondary"] + if leadership not in allowed_values: + raise ValueError( + "Invalid value for `leadership` ({0}), must be one of {1}" + .format(leadership, allowed_values) + ) + + self._leadership = leadership + + @property + def member_identity(self): + """ + Gets the member_identity of this AssetClusterMember. + The unique identity of the member within the cluster. The identity is retrieved from the platform and reported by the device connector at connection time. + + :return: The member_identity of this AssetClusterMember. + :rtype: str + """ + return self._member_identity + + @member_identity.setter + def member_identity(self, member_identity): + """ + Sets the member_identity of this AssetClusterMember. + The unique identity of the member within the cluster. The identity is retrieved from the platform and reported by the device connector at connection time. + + :param member_identity: The member_identity of this AssetClusterMember. + :type: str + """ + + self._member_identity = member_identity + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AssetClusterMember): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/asset_cluster_member_list.py b/intersight/models/asset_cluster_member_list.py new file mode 100644 index 00000000..f27637bb --- /dev/null +++ b/intersight/models/asset_cluster_member_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AssetClusterMemberList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[AssetClusterMember]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + AssetClusterMemberList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this AssetClusterMemberList. + The number of assetClusterMembers matching your request in total for all pages. + + :return: The count of this AssetClusterMemberList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this AssetClusterMemberList. + The number of assetClusterMembers matching your request in total for all pages. + + :param count: The count of this AssetClusterMemberList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this AssetClusterMemberList. + The array of assetClusterMembers matching your request. + + :return: The results of this AssetClusterMemberList. + :rtype: list[AssetClusterMember] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this AssetClusterMemberList. + The array of assetClusterMembers matching your request. + + :param results: The results of this AssetClusterMemberList. + :type: list[AssetClusterMember] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AssetClusterMemberList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/asset_cluster_member_ref.py b/intersight/models/asset_cluster_member_ref.py new file mode 100644 index 00000000..7a3796f2 --- /dev/null +++ b/intersight/models/asset_cluster_member_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AssetClusterMemberRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AssetClusterMemberRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AssetClusterMemberRef. + + :return: The moid of this AssetClusterMemberRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AssetClusterMemberRef. + + :param moid: The moid of this AssetClusterMemberRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AssetClusterMemberRef. + + :return: The object_type of this AssetClusterMemberRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AssetClusterMemberRef. + + :param object_type: The object_type of this AssetClusterMemberRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AssetClusterMemberRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/asset_connection_control_message_ref.py b/intersight/models/asset_connection_control_message_ref.py new file mode 100644 index 00000000..d1dcf465 --- /dev/null +++ b/intersight/models/asset_connection_control_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AssetConnectionControlMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AssetConnectionControlMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AssetConnectionControlMessageRef. + + :return: The moid of this AssetConnectionControlMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AssetConnectionControlMessageRef. + + :param moid: The moid of this AssetConnectionControlMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AssetConnectionControlMessageRef. + + :return: The object_type of this AssetConnectionControlMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AssetConnectionControlMessageRef. + + :param object_type: The object_type of this AssetConnectionControlMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AssetConnectionControlMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/asset_device_claim.py b/intersight/models/asset_device_claim.py index 9d08c9d6..b60b9266 100644 --- a/intersight/models/asset_device_claim.py +++ b/intersight/models/asset_device_claim.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,16 +32,17 @@ class AssetDeviceClaim(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', - 'device': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', + 'device': 'AssetDeviceRegistrationRef', 'security_token': 'str', 'serial_number': 'str' } @@ -56,13 +57,14 @@ class AssetDeviceClaim(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account': 'Account', 'device': 'Device', 'security_token': 'SecurityToken', 'serial_number': 'SerialNumber' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, device=None, security_token=None, serial_number=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, device=None, security_token=None, serial_number=None): """ AssetDeviceClaim - a model defined in Swagger """ @@ -76,6 +78,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account = None self._device = None self._security_token = None @@ -99,6 +102,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account is not None: self.account = account if device is not None: @@ -138,7 +143,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this AssetDeviceClaim. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +154,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this AssetDeviceClaim. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +281,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this AssetDeviceClaim. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +292,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this AssetDeviceClaim. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -296,7 +301,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this AssetDeviceClaim. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this AssetDeviceClaim. :rtype: list[MoTag] @@ -307,7 +312,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this AssetDeviceClaim. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this AssetDeviceClaim. :type: list[MoTag] @@ -315,13 +320,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this AssetDeviceClaim. + The versioning info for this managed object + + :return: The version_context of this AssetDeviceClaim. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this AssetDeviceClaim. + The versioning info for this managed object + + :param version_context: The version_context of this AssetDeviceClaim. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def account(self): """ Gets the account of this AssetDeviceClaim. :return: The account of this AssetDeviceClaim. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -331,7 +359,7 @@ def account(self, account): Sets the account of this AssetDeviceClaim. :param account: The account of this AssetDeviceClaim. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -342,7 +370,7 @@ def device(self): Gets the device of this AssetDeviceClaim. :return: The device of this AssetDeviceClaim. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._device @@ -352,7 +380,7 @@ def device(self, device): Sets the device of this AssetDeviceClaim. :param device: The device of this AssetDeviceClaim. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._device = device @@ -361,6 +389,7 @@ def device(self, device): def security_token(self): """ Gets the security_token of this AssetDeviceClaim. + Obtained from the device connector management UI or API (REST endpoint /connector/SecurityTokens). :return: The security_token of this AssetDeviceClaim. :rtype: str @@ -371,6 +400,7 @@ def security_token(self): def security_token(self, security_token): """ Sets the security_token of this AssetDeviceClaim. + Obtained from the device connector management UI or API (REST endpoint /connector/SecurityTokens). :param security_token: The security_token of this AssetDeviceClaim. :type: str @@ -382,6 +412,7 @@ def security_token(self, security_token): def serial_number(self): """ Gets the serial_number of this AssetDeviceClaim. + Obtained from the device connector management UI or API (REST endpoint /connector/DeviceIdentifiers). :return: The serial_number of this AssetDeviceClaim. :rtype: str @@ -392,6 +423,7 @@ def serial_number(self): def serial_number(self, serial_number): """ Sets the serial_number of this AssetDeviceClaim. + Obtained from the device connector management UI or API (REST endpoint /connector/DeviceIdentifiers). :param serial_number: The serial_number of this AssetDeviceClaim. :type: str diff --git a/intersight/models/asset_device_claim_ref.py b/intersight/models/asset_device_claim_ref.py new file mode 100644 index 00000000..dd073e87 --- /dev/null +++ b/intersight/models/asset_device_claim_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AssetDeviceClaimRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AssetDeviceClaimRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AssetDeviceClaimRef. + + :return: The moid of this AssetDeviceClaimRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AssetDeviceClaimRef. + + :param moid: The moid of this AssetDeviceClaimRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AssetDeviceClaimRef. + + :return: The object_type of this AssetDeviceClaimRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AssetDeviceClaimRef. + + :param object_type: The object_type of this AssetDeviceClaimRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AssetDeviceClaimRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/asset_device_configuration.py b/intersight/models/asset_device_configuration.py new file mode 100644 index 00000000..92d51633 --- /dev/null +++ b/intersight/models/asset_device_configuration.py @@ -0,0 +1,459 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AssetDeviceConfiguration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'device': 'AssetDeviceRegistrationRef', + 'local_configuration_locked': 'bool', + 'log_level': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'device': 'Device', + 'local_configuration_locked': 'LocalConfigurationLocked', + 'log_level': 'LogLevel' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device=None, local_configuration_locked=None, log_level=None): + """ + AssetDeviceConfiguration - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._device = None + self._local_configuration_locked = None + self._log_level = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if device is not None: + self.device = device + if local_configuration_locked is not None: + self.local_configuration_locked = local_configuration_locked + if log_level is not None: + self.log_level = log_level + + @property + def account_moid(self): + """ + Gets the account_moid of this AssetDeviceConfiguration. + The Account ID for this managed object. + + :return: The account_moid of this AssetDeviceConfiguration. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this AssetDeviceConfiguration. + The Account ID for this managed object. + + :param account_moid: The account_moid of this AssetDeviceConfiguration. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this AssetDeviceConfiguration. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this AssetDeviceConfiguration. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this AssetDeviceConfiguration. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this AssetDeviceConfiguration. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this AssetDeviceConfiguration. + The time when this managed object was created. + + :return: The create_time of this AssetDeviceConfiguration. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this AssetDeviceConfiguration. + The time when this managed object was created. + + :param create_time: The create_time of this AssetDeviceConfiguration. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this AssetDeviceConfiguration. + The time when this managed object was last modified. + + :return: The mod_time of this AssetDeviceConfiguration. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this AssetDeviceConfiguration. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this AssetDeviceConfiguration. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this AssetDeviceConfiguration. + A unique identifier of this Managed Object instance. + + :return: The moid of this AssetDeviceConfiguration. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AssetDeviceConfiguration. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this AssetDeviceConfiguration. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AssetDeviceConfiguration. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this AssetDeviceConfiguration. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AssetDeviceConfiguration. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this AssetDeviceConfiguration. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this AssetDeviceConfiguration. + An array of owners which represent effective ownership of this object. + + :return: The owners of this AssetDeviceConfiguration. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this AssetDeviceConfiguration. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this AssetDeviceConfiguration. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this AssetDeviceConfiguration. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this AssetDeviceConfiguration. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this AssetDeviceConfiguration. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this AssetDeviceConfiguration. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this AssetDeviceConfiguration. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this AssetDeviceConfiguration. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this AssetDeviceConfiguration. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this AssetDeviceConfiguration. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this AssetDeviceConfiguration. + The versioning info for this managed object + + :return: The version_context of this AssetDeviceConfiguration. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this AssetDeviceConfiguration. + The versioning info for this managed object + + :param version_context: The version_context of this AssetDeviceConfiguration. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def device(self): + """ + Gets the device of this AssetDeviceConfiguration. + + :return: The device of this AssetDeviceConfiguration. + :rtype: AssetDeviceRegistrationRef + """ + return self._device + + @device.setter + def device(self, device): + """ + Sets the device of this AssetDeviceConfiguration. + + :param device: The device of this AssetDeviceConfiguration. + :type: AssetDeviceRegistrationRef + """ + + self._device = device + + @property + def local_configuration_locked(self): + """ + Gets the local_configuration_locked of this AssetDeviceConfiguration. + Specifies whether configuration through the platforms local management interface has been disabled, with only configuration through the Intersight service enabled + + :return: The local_configuration_locked of this AssetDeviceConfiguration. + :rtype: bool + """ + return self._local_configuration_locked + + @local_configuration_locked.setter + def local_configuration_locked(self, local_configuration_locked): + """ + Sets the local_configuration_locked of this AssetDeviceConfiguration. + Specifies whether configuration through the platforms local management interface has been disabled, with only configuration through the Intersight service enabled + + :param local_configuration_locked: The local_configuration_locked of this AssetDeviceConfiguration. + :type: bool + """ + + self._local_configuration_locked = local_configuration_locked + + @property + def log_level(self): + """ + Gets the log_level of this AssetDeviceConfiguration. + The log level of the device connector service. + + :return: The log_level of this AssetDeviceConfiguration. + :rtype: str + """ + return self._log_level + + @log_level.setter + def log_level(self, log_level): + """ + Sets the log_level of this AssetDeviceConfiguration. + The log level of the device connector service. + + :param log_level: The log_level of this AssetDeviceConfiguration. + :type: str + """ + + self._log_level = log_level + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AssetDeviceConfiguration): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/asset_device_configuration_list.py b/intersight/models/asset_device_configuration_list.py new file mode 100644 index 00000000..80ef0e52 --- /dev/null +++ b/intersight/models/asset_device_configuration_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AssetDeviceConfigurationList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[AssetDeviceConfiguration]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + AssetDeviceConfigurationList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this AssetDeviceConfigurationList. + The number of assetDeviceConfigurations matching your request in total for all pages. + + :return: The count of this AssetDeviceConfigurationList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this AssetDeviceConfigurationList. + The number of assetDeviceConfigurations matching your request in total for all pages. + + :param count: The count of this AssetDeviceConfigurationList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this AssetDeviceConfigurationList. + The array of assetDeviceConfigurations matching your request. + + :return: The results of this AssetDeviceConfigurationList. + :rtype: list[AssetDeviceConfiguration] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this AssetDeviceConfigurationList. + The array of assetDeviceConfigurations matching your request. + + :param results: The results of this AssetDeviceConfigurationList. + :type: list[AssetDeviceConfiguration] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AssetDeviceConfigurationList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/asset_device_configuration_ref.py b/intersight/models/asset_device_configuration_ref.py new file mode 100644 index 00000000..1e06248a --- /dev/null +++ b/intersight/models/asset_device_configuration_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AssetDeviceConfigurationRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AssetDeviceConfigurationRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AssetDeviceConfigurationRef. + + :return: The moid of this AssetDeviceConfigurationRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AssetDeviceConfigurationRef. + + :param moid: The moid of this AssetDeviceConfigurationRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AssetDeviceConfigurationRef. + + :return: The object_type of this AssetDeviceConfigurationRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AssetDeviceConfigurationRef. + + :param object_type: The object_type of this AssetDeviceConfigurationRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AssetDeviceConfigurationRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/asset_device_connection.py b/intersight/models/asset_device_connection.py new file mode 100644 index 00000000..3a570315 --- /dev/null +++ b/intersight/models/asset_device_connection.py @@ -0,0 +1,635 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AssetDeviceConnection(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'api_version': 'int', + 'app_partition_number': 'int', + 'connection_id': 'str', + 'connection_reason': 'str', + 'connection_status': 'str', + 'connection_status_last_change_time': 'datetime', + 'connector_version': 'str', + 'device_external_ip_address': 'str', + 'proxy_app': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'api_version': 'ApiVersion', + 'app_partition_number': 'AppPartitionNumber', + 'connection_id': 'ConnectionId', + 'connection_reason': 'ConnectionReason', + 'connection_status': 'ConnectionStatus', + 'connection_status_last_change_time': 'ConnectionStatusLastChangeTime', + 'connector_version': 'ConnectorVersion', + 'device_external_ip_address': 'DeviceExternalIpAddress', + 'proxy_app': 'ProxyApp' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, api_version=None, app_partition_number=None, connection_id=None, connection_reason=None, connection_status='null', connection_status_last_change_time=None, connector_version=None, device_external_ip_address=None, proxy_app=None): + """ + AssetDeviceConnection - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._api_version = None + self._app_partition_number = None + self._connection_id = None + self._connection_reason = None + self._connection_status = None + self._connection_status_last_change_time = None + self._connector_version = None + self._device_external_ip_address = None + self._proxy_app = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if api_version is not None: + self.api_version = api_version + if app_partition_number is not None: + self.app_partition_number = app_partition_number + if connection_id is not None: + self.connection_id = connection_id + if connection_reason is not None: + self.connection_reason = connection_reason + if connection_status is not None: + self.connection_status = connection_status + if connection_status_last_change_time is not None: + self.connection_status_last_change_time = connection_status_last_change_time + if connector_version is not None: + self.connector_version = connector_version + if device_external_ip_address is not None: + self.device_external_ip_address = device_external_ip_address + if proxy_app is not None: + self.proxy_app = proxy_app + + @property + def account_moid(self): + """ + Gets the account_moid of this AssetDeviceConnection. + The Account ID for this managed object. + + :return: The account_moid of this AssetDeviceConnection. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this AssetDeviceConnection. + The Account ID for this managed object. + + :param account_moid: The account_moid of this AssetDeviceConnection. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this AssetDeviceConnection. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this AssetDeviceConnection. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this AssetDeviceConnection. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this AssetDeviceConnection. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this AssetDeviceConnection. + The time when this managed object was created. + + :return: The create_time of this AssetDeviceConnection. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this AssetDeviceConnection. + The time when this managed object was created. + + :param create_time: The create_time of this AssetDeviceConnection. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this AssetDeviceConnection. + The time when this managed object was last modified. + + :return: The mod_time of this AssetDeviceConnection. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this AssetDeviceConnection. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this AssetDeviceConnection. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this AssetDeviceConnection. + A unique identifier of this Managed Object instance. + + :return: The moid of this AssetDeviceConnection. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AssetDeviceConnection. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this AssetDeviceConnection. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AssetDeviceConnection. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this AssetDeviceConnection. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AssetDeviceConnection. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this AssetDeviceConnection. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this AssetDeviceConnection. + An array of owners which represent effective ownership of this object. + + :return: The owners of this AssetDeviceConnection. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this AssetDeviceConnection. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this AssetDeviceConnection. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this AssetDeviceConnection. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this AssetDeviceConnection. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this AssetDeviceConnection. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this AssetDeviceConnection. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this AssetDeviceConnection. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this AssetDeviceConnection. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this AssetDeviceConnection. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this AssetDeviceConnection. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this AssetDeviceConnection. + The versioning info for this managed object + + :return: The version_context of this AssetDeviceConnection. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this AssetDeviceConnection. + The versioning info for this managed object + + :param version_context: The version_context of this AssetDeviceConnection. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def api_version(self): + """ + Gets the api_version of this AssetDeviceConnection. + The version of the connector api. Describes the capability of the connector's framework. If the version is lower than the current minimum supported version defined in the service managing the connection, the device connector will be connected with limited capabilities until the device connector is upgraded to a fully supported version. For example if a device connector that was released without delta inventory capabilities registers and connects to Intersight, inventory collection may be disabled until it has been upgraded. + + :return: The api_version of this AssetDeviceConnection. + :rtype: int + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + Sets the api_version of this AssetDeviceConnection. + The version of the connector api. Describes the capability of the connector's framework. If the version is lower than the current minimum supported version defined in the service managing the connection, the device connector will be connected with limited capabilities until the device connector is upgraded to a fully supported version. For example if a device connector that was released without delta inventory capabilities registers and connects to Intersight, inventory collection may be disabled until it has been upgraded. + + :param api_version: The api_version of this AssetDeviceConnection. + :type: int + """ + + self._api_version = api_version + + @property + def app_partition_number(self): + """ + Gets the app_partition_number of this AssetDeviceConnection. + The partition number corresponding to the instance of the Proxy App which is managing the web-socket to the device connector. + + :return: The app_partition_number of this AssetDeviceConnection. + :rtype: int + """ + return self._app_partition_number + + @app_partition_number.setter + def app_partition_number(self, app_partition_number): + """ + Sets the app_partition_number of this AssetDeviceConnection. + The partition number corresponding to the instance of the Proxy App which is managing the web-socket to the device connector. + + :param app_partition_number: The app_partition_number of this AssetDeviceConnection. + :type: int + """ + + self._app_partition_number = app_partition_number + + @property + def connection_id(self): + """ + Gets the connection_id of this AssetDeviceConnection. + The unique identifier for the current connection. The identifier persists across network connectivity loss and is reset on device connector process restart or platform administrator toggle of the Intersight connectivity. The connectionId can be used by services that need to interact with stateful plugins running in the device connector process. For example if a service schedules an inventory in a devices job scheduler plugin at registration it is not necessary to reschedule the job if the device loses network connectivity due to an Intersight service upgrade or intermittent network issues in the devices datacenter. + + :return: The connection_id of this AssetDeviceConnection. + :rtype: str + """ + return self._connection_id + + @connection_id.setter + def connection_id(self, connection_id): + """ + Sets the connection_id of this AssetDeviceConnection. + The unique identifier for the current connection. The identifier persists across network connectivity loss and is reset on device connector process restart or platform administrator toggle of the Intersight connectivity. The connectionId can be used by services that need to interact with stateful plugins running in the device connector process. For example if a service schedules an inventory in a devices job scheduler plugin at registration it is not necessary to reschedule the job if the device loses network connectivity due to an Intersight service upgrade or intermittent network issues in the devices datacenter. + + :param connection_id: The connection_id of this AssetDeviceConnection. + :type: str + """ + + self._connection_id = connection_id + + @property + def connection_reason(self): + """ + Gets the connection_reason of this AssetDeviceConnection. + If 'connectionStatus' is not equal to Connected, connectionReason provides further details about why the device is not connected with the cloud. + + :return: The connection_reason of this AssetDeviceConnection. + :rtype: str + """ + return self._connection_reason + + @connection_reason.setter + def connection_reason(self, connection_reason): + """ + Sets the connection_reason of this AssetDeviceConnection. + If 'connectionStatus' is not equal to Connected, connectionReason provides further details about why the device is not connected with the cloud. + + :param connection_reason: The connection_reason of this AssetDeviceConnection. + :type: str + """ + + self._connection_reason = connection_reason + + @property + def connection_status(self): + """ + Gets the connection_status of this AssetDeviceConnection. + The status of the persistent connection between the device connector and Intersight. + + :return: The connection_status of this AssetDeviceConnection. + :rtype: str + """ + return self._connection_status + + @connection_status.setter + def connection_status(self, connection_status): + """ + Sets the connection_status of this AssetDeviceConnection. + The status of the persistent connection between the device connector and Intersight. + + :param connection_status: The connection_status of this AssetDeviceConnection. + :type: str + """ + allowed_values = ["", "Connected", "NotConnected"] + if connection_status not in allowed_values: + raise ValueError( + "Invalid value for `connection_status` ({0}), must be one of {1}" + .format(connection_status, allowed_values) + ) + + self._connection_status = connection_status + + @property + def connection_status_last_change_time(self): + """ + Gets the connection_status_last_change_time of this AssetDeviceConnection. + The last time at which the 'connectionStatus' property value changed. If connectionStatus is Connected, this time can be interpreted as the starting time since which a persistent connection has been maintained between the cloud and device connector. If connectionStatus is NotConnected, this time can be interpreted as the last time the device connector was connected with the cloud. + + :return: The connection_status_last_change_time of this AssetDeviceConnection. + :rtype: datetime + """ + return self._connection_status_last_change_time + + @connection_status_last_change_time.setter + def connection_status_last_change_time(self, connection_status_last_change_time): + """ + Sets the connection_status_last_change_time of this AssetDeviceConnection. + The last time at which the 'connectionStatus' property value changed. If connectionStatus is Connected, this time can be interpreted as the starting time since which a persistent connection has been maintained between the cloud and device connector. If connectionStatus is NotConnected, this time can be interpreted as the last time the device connector was connected with the cloud. + + :param connection_status_last_change_time: The connection_status_last_change_time of this AssetDeviceConnection. + :type: datetime + """ + + self._connection_status_last_change_time = connection_status_last_change_time + + @property + def connector_version(self): + """ + Gets the connector_version of this AssetDeviceConnection. + The version of the device connector running on the managed device. + + :return: The connector_version of this AssetDeviceConnection. + :rtype: str + """ + return self._connector_version + + @connector_version.setter + def connector_version(self, connector_version): + """ + Sets the connector_version of this AssetDeviceConnection. + The version of the device connector running on the managed device. + + :param connector_version: The connector_version of this AssetDeviceConnection. + :type: str + """ + + self._connector_version = connector_version + + @property + def device_external_ip_address(self): + """ + Gets the device_external_ip_address of this AssetDeviceConnection. + The IP Address of the managed device as seen from the cloud at the time of registration. Eg this could be the IP of the managed device's interface which has a route to the internet or a NAT IP when the managed device is deployed in a private network. + + :return: The device_external_ip_address of this AssetDeviceConnection. + :rtype: str + """ + return self._device_external_ip_address + + @device_external_ip_address.setter + def device_external_ip_address(self, device_external_ip_address): + """ + Sets the device_external_ip_address of this AssetDeviceConnection. + The IP Address of the managed device as seen from the cloud at the time of registration. Eg this could be the IP of the managed device's interface which has a route to the internet or a NAT IP when the managed device is deployed in a private network. + + :param device_external_ip_address: The device_external_ip_address of this AssetDeviceConnection. + :type: str + """ + + self._device_external_ip_address = device_external_ip_address + + @property + def proxy_app(self): + """ + Gets the proxy_app of this AssetDeviceConnection. + The name of the app which will proxy the messages to the device connector. + + :return: The proxy_app of this AssetDeviceConnection. + :rtype: str + """ + return self._proxy_app + + @proxy_app.setter + def proxy_app(self, proxy_app): + """ + Sets the proxy_app of this AssetDeviceConnection. + The name of the app which will proxy the messages to the device connector. + + :param proxy_app: The proxy_app of this AssetDeviceConnection. + :type: str + """ + + self._proxy_app = proxy_app + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AssetDeviceConnection): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/asset_device_connection_ref.py b/intersight/models/asset_device_connection_ref.py new file mode 100644 index 00000000..9b14fef8 --- /dev/null +++ b/intersight/models/asset_device_connection_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AssetDeviceConnectionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AssetDeviceConnectionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AssetDeviceConnectionRef. + + :return: The moid of this AssetDeviceConnectionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AssetDeviceConnectionRef. + + :param moid: The moid of this AssetDeviceConnectionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AssetDeviceConnectionRef. + + :return: The object_type of this AssetDeviceConnectionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AssetDeviceConnectionRef. + + :param object_type: The object_type of this AssetDeviceConnectionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AssetDeviceConnectionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/asset_device_registration.py b/intersight/models/asset_device_registration.py index 4de02c01..6976e74c 100644 --- a/intersight/models/asset_device_registration.py +++ b/intersight/models/asset_device_registration.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,32 +32,41 @@ class AssetDeviceRegistration(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'access_key': 'str', - 'access_key_id': 'str', - 'account': 'MoMoRef', - 'claimed_by_user': 'MoMoRef', - 'claimed_time': 'datetime', + 'version_context': 'MoVersionContext', + 'api_version': 'int', + 'app_partition_number': 'int', + 'connection_id': 'str', 'connection_reason': 'str', 'connection_status': 'str', 'connection_status_last_change_time': 'datetime', 'connector_version': 'str', - 'device_claim': 'MoMoRef', 'device_external_ip_address': 'str', + 'proxy_app': 'str', + 'access_key_id': 'str', + 'account': 'IamAccountRef', + 'claimed_by_user': 'IamUserRef', + 'claimed_by_user_name': 'str', + 'claimed_time': 'datetime', + 'cluster_members': 'list[AssetClusterMemberRef]', + 'device_claim': 'AssetDeviceClaimRef', + 'device_configuration': 'AssetDeviceConfigurationRef', 'device_hostname': 'list[str]', 'device_ip_address': 'list[str]', + 'domain_group': 'IamDomainGroupRef', 'execution_mode': 'str', 'pid': 'list[str]', 'platform_type': 'str', + 'public_access_key': 'str', 'read_only': 'bool', - 'security_token': 'MoMoRef', + 'security_token': 'AssetSecurityTokenRef', 'serial': 'list[str]', 'vendor': 'str' } @@ -72,29 +81,38 @@ class AssetDeviceRegistration(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', - 'access_key': 'AccessKey', - 'access_key_id': 'AccessKeyId', - 'account': 'Account', - 'claimed_by_user': 'ClaimedByUser', - 'claimed_time': 'ClaimedTime', + 'version_context': 'VersionContext', + 'api_version': 'ApiVersion', + 'app_partition_number': 'AppPartitionNumber', + 'connection_id': 'ConnectionId', 'connection_reason': 'ConnectionReason', 'connection_status': 'ConnectionStatus', 'connection_status_last_change_time': 'ConnectionStatusLastChangeTime', 'connector_version': 'ConnectorVersion', - 'device_claim': 'DeviceClaim', 'device_external_ip_address': 'DeviceExternalIpAddress', + 'proxy_app': 'ProxyApp', + 'access_key_id': 'AccessKeyId', + 'account': 'Account', + 'claimed_by_user': 'ClaimedByUser', + 'claimed_by_user_name': 'ClaimedByUserName', + 'claimed_time': 'ClaimedTime', + 'cluster_members': 'ClusterMembers', + 'device_claim': 'DeviceClaim', + 'device_configuration': 'DeviceConfiguration', 'device_hostname': 'DeviceHostname', 'device_ip_address': 'DeviceIpAddress', + 'domain_group': 'DomainGroup', 'execution_mode': 'ExecutionMode', 'pid': 'Pid', 'platform_type': 'PlatformType', + 'public_access_key': 'PublicAccessKey', 'read_only': 'ReadOnly', 'security_token': 'SecurityToken', 'serial': 'Serial', 'vendor': 'Vendor' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, access_key=None, access_key_id=None, account=None, claimed_by_user=None, claimed_time=None, connection_reason=None, connection_status=None, connection_status_last_change_time=None, connector_version=None, device_claim=None, device_external_ip_address=None, device_hostname=None, device_ip_address=None, execution_mode=None, pid=None, platform_type=None, read_only=None, security_token=None, serial=None, vendor=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, api_version=None, app_partition_number=None, connection_id=None, connection_reason=None, connection_status='null', connection_status_last_change_time=None, connector_version=None, device_external_ip_address=None, proxy_app=None, access_key_id=None, account=None, claimed_by_user=None, claimed_by_user_name=None, claimed_time=None, cluster_members=None, device_claim=None, device_configuration=None, device_hostname=None, device_ip_address=None, domain_group=None, execution_mode='null', pid=None, platform_type='null', public_access_key=None, read_only=None, security_token=None, serial=None, vendor=None): """ AssetDeviceRegistration - a model defined in Swagger """ @@ -108,22 +126,31 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None - self._access_key = None - self._access_key_id = None - self._account = None - self._claimed_by_user = None - self._claimed_time = None + self._version_context = None + self._api_version = None + self._app_partition_number = None + self._connection_id = None self._connection_reason = None self._connection_status = None self._connection_status_last_change_time = None self._connector_version = None - self._device_claim = None self._device_external_ip_address = None + self._proxy_app = None + self._access_key_id = None + self._account = None + self._claimed_by_user = None + self._claimed_by_user_name = None + self._claimed_time = None + self._cluster_members = None + self._device_claim = None + self._device_configuration = None self._device_hostname = None self._device_ip_address = None + self._domain_group = None self._execution_mode = None self._pid = None self._platform_type = None + self._public_access_key = None self._read_only = None self._security_token = None self._serial = None @@ -147,16 +174,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags - if access_key is not None: - self.access_key = access_key - if access_key_id is not None: - self.access_key_id = access_key_id - if account is not None: - self.account = account - if claimed_by_user is not None: - self.claimed_by_user = claimed_by_user - if claimed_time is not None: - self.claimed_time = claimed_time + if version_context is not None: + self.version_context = version_context + if api_version is not None: + self.api_version = api_version + if app_partition_number is not None: + self.app_partition_number = app_partition_number + if connection_id is not None: + self.connection_id = connection_id if connection_reason is not None: self.connection_reason = connection_reason if connection_status is not None: @@ -165,20 +190,40 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.connection_status_last_change_time = connection_status_last_change_time if connector_version is not None: self.connector_version = connector_version - if device_claim is not None: - self.device_claim = device_claim if device_external_ip_address is not None: self.device_external_ip_address = device_external_ip_address + if proxy_app is not None: + self.proxy_app = proxy_app + if access_key_id is not None: + self.access_key_id = access_key_id + if account is not None: + self.account = account + if claimed_by_user is not None: + self.claimed_by_user = claimed_by_user + if claimed_by_user_name is not None: + self.claimed_by_user_name = claimed_by_user_name + if claimed_time is not None: + self.claimed_time = claimed_time + if cluster_members is not None: + self.cluster_members = cluster_members + if device_claim is not None: + self.device_claim = device_claim + if device_configuration is not None: + self.device_configuration = device_configuration if device_hostname is not None: self.device_hostname = device_hostname if device_ip_address is not None: self.device_ip_address = device_ip_address + if domain_group is not None: + self.domain_group = domain_group if execution_mode is not None: self.execution_mode = execution_mode if pid is not None: self.pid = pid if platform_type is not None: self.platform_type = platform_type + if public_access_key is not None: + self.public_access_key = public_access_key if read_only is not None: self.read_only = read_only if security_token is not None: @@ -218,7 +263,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this AssetDeviceRegistration. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -229,7 +274,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this AssetDeviceRegistration. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -356,7 +401,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this AssetDeviceRegistration. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -367,7 +412,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this AssetDeviceRegistration. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -376,7 +421,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this AssetDeviceRegistration. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this AssetDeviceRegistration. :rtype: list[MoTag] @@ -387,7 +432,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this AssetDeviceRegistration. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this AssetDeviceRegistration. :type: list[MoTag] @@ -396,119 +441,96 @@ def tags(self, tags): self._tags = tags @property - def access_key(self): + def version_context(self): """ - Gets the access_key of this AssetDeviceRegistration. - Part of the credential used for the device connector to authenticate with the cloud. + Gets the version_context of this AssetDeviceRegistration. + The versioning info for this managed object - :return: The access_key of this AssetDeviceRegistration. - :rtype: str + :return: The version_context of this AssetDeviceRegistration. + :rtype: MoVersionContext """ - return self._access_key + return self._version_context - @access_key.setter - def access_key(self, access_key): + @version_context.setter + def version_context(self, version_context): """ - Sets the access_key of this AssetDeviceRegistration. - Part of the credential used for the device connector to authenticate with the cloud. + Sets the version_context of this AssetDeviceRegistration. + The versioning info for this managed object - :param access_key: The access_key of this AssetDeviceRegistration. - :type: str + :param version_context: The version_context of this AssetDeviceRegistration. + :type: MoVersionContext """ - self._access_key = access_key + self._version_context = version_context @property - def access_key_id(self): + def api_version(self): """ - Gets the access_key_id of this AssetDeviceRegistration. - Part of the credential used for the device connector to authenticate with the cloud. + Gets the api_version of this AssetDeviceRegistration. + The version of the connector api. Describes the capability of the connector's framework. If the version is lower than the current minimum supported version defined in the service managing the connection, the device connector will be connected with limited capabilities until the device connector is upgraded to a fully supported version. For example if a device connector that was released without delta inventory capabilities registers and connects to Intersight, inventory collection may be disabled until it has been upgraded. - :return: The access_key_id of this AssetDeviceRegistration. - :rtype: str - """ - return self._access_key_id - - @access_key_id.setter - def access_key_id(self, access_key_id): - """ - Sets the access_key_id of this AssetDeviceRegistration. - Part of the credential used for the device connector to authenticate with the cloud. - - :param access_key_id: The access_key_id of this AssetDeviceRegistration. - :type: str - """ - - self._access_key_id = access_key_id - - @property - def account(self): - """ - Gets the account of this AssetDeviceRegistration. - The account to which the device has been claimed. - - :return: The account of this AssetDeviceRegistration. - :rtype: MoMoRef + :return: The api_version of this AssetDeviceRegistration. + :rtype: int """ - return self._account + return self._api_version - @account.setter - def account(self, account): + @api_version.setter + def api_version(self, api_version): """ - Sets the account of this AssetDeviceRegistration. - The account to which the device has been claimed. + Sets the api_version of this AssetDeviceRegistration. + The version of the connector api. Describes the capability of the connector's framework. If the version is lower than the current minimum supported version defined in the service managing the connection, the device connector will be connected with limited capabilities until the device connector is upgraded to a fully supported version. For example if a device connector that was released without delta inventory capabilities registers and connects to Intersight, inventory collection may be disabled until it has been upgraded. - :param account: The account of this AssetDeviceRegistration. - :type: MoMoRef + :param api_version: The api_version of this AssetDeviceRegistration. + :type: int """ - self._account = account + self._api_version = api_version @property - def claimed_by_user(self): + def app_partition_number(self): """ - Gets the claimed_by_user of this AssetDeviceRegistration. - The user who claimed the device for the account. + Gets the app_partition_number of this AssetDeviceRegistration. + The partition number corresponding to the instance of the Proxy App which is managing the web-socket to the device connector. - :return: The claimed_by_user of this AssetDeviceRegistration. - :rtype: MoMoRef + :return: The app_partition_number of this AssetDeviceRegistration. + :rtype: int """ - return self._claimed_by_user + return self._app_partition_number - @claimed_by_user.setter - def claimed_by_user(self, claimed_by_user): + @app_partition_number.setter + def app_partition_number(self, app_partition_number): """ - Sets the claimed_by_user of this AssetDeviceRegistration. - The user who claimed the device for the account. + Sets the app_partition_number of this AssetDeviceRegistration. + The partition number corresponding to the instance of the Proxy App which is managing the web-socket to the device connector. - :param claimed_by_user: The claimed_by_user of this AssetDeviceRegistration. - :type: MoMoRef + :param app_partition_number: The app_partition_number of this AssetDeviceRegistration. + :type: int """ - self._claimed_by_user = claimed_by_user + self._app_partition_number = app_partition_number @property - def claimed_time(self): + def connection_id(self): """ - Gets the claimed_time of this AssetDeviceRegistration. - The date and time at which the device was claimed to this account. + Gets the connection_id of this AssetDeviceRegistration. + The unique identifier for the current connection. The identifier persists across network connectivity loss and is reset on device connector process restart or platform administrator toggle of the Intersight connectivity. The connectionId can be used by services that need to interact with stateful plugins running in the device connector process. For example if a service schedules an inventory in a devices job scheduler plugin at registration it is not necessary to reschedule the job if the device loses network connectivity due to an Intersight service upgrade or intermittent network issues in the devices datacenter. - :return: The claimed_time of this AssetDeviceRegistration. - :rtype: datetime + :return: The connection_id of this AssetDeviceRegistration. + :rtype: str """ - return self._claimed_time + return self._connection_id - @claimed_time.setter - def claimed_time(self, claimed_time): + @connection_id.setter + def connection_id(self, connection_id): """ - Sets the claimed_time of this AssetDeviceRegistration. - The date and time at which the device was claimed to this account. + Sets the connection_id of this AssetDeviceRegistration. + The unique identifier for the current connection. The identifier persists across network connectivity loss and is reset on device connector process restart or platform administrator toggle of the Intersight connectivity. The connectionId can be used by services that need to interact with stateful plugins running in the device connector process. For example if a service schedules an inventory in a devices job scheduler plugin at registration it is not necessary to reschedule the job if the device loses network connectivity due to an Intersight service upgrade or intermittent network issues in the devices datacenter. - :param claimed_time: The claimed_time of this AssetDeviceRegistration. - :type: datetime + :param connection_id: The connection_id of this AssetDeviceRegistration. + :type: str """ - self._claimed_time = claimed_time + self._connection_id = connection_id @property def connection_reason(self): @@ -537,7 +559,7 @@ def connection_reason(self, connection_reason): def connection_status(self): """ Gets the connection_status of this AssetDeviceRegistration. - The status of the connection between the device connector and the cloud. Values are [Connected|NotConnected]. + The status of the persistent connection between the device connector and Intersight. :return: The connection_status of this AssetDeviceRegistration. :rtype: str @@ -548,11 +570,17 @@ def connection_status(self): def connection_status(self, connection_status): """ Sets the connection_status of this AssetDeviceRegistration. - The status of the connection between the device connector and the cloud. Values are [Connected|NotConnected]. + The status of the persistent connection between the device connector and Intersight. :param connection_status: The connection_status of this AssetDeviceRegistration. :type: str """ + allowed_values = ["", "Connected", "NotConnected"] + if connection_status not in allowed_values: + raise ValueError( + "Invalid value for `connection_status` ({0}), must be one of {1}" + .format(connection_status, allowed_values) + ) self._connection_status = connection_status @@ -583,7 +611,7 @@ def connection_status_last_change_time(self, connection_status_last_change_time) def connector_version(self): """ Gets the connector_version of this AssetDeviceRegistration. - The version of the device connector running on the managed device. The version format is 1.2.3 for Release builds and 1.2.3-456 for Development builds. + The version of the device connector running on the managed device. :return: The connector_version of this AssetDeviceRegistration. :rtype: str @@ -594,7 +622,7 @@ def connector_version(self): def connector_version(self, connector_version): """ Sets the connector_version of this AssetDeviceRegistration. - The version of the device connector running on the managed device. The version format is 1.2.3 for Release builds and 1.2.3-456 for Development builds. + The version of the device connector running on the managed device. :param connector_version: The connector_version of this AssetDeviceRegistration. :type: str @@ -602,13 +630,196 @@ def connector_version(self, connector_version): self._connector_version = connector_version + @property + def device_external_ip_address(self): + """ + Gets the device_external_ip_address of this AssetDeviceRegistration. + The IP Address of the managed device as seen from the cloud at the time of registration. Eg this could be the IP of the managed device's interface which has a route to the internet or a NAT IP when the managed device is deployed in a private network. + + :return: The device_external_ip_address of this AssetDeviceRegistration. + :rtype: str + """ + return self._device_external_ip_address + + @device_external_ip_address.setter + def device_external_ip_address(self, device_external_ip_address): + """ + Sets the device_external_ip_address of this AssetDeviceRegistration. + The IP Address of the managed device as seen from the cloud at the time of registration. Eg this could be the IP of the managed device's interface which has a route to the internet or a NAT IP when the managed device is deployed in a private network. + + :param device_external_ip_address: The device_external_ip_address of this AssetDeviceRegistration. + :type: str + """ + + self._device_external_ip_address = device_external_ip_address + + @property + def proxy_app(self): + """ + Gets the proxy_app of this AssetDeviceRegistration. + The name of the app which will proxy the messages to the device connector. + + :return: The proxy_app of this AssetDeviceRegistration. + :rtype: str + """ + return self._proxy_app + + @proxy_app.setter + def proxy_app(self, proxy_app): + """ + Sets the proxy_app of this AssetDeviceRegistration. + The name of the app which will proxy the messages to the device connector. + + :param proxy_app: The proxy_app of this AssetDeviceRegistration. + :type: str + """ + + self._proxy_app = proxy_app + + @property + def access_key_id(self): + """ + Gets the access_key_id of this AssetDeviceRegistration. + An identifier for the credential used by the device connector to authenticate with Starship. + + :return: The access_key_id of this AssetDeviceRegistration. + :rtype: str + """ + return self._access_key_id + + @access_key_id.setter + def access_key_id(self, access_key_id): + """ + Sets the access_key_id of this AssetDeviceRegistration. + An identifier for the credential used by the device connector to authenticate with Starship. + + :param access_key_id: The access_key_id of this AssetDeviceRegistration. + :type: str + """ + + self._access_key_id = access_key_id + + @property + def account(self): + """ + Gets the account of this AssetDeviceRegistration. + The account to which the device has been claimed. + + :return: The account of this AssetDeviceRegistration. + :rtype: IamAccountRef + """ + return self._account + + @account.setter + def account(self, account): + """ + Sets the account of this AssetDeviceRegistration. + The account to which the device has been claimed. + + :param account: The account of this AssetDeviceRegistration. + :type: IamAccountRef + """ + + self._account = account + + @property + def claimed_by_user(self): + """ + Gets the claimed_by_user of this AssetDeviceRegistration. + The user who claimed the device for the account. + + :return: The claimed_by_user of this AssetDeviceRegistration. + :rtype: IamUserRef + """ + return self._claimed_by_user + + @claimed_by_user.setter + def claimed_by_user(self, claimed_by_user): + """ + Sets the claimed_by_user of this AssetDeviceRegistration. + The user who claimed the device for the account. + + :param claimed_by_user: The claimed_by_user of this AssetDeviceRegistration. + :type: IamUserRef + """ + + self._claimed_by_user = claimed_by_user + + @property + def claimed_by_user_name(self): + """ + Gets the claimed_by_user_name of this AssetDeviceRegistration. + The name of the user who claimed the device for the account. + + :return: The claimed_by_user_name of this AssetDeviceRegistration. + :rtype: str + """ + return self._claimed_by_user_name + + @claimed_by_user_name.setter + def claimed_by_user_name(self, claimed_by_user_name): + """ + Sets the claimed_by_user_name of this AssetDeviceRegistration. + The name of the user who claimed the device for the account. + + :param claimed_by_user_name: The claimed_by_user_name of this AssetDeviceRegistration. + :type: str + """ + + self._claimed_by_user_name = claimed_by_user_name + + @property + def claimed_time(self): + """ + Gets the claimed_time of this AssetDeviceRegistration. + The date and time at which the device was claimed to this account. + + :return: The claimed_time of this AssetDeviceRegistration. + :rtype: datetime + """ + return self._claimed_time + + @claimed_time.setter + def claimed_time(self, claimed_time): + """ + Sets the claimed_time of this AssetDeviceRegistration. + The date and time at which the device was claimed to this account. + + :param claimed_time: The claimed_time of this AssetDeviceRegistration. + :type: datetime + """ + + self._claimed_time = claimed_time + + @property + def cluster_members(self): + """ + Gets the cluster_members of this AssetDeviceRegistration. + + :return: The cluster_members of this AssetDeviceRegistration. + :rtype: list[AssetClusterMemberRef] + """ + return self._cluster_members + + @cluster_members.setter + def cluster_members(self, cluster_members): + """ + Sets the cluster_members of this AssetDeviceRegistration. + + :param cluster_members: The cluster_members of this AssetDeviceRegistration. + :type: list[AssetClusterMemberRef] + """ + + self._cluster_members = cluster_members + @property def device_claim(self): """ Gets the device_claim of this AssetDeviceRegistration. + The user who claimed the device for the account. :return: The device_claim of this AssetDeviceRegistration. - :rtype: MoMoRef + :rtype: AssetDeviceClaimRef """ return self._device_claim @@ -616,35 +827,34 @@ def device_claim(self): def device_claim(self, device_claim): """ Sets the device_claim of this AssetDeviceRegistration. + The user who claimed the device for the account. :param device_claim: The device_claim of this AssetDeviceRegistration. - :type: MoMoRef + :type: AssetDeviceClaimRef """ self._device_claim = device_claim @property - def device_external_ip_address(self): + def device_configuration(self): """ - Gets the device_external_ip_address of this AssetDeviceRegistration. - The IP Address of the managed device as seen from the cloud at the time of registration. Eg this could be the IP of the managed device's interface which has a route to the internet or a NAT IP when the managed device is deployed in a private network. + Gets the device_configuration of this AssetDeviceRegistration. - :return: The device_external_ip_address of this AssetDeviceRegistration. - :rtype: str + :return: The device_configuration of this AssetDeviceRegistration. + :rtype: AssetDeviceConfigurationRef """ - return self._device_external_ip_address + return self._device_configuration - @device_external_ip_address.setter - def device_external_ip_address(self, device_external_ip_address): + @device_configuration.setter + def device_configuration(self, device_configuration): """ - Sets the device_external_ip_address of this AssetDeviceRegistration. - The IP Address of the managed device as seen from the cloud at the time of registration. Eg this could be the IP of the managed device's interface which has a route to the internet or a NAT IP when the managed device is deployed in a private network. + Sets the device_configuration of this AssetDeviceRegistration. - :param device_external_ip_address: The device_external_ip_address of this AssetDeviceRegistration. - :type: str + :param device_configuration: The device_configuration of this AssetDeviceRegistration. + :type: AssetDeviceConfigurationRef """ - self._device_external_ip_address = device_external_ip_address + self._device_configuration = device_configuration @property def device_hostname(self): @@ -692,6 +902,29 @@ def device_ip_address(self, device_ip_address): self._device_ip_address = device_ip_address + @property + def domain_group(self): + """ + Gets the domain_group of this AssetDeviceRegistration. + The domain group to which the device has been assigned. + + :return: The domain_group of this AssetDeviceRegistration. + :rtype: IamDomainGroupRef + """ + return self._domain_group + + @domain_group.setter + def domain_group(self, domain_group): + """ + Sets the domain_group of this AssetDeviceRegistration. + The domain group to which the device has been assigned. + + :param domain_group: The domain_group of this AssetDeviceRegistration. + :type: IamDomainGroupRef + """ + + self._domain_group = domain_group + @property def execution_mode(self): """ @@ -712,6 +945,12 @@ def execution_mode(self, execution_mode): :param execution_mode: The execution_mode of this AssetDeviceRegistration. :type: str """ + allowed_values = ["", "Normal", "Emulator", "ContainerEmulator"] + if execution_mode not in allowed_values: + raise ValueError( + "Invalid value for `execution_mode` ({0}), must be one of {1}" + .format(execution_mode, allowed_values) + ) self._execution_mode = execution_mode @@ -758,9 +997,38 @@ def platform_type(self, platform_type): :param platform_type: The platform_type of this AssetDeviceRegistration. :type: str """ + allowed_values = ["", "APIC", "UCSFI", "IMC", "IMCM4", "IMCM5", "HX", "UCSD", "IntersightAppliance", "PureStorage"] + if platform_type not in allowed_values: + raise ValueError( + "Invalid value for `platform_type` ({0}), must be one of {1}" + .format(platform_type, allowed_values) + ) self._platform_type = platform_type + @property + def public_access_key(self): + """ + Gets the public_access_key of this AssetDeviceRegistration. + The device connector's public key used by the cloud to authenticate a connection from the device connector. The public key is used to verify that the signature a device connector sends on connect has been signed by the connector's private key stored on the device's filesystem. Must be a PEM encoded RSA public key string. + + :return: The public_access_key of this AssetDeviceRegistration. + :rtype: str + """ + return self._public_access_key + + @public_access_key.setter + def public_access_key(self, public_access_key): + """ + Sets the public_access_key of this AssetDeviceRegistration. + The device connector's public key used by the cloud to authenticate a connection from the device connector. The public key is used to verify that the signature a device connector sends on connect has been signed by the connector's private key stored on the device's filesystem. Must be a PEM encoded RSA public key string. + + :param public_access_key: The public_access_key of this AssetDeviceRegistration. + :type: str + """ + + self._public_access_key = public_access_key + @property def read_only(self): """ @@ -790,7 +1058,7 @@ def security_token(self): Gets the security_token of this AssetDeviceRegistration. :return: The security_token of this AssetDeviceRegistration. - :rtype: MoMoRef + :rtype: AssetSecurityTokenRef """ return self._security_token @@ -800,7 +1068,7 @@ def security_token(self, security_token): Sets the security_token of this AssetDeviceRegistration. :param security_token: The security_token of this AssetDeviceRegistration. - :type: MoMoRef + :type: AssetSecurityTokenRef """ self._security_token = security_token diff --git a/intersight/models/asset_device_registration_list.py b/intersight/models/asset_device_registration_list.py index 6f6c791c..e4d2c0d8 100644 --- a/intersight/models/asset_device_registration_list.py +++ b/intersight/models/asset_device_registration_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/asset_device_registration_ref.py b/intersight/models/asset_device_registration_ref.py new file mode 100644 index 00000000..cfd3a324 --- /dev/null +++ b/intersight/models/asset_device_registration_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AssetDeviceRegistrationRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AssetDeviceRegistrationRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AssetDeviceRegistrationRef. + + :return: The moid of this AssetDeviceRegistrationRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AssetDeviceRegistrationRef. + + :param moid: The moid of this AssetDeviceRegistrationRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AssetDeviceRegistrationRef. + + :return: The object_type of this AssetDeviceRegistrationRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AssetDeviceRegistrationRef. + + :param object_type: The object_type of this AssetDeviceRegistrationRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AssetDeviceRegistrationRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/asset_security_token_ref.py b/intersight/models/asset_security_token_ref.py new file mode 100644 index 00000000..a3d66ee6 --- /dev/null +++ b/intersight/models/asset_security_token_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class AssetSecurityTokenRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + AssetSecurityTokenRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this AssetSecurityTokenRef. + + :return: The moid of this AssetSecurityTokenRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this AssetSecurityTokenRef. + + :param moid: The moid of this AssetSecurityTokenRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this AssetSecurityTokenRef. + + :return: The object_type of this AssetSecurityTokenRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this AssetSecurityTokenRef. + + :param object_type: The object_type of this AssetSecurityTokenRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, AssetSecurityTokenRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/bios_deploy_task_ref.py b/intersight/models/bios_deploy_task_ref.py new file mode 100644 index 00000000..30120004 --- /dev/null +++ b/intersight/models/bios_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BiosDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BiosDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BiosDeployTaskRef. + + :return: The moid of this BiosDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BiosDeployTaskRef. + + :param moid: The moid of this BiosDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BiosDeployTaskRef. + + :return: The object_type of this BiosDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BiosDeployTaskRef. + + :param object_type: The object_type of this BiosDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BiosDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/bios_input_output.py b/intersight/models/bios_input_output.py deleted file mode 100644 index 6ea4a342..00000000 --- a/intersight/models/bios_input_output.py +++ /dev/null @@ -1,573 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class BiosInputOutput(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'intel_vt_for_directed_io': 'str', - 'intel_vtd_coherency_support': 'str', - 'intel_vtdats_support': 'str', - 'ipv6pxe': 'str', - 'legacy_usb_support': 'str', - 'psata': 'str', - 'sata_mode_select': 'str', - 'usb_port_front': 'str', - 'usb_port_internal': 'str', - 'usb_port_kvm': 'str', - 'usb_port_rear': 'str', - 'usb_port_sd_card': 'str', - 'usb_port_vmedia': 'str', - 'vga_priority': 'str' - } - - attribute_map = { - 'intel_vt_for_directed_io': 'IntelVtForDirectedIo', - 'intel_vtd_coherency_support': 'IntelVtdCoherencySupport', - 'intel_vtdats_support': 'IntelVtdatsSupport', - 'ipv6pxe': 'Ipv6pxe', - 'legacy_usb_support': 'LegacyUsbSupport', - 'psata': 'Psata', - 'sata_mode_select': 'SataModeSelect', - 'usb_port_front': 'UsbPortFront', - 'usb_port_internal': 'UsbPortInternal', - 'usb_port_kvm': 'UsbPortKvm', - 'usb_port_rear': 'UsbPortRear', - 'usb_port_sd_card': 'UsbPortSdCard', - 'usb_port_vmedia': 'UsbPortVmedia', - 'vga_priority': 'VgaPriority' - } - - def __init__(self, intel_vt_for_directed_io='platform-default', intel_vtd_coherency_support='platform-default', intel_vtdats_support='platform-default', ipv6pxe='platform-default', legacy_usb_support='platform-default', psata='platform-default', sata_mode_select='platform-default', usb_port_front='platform-default', usb_port_internal='platform-default', usb_port_kvm='platform-default', usb_port_rear='platform-default', usb_port_sd_card='platform-default', usb_port_vmedia='platform-default', vga_priority='platform-default'): - """ - BiosInputOutput - a model defined in Swagger - """ - - self._intel_vt_for_directed_io = None - self._intel_vtd_coherency_support = None - self._intel_vtdats_support = None - self._ipv6pxe = None - self._legacy_usb_support = None - self._psata = None - self._sata_mode_select = None - self._usb_port_front = None - self._usb_port_internal = None - self._usb_port_kvm = None - self._usb_port_rear = None - self._usb_port_sd_card = None - self._usb_port_vmedia = None - self._vga_priority = None - - if intel_vt_for_directed_io is not None: - self.intel_vt_for_directed_io = intel_vt_for_directed_io - if intel_vtd_coherency_support is not None: - self.intel_vtd_coherency_support = intel_vtd_coherency_support - if intel_vtdats_support is not None: - self.intel_vtdats_support = intel_vtdats_support - if ipv6pxe is not None: - self.ipv6pxe = ipv6pxe - if legacy_usb_support is not None: - self.legacy_usb_support = legacy_usb_support - if psata is not None: - self.psata = psata - if sata_mode_select is not None: - self.sata_mode_select = sata_mode_select - if usb_port_front is not None: - self.usb_port_front = usb_port_front - if usb_port_internal is not None: - self.usb_port_internal = usb_port_internal - if usb_port_kvm is not None: - self.usb_port_kvm = usb_port_kvm - if usb_port_rear is not None: - self.usb_port_rear = usb_port_rear - if usb_port_sd_card is not None: - self.usb_port_sd_card = usb_port_sd_card - if usb_port_vmedia is not None: - self.usb_port_vmedia = usb_port_vmedia - if vga_priority is not None: - self.vga_priority = vga_priority - - @property - def intel_vt_for_directed_io(self): - """ - Gets the intel_vt_for_directed_io of this BiosInputOutput. - BIOS Token for setting Intel VT for directed IO configuration - - :return: The intel_vt_for_directed_io of this BiosInputOutput. - :rtype: str - """ - return self._intel_vt_for_directed_io - - @intel_vt_for_directed_io.setter - def intel_vt_for_directed_io(self, intel_vt_for_directed_io): - """ - Sets the intel_vt_for_directed_io of this BiosInputOutput. - BIOS Token for setting Intel VT for directed IO configuration - - :param intel_vt_for_directed_io: The intel_vt_for_directed_io of this BiosInputOutput. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if intel_vt_for_directed_io not in allowed_values: - raise ValueError( - "Invalid value for `intel_vt_for_directed_io` ({0}), must be one of {1}" - .format(intel_vt_for_directed_io, allowed_values) - ) - - self._intel_vt_for_directed_io = intel_vt_for_directed_io - - @property - def intel_vtd_coherency_support(self): - """ - Gets the intel_vtd_coherency_support of this BiosInputOutput. - BIOS Token for setting Intel(R) VT-d Coherency Support configuration - - :return: The intel_vtd_coherency_support of this BiosInputOutput. - :rtype: str - """ - return self._intel_vtd_coherency_support - - @intel_vtd_coherency_support.setter - def intel_vtd_coherency_support(self, intel_vtd_coherency_support): - """ - Sets the intel_vtd_coherency_support of this BiosInputOutput. - BIOS Token for setting Intel(R) VT-d Coherency Support configuration - - :param intel_vtd_coherency_support: The intel_vtd_coherency_support of this BiosInputOutput. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if intel_vtd_coherency_support not in allowed_values: - raise ValueError( - "Invalid value for `intel_vtd_coherency_support` ({0}), must be one of {1}" - .format(intel_vtd_coherency_support, allowed_values) - ) - - self._intel_vtd_coherency_support = intel_vtd_coherency_support - - @property - def intel_vtdats_support(self): - """ - Gets the intel_vtdats_support of this BiosInputOutput. - BIOS Token for setting Intel VTD ATS support configuration - - :return: The intel_vtdats_support of this BiosInputOutput. - :rtype: str - """ - return self._intel_vtdats_support - - @intel_vtdats_support.setter - def intel_vtdats_support(self, intel_vtdats_support): - """ - Sets the intel_vtdats_support of this BiosInputOutput. - BIOS Token for setting Intel VTD ATS support configuration - - :param intel_vtdats_support: The intel_vtdats_support of this BiosInputOutput. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if intel_vtdats_support not in allowed_values: - raise ValueError( - "Invalid value for `intel_vtdats_support` ({0}), must be one of {1}" - .format(intel_vtdats_support, allowed_values) - ) - - self._intel_vtdats_support = intel_vtdats_support - - @property - def ipv6pxe(self): - """ - Gets the ipv6pxe of this BiosInputOutput. - BIOS Token for setting IPV6 PXE Support configuration - - :return: The ipv6pxe of this BiosInputOutput. - :rtype: str - """ - return self._ipv6pxe - - @ipv6pxe.setter - def ipv6pxe(self, ipv6pxe): - """ - Sets the ipv6pxe of this BiosInputOutput. - BIOS Token for setting IPV6 PXE Support configuration - - :param ipv6pxe: The ipv6pxe of this BiosInputOutput. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if ipv6pxe not in allowed_values: - raise ValueError( - "Invalid value for `ipv6pxe` ({0}), must be one of {1}" - .format(ipv6pxe, allowed_values) - ) - - self._ipv6pxe = ipv6pxe - - @property - def legacy_usb_support(self): - """ - Gets the legacy_usb_support of this BiosInputOutput. - BIOS Token for setting Legacy USB Support configuration - - :return: The legacy_usb_support of this BiosInputOutput. - :rtype: str - """ - return self._legacy_usb_support - - @legacy_usb_support.setter - def legacy_usb_support(self, legacy_usb_support): - """ - Sets the legacy_usb_support of this BiosInputOutput. - BIOS Token for setting Legacy USB Support configuration - - :param legacy_usb_support: The legacy_usb_support of this BiosInputOutput. - :type: str - """ - allowed_values = ["platform-default", "auto", "disabled", "enabled"] - if legacy_usb_support not in allowed_values: - raise ValueError( - "Invalid value for `legacy_usb_support` ({0}), must be one of {1}" - .format(legacy_usb_support, allowed_values) - ) - - self._legacy_usb_support = legacy_usb_support - - @property - def psata(self): - """ - Gets the psata of this BiosInputOutput. - BIOS Token for setting P-SATA OptionROM configuration - - :return: The psata of this BiosInputOutput. - :rtype: str - """ - return self._psata - - @psata.setter - def psata(self, psata): - """ - Sets the psata of this BiosInputOutput. - BIOS Token for setting P-SATA OptionROM configuration - - :param psata: The psata of this BiosInputOutput. - :type: str - """ - allowed_values = ["platform-default", "Disabled", "LSI SW RAID"] - if psata not in allowed_values: - raise ValueError( - "Invalid value for `psata` ({0}), must be one of {1}" - .format(psata, allowed_values) - ) - - self._psata = psata - - @property - def sata_mode_select(self): - """ - Gets the sata_mode_select of this BiosInputOutput. - BIOS Token for setting M.2 SATA OptionROM configuration - - :return: The sata_mode_select of this BiosInputOutput. - :rtype: str - """ - return self._sata_mode_select - - @sata_mode_select.setter - def sata_mode_select(self, sata_mode_select): - """ - Sets the sata_mode_select of this BiosInputOutput. - BIOS Token for setting M.2 SATA OptionROM configuration - - :param sata_mode_select: The sata_mode_select of this BiosInputOutput. - :type: str - """ - allowed_values = ["platform-default", "AHCI", "Disabled", "LSI SW RAID"] - if sata_mode_select not in allowed_values: - raise ValueError( - "Invalid value for `sata_mode_select` ({0}), must be one of {1}" - .format(sata_mode_select, allowed_values) - ) - - self._sata_mode_select = sata_mode_select - - @property - def usb_port_front(self): - """ - Gets the usb_port_front of this BiosInputOutput. - BIOS Token for setting USB Port Front configuration - - :return: The usb_port_front of this BiosInputOutput. - :rtype: str - """ - return self._usb_port_front - - @usb_port_front.setter - def usb_port_front(self, usb_port_front): - """ - Sets the usb_port_front of this BiosInputOutput. - BIOS Token for setting USB Port Front configuration - - :param usb_port_front: The usb_port_front of this BiosInputOutput. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if usb_port_front not in allowed_values: - raise ValueError( - "Invalid value for `usb_port_front` ({0}), must be one of {1}" - .format(usb_port_front, allowed_values) - ) - - self._usb_port_front = usb_port_front - - @property - def usb_port_internal(self): - """ - Gets the usb_port_internal of this BiosInputOutput. - BIOS Token for setting USB Port Internal configuration - - :return: The usb_port_internal of this BiosInputOutput. - :rtype: str - """ - return self._usb_port_internal - - @usb_port_internal.setter - def usb_port_internal(self, usb_port_internal): - """ - Sets the usb_port_internal of this BiosInputOutput. - BIOS Token for setting USB Port Internal configuration - - :param usb_port_internal: The usb_port_internal of this BiosInputOutput. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if usb_port_internal not in allowed_values: - raise ValueError( - "Invalid value for `usb_port_internal` ({0}), must be one of {1}" - .format(usb_port_internal, allowed_values) - ) - - self._usb_port_internal = usb_port_internal - - @property - def usb_port_kvm(self): - """ - Gets the usb_port_kvm of this BiosInputOutput. - BIOS Token for setting USB Port KVM configuration - - :return: The usb_port_kvm of this BiosInputOutput. - :rtype: str - """ - return self._usb_port_kvm - - @usb_port_kvm.setter - def usb_port_kvm(self, usb_port_kvm): - """ - Sets the usb_port_kvm of this BiosInputOutput. - BIOS Token for setting USB Port KVM configuration - - :param usb_port_kvm: The usb_port_kvm of this BiosInputOutput. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if usb_port_kvm not in allowed_values: - raise ValueError( - "Invalid value for `usb_port_kvm` ({0}), must be one of {1}" - .format(usb_port_kvm, allowed_values) - ) - - self._usb_port_kvm = usb_port_kvm - - @property - def usb_port_rear(self): - """ - Gets the usb_port_rear of this BiosInputOutput. - BIOS Token for setting USB Port Rear configuration - - :return: The usb_port_rear of this BiosInputOutput. - :rtype: str - """ - return self._usb_port_rear - - @usb_port_rear.setter - def usb_port_rear(self, usb_port_rear): - """ - Sets the usb_port_rear of this BiosInputOutput. - BIOS Token for setting USB Port Rear configuration - - :param usb_port_rear: The usb_port_rear of this BiosInputOutput. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if usb_port_rear not in allowed_values: - raise ValueError( - "Invalid value for `usb_port_rear` ({0}), must be one of {1}" - .format(usb_port_rear, allowed_values) - ) - - self._usb_port_rear = usb_port_rear - - @property - def usb_port_sd_card(self): - """ - Gets the usb_port_sd_card of this BiosInputOutput. - BIOS Token for setting USB Port:M.2 Storage configuration - - :return: The usb_port_sd_card of this BiosInputOutput. - :rtype: str - """ - return self._usb_port_sd_card - - @usb_port_sd_card.setter - def usb_port_sd_card(self, usb_port_sd_card): - """ - Sets the usb_port_sd_card of this BiosInputOutput. - BIOS Token for setting USB Port:M.2 Storage configuration - - :param usb_port_sd_card: The usb_port_sd_card of this BiosInputOutput. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if usb_port_sd_card not in allowed_values: - raise ValueError( - "Invalid value for `usb_port_sd_card` ({0}), must be one of {1}" - .format(usb_port_sd_card, allowed_values) - ) - - self._usb_port_sd_card = usb_port_sd_card - - @property - def usb_port_vmedia(self): - """ - Gets the usb_port_vmedia of this BiosInputOutput. - BIOS Token for setting USB Port VMedia configuration - - :return: The usb_port_vmedia of this BiosInputOutput. - :rtype: str - """ - return self._usb_port_vmedia - - @usb_port_vmedia.setter - def usb_port_vmedia(self, usb_port_vmedia): - """ - Sets the usb_port_vmedia of this BiosInputOutput. - BIOS Token for setting USB Port VMedia configuration - - :param usb_port_vmedia: The usb_port_vmedia of this BiosInputOutput. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if usb_port_vmedia not in allowed_values: - raise ValueError( - "Invalid value for `usb_port_vmedia` ({0}), must be one of {1}" - .format(usb_port_vmedia, allowed_values) - ) - - self._usb_port_vmedia = usb_port_vmedia - - @property - def vga_priority(self): - """ - Gets the vga_priority of this BiosInputOutput. - BIOS Token for setting VGA Priority configuration - - :return: The vga_priority of this BiosInputOutput. - :rtype: str - """ - return self._vga_priority - - @vga_priority.setter - def vga_priority(self, vga_priority): - """ - Sets the vga_priority of this BiosInputOutput. - BIOS Token for setting VGA Priority configuration - - :param vga_priority: The vga_priority of this BiosInputOutput. - :type: str - """ - allowed_values = ["platform-default", "Offboard", "Onboard", "Onboard VGA Disabled"] - if vga_priority not in allowed_values: - raise ValueError( - "Invalid value for `vga_priority` ({0}), must be one of {1}" - .format(vga_priority, allowed_values) - ) - - self._vga_priority = vga_priority - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, BiosInputOutput): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/bios_lom_and_pcie_slots_configuration.py b/intersight/models/bios_lom_and_pcie_slots_configuration.py deleted file mode 100644 index b6f3f6f7..00000000 --- a/intersight/models/bios_lom_and_pcie_slots_configuration.py +++ /dev/null @@ -1,1559 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class BiosLomAndPcieSlotsConfiguration(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'lom_port0state': 'str', - 'lom_port1state': 'str', - 'lom_port2state': 'str', - 'lom_port3state': 'str', - 'lom_ports_all_state': 'str', - 'slot10link_speed': 'str', - 'slot10state': 'str', - 'slot11link_speed': 'str', - 'slot11state': 'str', - 'slot12link_speed': 'str', - 'slot12state': 'str', - 'slot1link_speed': 'str', - 'slot1state': 'str', - 'slot2link_speed': 'str', - 'slot2state': 'str', - 'slot3link_speed': 'str', - 'slot3state': 'str', - 'slot4link_speed': 'str', - 'slot4state': 'str', - 'slot5link_speed': 'str', - 'slot5state': 'str', - 'slot6link_speed': 'str', - 'slot6state': 'str', - 'slot7link_speed': 'str', - 'slot7state': 'str', - 'slot8link_speed': 'str', - 'slot8state': 'str', - 'slot9link_speed': 'str', - 'slot9state': 'str', - 'slot_front_nvme1link_speed': 'str', - 'slot_front_nvme2link_speed': 'str', - 'slot_mlom_link_speed': 'str', - 'slot_mlom_state': 'str', - 'slot_mraid_link_speed': 'str', - 'slot_mraid_state': 'str', - 'slot_n1state': 'str', - 'slot_n2state': 'str', - 'slot_raid_link_speed': 'str', - 'slot_raid_state': 'str', - 'slot_rear_nvme1link_speed': 'str', - 'slot_rear_nvme1state': 'str', - 'slot_rear_nvme2link_speed': 'str', - 'slot_rear_nvme2state': 'str' - } - - attribute_map = { - 'lom_port0state': 'LomPort0state', - 'lom_port1state': 'LomPort1state', - 'lom_port2state': 'LomPort2state', - 'lom_port3state': 'LomPort3state', - 'lom_ports_all_state': 'LomPortsAllState', - 'slot10link_speed': 'Slot10linkSpeed', - 'slot10state': 'Slot10state', - 'slot11link_speed': 'Slot11linkSpeed', - 'slot11state': 'Slot11state', - 'slot12link_speed': 'Slot12linkSpeed', - 'slot12state': 'Slot12state', - 'slot1link_speed': 'Slot1linkSpeed', - 'slot1state': 'Slot1state', - 'slot2link_speed': 'Slot2linkSpeed', - 'slot2state': 'Slot2state', - 'slot3link_speed': 'Slot3linkSpeed', - 'slot3state': 'Slot3state', - 'slot4link_speed': 'Slot4linkSpeed', - 'slot4state': 'Slot4state', - 'slot5link_speed': 'Slot5linkSpeed', - 'slot5state': 'Slot5state', - 'slot6link_speed': 'Slot6linkSpeed', - 'slot6state': 'Slot6state', - 'slot7link_speed': 'Slot7linkSpeed', - 'slot7state': 'Slot7state', - 'slot8link_speed': 'Slot8linkSpeed', - 'slot8state': 'Slot8state', - 'slot9link_speed': 'Slot9linkSpeed', - 'slot9state': 'Slot9state', - 'slot_front_nvme1link_speed': 'SlotFrontNvme1linkSpeed', - 'slot_front_nvme2link_speed': 'SlotFrontNvme2linkSpeed', - 'slot_mlom_link_speed': 'SlotMlomLinkSpeed', - 'slot_mlom_state': 'SlotMlomState', - 'slot_mraid_link_speed': 'SlotMraidLinkSpeed', - 'slot_mraid_state': 'SlotMraidState', - 'slot_n1state': 'SlotN1state', - 'slot_n2state': 'SlotN2state', - 'slot_raid_link_speed': 'SlotRaidLinkSpeed', - 'slot_raid_state': 'SlotRaidState', - 'slot_rear_nvme1link_speed': 'SlotRearNvme1linkSpeed', - 'slot_rear_nvme1state': 'SlotRearNvme1state', - 'slot_rear_nvme2link_speed': 'SlotRearNvme2linkSpeed', - 'slot_rear_nvme2state': 'SlotRearNvme2state' - } - - def __init__(self, lom_port0state='platform-default', lom_port1state='platform-default', lom_port2state='platform-default', lom_port3state='platform-default', lom_ports_all_state='platform-default', slot10link_speed='platform-default', slot10state='platform-default', slot11link_speed='platform-default', slot11state='platform-default', slot12link_speed='platform-default', slot12state='platform-default', slot1link_speed='platform-default', slot1state='platform-default', slot2link_speed='platform-default', slot2state='platform-default', slot3link_speed='platform-default', slot3state='platform-default', slot4link_speed='platform-default', slot4state='platform-default', slot5link_speed='platform-default', slot5state='platform-default', slot6link_speed='platform-default', slot6state='platform-default', slot7link_speed='platform-default', slot7state='platform-default', slot8link_speed='platform-default', slot8state='platform-default', slot9link_speed='platform-default', slot9state='platform-default', slot_front_nvme1link_speed='platform-default', slot_front_nvme2link_speed='platform-default', slot_mlom_link_speed='platform-default', slot_mlom_state='platform-default', slot_mraid_link_speed='platform-default', slot_mraid_state='platform-default', slot_n1state='platform-default', slot_n2state='platform-default', slot_raid_link_speed='platform-default', slot_raid_state='platform-default', slot_rear_nvme1link_speed='platform-default', slot_rear_nvme1state='platform-default', slot_rear_nvme2link_speed='platform-default', slot_rear_nvme2state='platform-default'): - """ - BiosLomAndPcieSlotsConfiguration - a model defined in Swagger - """ - - self._lom_port0state = None - self._lom_port1state = None - self._lom_port2state = None - self._lom_port3state = None - self._lom_ports_all_state = None - self._slot10link_speed = None - self._slot10state = None - self._slot11link_speed = None - self._slot11state = None - self._slot12link_speed = None - self._slot12state = None - self._slot1link_speed = None - self._slot1state = None - self._slot2link_speed = None - self._slot2state = None - self._slot3link_speed = None - self._slot3state = None - self._slot4link_speed = None - self._slot4state = None - self._slot5link_speed = None - self._slot5state = None - self._slot6link_speed = None - self._slot6state = None - self._slot7link_speed = None - self._slot7state = None - self._slot8link_speed = None - self._slot8state = None - self._slot9link_speed = None - self._slot9state = None - self._slot_front_nvme1link_speed = None - self._slot_front_nvme2link_speed = None - self._slot_mlom_link_speed = None - self._slot_mlom_state = None - self._slot_mraid_link_speed = None - self._slot_mraid_state = None - self._slot_n1state = None - self._slot_n2state = None - self._slot_raid_link_speed = None - self._slot_raid_state = None - self._slot_rear_nvme1link_speed = None - self._slot_rear_nvme1state = None - self._slot_rear_nvme2link_speed = None - self._slot_rear_nvme2state = None - - if lom_port0state is not None: - self.lom_port0state = lom_port0state - if lom_port1state is not None: - self.lom_port1state = lom_port1state - if lom_port2state is not None: - self.lom_port2state = lom_port2state - if lom_port3state is not None: - self.lom_port3state = lom_port3state - if lom_ports_all_state is not None: - self.lom_ports_all_state = lom_ports_all_state - if slot10link_speed is not None: - self.slot10link_speed = slot10link_speed - if slot10state is not None: - self.slot10state = slot10state - if slot11link_speed is not None: - self.slot11link_speed = slot11link_speed - if slot11state is not None: - self.slot11state = slot11state - if slot12link_speed is not None: - self.slot12link_speed = slot12link_speed - if slot12state is not None: - self.slot12state = slot12state - if slot1link_speed is not None: - self.slot1link_speed = slot1link_speed - if slot1state is not None: - self.slot1state = slot1state - if slot2link_speed is not None: - self.slot2link_speed = slot2link_speed - if slot2state is not None: - self.slot2state = slot2state - if slot3link_speed is not None: - self.slot3link_speed = slot3link_speed - if slot3state is not None: - self.slot3state = slot3state - if slot4link_speed is not None: - self.slot4link_speed = slot4link_speed - if slot4state is not None: - self.slot4state = slot4state - if slot5link_speed is not None: - self.slot5link_speed = slot5link_speed - if slot5state is not None: - self.slot5state = slot5state - if slot6link_speed is not None: - self.slot6link_speed = slot6link_speed - if slot6state is not None: - self.slot6state = slot6state - if slot7link_speed is not None: - self.slot7link_speed = slot7link_speed - if slot7state is not None: - self.slot7state = slot7state - if slot8link_speed is not None: - self.slot8link_speed = slot8link_speed - if slot8state is not None: - self.slot8state = slot8state - if slot9link_speed is not None: - self.slot9link_speed = slot9link_speed - if slot9state is not None: - self.slot9state = slot9state - if slot_front_nvme1link_speed is not None: - self.slot_front_nvme1link_speed = slot_front_nvme1link_speed - if slot_front_nvme2link_speed is not None: - self.slot_front_nvme2link_speed = slot_front_nvme2link_speed - if slot_mlom_link_speed is not None: - self.slot_mlom_link_speed = slot_mlom_link_speed - if slot_mlom_state is not None: - self.slot_mlom_state = slot_mlom_state - if slot_mraid_link_speed is not None: - self.slot_mraid_link_speed = slot_mraid_link_speed - if slot_mraid_state is not None: - self.slot_mraid_state = slot_mraid_state - if slot_n1state is not None: - self.slot_n1state = slot_n1state - if slot_n2state is not None: - self.slot_n2state = slot_n2state - if slot_raid_link_speed is not None: - self.slot_raid_link_speed = slot_raid_link_speed - if slot_raid_state is not None: - self.slot_raid_state = slot_raid_state - if slot_rear_nvme1link_speed is not None: - self.slot_rear_nvme1link_speed = slot_rear_nvme1link_speed - if slot_rear_nvme1state is not None: - self.slot_rear_nvme1state = slot_rear_nvme1state - if slot_rear_nvme2link_speed is not None: - self.slot_rear_nvme2link_speed = slot_rear_nvme2link_speed - if slot_rear_nvme2state is not None: - self.slot_rear_nvme2state = slot_rear_nvme2state - - @property - def lom_port0state(self): - """ - Gets the lom_port0state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting LOM Port 0 OptionROM configuration - - :return: The lom_port0state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._lom_port0state - - @lom_port0state.setter - def lom_port0state(self, lom_port0state): - """ - Sets the lom_port0state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting LOM Port 0 OptionROM configuration - - :param lom_port0state: The lom_port0state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if lom_port0state not in allowed_values: - raise ValueError( - "Invalid value for `lom_port0state` ({0}), must be one of {1}" - .format(lom_port0state, allowed_values) - ) - - self._lom_port0state = lom_port0state - - @property - def lom_port1state(self): - """ - Gets the lom_port1state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting LOM Port 1 OptionROM configuration - - :return: The lom_port1state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._lom_port1state - - @lom_port1state.setter - def lom_port1state(self, lom_port1state): - """ - Sets the lom_port1state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting LOM Port 1 OptionROM configuration - - :param lom_port1state: The lom_port1state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if lom_port1state not in allowed_values: - raise ValueError( - "Invalid value for `lom_port1state` ({0}), must be one of {1}" - .format(lom_port1state, allowed_values) - ) - - self._lom_port1state = lom_port1state - - @property - def lom_port2state(self): - """ - Gets the lom_port2state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting LOM Port 2 OptionROM configuration - - :return: The lom_port2state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._lom_port2state - - @lom_port2state.setter - def lom_port2state(self, lom_port2state): - """ - Sets the lom_port2state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting LOM Port 2 OptionROM configuration - - :param lom_port2state: The lom_port2state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] - if lom_port2state not in allowed_values: - raise ValueError( - "Invalid value for `lom_port2state` ({0}), must be one of {1}" - .format(lom_port2state, allowed_values) - ) - - self._lom_port2state = lom_port2state - - @property - def lom_port3state(self): - """ - Gets the lom_port3state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting LOM Port 3 OptionROM configuration - - :return: The lom_port3state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._lom_port3state - - @lom_port3state.setter - def lom_port3state(self, lom_port3state): - """ - Sets the lom_port3state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting LOM Port 3 OptionROM configuration - - :param lom_port3state: The lom_port3state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] - if lom_port3state not in allowed_values: - raise ValueError( - "Invalid value for `lom_port3state` ({0}), must be one of {1}" - .format(lom_port3state, allowed_values) - ) - - self._lom_port3state = lom_port3state - - @property - def lom_ports_all_state(self): - """ - Gets the lom_ports_all_state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting All Onboard LOM Ports configuration - - :return: The lom_ports_all_state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._lom_ports_all_state - - @lom_ports_all_state.setter - def lom_ports_all_state(self, lom_ports_all_state): - """ - Sets the lom_ports_all_state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting All Onboard LOM Ports configuration - - :param lom_ports_all_state: The lom_ports_all_state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if lom_ports_all_state not in allowed_values: - raise ValueError( - "Invalid value for `lom_ports_all_state` ({0}), must be one of {1}" - .format(lom_ports_all_state, allowed_values) - ) - - self._lom_ports_all_state = lom_ports_all_state - - @property - def slot10link_speed(self): - """ - Gets the slot10link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:10 Link Speed configuration - - :return: The slot10link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot10link_speed - - @slot10link_speed.setter - def slot10link_speed(self, slot10link_speed): - """ - Sets the slot10link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:10 Link Speed configuration - - :param slot10link_speed: The slot10link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] - if slot10link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot10link_speed` ({0}), must be one of {1}" - .format(slot10link_speed, allowed_values) - ) - - self._slot10link_speed = slot10link_speed - - @property - def slot10state(self): - """ - Gets the slot10state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 10 OptionRom configuration - - :return: The slot10state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot10state - - @slot10state.setter - def slot10state(self, slot10state): - """ - Sets the slot10state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 10 OptionRom configuration - - :param slot10state: The slot10state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot10state not in allowed_values: - raise ValueError( - "Invalid value for `slot10state` ({0}), must be one of {1}" - .format(slot10state, allowed_values) - ) - - self._slot10state = slot10state - - @property - def slot11link_speed(self): - """ - Gets the slot11link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:11 Link Speed configuration - - :return: The slot11link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot11link_speed - - @slot11link_speed.setter - def slot11link_speed(self, slot11link_speed): - """ - Sets the slot11link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:11 Link Speed configuration - - :param slot11link_speed: The slot11link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] - if slot11link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot11link_speed` ({0}), must be one of {1}" - .format(slot11link_speed, allowed_values) - ) - - self._slot11link_speed = slot11link_speed - - @property - def slot11state(self): - """ - Gets the slot11state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 11 OptionRom configuration - - :return: The slot11state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot11state - - @slot11state.setter - def slot11state(self, slot11state): - """ - Sets the slot11state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 11 OptionRom configuration - - :param slot11state: The slot11state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot11state not in allowed_values: - raise ValueError( - "Invalid value for `slot11state` ({0}), must be one of {1}" - .format(slot11state, allowed_values) - ) - - self._slot11state = slot11state - - @property - def slot12link_speed(self): - """ - Gets the slot12link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:12 Link Speed configuration - - :return: The slot12link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot12link_speed - - @slot12link_speed.setter - def slot12link_speed(self, slot12link_speed): - """ - Sets the slot12link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:12 Link Speed configuration - - :param slot12link_speed: The slot12link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] - if slot12link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot12link_speed` ({0}), must be one of {1}" - .format(slot12link_speed, allowed_values) - ) - - self._slot12link_speed = slot12link_speed - - @property - def slot12state(self): - """ - Gets the slot12state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 12 OptionRom configuration - - :return: The slot12state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot12state - - @slot12state.setter - def slot12state(self, slot12state): - """ - Sets the slot12state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 12 OptionRom configuration - - :param slot12state: The slot12state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot12state not in allowed_values: - raise ValueError( - "Invalid value for `slot12state` ({0}), must be one of {1}" - .format(slot12state, allowed_values) - ) - - self._slot12state = slot12state - - @property - def slot1link_speed(self): - """ - Gets the slot1link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:1 Link Speed configuration - - :return: The slot1link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot1link_speed - - @slot1link_speed.setter - def slot1link_speed(self, slot1link_speed): - """ - Sets the slot1link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:1 Link Speed configuration - - :param slot1link_speed: The slot1link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2"] - if slot1link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot1link_speed` ({0}), must be one of {1}" - .format(slot1link_speed, allowed_values) - ) - - self._slot1link_speed = slot1link_speed - - @property - def slot1state(self): - """ - Gets the slot1state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 1 OptionRom configuration - - :return: The slot1state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot1state - - @slot1state.setter - def slot1state(self, slot1state): - """ - Sets the slot1state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 1 OptionRom configuration - - :param slot1state: The slot1state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot1state not in allowed_values: - raise ValueError( - "Invalid value for `slot1state` ({0}), must be one of {1}" - .format(slot1state, allowed_values) - ) - - self._slot1state = slot1state - - @property - def slot2link_speed(self): - """ - Gets the slot2link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:2 Link Speed configuration - - :return: The slot2link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot2link_speed - - @slot2link_speed.setter - def slot2link_speed(self, slot2link_speed): - """ - Sets the slot2link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:2 Link Speed configuration - - :param slot2link_speed: The slot2link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2"] - if slot2link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot2link_speed` ({0}), must be one of {1}" - .format(slot2link_speed, allowed_values) - ) - - self._slot2link_speed = slot2link_speed - - @property - def slot2state(self): - """ - Gets the slot2state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 2 OptionRom configuration - - :return: The slot2state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot2state - - @slot2state.setter - def slot2state(self, slot2state): - """ - Sets the slot2state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 2 OptionRom configuration - - :param slot2state: The slot2state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot2state not in allowed_values: - raise ValueError( - "Invalid value for `slot2state` ({0}), must be one of {1}" - .format(slot2state, allowed_values) - ) - - self._slot2state = slot2state - - @property - def slot3link_speed(self): - """ - Gets the slot3link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:3 Link Speed configuration - - :return: The slot3link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot3link_speed - - @slot3link_speed.setter - def slot3link_speed(self, slot3link_speed): - """ - Sets the slot3link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:3 Link Speed configuration - - :param slot3link_speed: The slot3link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2"] - if slot3link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot3link_speed` ({0}), must be one of {1}" - .format(slot3link_speed, allowed_values) - ) - - self._slot3link_speed = slot3link_speed - - @property - def slot3state(self): - """ - Gets the slot3state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:3 OptionRom configuration - - :return: The slot3state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot3state - - @slot3state.setter - def slot3state(self, slot3state): - """ - Sets the slot3state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:3 OptionRom configuration - - :param slot3state: The slot3state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot3state not in allowed_values: - raise ValueError( - "Invalid value for `slot3state` ({0}), must be one of {1}" - .format(slot3state, allowed_values) - ) - - self._slot3state = slot3state - - @property - def slot4link_speed(self): - """ - Gets the slot4link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:4 Link Speed configuration - - :return: The slot4link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot4link_speed - - @slot4link_speed.setter - def slot4link_speed(self, slot4link_speed): - """ - Sets the slot4link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:4 Link Speed configuration - - :param slot4link_speed: The slot4link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2"] - if slot4link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot4link_speed` ({0}), must be one of {1}" - .format(slot4link_speed, allowed_values) - ) - - self._slot4link_speed = slot4link_speed - - @property - def slot4state(self): - """ - Gets the slot4state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 4 OptionRom configuration - - :return: The slot4state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot4state - - @slot4state.setter - def slot4state(self, slot4state): - """ - Sets the slot4state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 4 OptionRom configuration - - :param slot4state: The slot4state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot4state not in allowed_values: - raise ValueError( - "Invalid value for `slot4state` ({0}), must be one of {1}" - .format(slot4state, allowed_values) - ) - - self._slot4state = slot4state - - @property - def slot5link_speed(self): - """ - Gets the slot5link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:5 Link Speed configuration - - :return: The slot5link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot5link_speed - - @slot5link_speed.setter - def slot5link_speed(self, slot5link_speed): - """ - Sets the slot5link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:5 Link Speed configuration - - :param slot5link_speed: The slot5link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2"] - if slot5link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot5link_speed` ({0}), must be one of {1}" - .format(slot5link_speed, allowed_values) - ) - - self._slot5link_speed = slot5link_speed - - @property - def slot5state(self): - """ - Gets the slot5state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 5 OptionRom configuration - - :return: The slot5state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot5state - - @slot5state.setter - def slot5state(self, slot5state): - """ - Sets the slot5state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 5 OptionRom configuration - - :param slot5state: The slot5state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot5state not in allowed_values: - raise ValueError( - "Invalid value for `slot5state` ({0}), must be one of {1}" - .format(slot5state, allowed_values) - ) - - self._slot5state = slot5state - - @property - def slot6link_speed(self): - """ - Gets the slot6link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:6 Link Speed configuration - - :return: The slot6link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot6link_speed - - @slot6link_speed.setter - def slot6link_speed(self, slot6link_speed): - """ - Sets the slot6link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:6 Link Speed configuration - - :param slot6link_speed: The slot6link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2"] - if slot6link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot6link_speed` ({0}), must be one of {1}" - .format(slot6link_speed, allowed_values) - ) - - self._slot6link_speed = slot6link_speed - - @property - def slot6state(self): - """ - Gets the slot6state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 6 OptionRom configuration - - :return: The slot6state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot6state - - @slot6state.setter - def slot6state(self, slot6state): - """ - Sets the slot6state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 6 OptionRom configuration - - :param slot6state: The slot6state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot6state not in allowed_values: - raise ValueError( - "Invalid value for `slot6state` ({0}), must be one of {1}" - .format(slot6state, allowed_values) - ) - - self._slot6state = slot6state - - @property - def slot7link_speed(self): - """ - Gets the slot7link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:7 Link Speed configuration - - :return: The slot7link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot7link_speed - - @slot7link_speed.setter - def slot7link_speed(self, slot7link_speed): - """ - Sets the slot7link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:7 Link Speed configuration - - :param slot7link_speed: The slot7link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] - if slot7link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot7link_speed` ({0}), must be one of {1}" - .format(slot7link_speed, allowed_values) - ) - - self._slot7link_speed = slot7link_speed - - @property - def slot7state(self): - """ - Gets the slot7state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 7 OptionRom configuration - - :return: The slot7state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot7state - - @slot7state.setter - def slot7state(self, slot7state): - """ - Sets the slot7state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 7 OptionRom configuration - - :param slot7state: The slot7state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot7state not in allowed_values: - raise ValueError( - "Invalid value for `slot7state` ({0}), must be one of {1}" - .format(slot7state, allowed_values) - ) - - self._slot7state = slot7state - - @property - def slot8link_speed(self): - """ - Gets the slot8link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:8 Link Speed configuration - - :return: The slot8link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot8link_speed - - @slot8link_speed.setter - def slot8link_speed(self, slot8link_speed): - """ - Sets the slot8link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:8 Link Speed configuration - - :param slot8link_speed: The slot8link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] - if slot8link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot8link_speed` ({0}), must be one of {1}" - .format(slot8link_speed, allowed_values) - ) - - self._slot8link_speed = slot8link_speed - - @property - def slot8state(self): - """ - Gets the slot8state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 8 OptionRom configuration - - :return: The slot8state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot8state - - @slot8state.setter - def slot8state(self, slot8state): - """ - Sets the slot8state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 8 OptionRom configuration - - :param slot8state: The slot8state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot8state not in allowed_values: - raise ValueError( - "Invalid value for `slot8state` ({0}), must be one of {1}" - .format(slot8state, allowed_values) - ) - - self._slot8state = slot8state - - @property - def slot9link_speed(self): - """ - Gets the slot9link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:9 Link Speed configuration - - :return: The slot9link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot9link_speed - - @slot9link_speed.setter - def slot9link_speed(self, slot9link_speed): - """ - Sets the slot9link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:9 Link Speed configuration - - :param slot9link_speed: The slot9link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] - if slot9link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot9link_speed` ({0}), must be one of {1}" - .format(slot9link_speed, allowed_values) - ) - - self._slot9link_speed = slot9link_speed - - @property - def slot9state(self): - """ - Gets the slot9state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 9 OptionRom configuration - - :return: The slot9state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot9state - - @slot9state.setter - def slot9state(self, slot9state): - """ - Sets the slot9state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot 9 OptionRom configuration - - :param slot9state: The slot9state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot9state not in allowed_values: - raise ValueError( - "Invalid value for `slot9state` ({0}), must be one of {1}" - .format(slot9state, allowed_values) - ) - - self._slot9state = slot9state - - @property - def slot_front_nvme1link_speed(self): - """ - Gets the slot_front_nvme1link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:Front Nvm1 Link Speed configuration - - :return: The slot_front_nvme1link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot_front_nvme1link_speed - - @slot_front_nvme1link_speed.setter - def slot_front_nvme1link_speed(self, slot_front_nvme1link_speed): - """ - Sets the slot_front_nvme1link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:Front Nvm1 Link Speed configuration - - :param slot_front_nvme1link_speed: The slot_front_nvme1link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2"] - if slot_front_nvme1link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot_front_nvme1link_speed` ({0}), must be one of {1}" - .format(slot_front_nvme1link_speed, allowed_values) - ) - - self._slot_front_nvme1link_speed = slot_front_nvme1link_speed - - @property - def slot_front_nvme2link_speed(self): - """ - Gets the slot_front_nvme2link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:Front Nvme2 Link Speed configuration - - :return: The slot_front_nvme2link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot_front_nvme2link_speed - - @slot_front_nvme2link_speed.setter - def slot_front_nvme2link_speed(self, slot_front_nvme2link_speed): - """ - Sets the slot_front_nvme2link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:Front Nvme2 Link Speed configuration - - :param slot_front_nvme2link_speed: The slot_front_nvme2link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2"] - if slot_front_nvme2link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot_front_nvme2link_speed` ({0}), must be one of {1}" - .format(slot_front_nvme2link_speed, allowed_values) - ) - - self._slot_front_nvme2link_speed = slot_front_nvme2link_speed - - @property - def slot_mlom_link_speed(self): - """ - Gets the slot_mlom_link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:MLOM Link Speed configuration - - :return: The slot_mlom_link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot_mlom_link_speed - - @slot_mlom_link_speed.setter - def slot_mlom_link_speed(self, slot_mlom_link_speed): - """ - Sets the slot_mlom_link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:MLOM Link Speed configuration - - :param slot_mlom_link_speed: The slot_mlom_link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2"] - if slot_mlom_link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot_mlom_link_speed` ({0}), must be one of {1}" - .format(slot_mlom_link_speed, allowed_values) - ) - - self._slot_mlom_link_speed = slot_mlom_link_speed - - @property - def slot_mlom_state(self): - """ - Gets the slot_mlom_state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting MLOM OptionRom configuration - - :return: The slot_mlom_state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot_mlom_state - - @slot_mlom_state.setter - def slot_mlom_state(self, slot_mlom_state): - """ - Sets the slot_mlom_state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting MLOM OptionRom configuration - - :param slot_mlom_state: The slot_mlom_state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot_mlom_state not in allowed_values: - raise ValueError( - "Invalid value for `slot_mlom_state` ({0}), must be one of {1}" - .format(slot_mlom_state, allowed_values) - ) - - self._slot_mlom_state = slot_mlom_state - - @property - def slot_mraid_link_speed(self): - """ - Gets the slot_mraid_link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting MRAID Link Speed configuration - - :return: The slot_mraid_link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot_mraid_link_speed - - @slot_mraid_link_speed.setter - def slot_mraid_link_speed(self, slot_mraid_link_speed): - """ - Sets the slot_mraid_link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting MRAID Link Speed configuration - - :param slot_mraid_link_speed: The slot_mraid_link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] - if slot_mraid_link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot_mraid_link_speed` ({0}), must be one of {1}" - .format(slot_mraid_link_speed, allowed_values) - ) - - self._slot_mraid_link_speed = slot_mraid_link_speed - - @property - def slot_mraid_state(self): - """ - Gets the slot_mraid_state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting MRAID OptionRom configuration - - :return: The slot_mraid_state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot_mraid_state - - @slot_mraid_state.setter - def slot_mraid_state(self, slot_mraid_state): - """ - Sets the slot_mraid_state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting MRAID OptionRom configuration - - :param slot_mraid_state: The slot_mraid_state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot_mraid_state not in allowed_values: - raise ValueError( - "Invalid value for `slot_mraid_state` ({0}), must be one of {1}" - .format(slot_mraid_state, allowed_values) - ) - - self._slot_mraid_state = slot_mraid_state - - @property - def slot_n1state(self): - """ - Gets the slot_n1state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting Front NVME 1 OptionRom configuration - - :return: The slot_n1state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot_n1state - - @slot_n1state.setter - def slot_n1state(self, slot_n1state): - """ - Sets the slot_n1state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting Front NVME 1 OptionRom configuration - - :param slot_n1state: The slot_n1state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot_n1state not in allowed_values: - raise ValueError( - "Invalid value for `slot_n1state` ({0}), must be one of {1}" - .format(slot_n1state, allowed_values) - ) - - self._slot_n1state = slot_n1state - - @property - def slot_n2state(self): - """ - Gets the slot_n2state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting Front NVME 2 OptionRom configuration - - :return: The slot_n2state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot_n2state - - @slot_n2state.setter - def slot_n2state(self, slot_n2state): - """ - Sets the slot_n2state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting Front NVME 2 OptionRom configuration - - :param slot_n2state: The slot_n2state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot_n2state not in allowed_values: - raise ValueError( - "Invalid value for `slot_n2state` ({0}), must be one of {1}" - .format(slot_n2state, allowed_values) - ) - - self._slot_n2state = slot_n2state - - @property - def slot_raid_link_speed(self): - """ - Gets the slot_raid_link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting RAID Link Speed configuration - - :return: The slot_raid_link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot_raid_link_speed - - @slot_raid_link_speed.setter - def slot_raid_link_speed(self, slot_raid_link_speed): - """ - Sets the slot_raid_link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting RAID Link Speed configuration - - :param slot_raid_link_speed: The slot_raid_link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] - if slot_raid_link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot_raid_link_speed` ({0}), must be one of {1}" - .format(slot_raid_link_speed, allowed_values) - ) - - self._slot_raid_link_speed = slot_raid_link_speed - - @property - def slot_raid_state(self): - """ - Gets the slot_raid_state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting RAID OptionRom configuration - - :return: The slot_raid_state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot_raid_state - - @slot_raid_state.setter - def slot_raid_state(self, slot_raid_state): - """ - Sets the slot_raid_state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting RAID OptionRom configuration - - :param slot_raid_state: The slot_raid_state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot_raid_state not in allowed_values: - raise ValueError( - "Invalid value for `slot_raid_state` ({0}), must be one of {1}" - .format(slot_raid_state, allowed_values) - ) - - self._slot_raid_state = slot_raid_state - - @property - def slot_rear_nvme1link_speed(self): - """ - Gets the slot_rear_nvme1link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:Rear Nvme1 Link Speed configuration - - :return: The slot_rear_nvme1link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot_rear_nvme1link_speed - - @slot_rear_nvme1link_speed.setter - def slot_rear_nvme1link_speed(self, slot_rear_nvme1link_speed): - """ - Sets the slot_rear_nvme1link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:Rear Nvme1 Link Speed configuration - - :param slot_rear_nvme1link_speed: The slot_rear_nvme1link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2"] - if slot_rear_nvme1link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot_rear_nvme1link_speed` ({0}), must be one of {1}" - .format(slot_rear_nvme1link_speed, allowed_values) - ) - - self._slot_rear_nvme1link_speed = slot_rear_nvme1link_speed - - @property - def slot_rear_nvme1state(self): - """ - Gets the slot_rear_nvme1state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting Rear NVME 1 OptionRom configuration - - :return: The slot_rear_nvme1state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot_rear_nvme1state - - @slot_rear_nvme1state.setter - def slot_rear_nvme1state(self, slot_rear_nvme1state): - """ - Sets the slot_rear_nvme1state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting Rear NVME 1 OptionRom configuration - - :param slot_rear_nvme1state: The slot_rear_nvme1state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot_rear_nvme1state not in allowed_values: - raise ValueError( - "Invalid value for `slot_rear_nvme1state` ({0}), must be one of {1}" - .format(slot_rear_nvme1state, allowed_values) - ) - - self._slot_rear_nvme1state = slot_rear_nvme1state - - @property - def slot_rear_nvme2link_speed(self): - """ - Gets the slot_rear_nvme2link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:Rear Nvme2 Link Speed configuration - - :return: The slot_rear_nvme2link_speed of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot_rear_nvme2link_speed - - @slot_rear_nvme2link_speed.setter - def slot_rear_nvme2link_speed(self, slot_rear_nvme2link_speed): - """ - Sets the slot_rear_nvme2link_speed of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting PCIe Slot:Rear Nvme2 Link Speed configuration - - :param slot_rear_nvme2link_speed: The slot_rear_nvme2link_speed of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2"] - if slot_rear_nvme2link_speed not in allowed_values: - raise ValueError( - "Invalid value for `slot_rear_nvme2link_speed` ({0}), must be one of {1}" - .format(slot_rear_nvme2link_speed, allowed_values) - ) - - self._slot_rear_nvme2link_speed = slot_rear_nvme2link_speed - - @property - def slot_rear_nvme2state(self): - """ - Gets the slot_rear_nvme2state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting Rear NVME 2 OptionRom configuration - - :return: The slot_rear_nvme2state of this BiosLomAndPcieSlotsConfiguration. - :rtype: str - """ - return self._slot_rear_nvme2state - - @slot_rear_nvme2state.setter - def slot_rear_nvme2state(self, slot_rear_nvme2state): - """ - Sets the slot_rear_nvme2state of this BiosLomAndPcieSlotsConfiguration. - BIOS Token for setting Rear NVME 2 OptionRom configuration - - :param slot_rear_nvme2state: The slot_rear_nvme2state of this BiosLomAndPcieSlotsConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if slot_rear_nvme2state not in allowed_values: - raise ValueError( - "Invalid value for `slot_rear_nvme2state` ({0}), must be one of {1}" - .format(slot_rear_nvme2state, allowed_values) - ) - - self._slot_rear_nvme2state = slot_rear_nvme2state - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, BiosLomAndPcieSlotsConfiguration): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/bios_memory.py b/intersight/models/bios_memory.py deleted file mode 100644 index 2ba9616c..00000000 --- a/intersight/models/bios_memory.py +++ /dev/null @@ -1,199 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class BiosMemory(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'memory_mapped_io_above4gb': 'str', - 'numa_optimized': 'str', - 'select_memory_ras_configuration': 'str' - } - - attribute_map = { - 'memory_mapped_io_above4gb': 'MemoryMappedIoAbove4gb', - 'numa_optimized': 'NumaOptimized', - 'select_memory_ras_configuration': 'SelectMemoryRasConfiguration' - } - - def __init__(self, memory_mapped_io_above4gb='platform-default', numa_optimized='platform-default', select_memory_ras_configuration='platform-default'): - """ - BiosMemory - a model defined in Swagger - """ - - self._memory_mapped_io_above4gb = None - self._numa_optimized = None - self._select_memory_ras_configuration = None - - if memory_mapped_io_above4gb is not None: - self.memory_mapped_io_above4gb = memory_mapped_io_above4gb - if numa_optimized is not None: - self.numa_optimized = numa_optimized - if select_memory_ras_configuration is not None: - self.select_memory_ras_configuration = select_memory_ras_configuration - - @property - def memory_mapped_io_above4gb(self): - """ - Gets the memory_mapped_io_above4gb of this BiosMemory. - BIOS Token for setting Above 4G Decoding configuration - - :return: The memory_mapped_io_above4gb of this BiosMemory. - :rtype: str - """ - return self._memory_mapped_io_above4gb - - @memory_mapped_io_above4gb.setter - def memory_mapped_io_above4gb(self, memory_mapped_io_above4gb): - """ - Sets the memory_mapped_io_above4gb of this BiosMemory. - BIOS Token for setting Above 4G Decoding configuration - - :param memory_mapped_io_above4gb: The memory_mapped_io_above4gb of this BiosMemory. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if memory_mapped_io_above4gb not in allowed_values: - raise ValueError( - "Invalid value for `memory_mapped_io_above4gb` ({0}), must be one of {1}" - .format(memory_mapped_io_above4gb, allowed_values) - ) - - self._memory_mapped_io_above4gb = memory_mapped_io_above4gb - - @property - def numa_optimized(self): - """ - Gets the numa_optimized of this BiosMemory. - BIOS Token for setting NUMA configuration - - :return: The numa_optimized of this BiosMemory. - :rtype: str - """ - return self._numa_optimized - - @numa_optimized.setter - def numa_optimized(self, numa_optimized): - """ - Sets the numa_optimized of this BiosMemory. - BIOS Token for setting NUMA configuration - - :param numa_optimized: The numa_optimized of this BiosMemory. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if numa_optimized not in allowed_values: - raise ValueError( - "Invalid value for `numa_optimized` ({0}), must be one of {1}" - .format(numa_optimized, allowed_values) - ) - - self._numa_optimized = numa_optimized - - @property - def select_memory_ras_configuration(self): - """ - Gets the select_memory_ras_configuration of this BiosMemory. - BIOS Token for setting SelectMemory RAS configuration configuration - - :return: The select_memory_ras_configuration of this BiosMemory. - :rtype: str - """ - return self._select_memory_ras_configuration - - @select_memory_ras_configuration.setter - def select_memory_ras_configuration(self, select_memory_ras_configuration): - """ - Sets the select_memory_ras_configuration of this BiosMemory. - BIOS Token for setting SelectMemory RAS configuration configuration - - :param select_memory_ras_configuration: The select_memory_ras_configuration of this BiosMemory. - :type: str - """ - allowed_values = ["platform-default", "maximum-performance", "mirror-mode-1lm"] - if select_memory_ras_configuration not in allowed_values: - raise ValueError( - "Invalid value for `select_memory_ras_configuration` ({0}), must be one of {1}" - .format(select_memory_ras_configuration, allowed_values) - ) - - self._select_memory_ras_configuration = select_memory_ras_configuration - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, BiosMemory): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/bios_policy.py b/intersight/models/bios_policy.py index d649d67c..2181f507 100644 --- a/intersight/models/bios_policy.py +++ b/intersight/models/bios_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,26 +32,243 @@ class BiosPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'input_output': 'BiosInputOutput', - 'lom_and_pcie_slots_configuration': 'BiosLomAndPcieSlotsConfiguration', - 'memory': 'BiosMemory', - 'organization': 'MoMoRef', - 'power_or_performance': 'BiosPowerOrPerformance', - 'processor': 'BiosProcessor', - 'profiles': 'list[MoMoRef]', - 'security': 'BiosSecurity', - 'serial_configuration': 'BiosSerialConfiguration', - 'server_management': 'BiosServerManagement' + 'adjacent_cache_line_prefetch': 'str', + 'all_usb_devices': 'str', + 'altitude': 'str', + 'aspm_support': 'str', + 'assert_nmi_on_perr': 'str', + 'assert_nmi_on_serr': 'str', + 'auto_cc_state': 'str', + 'autonumous_cstate_enable': 'str', + 'baud_rate': 'str', + 'bme_dma_mitigation': 'str', + 'boot_option_num_retry': 'str', + 'boot_option_re_cool_down': 'str', + 'boot_option_retry': 'str', + 'boot_performance_mode': 'str', + 'cbs_cmn_cpu_cpb': 'str', + 'cbs_cmn_cpu_gen_downcore_ctrl': 'str', + 'cbs_cmn_cpu_global_cstate_ctrl': 'str', + 'cbs_cmn_cpu_l1stream_hw_prefetcher': 'str', + 'cbs_cmn_cpu_l2stream_hw_prefetcher': 'str', + 'cbs_cmn_determinism_slider': 'str', + 'cbs_cmn_gnb_nb_iommu': 'str', + 'cbs_cmn_mem_ctrl_bank_group_swap_ddr4': 'str', + 'cbs_cmn_mem_map_bank_interleave_ddr4': 'str', + 'cbs_cmnc_tdp_ctl': 'str', + 'cbs_df_cmn_mem_intlv': 'str', + 'cbs_df_cmn_mem_intlv_size': 'str', + 'cdn_enable': 'str', + 'cdn_support': 'str', + 'channel_inter_leave': 'str', + 'cke_low_policy': 'str', + 'closed_loop_therm_throtl': 'str', + 'cmci_enable': 'str', + 'config_tdp': 'str', + 'console_redirection': 'str', + 'core_multi_processing': 'str', + 'cpu_energy_performance': 'str', + 'cpu_frequency_floor': 'str', + 'cpu_performance': 'str', + 'cpu_power_management': 'str', + 'demand_scrub': 'str', + 'direct_cache_access': 'str', + 'dram_clock_throttling': 'str', + 'dram_refresh_rate': 'str', + 'energy_efficient_turbo': 'str', + 'eng_perf_tuning': 'str', + 'enhanced_intel_speed_step_tech': 'str', + 'epp_profile': 'str', + 'execute_disable_bit': 'str', + 'extended_apic': 'str', + 'flow_control': 'str', + 'frb2enable': 'str', + 'hardware_prefetch': 'str', + 'hwpm_enable': 'str', + 'imc_interleave': 'str', + 'intel_hyper_threading_tech': 'str', + 'intel_turbo_boost_tech': 'str', + 'intel_virtualization_technology': 'str', + 'intel_vt_for_directed_io': 'str', + 'intel_vtd_coherency_support': 'str', + 'intel_vtd_interrupt_remapping': 'str', + 'intel_vtd_pass_through_dma_support': 'str', + 'intel_vtdats_support': 'str', + 'ioh_error_enable': 'str', + 'ioh_resource': 'str', + 'ip_prefetch': 'str', + 'ipv6pxe': 'str', + 'kti_prefetch': 'str', + 'legacy_os_redirection': 'str', + 'legacy_usb_support': 'str', + 'llc_prefetch': 'str', + 'lom_port0state': 'str', + 'lom_port1state': 'str', + 'lom_port2state': 'str', + 'lom_port3state': 'str', + 'lom_ports_all_state': 'str', + 'lv_ddr_mode': 'str', + 'make_device_non_bootable': 'str', + 'memory_inter_leave': 'str', + 'memory_mapped_io_above4gb': 'str', + 'mirroring_mode': 'str', + 'mmcfg_base': 'str', + 'numa_optimized': 'str', + 'onboard10gbit_lom': 'str', + 'onboard_gbit_lom': 'str', + 'onboard_scu_storage_support': 'str', + 'onboard_scu_storage_sw_stack': 'str', + 'organization': 'IamAccountRef', + 'os_boot_watchdog_timer': 'str', + 'os_boot_watchdog_timer_policy': 'str', + 'os_boot_watchdog_timer_timeout': 'str', + 'out_of_band_mgmt_port': 'str', + 'package_cstate_limit': 'str', + 'patrol_scrub': 'str', + 'patrol_scrub_duration': 'str', + 'pc_ie_ssd_hot_plug_support': 'str', + 'pch_usb30mode': 'str', + 'pci_option_ro_ms': 'str', + 'pci_rom_clp': 'str', + 'pop_support': 'str', + 'post_error_pause': 'str', + 'processor_c1e': 'str', + 'processor_c3report': 'str', + 'processor_c6report': 'str', + 'processor_cstate': 'str', + 'profiles': 'list[PolicyAbstractConfigProfileRef]', + 'psata': 'str', + 'pstate_coord_type': 'str', + 'putty_key_pad': 'str', + 'pwr_perf_tuning': 'str', + 'qpi_link_frequency': 'str', + 'qpi_snoop_mode': 'str', + 'rank_inter_leave': 'str', + 'redirection_after_post': 'str', + 'sata_mode_select': 'str', + 'select_memory_ras_configuration': 'str', + 'serial_port_aenable': 'str', + 'single_pctl_enable': 'str', + 'slot10link_speed': 'str', + 'slot10state': 'str', + 'slot11link_speed': 'str', + 'slot11state': 'str', + 'slot12link_speed': 'str', + 'slot12state': 'str', + 'slot1link_speed': 'str', + 'slot1state': 'str', + 'slot2link_speed': 'str', + 'slot2state': 'str', + 'slot3link_speed': 'str', + 'slot3state': 'str', + 'slot4link_speed': 'str', + 'slot4state': 'str', + 'slot5link_speed': 'str', + 'slot5state': 'str', + 'slot6link_speed': 'str', + 'slot6state': 'str', + 'slot7link_speed': 'str', + 'slot7state': 'str', + 'slot8link_speed': 'str', + 'slot8state': 'str', + 'slot9link_speed': 'str', + 'slot9state': 'str', + 'slot_flom_link_speed': 'str', + 'slot_front_nvme1link_speed': 'str', + 'slot_front_nvme2link_speed': 'str', + 'slot_front_slot5link_speed': 'str', + 'slot_front_slot6link_speed': 'str', + 'slot_hba_link_speed': 'str', + 'slot_hba_state': 'str', + 'slot_lom1link': 'str', + 'slot_lom2link': 'str', + 'slot_mezz_state': 'str', + 'slot_mlom_link_speed': 'str', + 'slot_mlom_state': 'str', + 'slot_mraid_link_speed': 'str', + 'slot_mraid_state': 'str', + 'slot_n10state': 'str', + 'slot_n11state': 'str', + 'slot_n12state': 'str', + 'slot_n13state': 'str', + 'slot_n14state': 'str', + 'slot_n15state': 'str', + 'slot_n16state': 'str', + 'slot_n17state': 'str', + 'slot_n18state': 'str', + 'slot_n19state': 'str', + 'slot_n1state': 'str', + 'slot_n20state': 'str', + 'slot_n21state': 'str', + 'slot_n22state': 'str', + 'slot_n23state': 'str', + 'slot_n24state': 'str', + 'slot_n2state': 'str', + 'slot_n3state': 'str', + 'slot_n4state': 'str', + 'slot_n5state': 'str', + 'slot_n6state': 'str', + 'slot_n7state': 'str', + 'slot_n8state': 'str', + 'slot_n9state': 'str', + 'slot_raid_link_speed': 'str', + 'slot_raid_state': 'str', + 'slot_rear_nvme1link_speed': 'str', + 'slot_rear_nvme1state': 'str', + 'slot_rear_nvme2link_speed': 'str', + 'slot_rear_nvme2state': 'str', + 'slot_rear_nvme3state': 'str', + 'slot_rear_nvme4state': 'str', + 'slot_rear_nvme5state': 'str', + 'slot_rear_nvme6state': 'str', + 'slot_rear_nvme7state': 'str', + 'slot_rear_nvme8state': 'str', + 'slot_riser1link_speed': 'str', + 'slot_riser1slot1link_speed': 'str', + 'slot_riser1slot2link_speed': 'str', + 'slot_riser1slot3link_speed': 'str', + 'slot_riser2link_speed': 'str', + 'slot_riser2slot4link_speed': 'str', + 'slot_riser2slot5link_speed': 'str', + 'slot_riser2slot6link_speed': 'str', + 'slot_sas_state': 'str', + 'slot_ssd_slot1link_speed': 'str', + 'slot_ssd_slot2link_speed': 'str', + 'smee': 'str', + 'smt_mode': 'str', + 'snc': 'str', + 'sparing_mode': 'str', + 'sr_iov': 'str', + 'streamer_prefetch': 'str', + 'svm_mode': 'str', + 'terminal_type': 'str', + 'tpm_control': 'str', + 'tpm_support': 'str', + 'txt_support': 'str', + 'ucsm_boot_order_rule': 'str', + 'usb_emul6064': 'str', + 'usb_port_front': 'str', + 'usb_port_internal': 'str', + 'usb_port_kvm': 'str', + 'usb_port_rear': 'str', + 'usb_port_sd_card': 'str', + 'usb_port_vmedia': 'str', + 'usb_xhci_support': 'str', + 'vga_priority': 'str', + 'vmd_enable': 'str', + 'work_load_config': 'str', + 'xpt_prefetch': 'str' } attribute_map = { @@ -64,21 +281,238 @@ class BiosPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', - 'input_output': 'InputOutput', - 'lom_and_pcie_slots_configuration': 'LomAndPcieSlotsConfiguration', - 'memory': 'Memory', + 'adjacent_cache_line_prefetch': 'AdjacentCacheLinePrefetch', + 'all_usb_devices': 'AllUsbDevices', + 'altitude': 'Altitude', + 'aspm_support': 'AspmSupport', + 'assert_nmi_on_perr': 'AssertNmiOnPerr', + 'assert_nmi_on_serr': 'AssertNmiOnSerr', + 'auto_cc_state': 'AutoCcState', + 'autonumous_cstate_enable': 'AutonumousCstateEnable', + 'baud_rate': 'BaudRate', + 'bme_dma_mitigation': 'BmeDmaMitigation', + 'boot_option_num_retry': 'BootOptionNumRetry', + 'boot_option_re_cool_down': 'BootOptionReCoolDown', + 'boot_option_retry': 'BootOptionRetry', + 'boot_performance_mode': 'BootPerformanceMode', + 'cbs_cmn_cpu_cpb': 'CbsCmnCpuCpb', + 'cbs_cmn_cpu_gen_downcore_ctrl': 'CbsCmnCpuGenDowncoreCtrl', + 'cbs_cmn_cpu_global_cstate_ctrl': 'CbsCmnCpuGlobalCstateCtrl', + 'cbs_cmn_cpu_l1stream_hw_prefetcher': 'CbsCmnCpuL1streamHwPrefetcher', + 'cbs_cmn_cpu_l2stream_hw_prefetcher': 'CbsCmnCpuL2streamHwPrefetcher', + 'cbs_cmn_determinism_slider': 'CbsCmnDeterminismSlider', + 'cbs_cmn_gnb_nb_iommu': 'CbsCmnGnbNbIommu', + 'cbs_cmn_mem_ctrl_bank_group_swap_ddr4': 'CbsCmnMemCtrlBankGroupSwapDdr4', + 'cbs_cmn_mem_map_bank_interleave_ddr4': 'CbsCmnMemMapBankInterleaveDdr4', + 'cbs_cmnc_tdp_ctl': 'CbsCmncTdpCtl', + 'cbs_df_cmn_mem_intlv': 'CbsDfCmnMemIntlv', + 'cbs_df_cmn_mem_intlv_size': 'CbsDfCmnMemIntlvSize', + 'cdn_enable': 'CdnEnable', + 'cdn_support': 'CdnSupport', + 'channel_inter_leave': 'ChannelInterLeave', + 'cke_low_policy': 'CkeLowPolicy', + 'closed_loop_therm_throtl': 'ClosedLoopThermThrotl', + 'cmci_enable': 'CmciEnable', + 'config_tdp': 'ConfigTdp', + 'console_redirection': 'ConsoleRedirection', + 'core_multi_processing': 'CoreMultiProcessing', + 'cpu_energy_performance': 'CpuEnergyPerformance', + 'cpu_frequency_floor': 'CpuFrequencyFloor', + 'cpu_performance': 'CpuPerformance', + 'cpu_power_management': 'CpuPowerManagement', + 'demand_scrub': 'DemandScrub', + 'direct_cache_access': 'DirectCacheAccess', + 'dram_clock_throttling': 'DramClockThrottling', + 'dram_refresh_rate': 'DramRefreshRate', + 'energy_efficient_turbo': 'EnergyEfficientTurbo', + 'eng_perf_tuning': 'EngPerfTuning', + 'enhanced_intel_speed_step_tech': 'EnhancedIntelSpeedStepTech', + 'epp_profile': 'EppProfile', + 'execute_disable_bit': 'ExecuteDisableBit', + 'extended_apic': 'ExtendedApic', + 'flow_control': 'FlowControl', + 'frb2enable': 'Frb2enable', + 'hardware_prefetch': 'HardwarePrefetch', + 'hwpm_enable': 'HwpmEnable', + 'imc_interleave': 'ImcInterleave', + 'intel_hyper_threading_tech': 'IntelHyperThreadingTech', + 'intel_turbo_boost_tech': 'IntelTurboBoostTech', + 'intel_virtualization_technology': 'IntelVirtualizationTechnology', + 'intel_vt_for_directed_io': 'IntelVtForDirectedIo', + 'intel_vtd_coherency_support': 'IntelVtdCoherencySupport', + 'intel_vtd_interrupt_remapping': 'IntelVtdInterruptRemapping', + 'intel_vtd_pass_through_dma_support': 'IntelVtdPassThroughDmaSupport', + 'intel_vtdats_support': 'IntelVtdatsSupport', + 'ioh_error_enable': 'IohErrorEnable', + 'ioh_resource': 'IohResource', + 'ip_prefetch': 'IpPrefetch', + 'ipv6pxe': 'Ipv6pxe', + 'kti_prefetch': 'KtiPrefetch', + 'legacy_os_redirection': 'LegacyOsRedirection', + 'legacy_usb_support': 'LegacyUsbSupport', + 'llc_prefetch': 'LlcPrefetch', + 'lom_port0state': 'LomPort0state', + 'lom_port1state': 'LomPort1state', + 'lom_port2state': 'LomPort2state', + 'lom_port3state': 'LomPort3state', + 'lom_ports_all_state': 'LomPortsAllState', + 'lv_ddr_mode': 'LvDdrMode', + 'make_device_non_bootable': 'MakeDeviceNonBootable', + 'memory_inter_leave': 'MemoryInterLeave', + 'memory_mapped_io_above4gb': 'MemoryMappedIoAbove4gb', + 'mirroring_mode': 'MirroringMode', + 'mmcfg_base': 'MmcfgBase', + 'numa_optimized': 'NumaOptimized', + 'onboard10gbit_lom': 'Onboard10gbitLom', + 'onboard_gbit_lom': 'OnboardGbitLom', + 'onboard_scu_storage_support': 'OnboardScuStorageSupport', + 'onboard_scu_storage_sw_stack': 'OnboardScuStorageSwStack', 'organization': 'Organization', - 'power_or_performance': 'PowerOrPerformance', - 'processor': 'Processor', + 'os_boot_watchdog_timer': 'OsBootWatchdogTimer', + 'os_boot_watchdog_timer_policy': 'OsBootWatchdogTimerPolicy', + 'os_boot_watchdog_timer_timeout': 'OsBootWatchdogTimerTimeout', + 'out_of_band_mgmt_port': 'OutOfBandMgmtPort', + 'package_cstate_limit': 'PackageCstateLimit', + 'patrol_scrub': 'PatrolScrub', + 'patrol_scrub_duration': 'PatrolScrubDuration', + 'pc_ie_ssd_hot_plug_support': 'PcIeSsdHotPlugSupport', + 'pch_usb30mode': 'PchUsb30mode', + 'pci_option_ro_ms': 'PciOptionRoMs', + 'pci_rom_clp': 'PciRomClp', + 'pop_support': 'PopSupport', + 'post_error_pause': 'PostErrorPause', + 'processor_c1e': 'ProcessorC1e', + 'processor_c3report': 'ProcessorC3report', + 'processor_c6report': 'ProcessorC6report', + 'processor_cstate': 'ProcessorCstate', 'profiles': 'Profiles', - 'security': 'Security', - 'serial_configuration': 'SerialConfiguration', - 'server_management': 'ServerManagement' + 'psata': 'Psata', + 'pstate_coord_type': 'PstateCoordType', + 'putty_key_pad': 'PuttyKeyPad', + 'pwr_perf_tuning': 'PwrPerfTuning', + 'qpi_link_frequency': 'QpiLinkFrequency', + 'qpi_snoop_mode': 'QpiSnoopMode', + 'rank_inter_leave': 'RankInterLeave', + 'redirection_after_post': 'RedirectionAfterPost', + 'sata_mode_select': 'SataModeSelect', + 'select_memory_ras_configuration': 'SelectMemoryRasConfiguration', + 'serial_port_aenable': 'SerialPortAenable', + 'single_pctl_enable': 'SinglePctlEnable', + 'slot10link_speed': 'Slot10linkSpeed', + 'slot10state': 'Slot10state', + 'slot11link_speed': 'Slot11linkSpeed', + 'slot11state': 'Slot11state', + 'slot12link_speed': 'Slot12linkSpeed', + 'slot12state': 'Slot12state', + 'slot1link_speed': 'Slot1linkSpeed', + 'slot1state': 'Slot1state', + 'slot2link_speed': 'Slot2linkSpeed', + 'slot2state': 'Slot2state', + 'slot3link_speed': 'Slot3linkSpeed', + 'slot3state': 'Slot3state', + 'slot4link_speed': 'Slot4linkSpeed', + 'slot4state': 'Slot4state', + 'slot5link_speed': 'Slot5linkSpeed', + 'slot5state': 'Slot5state', + 'slot6link_speed': 'Slot6linkSpeed', + 'slot6state': 'Slot6state', + 'slot7link_speed': 'Slot7linkSpeed', + 'slot7state': 'Slot7state', + 'slot8link_speed': 'Slot8linkSpeed', + 'slot8state': 'Slot8state', + 'slot9link_speed': 'Slot9linkSpeed', + 'slot9state': 'Slot9state', + 'slot_flom_link_speed': 'SlotFlomLinkSpeed', + 'slot_front_nvme1link_speed': 'SlotFrontNvme1linkSpeed', + 'slot_front_nvme2link_speed': 'SlotFrontNvme2linkSpeed', + 'slot_front_slot5link_speed': 'SlotFrontSlot5linkSpeed', + 'slot_front_slot6link_speed': 'SlotFrontSlot6linkSpeed', + 'slot_hba_link_speed': 'SlotHbaLinkSpeed', + 'slot_hba_state': 'SlotHbaState', + 'slot_lom1link': 'SlotLom1link', + 'slot_lom2link': 'SlotLom2link', + 'slot_mezz_state': 'SlotMezzState', + 'slot_mlom_link_speed': 'SlotMlomLinkSpeed', + 'slot_mlom_state': 'SlotMlomState', + 'slot_mraid_link_speed': 'SlotMraidLinkSpeed', + 'slot_mraid_state': 'SlotMraidState', + 'slot_n10state': 'SlotN10state', + 'slot_n11state': 'SlotN11state', + 'slot_n12state': 'SlotN12state', + 'slot_n13state': 'SlotN13state', + 'slot_n14state': 'SlotN14state', + 'slot_n15state': 'SlotN15state', + 'slot_n16state': 'SlotN16state', + 'slot_n17state': 'SlotN17state', + 'slot_n18state': 'SlotN18state', + 'slot_n19state': 'SlotN19state', + 'slot_n1state': 'SlotN1state', + 'slot_n20state': 'SlotN20state', + 'slot_n21state': 'SlotN21state', + 'slot_n22state': 'SlotN22state', + 'slot_n23state': 'SlotN23state', + 'slot_n24state': 'SlotN24state', + 'slot_n2state': 'SlotN2state', + 'slot_n3state': 'SlotN3state', + 'slot_n4state': 'SlotN4state', + 'slot_n5state': 'SlotN5state', + 'slot_n6state': 'SlotN6state', + 'slot_n7state': 'SlotN7state', + 'slot_n8state': 'SlotN8state', + 'slot_n9state': 'SlotN9state', + 'slot_raid_link_speed': 'SlotRaidLinkSpeed', + 'slot_raid_state': 'SlotRaidState', + 'slot_rear_nvme1link_speed': 'SlotRearNvme1linkSpeed', + 'slot_rear_nvme1state': 'SlotRearNvme1state', + 'slot_rear_nvme2link_speed': 'SlotRearNvme2linkSpeed', + 'slot_rear_nvme2state': 'SlotRearNvme2state', + 'slot_rear_nvme3state': 'SlotRearNvme3state', + 'slot_rear_nvme4state': 'SlotRearNvme4state', + 'slot_rear_nvme5state': 'SlotRearNvme5state', + 'slot_rear_nvme6state': 'SlotRearNvme6state', + 'slot_rear_nvme7state': 'SlotRearNvme7state', + 'slot_rear_nvme8state': 'SlotRearNvme8state', + 'slot_riser1link_speed': 'SlotRiser1linkSpeed', + 'slot_riser1slot1link_speed': 'SlotRiser1slot1linkSpeed', + 'slot_riser1slot2link_speed': 'SlotRiser1slot2linkSpeed', + 'slot_riser1slot3link_speed': 'SlotRiser1slot3linkSpeed', + 'slot_riser2link_speed': 'SlotRiser2linkSpeed', + 'slot_riser2slot4link_speed': 'SlotRiser2slot4linkSpeed', + 'slot_riser2slot5link_speed': 'SlotRiser2slot5linkSpeed', + 'slot_riser2slot6link_speed': 'SlotRiser2slot6linkSpeed', + 'slot_sas_state': 'SlotSasState', + 'slot_ssd_slot1link_speed': 'SlotSsdSlot1linkSpeed', + 'slot_ssd_slot2link_speed': 'SlotSsdSlot2linkSpeed', + 'smee': 'Smee', + 'smt_mode': 'SmtMode', + 'snc': 'Snc', + 'sparing_mode': 'SparingMode', + 'sr_iov': 'SrIov', + 'streamer_prefetch': 'StreamerPrefetch', + 'svm_mode': 'SvmMode', + 'terminal_type': 'TerminalType', + 'tpm_control': 'TpmControl', + 'tpm_support': 'TpmSupport', + 'txt_support': 'TxtSupport', + 'ucsm_boot_order_rule': 'UcsmBootOrderRule', + 'usb_emul6064': 'UsbEmul6064', + 'usb_port_front': 'UsbPortFront', + 'usb_port_internal': 'UsbPortInternal', + 'usb_port_kvm': 'UsbPortKvm', + 'usb_port_rear': 'UsbPortRear', + 'usb_port_sd_card': 'UsbPortSdCard', + 'usb_port_vmedia': 'UsbPortVmedia', + 'usb_xhci_support': 'UsbXhciSupport', + 'vga_priority': 'VgaPriority', + 'vmd_enable': 'VmdEnable', + 'work_load_config': 'WorkLoadConfig', + 'xpt_prefetch': 'XptPrefetch' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, input_output=None, lom_and_pcie_slots_configuration=None, memory=None, organization=None, power_or_performance=None, processor=None, profiles=None, security=None, serial_configuration=None, server_management=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, adjacent_cache_line_prefetch='platform-default', all_usb_devices='platform-default', altitude='platform-default', aspm_support='platform-default', assert_nmi_on_perr='platform-default', assert_nmi_on_serr='platform-default', auto_cc_state='platform-default', autonumous_cstate_enable='platform-default', baud_rate='platform-default', bme_dma_mitigation='platform-default', boot_option_num_retry='platform-default', boot_option_re_cool_down='platform-default', boot_option_retry='platform-default', boot_performance_mode='platform-default', cbs_cmn_cpu_cpb='platform-default', cbs_cmn_cpu_gen_downcore_ctrl='platform-default', cbs_cmn_cpu_global_cstate_ctrl='platform-default', cbs_cmn_cpu_l1stream_hw_prefetcher='platform-default', cbs_cmn_cpu_l2stream_hw_prefetcher='platform-default', cbs_cmn_determinism_slider='platform-default', cbs_cmn_gnb_nb_iommu='platform-default', cbs_cmn_mem_ctrl_bank_group_swap_ddr4='platform-default', cbs_cmn_mem_map_bank_interleave_ddr4='platform-default', cbs_cmnc_tdp_ctl='platform-default', cbs_df_cmn_mem_intlv='platform-default', cbs_df_cmn_mem_intlv_size='platform-default', cdn_enable='platform-default', cdn_support='platform-default', channel_inter_leave='platform-default', cke_low_policy='platform-default', closed_loop_therm_throtl='platform-default', cmci_enable='platform-default', config_tdp='platform-default', console_redirection='platform-default', core_multi_processing='platform-default', cpu_energy_performance='platform-default', cpu_frequency_floor='platform-default', cpu_performance='platform-default', cpu_power_management='platform-default', demand_scrub='platform-default', direct_cache_access='platform-default', dram_clock_throttling='platform-default', dram_refresh_rate='platform-default', energy_efficient_turbo='platform-default', eng_perf_tuning='platform-default', enhanced_intel_speed_step_tech='platform-default', epp_profile='platform-default', execute_disable_bit='platform-default', extended_apic='platform-default', flow_control='platform-default', frb2enable='platform-default', hardware_prefetch='platform-default', hwpm_enable='platform-default', imc_interleave='platform-default', intel_hyper_threading_tech='platform-default', intel_turbo_boost_tech='platform-default', intel_virtualization_technology='platform-default', intel_vt_for_directed_io='platform-default', intel_vtd_coherency_support='platform-default', intel_vtd_interrupt_remapping='platform-default', intel_vtd_pass_through_dma_support='platform-default', intel_vtdats_support='platform-default', ioh_error_enable='platform-default', ioh_resource='platform-default', ip_prefetch='platform-default', ipv6pxe='platform-default', kti_prefetch='platform-default', legacy_os_redirection='platform-default', legacy_usb_support='platform-default', llc_prefetch='platform-default', lom_port0state='platform-default', lom_port1state='platform-default', lom_port2state='platform-default', lom_port3state='platform-default', lom_ports_all_state='platform-default', lv_ddr_mode='platform-default', make_device_non_bootable='platform-default', memory_inter_leave='platform-default', memory_mapped_io_above4gb='platform-default', mirroring_mode='platform-default', mmcfg_base='platform-default', numa_optimized='platform-default', onboard10gbit_lom='platform-default', onboard_gbit_lom='platform-default', onboard_scu_storage_support='platform-default', onboard_scu_storage_sw_stack='platform-default', organization=None, os_boot_watchdog_timer='platform-default', os_boot_watchdog_timer_policy='platform-default', os_boot_watchdog_timer_timeout='platform-default', out_of_band_mgmt_port='platform-default', package_cstate_limit='platform-default', patrol_scrub='platform-default', patrol_scrub_duration='platform-default', pc_ie_ssd_hot_plug_support='platform-default', pch_usb30mode='platform-default', pci_option_ro_ms='platform-default', pci_rom_clp='platform-default', pop_support='platform-default', post_error_pause='platform-default', processor_c1e='platform-default', processor_c3report='platform-default', processor_c6report='platform-default', processor_cstate='platform-default', profiles=None, psata='platform-default', pstate_coord_type='platform-default', putty_key_pad='platform-default', pwr_perf_tuning='platform-default', qpi_link_frequency='platform-default', qpi_snoop_mode='platform-default', rank_inter_leave='platform-default', redirection_after_post='platform-default', sata_mode_select='platform-default', select_memory_ras_configuration='platform-default', serial_port_aenable='platform-default', single_pctl_enable='platform-default', slot10link_speed='platform-default', slot10state='platform-default', slot11link_speed='platform-default', slot11state='platform-default', slot12link_speed='platform-default', slot12state='platform-default', slot1link_speed='platform-default', slot1state='platform-default', slot2link_speed='platform-default', slot2state='platform-default', slot3link_speed='platform-default', slot3state='platform-default', slot4link_speed='platform-default', slot4state='platform-default', slot5link_speed='platform-default', slot5state='platform-default', slot6link_speed='platform-default', slot6state='platform-default', slot7link_speed='platform-default', slot7state='platform-default', slot8link_speed='platform-default', slot8state='platform-default', slot9link_speed='platform-default', slot9state='platform-default', slot_flom_link_speed='platform-default', slot_front_nvme1link_speed='platform-default', slot_front_nvme2link_speed='platform-default', slot_front_slot5link_speed='platform-default', slot_front_slot6link_speed='platform-default', slot_hba_link_speed='platform-default', slot_hba_state='platform-default', slot_lom1link='platform-default', slot_lom2link='platform-default', slot_mezz_state='platform-default', slot_mlom_link_speed='platform-default', slot_mlom_state='platform-default', slot_mraid_link_speed='platform-default', slot_mraid_state='platform-default', slot_n10state='platform-default', slot_n11state='platform-default', slot_n12state='platform-default', slot_n13state='platform-default', slot_n14state='platform-default', slot_n15state='platform-default', slot_n16state='platform-default', slot_n17state='platform-default', slot_n18state='platform-default', slot_n19state='platform-default', slot_n1state='platform-default', slot_n20state='platform-default', slot_n21state='platform-default', slot_n22state='platform-default', slot_n23state='platform-default', slot_n24state='platform-default', slot_n2state='platform-default', slot_n3state='platform-default', slot_n4state='platform-default', slot_n5state='platform-default', slot_n6state='platform-default', slot_n7state='platform-default', slot_n8state='platform-default', slot_n9state='platform-default', slot_raid_link_speed='platform-default', slot_raid_state='platform-default', slot_rear_nvme1link_speed='platform-default', slot_rear_nvme1state='platform-default', slot_rear_nvme2link_speed='platform-default', slot_rear_nvme2state='platform-default', slot_rear_nvme3state='platform-default', slot_rear_nvme4state='platform-default', slot_rear_nvme5state='platform-default', slot_rear_nvme6state='platform-default', slot_rear_nvme7state='platform-default', slot_rear_nvme8state='platform-default', slot_riser1link_speed='platform-default', slot_riser1slot1link_speed='platform-default', slot_riser1slot2link_speed='platform-default', slot_riser1slot3link_speed='platform-default', slot_riser2link_speed='platform-default', slot_riser2slot4link_speed='platform-default', slot_riser2slot5link_speed='platform-default', slot_riser2slot6link_speed='platform-default', slot_sas_state='platform-default', slot_ssd_slot1link_speed='platform-default', slot_ssd_slot2link_speed='platform-default', smee='platform-default', smt_mode='platform-default', snc='platform-default', sparing_mode='platform-default', sr_iov='platform-default', streamer_prefetch='platform-default', svm_mode='platform-default', terminal_type='platform-default', tpm_control='platform-default', tpm_support='platform-default', txt_support='platform-default', ucsm_boot_order_rule='platform-default', usb_emul6064='platform-default', usb_port_front='platform-default', usb_port_internal='platform-default', usb_port_kvm='platform-default', usb_port_rear='platform-default', usb_port_sd_card='platform-default', usb_port_vmedia='platform-default', usb_xhci_support='platform-default', vga_priority='platform-default', vmd_enable='platform-default', work_load_config='platform-default', xpt_prefetch='platform-default'): """ BiosPolicy - a model defined in Swagger """ @@ -92,18 +526,235 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None - self._input_output = None - self._lom_and_pcie_slots_configuration = None - self._memory = None + self._adjacent_cache_line_prefetch = None + self._all_usb_devices = None + self._altitude = None + self._aspm_support = None + self._assert_nmi_on_perr = None + self._assert_nmi_on_serr = None + self._auto_cc_state = None + self._autonumous_cstate_enable = None + self._baud_rate = None + self._bme_dma_mitigation = None + self._boot_option_num_retry = None + self._boot_option_re_cool_down = None + self._boot_option_retry = None + self._boot_performance_mode = None + self._cbs_cmn_cpu_cpb = None + self._cbs_cmn_cpu_gen_downcore_ctrl = None + self._cbs_cmn_cpu_global_cstate_ctrl = None + self._cbs_cmn_cpu_l1stream_hw_prefetcher = None + self._cbs_cmn_cpu_l2stream_hw_prefetcher = None + self._cbs_cmn_determinism_slider = None + self._cbs_cmn_gnb_nb_iommu = None + self._cbs_cmn_mem_ctrl_bank_group_swap_ddr4 = None + self._cbs_cmn_mem_map_bank_interleave_ddr4 = None + self._cbs_cmnc_tdp_ctl = None + self._cbs_df_cmn_mem_intlv = None + self._cbs_df_cmn_mem_intlv_size = None + self._cdn_enable = None + self._cdn_support = None + self._channel_inter_leave = None + self._cke_low_policy = None + self._closed_loop_therm_throtl = None + self._cmci_enable = None + self._config_tdp = None + self._console_redirection = None + self._core_multi_processing = None + self._cpu_energy_performance = None + self._cpu_frequency_floor = None + self._cpu_performance = None + self._cpu_power_management = None + self._demand_scrub = None + self._direct_cache_access = None + self._dram_clock_throttling = None + self._dram_refresh_rate = None + self._energy_efficient_turbo = None + self._eng_perf_tuning = None + self._enhanced_intel_speed_step_tech = None + self._epp_profile = None + self._execute_disable_bit = None + self._extended_apic = None + self._flow_control = None + self._frb2enable = None + self._hardware_prefetch = None + self._hwpm_enable = None + self._imc_interleave = None + self._intel_hyper_threading_tech = None + self._intel_turbo_boost_tech = None + self._intel_virtualization_technology = None + self._intel_vt_for_directed_io = None + self._intel_vtd_coherency_support = None + self._intel_vtd_interrupt_remapping = None + self._intel_vtd_pass_through_dma_support = None + self._intel_vtdats_support = None + self._ioh_error_enable = None + self._ioh_resource = None + self._ip_prefetch = None + self._ipv6pxe = None + self._kti_prefetch = None + self._legacy_os_redirection = None + self._legacy_usb_support = None + self._llc_prefetch = None + self._lom_port0state = None + self._lom_port1state = None + self._lom_port2state = None + self._lom_port3state = None + self._lom_ports_all_state = None + self._lv_ddr_mode = None + self._make_device_non_bootable = None + self._memory_inter_leave = None + self._memory_mapped_io_above4gb = None + self._mirroring_mode = None + self._mmcfg_base = None + self._numa_optimized = None + self._onboard10gbit_lom = None + self._onboard_gbit_lom = None + self._onboard_scu_storage_support = None + self._onboard_scu_storage_sw_stack = None self._organization = None - self._power_or_performance = None - self._processor = None + self._os_boot_watchdog_timer = None + self._os_boot_watchdog_timer_policy = None + self._os_boot_watchdog_timer_timeout = None + self._out_of_band_mgmt_port = None + self._package_cstate_limit = None + self._patrol_scrub = None + self._patrol_scrub_duration = None + self._pc_ie_ssd_hot_plug_support = None + self._pch_usb30mode = None + self._pci_option_ro_ms = None + self._pci_rom_clp = None + self._pop_support = None + self._post_error_pause = None + self._processor_c1e = None + self._processor_c3report = None + self._processor_c6report = None + self._processor_cstate = None self._profiles = None - self._security = None - self._serial_configuration = None - self._server_management = None + self._psata = None + self._pstate_coord_type = None + self._putty_key_pad = None + self._pwr_perf_tuning = None + self._qpi_link_frequency = None + self._qpi_snoop_mode = None + self._rank_inter_leave = None + self._redirection_after_post = None + self._sata_mode_select = None + self._select_memory_ras_configuration = None + self._serial_port_aenable = None + self._single_pctl_enable = None + self._slot10link_speed = None + self._slot10state = None + self._slot11link_speed = None + self._slot11state = None + self._slot12link_speed = None + self._slot12state = None + self._slot1link_speed = None + self._slot1state = None + self._slot2link_speed = None + self._slot2state = None + self._slot3link_speed = None + self._slot3state = None + self._slot4link_speed = None + self._slot4state = None + self._slot5link_speed = None + self._slot5state = None + self._slot6link_speed = None + self._slot6state = None + self._slot7link_speed = None + self._slot7state = None + self._slot8link_speed = None + self._slot8state = None + self._slot9link_speed = None + self._slot9state = None + self._slot_flom_link_speed = None + self._slot_front_nvme1link_speed = None + self._slot_front_nvme2link_speed = None + self._slot_front_slot5link_speed = None + self._slot_front_slot6link_speed = None + self._slot_hba_link_speed = None + self._slot_hba_state = None + self._slot_lom1link = None + self._slot_lom2link = None + self._slot_mezz_state = None + self._slot_mlom_link_speed = None + self._slot_mlom_state = None + self._slot_mraid_link_speed = None + self._slot_mraid_state = None + self._slot_n10state = None + self._slot_n11state = None + self._slot_n12state = None + self._slot_n13state = None + self._slot_n14state = None + self._slot_n15state = None + self._slot_n16state = None + self._slot_n17state = None + self._slot_n18state = None + self._slot_n19state = None + self._slot_n1state = None + self._slot_n20state = None + self._slot_n21state = None + self._slot_n22state = None + self._slot_n23state = None + self._slot_n24state = None + self._slot_n2state = None + self._slot_n3state = None + self._slot_n4state = None + self._slot_n5state = None + self._slot_n6state = None + self._slot_n7state = None + self._slot_n8state = None + self._slot_n9state = None + self._slot_raid_link_speed = None + self._slot_raid_state = None + self._slot_rear_nvme1link_speed = None + self._slot_rear_nvme1state = None + self._slot_rear_nvme2link_speed = None + self._slot_rear_nvme2state = None + self._slot_rear_nvme3state = None + self._slot_rear_nvme4state = None + self._slot_rear_nvme5state = None + self._slot_rear_nvme6state = None + self._slot_rear_nvme7state = None + self._slot_rear_nvme8state = None + self._slot_riser1link_speed = None + self._slot_riser1slot1link_speed = None + self._slot_riser1slot2link_speed = None + self._slot_riser1slot3link_speed = None + self._slot_riser2link_speed = None + self._slot_riser2slot4link_speed = None + self._slot_riser2slot5link_speed = None + self._slot_riser2slot6link_speed = None + self._slot_sas_state = None + self._slot_ssd_slot1link_speed = None + self._slot_ssd_slot2link_speed = None + self._smee = None + self._smt_mode = None + self._snc = None + self._sparing_mode = None + self._sr_iov = None + self._streamer_prefetch = None + self._svm_mode = None + self._terminal_type = None + self._tpm_control = None + self._tpm_support = None + self._txt_support = None + self._ucsm_boot_order_rule = None + self._usb_emul6064 = None + self._usb_port_front = None + self._usb_port_internal = None + self._usb_port_kvm = None + self._usb_port_rear = None + self._usb_port_sd_card = None + self._usb_port_vmedia = None + self._usb_xhci_support = None + self._vga_priority = None + self._vmd_enable = None + self._work_load_config = None + self._xpt_prefetch = None if account_moid is not None: self.account_moid = account_moid @@ -123,30 +774,464 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: self.name = name - if input_output is not None: - self.input_output = input_output - if lom_and_pcie_slots_configuration is not None: - self.lom_and_pcie_slots_configuration = lom_and_pcie_slots_configuration - if memory is not None: - self.memory = memory + if adjacent_cache_line_prefetch is not None: + self.adjacent_cache_line_prefetch = adjacent_cache_line_prefetch + if all_usb_devices is not None: + self.all_usb_devices = all_usb_devices + if altitude is not None: + self.altitude = altitude + if aspm_support is not None: + self.aspm_support = aspm_support + if assert_nmi_on_perr is not None: + self.assert_nmi_on_perr = assert_nmi_on_perr + if assert_nmi_on_serr is not None: + self.assert_nmi_on_serr = assert_nmi_on_serr + if auto_cc_state is not None: + self.auto_cc_state = auto_cc_state + if autonumous_cstate_enable is not None: + self.autonumous_cstate_enable = autonumous_cstate_enable + if baud_rate is not None: + self.baud_rate = baud_rate + if bme_dma_mitigation is not None: + self.bme_dma_mitigation = bme_dma_mitigation + if boot_option_num_retry is not None: + self.boot_option_num_retry = boot_option_num_retry + if boot_option_re_cool_down is not None: + self.boot_option_re_cool_down = boot_option_re_cool_down + if boot_option_retry is not None: + self.boot_option_retry = boot_option_retry + if boot_performance_mode is not None: + self.boot_performance_mode = boot_performance_mode + if cbs_cmn_cpu_cpb is not None: + self.cbs_cmn_cpu_cpb = cbs_cmn_cpu_cpb + if cbs_cmn_cpu_gen_downcore_ctrl is not None: + self.cbs_cmn_cpu_gen_downcore_ctrl = cbs_cmn_cpu_gen_downcore_ctrl + if cbs_cmn_cpu_global_cstate_ctrl is not None: + self.cbs_cmn_cpu_global_cstate_ctrl = cbs_cmn_cpu_global_cstate_ctrl + if cbs_cmn_cpu_l1stream_hw_prefetcher is not None: + self.cbs_cmn_cpu_l1stream_hw_prefetcher = cbs_cmn_cpu_l1stream_hw_prefetcher + if cbs_cmn_cpu_l2stream_hw_prefetcher is not None: + self.cbs_cmn_cpu_l2stream_hw_prefetcher = cbs_cmn_cpu_l2stream_hw_prefetcher + if cbs_cmn_determinism_slider is not None: + self.cbs_cmn_determinism_slider = cbs_cmn_determinism_slider + if cbs_cmn_gnb_nb_iommu is not None: + self.cbs_cmn_gnb_nb_iommu = cbs_cmn_gnb_nb_iommu + if cbs_cmn_mem_ctrl_bank_group_swap_ddr4 is not None: + self.cbs_cmn_mem_ctrl_bank_group_swap_ddr4 = cbs_cmn_mem_ctrl_bank_group_swap_ddr4 + if cbs_cmn_mem_map_bank_interleave_ddr4 is not None: + self.cbs_cmn_mem_map_bank_interleave_ddr4 = cbs_cmn_mem_map_bank_interleave_ddr4 + if cbs_cmnc_tdp_ctl is not None: + self.cbs_cmnc_tdp_ctl = cbs_cmnc_tdp_ctl + if cbs_df_cmn_mem_intlv is not None: + self.cbs_df_cmn_mem_intlv = cbs_df_cmn_mem_intlv + if cbs_df_cmn_mem_intlv_size is not None: + self.cbs_df_cmn_mem_intlv_size = cbs_df_cmn_mem_intlv_size + if cdn_enable is not None: + self.cdn_enable = cdn_enable + if cdn_support is not None: + self.cdn_support = cdn_support + if channel_inter_leave is not None: + self.channel_inter_leave = channel_inter_leave + if cke_low_policy is not None: + self.cke_low_policy = cke_low_policy + if closed_loop_therm_throtl is not None: + self.closed_loop_therm_throtl = closed_loop_therm_throtl + if cmci_enable is not None: + self.cmci_enable = cmci_enable + if config_tdp is not None: + self.config_tdp = config_tdp + if console_redirection is not None: + self.console_redirection = console_redirection + if core_multi_processing is not None: + self.core_multi_processing = core_multi_processing + if cpu_energy_performance is not None: + self.cpu_energy_performance = cpu_energy_performance + if cpu_frequency_floor is not None: + self.cpu_frequency_floor = cpu_frequency_floor + if cpu_performance is not None: + self.cpu_performance = cpu_performance + if cpu_power_management is not None: + self.cpu_power_management = cpu_power_management + if demand_scrub is not None: + self.demand_scrub = demand_scrub + if direct_cache_access is not None: + self.direct_cache_access = direct_cache_access + if dram_clock_throttling is not None: + self.dram_clock_throttling = dram_clock_throttling + if dram_refresh_rate is not None: + self.dram_refresh_rate = dram_refresh_rate + if energy_efficient_turbo is not None: + self.energy_efficient_turbo = energy_efficient_turbo + if eng_perf_tuning is not None: + self.eng_perf_tuning = eng_perf_tuning + if enhanced_intel_speed_step_tech is not None: + self.enhanced_intel_speed_step_tech = enhanced_intel_speed_step_tech + if epp_profile is not None: + self.epp_profile = epp_profile + if execute_disable_bit is not None: + self.execute_disable_bit = execute_disable_bit + if extended_apic is not None: + self.extended_apic = extended_apic + if flow_control is not None: + self.flow_control = flow_control + if frb2enable is not None: + self.frb2enable = frb2enable + if hardware_prefetch is not None: + self.hardware_prefetch = hardware_prefetch + if hwpm_enable is not None: + self.hwpm_enable = hwpm_enable + if imc_interleave is not None: + self.imc_interleave = imc_interleave + if intel_hyper_threading_tech is not None: + self.intel_hyper_threading_tech = intel_hyper_threading_tech + if intel_turbo_boost_tech is not None: + self.intel_turbo_boost_tech = intel_turbo_boost_tech + if intel_virtualization_technology is not None: + self.intel_virtualization_technology = intel_virtualization_technology + if intel_vt_for_directed_io is not None: + self.intel_vt_for_directed_io = intel_vt_for_directed_io + if intel_vtd_coherency_support is not None: + self.intel_vtd_coherency_support = intel_vtd_coherency_support + if intel_vtd_interrupt_remapping is not None: + self.intel_vtd_interrupt_remapping = intel_vtd_interrupt_remapping + if intel_vtd_pass_through_dma_support is not None: + self.intel_vtd_pass_through_dma_support = intel_vtd_pass_through_dma_support + if intel_vtdats_support is not None: + self.intel_vtdats_support = intel_vtdats_support + if ioh_error_enable is not None: + self.ioh_error_enable = ioh_error_enable + if ioh_resource is not None: + self.ioh_resource = ioh_resource + if ip_prefetch is not None: + self.ip_prefetch = ip_prefetch + if ipv6pxe is not None: + self.ipv6pxe = ipv6pxe + if kti_prefetch is not None: + self.kti_prefetch = kti_prefetch + if legacy_os_redirection is not None: + self.legacy_os_redirection = legacy_os_redirection + if legacy_usb_support is not None: + self.legacy_usb_support = legacy_usb_support + if llc_prefetch is not None: + self.llc_prefetch = llc_prefetch + if lom_port0state is not None: + self.lom_port0state = lom_port0state + if lom_port1state is not None: + self.lom_port1state = lom_port1state + if lom_port2state is not None: + self.lom_port2state = lom_port2state + if lom_port3state is not None: + self.lom_port3state = lom_port3state + if lom_ports_all_state is not None: + self.lom_ports_all_state = lom_ports_all_state + if lv_ddr_mode is not None: + self.lv_ddr_mode = lv_ddr_mode + if make_device_non_bootable is not None: + self.make_device_non_bootable = make_device_non_bootable + if memory_inter_leave is not None: + self.memory_inter_leave = memory_inter_leave + if memory_mapped_io_above4gb is not None: + self.memory_mapped_io_above4gb = memory_mapped_io_above4gb + if mirroring_mode is not None: + self.mirroring_mode = mirroring_mode + if mmcfg_base is not None: + self.mmcfg_base = mmcfg_base + if numa_optimized is not None: + self.numa_optimized = numa_optimized + if onboard10gbit_lom is not None: + self.onboard10gbit_lom = onboard10gbit_lom + if onboard_gbit_lom is not None: + self.onboard_gbit_lom = onboard_gbit_lom + if onboard_scu_storage_support is not None: + self.onboard_scu_storage_support = onboard_scu_storage_support + if onboard_scu_storage_sw_stack is not None: + self.onboard_scu_storage_sw_stack = onboard_scu_storage_sw_stack if organization is not None: self.organization = organization - if power_or_performance is not None: - self.power_or_performance = power_or_performance - if processor is not None: - self.processor = processor + if os_boot_watchdog_timer is not None: + self.os_boot_watchdog_timer = os_boot_watchdog_timer + if os_boot_watchdog_timer_policy is not None: + self.os_boot_watchdog_timer_policy = os_boot_watchdog_timer_policy + if os_boot_watchdog_timer_timeout is not None: + self.os_boot_watchdog_timer_timeout = os_boot_watchdog_timer_timeout + if out_of_band_mgmt_port is not None: + self.out_of_band_mgmt_port = out_of_band_mgmt_port + if package_cstate_limit is not None: + self.package_cstate_limit = package_cstate_limit + if patrol_scrub is not None: + self.patrol_scrub = patrol_scrub + if patrol_scrub_duration is not None: + self.patrol_scrub_duration = patrol_scrub_duration + if pc_ie_ssd_hot_plug_support is not None: + self.pc_ie_ssd_hot_plug_support = pc_ie_ssd_hot_plug_support + if pch_usb30mode is not None: + self.pch_usb30mode = pch_usb30mode + if pci_option_ro_ms is not None: + self.pci_option_ro_ms = pci_option_ro_ms + if pci_rom_clp is not None: + self.pci_rom_clp = pci_rom_clp + if pop_support is not None: + self.pop_support = pop_support + if post_error_pause is not None: + self.post_error_pause = post_error_pause + if processor_c1e is not None: + self.processor_c1e = processor_c1e + if processor_c3report is not None: + self.processor_c3report = processor_c3report + if processor_c6report is not None: + self.processor_c6report = processor_c6report + if processor_cstate is not None: + self.processor_cstate = processor_cstate if profiles is not None: self.profiles = profiles - if security is not None: - self.security = security - if serial_configuration is not None: - self.serial_configuration = serial_configuration - if server_management is not None: - self.server_management = server_management + if psata is not None: + self.psata = psata + if pstate_coord_type is not None: + self.pstate_coord_type = pstate_coord_type + if putty_key_pad is not None: + self.putty_key_pad = putty_key_pad + if pwr_perf_tuning is not None: + self.pwr_perf_tuning = pwr_perf_tuning + if qpi_link_frequency is not None: + self.qpi_link_frequency = qpi_link_frequency + if qpi_snoop_mode is not None: + self.qpi_snoop_mode = qpi_snoop_mode + if rank_inter_leave is not None: + self.rank_inter_leave = rank_inter_leave + if redirection_after_post is not None: + self.redirection_after_post = redirection_after_post + if sata_mode_select is not None: + self.sata_mode_select = sata_mode_select + if select_memory_ras_configuration is not None: + self.select_memory_ras_configuration = select_memory_ras_configuration + if serial_port_aenable is not None: + self.serial_port_aenable = serial_port_aenable + if single_pctl_enable is not None: + self.single_pctl_enable = single_pctl_enable + if slot10link_speed is not None: + self.slot10link_speed = slot10link_speed + if slot10state is not None: + self.slot10state = slot10state + if slot11link_speed is not None: + self.slot11link_speed = slot11link_speed + if slot11state is not None: + self.slot11state = slot11state + if slot12link_speed is not None: + self.slot12link_speed = slot12link_speed + if slot12state is not None: + self.slot12state = slot12state + if slot1link_speed is not None: + self.slot1link_speed = slot1link_speed + if slot1state is not None: + self.slot1state = slot1state + if slot2link_speed is not None: + self.slot2link_speed = slot2link_speed + if slot2state is not None: + self.slot2state = slot2state + if slot3link_speed is not None: + self.slot3link_speed = slot3link_speed + if slot3state is not None: + self.slot3state = slot3state + if slot4link_speed is not None: + self.slot4link_speed = slot4link_speed + if slot4state is not None: + self.slot4state = slot4state + if slot5link_speed is not None: + self.slot5link_speed = slot5link_speed + if slot5state is not None: + self.slot5state = slot5state + if slot6link_speed is not None: + self.slot6link_speed = slot6link_speed + if slot6state is not None: + self.slot6state = slot6state + if slot7link_speed is not None: + self.slot7link_speed = slot7link_speed + if slot7state is not None: + self.slot7state = slot7state + if slot8link_speed is not None: + self.slot8link_speed = slot8link_speed + if slot8state is not None: + self.slot8state = slot8state + if slot9link_speed is not None: + self.slot9link_speed = slot9link_speed + if slot9state is not None: + self.slot9state = slot9state + if slot_flom_link_speed is not None: + self.slot_flom_link_speed = slot_flom_link_speed + if slot_front_nvme1link_speed is not None: + self.slot_front_nvme1link_speed = slot_front_nvme1link_speed + if slot_front_nvme2link_speed is not None: + self.slot_front_nvme2link_speed = slot_front_nvme2link_speed + if slot_front_slot5link_speed is not None: + self.slot_front_slot5link_speed = slot_front_slot5link_speed + if slot_front_slot6link_speed is not None: + self.slot_front_slot6link_speed = slot_front_slot6link_speed + if slot_hba_link_speed is not None: + self.slot_hba_link_speed = slot_hba_link_speed + if slot_hba_state is not None: + self.slot_hba_state = slot_hba_state + if slot_lom1link is not None: + self.slot_lom1link = slot_lom1link + if slot_lom2link is not None: + self.slot_lom2link = slot_lom2link + if slot_mezz_state is not None: + self.slot_mezz_state = slot_mezz_state + if slot_mlom_link_speed is not None: + self.slot_mlom_link_speed = slot_mlom_link_speed + if slot_mlom_state is not None: + self.slot_mlom_state = slot_mlom_state + if slot_mraid_link_speed is not None: + self.slot_mraid_link_speed = slot_mraid_link_speed + if slot_mraid_state is not None: + self.slot_mraid_state = slot_mraid_state + if slot_n10state is not None: + self.slot_n10state = slot_n10state + if slot_n11state is not None: + self.slot_n11state = slot_n11state + if slot_n12state is not None: + self.slot_n12state = slot_n12state + if slot_n13state is not None: + self.slot_n13state = slot_n13state + if slot_n14state is not None: + self.slot_n14state = slot_n14state + if slot_n15state is not None: + self.slot_n15state = slot_n15state + if slot_n16state is not None: + self.slot_n16state = slot_n16state + if slot_n17state is not None: + self.slot_n17state = slot_n17state + if slot_n18state is not None: + self.slot_n18state = slot_n18state + if slot_n19state is not None: + self.slot_n19state = slot_n19state + if slot_n1state is not None: + self.slot_n1state = slot_n1state + if slot_n20state is not None: + self.slot_n20state = slot_n20state + if slot_n21state is not None: + self.slot_n21state = slot_n21state + if slot_n22state is not None: + self.slot_n22state = slot_n22state + if slot_n23state is not None: + self.slot_n23state = slot_n23state + if slot_n24state is not None: + self.slot_n24state = slot_n24state + if slot_n2state is not None: + self.slot_n2state = slot_n2state + if slot_n3state is not None: + self.slot_n3state = slot_n3state + if slot_n4state is not None: + self.slot_n4state = slot_n4state + if slot_n5state is not None: + self.slot_n5state = slot_n5state + if slot_n6state is not None: + self.slot_n6state = slot_n6state + if slot_n7state is not None: + self.slot_n7state = slot_n7state + if slot_n8state is not None: + self.slot_n8state = slot_n8state + if slot_n9state is not None: + self.slot_n9state = slot_n9state + if slot_raid_link_speed is not None: + self.slot_raid_link_speed = slot_raid_link_speed + if slot_raid_state is not None: + self.slot_raid_state = slot_raid_state + if slot_rear_nvme1link_speed is not None: + self.slot_rear_nvme1link_speed = slot_rear_nvme1link_speed + if slot_rear_nvme1state is not None: + self.slot_rear_nvme1state = slot_rear_nvme1state + if slot_rear_nvme2link_speed is not None: + self.slot_rear_nvme2link_speed = slot_rear_nvme2link_speed + if slot_rear_nvme2state is not None: + self.slot_rear_nvme2state = slot_rear_nvme2state + if slot_rear_nvme3state is not None: + self.slot_rear_nvme3state = slot_rear_nvme3state + if slot_rear_nvme4state is not None: + self.slot_rear_nvme4state = slot_rear_nvme4state + if slot_rear_nvme5state is not None: + self.slot_rear_nvme5state = slot_rear_nvme5state + if slot_rear_nvme6state is not None: + self.slot_rear_nvme6state = slot_rear_nvme6state + if slot_rear_nvme7state is not None: + self.slot_rear_nvme7state = slot_rear_nvme7state + if slot_rear_nvme8state is not None: + self.slot_rear_nvme8state = slot_rear_nvme8state + if slot_riser1link_speed is not None: + self.slot_riser1link_speed = slot_riser1link_speed + if slot_riser1slot1link_speed is not None: + self.slot_riser1slot1link_speed = slot_riser1slot1link_speed + if slot_riser1slot2link_speed is not None: + self.slot_riser1slot2link_speed = slot_riser1slot2link_speed + if slot_riser1slot3link_speed is not None: + self.slot_riser1slot3link_speed = slot_riser1slot3link_speed + if slot_riser2link_speed is not None: + self.slot_riser2link_speed = slot_riser2link_speed + if slot_riser2slot4link_speed is not None: + self.slot_riser2slot4link_speed = slot_riser2slot4link_speed + if slot_riser2slot5link_speed is not None: + self.slot_riser2slot5link_speed = slot_riser2slot5link_speed + if slot_riser2slot6link_speed is not None: + self.slot_riser2slot6link_speed = slot_riser2slot6link_speed + if slot_sas_state is not None: + self.slot_sas_state = slot_sas_state + if slot_ssd_slot1link_speed is not None: + self.slot_ssd_slot1link_speed = slot_ssd_slot1link_speed + if slot_ssd_slot2link_speed is not None: + self.slot_ssd_slot2link_speed = slot_ssd_slot2link_speed + if smee is not None: + self.smee = smee + if smt_mode is not None: + self.smt_mode = smt_mode + if snc is not None: + self.snc = snc + if sparing_mode is not None: + self.sparing_mode = sparing_mode + if sr_iov is not None: + self.sr_iov = sr_iov + if streamer_prefetch is not None: + self.streamer_prefetch = streamer_prefetch + if svm_mode is not None: + self.svm_mode = svm_mode + if terminal_type is not None: + self.terminal_type = terminal_type + if tpm_control is not None: + self.tpm_control = tpm_control + if tpm_support is not None: + self.tpm_support = tpm_support + if txt_support is not None: + self.txt_support = txt_support + if ucsm_boot_order_rule is not None: + self.ucsm_boot_order_rule = ucsm_boot_order_rule + if usb_emul6064 is not None: + self.usb_emul6064 = usb_emul6064 + if usb_port_front is not None: + self.usb_port_front = usb_port_front + if usb_port_internal is not None: + self.usb_port_internal = usb_port_internal + if usb_port_kvm is not None: + self.usb_port_kvm = usb_port_kvm + if usb_port_rear is not None: + self.usb_port_rear = usb_port_rear + if usb_port_sd_card is not None: + self.usb_port_sd_card = usb_port_sd_card + if usb_port_vmedia is not None: + self.usb_port_vmedia = usb_port_vmedia + if usb_xhci_support is not None: + self.usb_xhci_support = usb_xhci_support + if vga_priority is not None: + self.vga_priority = vga_priority + if vmd_enable is not None: + self.vmd_enable = vmd_enable + if work_load_config is not None: + self.work_load_config = work_load_config + if xpt_prefetch is not None: + self.xpt_prefetch = xpt_prefetch @property def account_moid(self): @@ -178,7 +1263,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this BiosPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -189,7 +1274,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this BiosPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -316,7 +1401,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this BiosPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -327,7 +1412,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this BiosPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -336,7 +1421,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this BiosPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this BiosPolicy. :rtype: list[MoTag] @@ -347,7 +1432,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this BiosPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this BiosPolicy. :type: list[MoTag] @@ -355,6 +1440,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this BiosPolicy. + The versioning info for this managed object + + :return: The version_context of this BiosPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this BiosPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this BiosPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -402,234 +1510,6546 @@ def name(self, name): self._name = name @property - def input_output(self): + def adjacent_cache_line_prefetch(self): """ - Gets the input_output of this BiosPolicy. - BIOS Settings for Input-output + Gets the adjacent_cache_line_prefetch of this BiosPolicy. + BIOS Token for setting Adjacent Cache Line Prefetcher configuration - :return: The input_output of this BiosPolicy. - :rtype: BiosInputOutput + :return: The adjacent_cache_line_prefetch of this BiosPolicy. + :rtype: str """ - return self._input_output + return self._adjacent_cache_line_prefetch - @input_output.setter - def input_output(self, input_output): + @adjacent_cache_line_prefetch.setter + def adjacent_cache_line_prefetch(self, adjacent_cache_line_prefetch): """ - Sets the input_output of this BiosPolicy. - BIOS Settings for Input-output + Sets the adjacent_cache_line_prefetch of this BiosPolicy. + BIOS Token for setting Adjacent Cache Line Prefetcher configuration - :param input_output: The input_output of this BiosPolicy. - :type: BiosInputOutput + :param adjacent_cache_line_prefetch: The adjacent_cache_line_prefetch of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "enabled", "disabled"] + if adjacent_cache_line_prefetch not in allowed_values: + raise ValueError( + "Invalid value for `adjacent_cache_line_prefetch` ({0}), must be one of {1}" + .format(adjacent_cache_line_prefetch, allowed_values) + ) - self._input_output = input_output + self._adjacent_cache_line_prefetch = adjacent_cache_line_prefetch @property - def lom_and_pcie_slots_configuration(self): + def all_usb_devices(self): """ - Gets the lom_and_pcie_slots_configuration of this BiosPolicy. - BIOS Settings for LOM and PCIe Slots Configuration + Gets the all_usb_devices of this BiosPolicy. + BIOS Token for setting All USB Devices configuration - :return: The lom_and_pcie_slots_configuration of this BiosPolicy. - :rtype: BiosLomAndPcieSlotsConfiguration + :return: The all_usb_devices of this BiosPolicy. + :rtype: str """ - return self._lom_and_pcie_slots_configuration + return self._all_usb_devices - @lom_and_pcie_slots_configuration.setter - def lom_and_pcie_slots_configuration(self, lom_and_pcie_slots_configuration): + @all_usb_devices.setter + def all_usb_devices(self, all_usb_devices): """ - Sets the lom_and_pcie_slots_configuration of this BiosPolicy. - BIOS Settings for LOM and PCIe Slots Configuration + Sets the all_usb_devices of this BiosPolicy. + BIOS Token for setting All USB Devices configuration - :param lom_and_pcie_slots_configuration: The lom_and_pcie_slots_configuration of this BiosPolicy. - :type: BiosLomAndPcieSlotsConfiguration + :param all_usb_devices: The all_usb_devices of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "enabled", "disabled"] + if all_usb_devices not in allowed_values: + raise ValueError( + "Invalid value for `all_usb_devices` ({0}), must be one of {1}" + .format(all_usb_devices, allowed_values) + ) - self._lom_and_pcie_slots_configuration = lom_and_pcie_slots_configuration + self._all_usb_devices = all_usb_devices @property - def memory(self): + def altitude(self): """ - Gets the memory of this BiosPolicy. - BIOS Settings for Memory + Gets the altitude of this BiosPolicy. + BIOS Token for setting Altitude configuration - :return: The memory of this BiosPolicy. - :rtype: BiosMemory + :return: The altitude of this BiosPolicy. + :rtype: str """ - return self._memory + return self._altitude - @memory.setter - def memory(self, memory): + @altitude.setter + def altitude(self, altitude): """ - Sets the memory of this BiosPolicy. - BIOS Settings for Memory + Sets the altitude of this BiosPolicy. + BIOS Token for setting Altitude configuration - :param memory: The memory of this BiosPolicy. - :type: BiosMemory + :param altitude: The altitude of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "1500-m", "300-m", "3000-m", "900-m", "auto"] + if altitude not in allowed_values: + raise ValueError( + "Invalid value for `altitude` ({0}), must be one of {1}" + .format(altitude, allowed_values) + ) - self._memory = memory + self._altitude = altitude @property - def organization(self): + def aspm_support(self): """ - Gets the organization of this BiosPolicy. - Organization + Gets the aspm_support of this BiosPolicy. + BIOS Token for setting ASPM Support configuration - :return: The organization of this BiosPolicy. - :rtype: MoMoRef + :return: The aspm_support of this BiosPolicy. + :rtype: str """ - return self._organization + return self._aspm_support - @organization.setter - def organization(self, organization): + @aspm_support.setter + def aspm_support(self, aspm_support): """ - Sets the organization of this BiosPolicy. - Organization + Sets the aspm_support of this BiosPolicy. + BIOS Token for setting ASPM Support configuration - :param organization: The organization of this BiosPolicy. - :type: MoMoRef + :param aspm_support: The aspm_support of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "Auto", "Disabled", "Force L0s", "L1 Only"] + if aspm_support not in allowed_values: + raise ValueError( + "Invalid value for `aspm_support` ({0}), must be one of {1}" + .format(aspm_support, allowed_values) + ) - self._organization = organization + self._aspm_support = aspm_support + + @property + def assert_nmi_on_perr(self): + """ + Gets the assert_nmi_on_perr of this BiosPolicy. + BIOS Token for setting Assert NMI on PERR configuration + + :return: The assert_nmi_on_perr of this BiosPolicy. + :rtype: str + """ + return self._assert_nmi_on_perr + + @assert_nmi_on_perr.setter + def assert_nmi_on_perr(self, assert_nmi_on_perr): + """ + Sets the assert_nmi_on_perr of this BiosPolicy. + BIOS Token for setting Assert NMI on PERR configuration + + :param assert_nmi_on_perr: The assert_nmi_on_perr of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if assert_nmi_on_perr not in allowed_values: + raise ValueError( + "Invalid value for `assert_nmi_on_perr` ({0}), must be one of {1}" + .format(assert_nmi_on_perr, allowed_values) + ) + + self._assert_nmi_on_perr = assert_nmi_on_perr @property - def power_or_performance(self): + def assert_nmi_on_serr(self): """ - Gets the power_or_performance of this BiosPolicy. - BIOS Settings for Power-or-performance + Gets the assert_nmi_on_serr of this BiosPolicy. + BIOS Token for setting Assert NMI on SERR configuration - :return: The power_or_performance of this BiosPolicy. - :rtype: BiosPowerOrPerformance + :return: The assert_nmi_on_serr of this BiosPolicy. + :rtype: str """ - return self._power_or_performance + return self._assert_nmi_on_serr - @power_or_performance.setter - def power_or_performance(self, power_or_performance): + @assert_nmi_on_serr.setter + def assert_nmi_on_serr(self, assert_nmi_on_serr): """ - Sets the power_or_performance of this BiosPolicy. - BIOS Settings for Power-or-performance + Sets the assert_nmi_on_serr of this BiosPolicy. + BIOS Token for setting Assert NMI on SERR configuration - :param power_or_performance: The power_or_performance of this BiosPolicy. - :type: BiosPowerOrPerformance + :param assert_nmi_on_serr: The assert_nmi_on_serr of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "enabled", "disabled"] + if assert_nmi_on_serr not in allowed_values: + raise ValueError( + "Invalid value for `assert_nmi_on_serr` ({0}), must be one of {1}" + .format(assert_nmi_on_serr, allowed_values) + ) - self._power_or_performance = power_or_performance + self._assert_nmi_on_serr = assert_nmi_on_serr @property - def processor(self): + def auto_cc_state(self): """ - Gets the processor of this BiosPolicy. - BIOS Settings for Processor + Gets the auto_cc_state of this BiosPolicy. + BIOS Token for setting Autonomous Core C-state configuration - :return: The processor of this BiosPolicy. - :rtype: BiosProcessor + :return: The auto_cc_state of this BiosPolicy. + :rtype: str """ - return self._processor + return self._auto_cc_state - @processor.setter - def processor(self, processor): + @auto_cc_state.setter + def auto_cc_state(self, auto_cc_state): """ - Sets the processor of this BiosPolicy. - BIOS Settings for Processor + Sets the auto_cc_state of this BiosPolicy. + BIOS Token for setting Autonomous Core C-state configuration - :param processor: The processor of this BiosPolicy. - :type: BiosProcessor + :param auto_cc_state: The auto_cc_state of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "enabled", "disabled"] + if auto_cc_state not in allowed_values: + raise ValueError( + "Invalid value for `auto_cc_state` ({0}), must be one of {1}" + .format(auto_cc_state, allowed_values) + ) - self._processor = processor + self._auto_cc_state = auto_cc_state @property - def profiles(self): + def autonumous_cstate_enable(self): """ - Gets the profiles of this BiosPolicy. - Relationship to the profile objects + Gets the autonumous_cstate_enable of this BiosPolicy. + BIOS Token for setting CPU Autonomous Cstate configuration - :return: The profiles of this BiosPolicy. - :rtype: list[MoMoRef] + :return: The autonumous_cstate_enable of this BiosPolicy. + :rtype: str """ - return self._profiles + return self._autonumous_cstate_enable - @profiles.setter - def profiles(self, profiles): + @autonumous_cstate_enable.setter + def autonumous_cstate_enable(self, autonumous_cstate_enable): """ - Sets the profiles of this BiosPolicy. - Relationship to the profile objects + Sets the autonumous_cstate_enable of this BiosPolicy. + BIOS Token for setting CPU Autonomous Cstate configuration - :param profiles: The profiles of this BiosPolicy. - :type: list[MoMoRef] + :param autonumous_cstate_enable: The autonumous_cstate_enable of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "enabled", "disabled"] + if autonumous_cstate_enable not in allowed_values: + raise ValueError( + "Invalid value for `autonumous_cstate_enable` ({0}), must be one of {1}" + .format(autonumous_cstate_enable, allowed_values) + ) - self._profiles = profiles + self._autonumous_cstate_enable = autonumous_cstate_enable + + @property + def baud_rate(self): + """ + Gets the baud_rate of this BiosPolicy. + BIOS Token for setting Baud rate configuration + + :return: The baud_rate of this BiosPolicy. + :rtype: str + """ + return self._baud_rate + + @baud_rate.setter + def baud_rate(self, baud_rate): + """ + Sets the baud_rate of this BiosPolicy. + BIOS Token for setting Baud rate configuration + + :param baud_rate: The baud_rate of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "115200", "19200", "38400", "57600", "9600"] + if baud_rate not in allowed_values: + raise ValueError( + "Invalid value for `baud_rate` ({0}), must be one of {1}" + .format(baud_rate, allowed_values) + ) + + self._baud_rate = baud_rate + + @property + def bme_dma_mitigation(self): + """ + Gets the bme_dma_mitigation of this BiosPolicy. + BIOS Token for setting BME DMA Mitigation configuration + + :return: The bme_dma_mitigation of this BiosPolicy. + :rtype: str + """ + return self._bme_dma_mitigation + + @bme_dma_mitigation.setter + def bme_dma_mitigation(self, bme_dma_mitigation): + """ + Sets the bme_dma_mitigation of this BiosPolicy. + BIOS Token for setting BME DMA Mitigation configuration + + :param bme_dma_mitigation: The bme_dma_mitigation of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if bme_dma_mitigation not in allowed_values: + raise ValueError( + "Invalid value for `bme_dma_mitigation` ({0}), must be one of {1}" + .format(bme_dma_mitigation, allowed_values) + ) + + self._bme_dma_mitigation = bme_dma_mitigation + + @property + def boot_option_num_retry(self): + """ + Gets the boot_option_num_retry of this BiosPolicy. + BIOS Token for setting Number of Retries configuration + + :return: The boot_option_num_retry of this BiosPolicy. + :rtype: str + """ + return self._boot_option_num_retry + + @boot_option_num_retry.setter + def boot_option_num_retry(self, boot_option_num_retry): + """ + Sets the boot_option_num_retry of this BiosPolicy. + BIOS Token for setting Number of Retries configuration + + :param boot_option_num_retry: The boot_option_num_retry of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "13", "5", "Infinite"] + if boot_option_num_retry not in allowed_values: + raise ValueError( + "Invalid value for `boot_option_num_retry` ({0}), must be one of {1}" + .format(boot_option_num_retry, allowed_values) + ) + + self._boot_option_num_retry = boot_option_num_retry + + @property + def boot_option_re_cool_down(self): + """ + Gets the boot_option_re_cool_down of this BiosPolicy. + BIOS Token for setting Cool Down Time (sec) configuration + + :return: The boot_option_re_cool_down of this BiosPolicy. + :rtype: str + """ + return self._boot_option_re_cool_down + + @boot_option_re_cool_down.setter + def boot_option_re_cool_down(self, boot_option_re_cool_down): + """ + Sets the boot_option_re_cool_down of this BiosPolicy. + BIOS Token for setting Cool Down Time (sec) configuration + + :param boot_option_re_cool_down: The boot_option_re_cool_down of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "15", "45", "90"] + if boot_option_re_cool_down not in allowed_values: + raise ValueError( + "Invalid value for `boot_option_re_cool_down` ({0}), must be one of {1}" + .format(boot_option_re_cool_down, allowed_values) + ) + + self._boot_option_re_cool_down = boot_option_re_cool_down + + @property + def boot_option_retry(self): + """ + Gets the boot_option_retry of this BiosPolicy. + BIOS Token for setting Boot option retry configuration + + :return: The boot_option_retry of this BiosPolicy. + :rtype: str + """ + return self._boot_option_retry + + @boot_option_retry.setter + def boot_option_retry(self, boot_option_retry): + """ + Sets the boot_option_retry of this BiosPolicy. + BIOS Token for setting Boot option retry configuration + + :param boot_option_retry: The boot_option_retry of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if boot_option_retry not in allowed_values: + raise ValueError( + "Invalid value for `boot_option_retry` ({0}), must be one of {1}" + .format(boot_option_retry, allowed_values) + ) + + self._boot_option_retry = boot_option_retry + + @property + def boot_performance_mode(self): + """ + Gets the boot_performance_mode of this BiosPolicy. + BIOS Token for setting Boot Performance Mode configuration + + :return: The boot_performance_mode of this BiosPolicy. + :rtype: str + """ + return self._boot_performance_mode + + @boot_performance_mode.setter + def boot_performance_mode(self, boot_performance_mode): + """ + Sets the boot_performance_mode of this BiosPolicy. + BIOS Token for setting Boot Performance Mode configuration + + :param boot_performance_mode: The boot_performance_mode of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Max Efficient", "Max Performance", "Set by Intel NM"] + if boot_performance_mode not in allowed_values: + raise ValueError( + "Invalid value for `boot_performance_mode` ({0}), must be one of {1}" + .format(boot_performance_mode, allowed_values) + ) + + self._boot_performance_mode = boot_performance_mode + + @property + def cbs_cmn_cpu_cpb(self): + """ + Gets the cbs_cmn_cpu_cpb of this BiosPolicy. + BIOS Token for setting Core Performance Boost configuration + + :return: The cbs_cmn_cpu_cpb of this BiosPolicy. + :rtype: str + """ + return self._cbs_cmn_cpu_cpb + + @cbs_cmn_cpu_cpb.setter + def cbs_cmn_cpu_cpb(self, cbs_cmn_cpu_cpb): + """ + Sets the cbs_cmn_cpu_cpb of this BiosPolicy. + BIOS Token for setting Core Performance Boost configuration + + :param cbs_cmn_cpu_cpb: The cbs_cmn_cpu_cpb of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "disabled"] + if cbs_cmn_cpu_cpb not in allowed_values: + raise ValueError( + "Invalid value for `cbs_cmn_cpu_cpb` ({0}), must be one of {1}" + .format(cbs_cmn_cpu_cpb, allowed_values) + ) + + self._cbs_cmn_cpu_cpb = cbs_cmn_cpu_cpb + + @property + def cbs_cmn_cpu_gen_downcore_ctrl(self): + """ + Gets the cbs_cmn_cpu_gen_downcore_ctrl of this BiosPolicy. + BIOS Token for setting Downcore control configuration + + :return: The cbs_cmn_cpu_gen_downcore_ctrl of this BiosPolicy. + :rtype: str + """ + return self._cbs_cmn_cpu_gen_downcore_ctrl + + @cbs_cmn_cpu_gen_downcore_ctrl.setter + def cbs_cmn_cpu_gen_downcore_ctrl(self, cbs_cmn_cpu_gen_downcore_ctrl): + """ + Sets the cbs_cmn_cpu_gen_downcore_ctrl of this BiosPolicy. + BIOS Token for setting Downcore control configuration + + :param cbs_cmn_cpu_gen_downcore_ctrl: The cbs_cmn_cpu_gen_downcore_ctrl of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "FOUR (2 + 2)", "FOUR (4 + 0)", "SIX (3 + 3)", "THREE (3 + 0)", "TWO (1 + 1)", "TWO (2 + 0)"] + if cbs_cmn_cpu_gen_downcore_ctrl not in allowed_values: + raise ValueError( + "Invalid value for `cbs_cmn_cpu_gen_downcore_ctrl` ({0}), must be one of {1}" + .format(cbs_cmn_cpu_gen_downcore_ctrl, allowed_values) + ) + + self._cbs_cmn_cpu_gen_downcore_ctrl = cbs_cmn_cpu_gen_downcore_ctrl + + @property + def cbs_cmn_cpu_global_cstate_ctrl(self): + """ + Gets the cbs_cmn_cpu_global_cstate_ctrl of this BiosPolicy. + BIOS Token for setting Global C-state Control configuration + + :return: The cbs_cmn_cpu_global_cstate_ctrl of this BiosPolicy. + :rtype: str + """ + return self._cbs_cmn_cpu_global_cstate_ctrl + + @cbs_cmn_cpu_global_cstate_ctrl.setter + def cbs_cmn_cpu_global_cstate_ctrl(self, cbs_cmn_cpu_global_cstate_ctrl): + """ + Sets the cbs_cmn_cpu_global_cstate_ctrl of this BiosPolicy. + BIOS Token for setting Global C-state Control configuration + + :param cbs_cmn_cpu_global_cstate_ctrl: The cbs_cmn_cpu_global_cstate_ctrl of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "disabled", "enabled"] + if cbs_cmn_cpu_global_cstate_ctrl not in allowed_values: + raise ValueError( + "Invalid value for `cbs_cmn_cpu_global_cstate_ctrl` ({0}), must be one of {1}" + .format(cbs_cmn_cpu_global_cstate_ctrl, allowed_values) + ) + + self._cbs_cmn_cpu_global_cstate_ctrl = cbs_cmn_cpu_global_cstate_ctrl + + @property + def cbs_cmn_cpu_l1stream_hw_prefetcher(self): + """ + Gets the cbs_cmn_cpu_l1stream_hw_prefetcher of this BiosPolicy. + BIOS Token for setting L1 Stream HW Prefetcher configuration + + :return: The cbs_cmn_cpu_l1stream_hw_prefetcher of this BiosPolicy. + :rtype: str + """ + return self._cbs_cmn_cpu_l1stream_hw_prefetcher + + @cbs_cmn_cpu_l1stream_hw_prefetcher.setter + def cbs_cmn_cpu_l1stream_hw_prefetcher(self, cbs_cmn_cpu_l1stream_hw_prefetcher): + """ + Sets the cbs_cmn_cpu_l1stream_hw_prefetcher of this BiosPolicy. + BIOS Token for setting L1 Stream HW Prefetcher configuration + + :param cbs_cmn_cpu_l1stream_hw_prefetcher: The cbs_cmn_cpu_l1stream_hw_prefetcher of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "disabled", "enabled"] + if cbs_cmn_cpu_l1stream_hw_prefetcher not in allowed_values: + raise ValueError( + "Invalid value for `cbs_cmn_cpu_l1stream_hw_prefetcher` ({0}), must be one of {1}" + .format(cbs_cmn_cpu_l1stream_hw_prefetcher, allowed_values) + ) + + self._cbs_cmn_cpu_l1stream_hw_prefetcher = cbs_cmn_cpu_l1stream_hw_prefetcher + + @property + def cbs_cmn_cpu_l2stream_hw_prefetcher(self): + """ + Gets the cbs_cmn_cpu_l2stream_hw_prefetcher of this BiosPolicy. + BIOS Token for setting L2 Stream HW Prefetcher configuration + + :return: The cbs_cmn_cpu_l2stream_hw_prefetcher of this BiosPolicy. + :rtype: str + """ + return self._cbs_cmn_cpu_l2stream_hw_prefetcher + + @cbs_cmn_cpu_l2stream_hw_prefetcher.setter + def cbs_cmn_cpu_l2stream_hw_prefetcher(self, cbs_cmn_cpu_l2stream_hw_prefetcher): + """ + Sets the cbs_cmn_cpu_l2stream_hw_prefetcher of this BiosPolicy. + BIOS Token for setting L2 Stream HW Prefetcher configuration + + :param cbs_cmn_cpu_l2stream_hw_prefetcher: The cbs_cmn_cpu_l2stream_hw_prefetcher of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "disabled", "enabled"] + if cbs_cmn_cpu_l2stream_hw_prefetcher not in allowed_values: + raise ValueError( + "Invalid value for `cbs_cmn_cpu_l2stream_hw_prefetcher` ({0}), must be one of {1}" + .format(cbs_cmn_cpu_l2stream_hw_prefetcher, allowed_values) + ) + + self._cbs_cmn_cpu_l2stream_hw_prefetcher = cbs_cmn_cpu_l2stream_hw_prefetcher + + @property + def cbs_cmn_determinism_slider(self): + """ + Gets the cbs_cmn_determinism_slider of this BiosPolicy. + BIOS Token for setting Determinism Slider configuration + + :return: The cbs_cmn_determinism_slider of this BiosPolicy. + :rtype: str + """ + return self._cbs_cmn_determinism_slider + + @cbs_cmn_determinism_slider.setter + def cbs_cmn_determinism_slider(self, cbs_cmn_determinism_slider): + """ + Sets the cbs_cmn_determinism_slider of this BiosPolicy. + BIOS Token for setting Determinism Slider configuration + + :param cbs_cmn_determinism_slider: The cbs_cmn_determinism_slider of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Performance", "Power"] + if cbs_cmn_determinism_slider not in allowed_values: + raise ValueError( + "Invalid value for `cbs_cmn_determinism_slider` ({0}), must be one of {1}" + .format(cbs_cmn_determinism_slider, allowed_values) + ) + + self._cbs_cmn_determinism_slider = cbs_cmn_determinism_slider + + @property + def cbs_cmn_gnb_nb_iommu(self): + """ + Gets the cbs_cmn_gnb_nb_iommu of this BiosPolicy. + BIOS Token for setting IOMMU configuration + + :return: The cbs_cmn_gnb_nb_iommu of this BiosPolicy. + :rtype: str + """ + return self._cbs_cmn_gnb_nb_iommu + + @cbs_cmn_gnb_nb_iommu.setter + def cbs_cmn_gnb_nb_iommu(self, cbs_cmn_gnb_nb_iommu): + """ + Sets the cbs_cmn_gnb_nb_iommu of this BiosPolicy. + BIOS Token for setting IOMMU configuration + + :param cbs_cmn_gnb_nb_iommu: The cbs_cmn_gnb_nb_iommu of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "disabled", "enabled"] + if cbs_cmn_gnb_nb_iommu not in allowed_values: + raise ValueError( + "Invalid value for `cbs_cmn_gnb_nb_iommu` ({0}), must be one of {1}" + .format(cbs_cmn_gnb_nb_iommu, allowed_values) + ) + + self._cbs_cmn_gnb_nb_iommu = cbs_cmn_gnb_nb_iommu + + @property + def cbs_cmn_mem_ctrl_bank_group_swap_ddr4(self): + """ + Gets the cbs_cmn_mem_ctrl_bank_group_swap_ddr4 of this BiosPolicy. + BIOS Token for setting Bank Group Swap configuration + + :return: The cbs_cmn_mem_ctrl_bank_group_swap_ddr4 of this BiosPolicy. + :rtype: str + """ + return self._cbs_cmn_mem_ctrl_bank_group_swap_ddr4 + + @cbs_cmn_mem_ctrl_bank_group_swap_ddr4.setter + def cbs_cmn_mem_ctrl_bank_group_swap_ddr4(self, cbs_cmn_mem_ctrl_bank_group_swap_ddr4): + """ + Sets the cbs_cmn_mem_ctrl_bank_group_swap_ddr4 of this BiosPolicy. + BIOS Token for setting Bank Group Swap configuration + + :param cbs_cmn_mem_ctrl_bank_group_swap_ddr4: The cbs_cmn_mem_ctrl_bank_group_swap_ddr4 of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "disabled", "enabled"] + if cbs_cmn_mem_ctrl_bank_group_swap_ddr4 not in allowed_values: + raise ValueError( + "Invalid value for `cbs_cmn_mem_ctrl_bank_group_swap_ddr4` ({0}), must be one of {1}" + .format(cbs_cmn_mem_ctrl_bank_group_swap_ddr4, allowed_values) + ) + + self._cbs_cmn_mem_ctrl_bank_group_swap_ddr4 = cbs_cmn_mem_ctrl_bank_group_swap_ddr4 + + @property + def cbs_cmn_mem_map_bank_interleave_ddr4(self): + """ + Gets the cbs_cmn_mem_map_bank_interleave_ddr4 of this BiosPolicy. + BIOS Token for setting Chipselect Interleaving configuration + + :return: The cbs_cmn_mem_map_bank_interleave_ddr4 of this BiosPolicy. + :rtype: str + """ + return self._cbs_cmn_mem_map_bank_interleave_ddr4 + + @cbs_cmn_mem_map_bank_interleave_ddr4.setter + def cbs_cmn_mem_map_bank_interleave_ddr4(self, cbs_cmn_mem_map_bank_interleave_ddr4): + """ + Sets the cbs_cmn_mem_map_bank_interleave_ddr4 of this BiosPolicy. + BIOS Token for setting Chipselect Interleaving configuration + + :param cbs_cmn_mem_map_bank_interleave_ddr4: The cbs_cmn_mem_map_bank_interleave_ddr4 of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "disabled"] + if cbs_cmn_mem_map_bank_interleave_ddr4 not in allowed_values: + raise ValueError( + "Invalid value for `cbs_cmn_mem_map_bank_interleave_ddr4` ({0}), must be one of {1}" + .format(cbs_cmn_mem_map_bank_interleave_ddr4, allowed_values) + ) + + self._cbs_cmn_mem_map_bank_interleave_ddr4 = cbs_cmn_mem_map_bank_interleave_ddr4 + + @property + def cbs_cmnc_tdp_ctl(self): + """ + Gets the cbs_cmnc_tdp_ctl of this BiosPolicy. + BIOS Token for setting cTDP Control configuration + + :return: The cbs_cmnc_tdp_ctl of this BiosPolicy. + :rtype: str + """ + return self._cbs_cmnc_tdp_ctl + + @cbs_cmnc_tdp_ctl.setter + def cbs_cmnc_tdp_ctl(self, cbs_cmnc_tdp_ctl): + """ + Sets the cbs_cmnc_tdp_ctl of this BiosPolicy. + BIOS Token for setting cTDP Control configuration + + :param cbs_cmnc_tdp_ctl: The cbs_cmnc_tdp_ctl of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Manual"] + if cbs_cmnc_tdp_ctl not in allowed_values: + raise ValueError( + "Invalid value for `cbs_cmnc_tdp_ctl` ({0}), must be one of {1}" + .format(cbs_cmnc_tdp_ctl, allowed_values) + ) + + self._cbs_cmnc_tdp_ctl = cbs_cmnc_tdp_ctl @property - def security(self): + def cbs_df_cmn_mem_intlv(self): """ - Gets the security of this BiosPolicy. - BIOS Settings for Security + Gets the cbs_df_cmn_mem_intlv of this BiosPolicy. + BIOS Token for setting Memory interleaving configuration - :return: The security of this BiosPolicy. - :rtype: BiosSecurity + :return: The cbs_df_cmn_mem_intlv of this BiosPolicy. + :rtype: str """ - return self._security + return self._cbs_df_cmn_mem_intlv - @security.setter - def security(self, security): + @cbs_df_cmn_mem_intlv.setter + def cbs_df_cmn_mem_intlv(self, cbs_df_cmn_mem_intlv): """ - Sets the security of this BiosPolicy. - BIOS Settings for Security + Sets the cbs_df_cmn_mem_intlv of this BiosPolicy. + BIOS Token for setting Memory interleaving configuration - :param security: The security of this BiosPolicy. - :type: BiosSecurity + :param cbs_df_cmn_mem_intlv: The cbs_df_cmn_mem_intlv of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "Auto", "Channel", "Die", "None", "Socket"] + if cbs_df_cmn_mem_intlv not in allowed_values: + raise ValueError( + "Invalid value for `cbs_df_cmn_mem_intlv` ({0}), must be one of {1}" + .format(cbs_df_cmn_mem_intlv, allowed_values) + ) - self._security = security + self._cbs_df_cmn_mem_intlv = cbs_df_cmn_mem_intlv @property - def serial_configuration(self): + def cbs_df_cmn_mem_intlv_size(self): """ - Gets the serial_configuration of this BiosPolicy. - BIOS Settings for Serial Configuration + Gets the cbs_df_cmn_mem_intlv_size of this BiosPolicy. + BIOS Token for setting Memory interleaving size configuration - :return: The serial_configuration of this BiosPolicy. - :rtype: BiosSerialConfiguration + :return: The cbs_df_cmn_mem_intlv_size of this BiosPolicy. + :rtype: str """ - return self._serial_configuration + return self._cbs_df_cmn_mem_intlv_size - @serial_configuration.setter - def serial_configuration(self, serial_configuration): + @cbs_df_cmn_mem_intlv_size.setter + def cbs_df_cmn_mem_intlv_size(self, cbs_df_cmn_mem_intlv_size): """ - Sets the serial_configuration of this BiosPolicy. - BIOS Settings for Serial Configuration + Sets the cbs_df_cmn_mem_intlv_size of this BiosPolicy. + BIOS Token for setting Memory interleaving size configuration - :param serial_configuration: The serial_configuration of this BiosPolicy. - :type: BiosSerialConfiguration + :param cbs_df_cmn_mem_intlv_size: The cbs_df_cmn_mem_intlv_size of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "1 KB", "2 KB", "256 Bytes", "512 Bytes", "Auto"] + if cbs_df_cmn_mem_intlv_size not in allowed_values: + raise ValueError( + "Invalid value for `cbs_df_cmn_mem_intlv_size` ({0}), must be one of {1}" + .format(cbs_df_cmn_mem_intlv_size, allowed_values) + ) - self._serial_configuration = serial_configuration + self._cbs_df_cmn_mem_intlv_size = cbs_df_cmn_mem_intlv_size @property - def server_management(self): + def cdn_enable(self): """ - Gets the server_management of this BiosPolicy. - BIOS Settings for Server Management + Gets the cdn_enable of this BiosPolicy. + BIOS Token for setting Consistent Device Naming configuration - :return: The server_management of this BiosPolicy. - :rtype: BiosServerManagement + :return: The cdn_enable of this BiosPolicy. + :rtype: str """ - return self._server_management + return self._cdn_enable - @server_management.setter - def server_management(self, server_management): + @cdn_enable.setter + def cdn_enable(self, cdn_enable): """ - Sets the server_management of this BiosPolicy. - BIOS Settings for Server Management + Sets the cdn_enable of this BiosPolicy. + BIOS Token for setting Consistent Device Naming configuration - :param server_management: The server_management of this BiosPolicy. - :type: BiosServerManagement + :param cdn_enable: The cdn_enable of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if cdn_enable not in allowed_values: + raise ValueError( + "Invalid value for `cdn_enable` ({0}), must be one of {1}" + .format(cdn_enable, allowed_values) + ) + + self._cdn_enable = cdn_enable + + @property + def cdn_support(self): + """ + Gets the cdn_support of this BiosPolicy. + BIOS Token for setting CDN Support for LOM configuration + + :return: The cdn_support of this BiosPolicy. + :rtype: str + """ + return self._cdn_support + + @cdn_support.setter + def cdn_support(self, cdn_support): + """ + Sets the cdn_support of this BiosPolicy. + BIOS Token for setting CDN Support for LOM configuration + + :param cdn_support: The cdn_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "LOMs Only"] + if cdn_support not in allowed_values: + raise ValueError( + "Invalid value for `cdn_support` ({0}), must be one of {1}" + .format(cdn_support, allowed_values) + ) + + self._cdn_support = cdn_support + + @property + def channel_inter_leave(self): + """ + Gets the channel_inter_leave of this BiosPolicy. + BIOS Token for setting Channel Interleaving configuration + + :return: The channel_inter_leave of this BiosPolicy. + :rtype: str + """ + return self._channel_inter_leave + + @channel_inter_leave.setter + def channel_inter_leave(self, channel_inter_leave): + """ + Sets the channel_inter_leave of this BiosPolicy. + BIOS Token for setting Channel Interleaving configuration + + :param channel_inter_leave: The channel_inter_leave of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "1-way", "2-way", "3-way", "4-way", "auto"] + if channel_inter_leave not in allowed_values: + raise ValueError( + "Invalid value for `channel_inter_leave` ({0}), must be one of {1}" + .format(channel_inter_leave, allowed_values) + ) + + self._channel_inter_leave = channel_inter_leave + + @property + def cke_low_policy(self): + """ + Gets the cke_low_policy of this BiosPolicy. + BIOS Token for setting CKE Low Policy configuration + + :return: The cke_low_policy of this BiosPolicy. + :rtype: str + """ + return self._cke_low_policy + + @cke_low_policy.setter + def cke_low_policy(self, cke_low_policy): + """ + Sets the cke_low_policy of this BiosPolicy. + BIOS Token for setting CKE Low Policy configuration + + :param cke_low_policy: The cke_low_policy of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "auto", "disabled", "fast", "slow"] + if cke_low_policy not in allowed_values: + raise ValueError( + "Invalid value for `cke_low_policy` ({0}), must be one of {1}" + .format(cke_low_policy, allowed_values) + ) + + self._cke_low_policy = cke_low_policy + + @property + def closed_loop_therm_throtl(self): + """ + Gets the closed_loop_therm_throtl of this BiosPolicy. + BIOS Token for setting Closed Loop Therm Throt configuration + + :return: The closed_loop_therm_throtl of this BiosPolicy. + :rtype: str + """ + return self._closed_loop_therm_throtl + + @closed_loop_therm_throtl.setter + def closed_loop_therm_throtl(self, closed_loop_therm_throtl): + """ + Sets the closed_loop_therm_throtl of this BiosPolicy. + BIOS Token for setting Closed Loop Therm Throt configuration + + :param closed_loop_therm_throtl: The closed_loop_therm_throtl of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if closed_loop_therm_throtl not in allowed_values: + raise ValueError( + "Invalid value for `closed_loop_therm_throtl` ({0}), must be one of {1}" + .format(closed_loop_therm_throtl, allowed_values) + ) + + self._closed_loop_therm_throtl = closed_loop_therm_throtl + + @property + def cmci_enable(self): + """ + Gets the cmci_enable of this BiosPolicy. + BIOS Token for setting Processor CMCI configuration + + :return: The cmci_enable of this BiosPolicy. + :rtype: str + """ + return self._cmci_enable + + @cmci_enable.setter + def cmci_enable(self, cmci_enable): + """ + Sets the cmci_enable of this BiosPolicy. + BIOS Token for setting Processor CMCI configuration + + :param cmci_enable: The cmci_enable of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if cmci_enable not in allowed_values: + raise ValueError( + "Invalid value for `cmci_enable` ({0}), must be one of {1}" + .format(cmci_enable, allowed_values) + ) + + self._cmci_enable = cmci_enable + + @property + def config_tdp(self): + """ + Gets the config_tdp of this BiosPolicy. + BIOS Token for setting Config TDP configuration + + :return: The config_tdp of this BiosPolicy. + :rtype: str + """ + return self._config_tdp + + @config_tdp.setter + def config_tdp(self, config_tdp): + """ + Sets the config_tdp of this BiosPolicy. + BIOS Token for setting Config TDP configuration + + :param config_tdp: The config_tdp of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if config_tdp not in allowed_values: + raise ValueError( + "Invalid value for `config_tdp` ({0}), must be one of {1}" + .format(config_tdp, allowed_values) + ) + + self._config_tdp = config_tdp + + @property + def console_redirection(self): + """ + Gets the console_redirection of this BiosPolicy. + BIOS Token for setting Console redirection configuration + + :return: The console_redirection of this BiosPolicy. + :rtype: str + """ + return self._console_redirection + + @console_redirection.setter + def console_redirection(self, console_redirection): + """ + Sets the console_redirection of this BiosPolicy. + BIOS Token for setting Console redirection configuration + + :param console_redirection: The console_redirection of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "com-0", "com-1", "disabled", "enabled", "serial-port-a"] + if console_redirection not in allowed_values: + raise ValueError( + "Invalid value for `console_redirection` ({0}), must be one of {1}" + .format(console_redirection, allowed_values) + ) + + self._console_redirection = console_redirection + + @property + def core_multi_processing(self): + """ + Gets the core_multi_processing of this BiosPolicy. + BIOS Token for setting Core MultiProcessing configuration + + :return: The core_multi_processing of this BiosPolicy. + :rtype: str + """ + return self._core_multi_processing + + @core_multi_processing.setter + def core_multi_processing(self, core_multi_processing): + """ + Sets the core_multi_processing of this BiosPolicy. + BIOS Token for setting Core MultiProcessing configuration + + :param core_multi_processing: The core_multi_processing of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "1", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "2", "20", "21", "22", "23", "24", "25", "26", "27", "28", "3", "4", "5", "6", "7", "8", "9", "all"] + if core_multi_processing not in allowed_values: + raise ValueError( + "Invalid value for `core_multi_processing` ({0}), must be one of {1}" + .format(core_multi_processing, allowed_values) + ) + + self._core_multi_processing = core_multi_processing + + @property + def cpu_energy_performance(self): + """ + Gets the cpu_energy_performance of this BiosPolicy. + BIOS Token for setting Energy Performance configuration + + :return: The cpu_energy_performance of this BiosPolicy. + :rtype: str + """ + return self._cpu_energy_performance + + @cpu_energy_performance.setter + def cpu_energy_performance(self, cpu_energy_performance): + """ + Sets the cpu_energy_performance of this BiosPolicy. + BIOS Token for setting Energy Performance configuration + + :param cpu_energy_performance: The cpu_energy_performance of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "balanced-energy", "balanced-performance", "balanced-power", "energy-efficient", "performance", "power"] + if cpu_energy_performance not in allowed_values: + raise ValueError( + "Invalid value for `cpu_energy_performance` ({0}), must be one of {1}" + .format(cpu_energy_performance, allowed_values) + ) + + self._cpu_energy_performance = cpu_energy_performance + + @property + def cpu_frequency_floor(self): + """ + Gets the cpu_frequency_floor of this BiosPolicy. + BIOS Token for setting Frequency Floor Override configuration + + :return: The cpu_frequency_floor of this BiosPolicy. + :rtype: str + """ + return self._cpu_frequency_floor + + @cpu_frequency_floor.setter + def cpu_frequency_floor(self, cpu_frequency_floor): + """ + Sets the cpu_frequency_floor of this BiosPolicy. + BIOS Token for setting Frequency Floor Override configuration + + :param cpu_frequency_floor: The cpu_frequency_floor of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if cpu_frequency_floor not in allowed_values: + raise ValueError( + "Invalid value for `cpu_frequency_floor` ({0}), must be one of {1}" + .format(cpu_frequency_floor, allowed_values) + ) + + self._cpu_frequency_floor = cpu_frequency_floor + + @property + def cpu_performance(self): + """ + Gets the cpu_performance of this BiosPolicy. + BIOS Token for setting CPU Performance configuration + + :return: The cpu_performance of this BiosPolicy. + :rtype: str + """ + return self._cpu_performance + + @cpu_performance.setter + def cpu_performance(self, cpu_performance): + """ + Sets the cpu_performance of this BiosPolicy. + BIOS Token for setting CPU Performance configuration + + :param cpu_performance: The cpu_performance of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "custom", "enterprise", "high-throughput", "hpc"] + if cpu_performance not in allowed_values: + raise ValueError( + "Invalid value for `cpu_performance` ({0}), must be one of {1}" + .format(cpu_performance, allowed_values) + ) + + self._cpu_performance = cpu_performance + + @property + def cpu_power_management(self): + """ + Gets the cpu_power_management of this BiosPolicy. + BIOS Token for setting Power Technology configuration + + :return: The cpu_power_management of this BiosPolicy. + :rtype: str + """ + return self._cpu_power_management + + @cpu_power_management.setter + def cpu_power_management(self, cpu_power_management): + """ + Sets the cpu_power_management of this BiosPolicy. + BIOS Token for setting Power Technology configuration + + :param cpu_power_management: The cpu_power_management of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "custom", "disabled", "energy-efficient", "performance"] + if cpu_power_management not in allowed_values: + raise ValueError( + "Invalid value for `cpu_power_management` ({0}), must be one of {1}" + .format(cpu_power_management, allowed_values) + ) + + self._cpu_power_management = cpu_power_management + + @property + def demand_scrub(self): + """ + Gets the demand_scrub of this BiosPolicy. + BIOS Token for setting Demand Scrub configuration + + :return: The demand_scrub of this BiosPolicy. + :rtype: str + """ + return self._demand_scrub + + @demand_scrub.setter + def demand_scrub(self, demand_scrub): + """ + Sets the demand_scrub of this BiosPolicy. + BIOS Token for setting Demand Scrub configuration + + :param demand_scrub: The demand_scrub of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if demand_scrub not in allowed_values: + raise ValueError( + "Invalid value for `demand_scrub` ({0}), must be one of {1}" + .format(demand_scrub, allowed_values) + ) + + self._demand_scrub = demand_scrub + + @property + def direct_cache_access(self): + """ + Gets the direct_cache_access of this BiosPolicy. + BIOS Token for setting Direct Cache Access Support configuration + + :return: The direct_cache_access of this BiosPolicy. + :rtype: str + """ + return self._direct_cache_access + + @direct_cache_access.setter + def direct_cache_access(self, direct_cache_access): + """ + Sets the direct_cache_access of this BiosPolicy. + BIOS Token for setting Direct Cache Access Support configuration + + :param direct_cache_access: The direct_cache_access of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "auto", "disabled", "enabled"] + if direct_cache_access not in allowed_values: + raise ValueError( + "Invalid value for `direct_cache_access` ({0}), must be one of {1}" + .format(direct_cache_access, allowed_values) + ) + + self._direct_cache_access = direct_cache_access + + @property + def dram_clock_throttling(self): + """ + Gets the dram_clock_throttling of this BiosPolicy. + BIOS Token for setting DRAM Clock Throttling configuration + + :return: The dram_clock_throttling of this BiosPolicy. + :rtype: str + """ + return self._dram_clock_throttling + + @dram_clock_throttling.setter + def dram_clock_throttling(self, dram_clock_throttling): + """ + Sets the dram_clock_throttling of this BiosPolicy. + BIOS Token for setting DRAM Clock Throttling configuration + + :param dram_clock_throttling: The dram_clock_throttling of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Balanced", "Energy Efficient", "Performance"] + if dram_clock_throttling not in allowed_values: + raise ValueError( + "Invalid value for `dram_clock_throttling` ({0}), must be one of {1}" + .format(dram_clock_throttling, allowed_values) + ) + + self._dram_clock_throttling = dram_clock_throttling + + @property + def dram_refresh_rate(self): + """ + Gets the dram_refresh_rate of this BiosPolicy. + BIOS Token for setting DRAM Refresh Rate configuration + + :return: The dram_refresh_rate of this BiosPolicy. + :rtype: str + """ + return self._dram_refresh_rate + + @dram_refresh_rate.setter + def dram_refresh_rate(self, dram_refresh_rate): + """ + Sets the dram_refresh_rate of this BiosPolicy. + BIOS Token for setting DRAM Refresh Rate configuration + + :param dram_refresh_rate: The dram_refresh_rate of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "1x", "2x", "3x", "4x", "Auto"] + if dram_refresh_rate not in allowed_values: + raise ValueError( + "Invalid value for `dram_refresh_rate` ({0}), must be one of {1}" + .format(dram_refresh_rate, allowed_values) + ) + + self._dram_refresh_rate = dram_refresh_rate + + @property + def energy_efficient_turbo(self): + """ + Gets the energy_efficient_turbo of this BiosPolicy. + BIOS Token for setting Energy Efficient Turbo configuration + + :return: The energy_efficient_turbo of this BiosPolicy. + :rtype: str + """ + return self._energy_efficient_turbo + + @energy_efficient_turbo.setter + def energy_efficient_turbo(self, energy_efficient_turbo): + """ + Sets the energy_efficient_turbo of this BiosPolicy. + BIOS Token for setting Energy Efficient Turbo configuration + + :param energy_efficient_turbo: The energy_efficient_turbo of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if energy_efficient_turbo not in allowed_values: + raise ValueError( + "Invalid value for `energy_efficient_turbo` ({0}), must be one of {1}" + .format(energy_efficient_turbo, allowed_values) + ) + + self._energy_efficient_turbo = energy_efficient_turbo + + @property + def eng_perf_tuning(self): + """ + Gets the eng_perf_tuning of this BiosPolicy. + BIOS Token for setting Energy Performance Tuning configuration + + :return: The eng_perf_tuning of this BiosPolicy. + :rtype: str + """ + return self._eng_perf_tuning + + @eng_perf_tuning.setter + def eng_perf_tuning(self, eng_perf_tuning): + """ + Sets the eng_perf_tuning of this BiosPolicy. + BIOS Token for setting Energy Performance Tuning configuration + + :param eng_perf_tuning: The eng_perf_tuning of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "BIOS", "OS"] + if eng_perf_tuning not in allowed_values: + raise ValueError( + "Invalid value for `eng_perf_tuning` ({0}), must be one of {1}" + .format(eng_perf_tuning, allowed_values) + ) + + self._eng_perf_tuning = eng_perf_tuning + + @property + def enhanced_intel_speed_step_tech(self): + """ + Gets the enhanced_intel_speed_step_tech of this BiosPolicy. + BIOS Token for setting Enhanced Intel Speedstep(R) Technology configuration + + :return: The enhanced_intel_speed_step_tech of this BiosPolicy. + :rtype: str + """ + return self._enhanced_intel_speed_step_tech + + @enhanced_intel_speed_step_tech.setter + def enhanced_intel_speed_step_tech(self, enhanced_intel_speed_step_tech): + """ + Sets the enhanced_intel_speed_step_tech of this BiosPolicy. + BIOS Token for setting Enhanced Intel Speedstep(R) Technology configuration + + :param enhanced_intel_speed_step_tech: The enhanced_intel_speed_step_tech of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if enhanced_intel_speed_step_tech not in allowed_values: + raise ValueError( + "Invalid value for `enhanced_intel_speed_step_tech` ({0}), must be one of {1}" + .format(enhanced_intel_speed_step_tech, allowed_values) + ) + + self._enhanced_intel_speed_step_tech = enhanced_intel_speed_step_tech + + @property + def epp_profile(self): + """ + Gets the epp_profile of this BiosPolicy. + BIOS Token for setting EPP Profile configuration + + :return: The epp_profile of this BiosPolicy. + :rtype: str + """ + return self._epp_profile + + @epp_profile.setter + def epp_profile(self, epp_profile): + """ + Sets the epp_profile of this BiosPolicy. + BIOS Token for setting EPP Profile configuration + + :param epp_profile: The epp_profile of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Balanced Performance", "Balanced Power", "Performance", "Power"] + if epp_profile not in allowed_values: + raise ValueError( + "Invalid value for `epp_profile` ({0}), must be one of {1}" + .format(epp_profile, allowed_values) + ) + + self._epp_profile = epp_profile + + @property + def execute_disable_bit(self): + """ + Gets the execute_disable_bit of this BiosPolicy. + BIOS Token for setting Execute Disable Bit configuration + + :return: The execute_disable_bit of this BiosPolicy. + :rtype: str + """ + return self._execute_disable_bit + + @execute_disable_bit.setter + def execute_disable_bit(self, execute_disable_bit): + """ + Sets the execute_disable_bit of this BiosPolicy. + BIOS Token for setting Execute Disable Bit configuration + + :param execute_disable_bit: The execute_disable_bit of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if execute_disable_bit not in allowed_values: + raise ValueError( + "Invalid value for `execute_disable_bit` ({0}), must be one of {1}" + .format(execute_disable_bit, allowed_values) + ) + + self._execute_disable_bit = execute_disable_bit + + @property + def extended_apic(self): + """ + Gets the extended_apic of this BiosPolicy. + BIOS Token for setting Local X2 Apic configuration + + :return: The extended_apic of this BiosPolicy. + :rtype: str + """ + return self._extended_apic + + @extended_apic.setter + def extended_apic(self, extended_apic): + """ + Sets the extended_apic of this BiosPolicy. + BIOS Token for setting Local X2 Apic configuration + + :param extended_apic: The extended_apic of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "X2APIC", "XAPIC"] + if extended_apic not in allowed_values: + raise ValueError( + "Invalid value for `extended_apic` ({0}), must be one of {1}" + .format(extended_apic, allowed_values) + ) + + self._extended_apic = extended_apic + + @property + def flow_control(self): + """ + Gets the flow_control of this BiosPolicy. + BIOS Token for setting Flow Control configuration + + :return: The flow_control of this BiosPolicy. + :rtype: str + """ + return self._flow_control + + @flow_control.setter + def flow_control(self, flow_control): + """ + Sets the flow_control of this BiosPolicy. + BIOS Token for setting Flow Control configuration + + :param flow_control: The flow_control of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "none", "rts-cts"] + if flow_control not in allowed_values: + raise ValueError( + "Invalid value for `flow_control` ({0}), must be one of {1}" + .format(flow_control, allowed_values) + ) + + self._flow_control = flow_control + + @property + def frb2enable(self): + """ + Gets the frb2enable of this BiosPolicy. + BIOS Token for setting FRB-2 Timer configuration + + :return: The frb2enable of this BiosPolicy. + :rtype: str + """ + return self._frb2enable + + @frb2enable.setter + def frb2enable(self, frb2enable): + """ + Sets the frb2enable of this BiosPolicy. + BIOS Token for setting FRB-2 Timer configuration + + :param frb2enable: The frb2enable of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if frb2enable not in allowed_values: + raise ValueError( + "Invalid value for `frb2enable` ({0}), must be one of {1}" + .format(frb2enable, allowed_values) + ) + + self._frb2enable = frb2enable + + @property + def hardware_prefetch(self): + """ + Gets the hardware_prefetch of this BiosPolicy. + BIOS Token for setting Hardware Prefetcher configuration + + :return: The hardware_prefetch of this BiosPolicy. + :rtype: str + """ + return self._hardware_prefetch + + @hardware_prefetch.setter + def hardware_prefetch(self, hardware_prefetch): + """ + Sets the hardware_prefetch of this BiosPolicy. + BIOS Token for setting Hardware Prefetcher configuration + + :param hardware_prefetch: The hardware_prefetch of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if hardware_prefetch not in allowed_values: + raise ValueError( + "Invalid value for `hardware_prefetch` ({0}), must be one of {1}" + .format(hardware_prefetch, allowed_values) + ) + + self._hardware_prefetch = hardware_prefetch + + @property + def hwpm_enable(self): + """ + Gets the hwpm_enable of this BiosPolicy. + BIOS Token for setting CPU Hardware Power Management configuration + + :return: The hwpm_enable of this BiosPolicy. + :rtype: str + """ + return self._hwpm_enable + + @hwpm_enable.setter + def hwpm_enable(self, hwpm_enable): + """ + Sets the hwpm_enable of this BiosPolicy. + BIOS Token for setting CPU Hardware Power Management configuration + + :param hwpm_enable: The hwpm_enable of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Disabled", "HWPM Native Mode", "HWPM OOB Mode", "NATIVE MODE", "Native Mode with no Legacy", "OOB MODE"] + if hwpm_enable not in allowed_values: + raise ValueError( + "Invalid value for `hwpm_enable` ({0}), must be one of {1}" + .format(hwpm_enable, allowed_values) + ) + + self._hwpm_enable = hwpm_enable + + @property + def imc_interleave(self): + """ + Gets the imc_interleave of this BiosPolicy. + BIOS Token for setting IMC Interleaving configuration + + :return: The imc_interleave of this BiosPolicy. + :rtype: str + """ + return self._imc_interleave + + @imc_interleave.setter + def imc_interleave(self, imc_interleave): + """ + Sets the imc_interleave of this BiosPolicy. + BIOS Token for setting IMC Interleaving configuration + + :param imc_interleave: The imc_interleave of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "1-way Interleave", "2-way Interleave", "Auto"] + if imc_interleave not in allowed_values: + raise ValueError( + "Invalid value for `imc_interleave` ({0}), must be one of {1}" + .format(imc_interleave, allowed_values) + ) + + self._imc_interleave = imc_interleave + + @property + def intel_hyper_threading_tech(self): + """ + Gets the intel_hyper_threading_tech of this BiosPolicy. + BIOS Token for setting Intel HyperThreading Tech configuration + + :return: The intel_hyper_threading_tech of this BiosPolicy. + :rtype: str + """ + return self._intel_hyper_threading_tech + + @intel_hyper_threading_tech.setter + def intel_hyper_threading_tech(self, intel_hyper_threading_tech): + """ + Sets the intel_hyper_threading_tech of this BiosPolicy. + BIOS Token for setting Intel HyperThreading Tech configuration + + :param intel_hyper_threading_tech: The intel_hyper_threading_tech of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if intel_hyper_threading_tech not in allowed_values: + raise ValueError( + "Invalid value for `intel_hyper_threading_tech` ({0}), must be one of {1}" + .format(intel_hyper_threading_tech, allowed_values) + ) + + self._intel_hyper_threading_tech = intel_hyper_threading_tech + + @property + def intel_turbo_boost_tech(self): + """ + Gets the intel_turbo_boost_tech of this BiosPolicy. + BIOS Token for setting Intel Turbo Boost Tech configuration + + :return: The intel_turbo_boost_tech of this BiosPolicy. + :rtype: str + """ + return self._intel_turbo_boost_tech + + @intel_turbo_boost_tech.setter + def intel_turbo_boost_tech(self, intel_turbo_boost_tech): + """ + Sets the intel_turbo_boost_tech of this BiosPolicy. + BIOS Token for setting Intel Turbo Boost Tech configuration + + :param intel_turbo_boost_tech: The intel_turbo_boost_tech of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if intel_turbo_boost_tech not in allowed_values: + raise ValueError( + "Invalid value for `intel_turbo_boost_tech` ({0}), must be one of {1}" + .format(intel_turbo_boost_tech, allowed_values) + ) + + self._intel_turbo_boost_tech = intel_turbo_boost_tech + + @property + def intel_virtualization_technology(self): + """ + Gets the intel_virtualization_technology of this BiosPolicy. + BIOS Token for setting Intel(R) VT configuration + + :return: The intel_virtualization_technology of this BiosPolicy. + :rtype: str + """ + return self._intel_virtualization_technology + + @intel_virtualization_technology.setter + def intel_virtualization_technology(self, intel_virtualization_technology): + """ + Sets the intel_virtualization_technology of this BiosPolicy. + BIOS Token for setting Intel(R) VT configuration + + :param intel_virtualization_technology: The intel_virtualization_technology of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if intel_virtualization_technology not in allowed_values: + raise ValueError( + "Invalid value for `intel_virtualization_technology` ({0}), must be one of {1}" + .format(intel_virtualization_technology, allowed_values) + ) + + self._intel_virtualization_technology = intel_virtualization_technology + + @property + def intel_vt_for_directed_io(self): + """ + Gets the intel_vt_for_directed_io of this BiosPolicy. + BIOS Token for setting Intel VT for directed IO configuration + + :return: The intel_vt_for_directed_io of this BiosPolicy. + :rtype: str + """ + return self._intel_vt_for_directed_io + + @intel_vt_for_directed_io.setter + def intel_vt_for_directed_io(self, intel_vt_for_directed_io): + """ + Sets the intel_vt_for_directed_io of this BiosPolicy. + BIOS Token for setting Intel VT for directed IO configuration + + :param intel_vt_for_directed_io: The intel_vt_for_directed_io of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if intel_vt_for_directed_io not in allowed_values: + raise ValueError( + "Invalid value for `intel_vt_for_directed_io` ({0}), must be one of {1}" + .format(intel_vt_for_directed_io, allowed_values) + ) + + self._intel_vt_for_directed_io = intel_vt_for_directed_io + + @property + def intel_vtd_coherency_support(self): + """ + Gets the intel_vtd_coherency_support of this BiosPolicy. + BIOS Token for setting Intel(R) VT-d Coherency Support configuration + + :return: The intel_vtd_coherency_support of this BiosPolicy. + :rtype: str + """ + return self._intel_vtd_coherency_support + + @intel_vtd_coherency_support.setter + def intel_vtd_coherency_support(self, intel_vtd_coherency_support): + """ + Sets the intel_vtd_coherency_support of this BiosPolicy. + BIOS Token for setting Intel(R) VT-d Coherency Support configuration + + :param intel_vtd_coherency_support: The intel_vtd_coherency_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if intel_vtd_coherency_support not in allowed_values: + raise ValueError( + "Invalid value for `intel_vtd_coherency_support` ({0}), must be one of {1}" + .format(intel_vtd_coherency_support, allowed_values) + ) + + self._intel_vtd_coherency_support = intel_vtd_coherency_support + + @property + def intel_vtd_interrupt_remapping(self): + """ + Gets the intel_vtd_interrupt_remapping of this BiosPolicy. + BIOS Token for setting Intel(R) VT-d Interrupt Remapping configuration + + :return: The intel_vtd_interrupt_remapping of this BiosPolicy. + :rtype: str + """ + return self._intel_vtd_interrupt_remapping + + @intel_vtd_interrupt_remapping.setter + def intel_vtd_interrupt_remapping(self, intel_vtd_interrupt_remapping): + """ + Sets the intel_vtd_interrupt_remapping of this BiosPolicy. + BIOS Token for setting Intel(R) VT-d Interrupt Remapping configuration + + :param intel_vtd_interrupt_remapping: The intel_vtd_interrupt_remapping of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if intel_vtd_interrupt_remapping not in allowed_values: + raise ValueError( + "Invalid value for `intel_vtd_interrupt_remapping` ({0}), must be one of {1}" + .format(intel_vtd_interrupt_remapping, allowed_values) + ) + + self._intel_vtd_interrupt_remapping = intel_vtd_interrupt_remapping + + @property + def intel_vtd_pass_through_dma_support(self): + """ + Gets the intel_vtd_pass_through_dma_support of this BiosPolicy. + BIOS Token for setting Intel(R) VT-d PassThrough DMA support configuration + + :return: The intel_vtd_pass_through_dma_support of this BiosPolicy. + :rtype: str + """ + return self._intel_vtd_pass_through_dma_support + + @intel_vtd_pass_through_dma_support.setter + def intel_vtd_pass_through_dma_support(self, intel_vtd_pass_through_dma_support): + """ + Sets the intel_vtd_pass_through_dma_support of this BiosPolicy. + BIOS Token for setting Intel(R) VT-d PassThrough DMA support configuration + + :param intel_vtd_pass_through_dma_support: The intel_vtd_pass_through_dma_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if intel_vtd_pass_through_dma_support not in allowed_values: + raise ValueError( + "Invalid value for `intel_vtd_pass_through_dma_support` ({0}), must be one of {1}" + .format(intel_vtd_pass_through_dma_support, allowed_values) + ) + + self._intel_vtd_pass_through_dma_support = intel_vtd_pass_through_dma_support + + @property + def intel_vtdats_support(self): + """ + Gets the intel_vtdats_support of this BiosPolicy. + BIOS Token for setting Intel VTD ATS support configuration + + :return: The intel_vtdats_support of this BiosPolicy. + :rtype: str + """ + return self._intel_vtdats_support + + @intel_vtdats_support.setter + def intel_vtdats_support(self, intel_vtdats_support): + """ + Sets the intel_vtdats_support of this BiosPolicy. + BIOS Token for setting Intel VTD ATS support configuration + + :param intel_vtdats_support: The intel_vtdats_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if intel_vtdats_support not in allowed_values: + raise ValueError( + "Invalid value for `intel_vtdats_support` ({0}), must be one of {1}" + .format(intel_vtdats_support, allowed_values) + ) + + self._intel_vtdats_support = intel_vtdats_support + + @property + def ioh_error_enable(self): + """ + Gets the ioh_error_enable of this BiosPolicy. + BIOS Token for setting IIO Error Enable configuration + + :return: The ioh_error_enable of this BiosPolicy. + :rtype: str + """ + return self._ioh_error_enable + + @ioh_error_enable.setter + def ioh_error_enable(self, ioh_error_enable): + """ + Sets the ioh_error_enable of this BiosPolicy. + BIOS Token for setting IIO Error Enable configuration + + :param ioh_error_enable: The ioh_error_enable of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "No", "Yes"] + if ioh_error_enable not in allowed_values: + raise ValueError( + "Invalid value for `ioh_error_enable` ({0}), must be one of {1}" + .format(ioh_error_enable, allowed_values) + ) + + self._ioh_error_enable = ioh_error_enable + + @property + def ioh_resource(self): + """ + Gets the ioh_resource of this BiosPolicy. + BIOS Token for setting IOH Resource Allocation configuration + + :return: The ioh_resource of this BiosPolicy. + :rtype: str + """ + return self._ioh_resource + + @ioh_resource.setter + def ioh_resource(self, ioh_resource): + """ + Sets the ioh_resource of this BiosPolicy. + BIOS Token for setting IOH Resource Allocation configuration + + :param ioh_resource: The ioh_resource of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "IOH0 24k IOH1 40k", "IOH0 32k IOH1 32k", "IOH0 40k IOH1 24k", "IOH0 48k IOH1 16k", "IOH0 56k IOH1 8k"] + if ioh_resource not in allowed_values: + raise ValueError( + "Invalid value for `ioh_resource` ({0}), must be one of {1}" + .format(ioh_resource, allowed_values) + ) + + self._ioh_resource = ioh_resource + + @property + def ip_prefetch(self): + """ + Gets the ip_prefetch of this BiosPolicy. + BIOS Token for setting DCU IP Prefetcher configuration + + :return: The ip_prefetch of this BiosPolicy. + :rtype: str + """ + return self._ip_prefetch + + @ip_prefetch.setter + def ip_prefetch(self, ip_prefetch): + """ + Sets the ip_prefetch of this BiosPolicy. + BIOS Token for setting DCU IP Prefetcher configuration + + :param ip_prefetch: The ip_prefetch of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if ip_prefetch not in allowed_values: + raise ValueError( + "Invalid value for `ip_prefetch` ({0}), must be one of {1}" + .format(ip_prefetch, allowed_values) + ) + + self._ip_prefetch = ip_prefetch + + @property + def ipv6pxe(self): + """ + Gets the ipv6pxe of this BiosPolicy. + BIOS Token for setting IPV6 PXE Support configuration + + :return: The ipv6pxe of this BiosPolicy. + :rtype: str + """ + return self._ipv6pxe + + @ipv6pxe.setter + def ipv6pxe(self, ipv6pxe): + """ + Sets the ipv6pxe of this BiosPolicy. + BIOS Token for setting IPV6 PXE Support configuration + + :param ipv6pxe: The ipv6pxe of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if ipv6pxe not in allowed_values: + raise ValueError( + "Invalid value for `ipv6pxe` ({0}), must be one of {1}" + .format(ipv6pxe, allowed_values) + ) + + self._ipv6pxe = ipv6pxe + + @property + def kti_prefetch(self): + """ + Gets the kti_prefetch of this BiosPolicy. + BIOS Token for setting KTI Prefetch configuration + + :return: The kti_prefetch of this BiosPolicy. + :rtype: str + """ + return self._kti_prefetch + + @kti_prefetch.setter + def kti_prefetch(self, kti_prefetch): + """ + Sets the kti_prefetch of this BiosPolicy. + BIOS Token for setting KTI Prefetch configuration + + :param kti_prefetch: The kti_prefetch of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if kti_prefetch not in allowed_values: + raise ValueError( + "Invalid value for `kti_prefetch` ({0}), must be one of {1}" + .format(kti_prefetch, allowed_values) + ) + + self._kti_prefetch = kti_prefetch + + @property + def legacy_os_redirection(self): + """ + Gets the legacy_os_redirection of this BiosPolicy. + BIOS Token for setting Legacy OS redirection configuration + + :return: The legacy_os_redirection of this BiosPolicy. + :rtype: str + """ + return self._legacy_os_redirection + + @legacy_os_redirection.setter + def legacy_os_redirection(self, legacy_os_redirection): + """ + Sets the legacy_os_redirection of this BiosPolicy. + BIOS Token for setting Legacy OS redirection configuration + + :param legacy_os_redirection: The legacy_os_redirection of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if legacy_os_redirection not in allowed_values: + raise ValueError( + "Invalid value for `legacy_os_redirection` ({0}), must be one of {1}" + .format(legacy_os_redirection, allowed_values) + ) + + self._legacy_os_redirection = legacy_os_redirection + + @property + def legacy_usb_support(self): + """ + Gets the legacy_usb_support of this BiosPolicy. + BIOS Token for setting Legacy USB Support configuration + + :return: The legacy_usb_support of this BiosPolicy. + :rtype: str + """ + return self._legacy_usb_support + + @legacy_usb_support.setter + def legacy_usb_support(self, legacy_usb_support): + """ + Sets the legacy_usb_support of this BiosPolicy. + BIOS Token for setting Legacy USB Support configuration + + :param legacy_usb_support: The legacy_usb_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "auto", "disabled", "enabled"] + if legacy_usb_support not in allowed_values: + raise ValueError( + "Invalid value for `legacy_usb_support` ({0}), must be one of {1}" + .format(legacy_usb_support, allowed_values) + ) + + self._legacy_usb_support = legacy_usb_support + + @property + def llc_prefetch(self): + """ + Gets the llc_prefetch of this BiosPolicy. + BIOS Token for setting LLC Prefetch configuration + + :return: The llc_prefetch of this BiosPolicy. + :rtype: str + """ + return self._llc_prefetch + + @llc_prefetch.setter + def llc_prefetch(self, llc_prefetch): + """ + Sets the llc_prefetch of this BiosPolicy. + BIOS Token for setting LLC Prefetch configuration + + :param llc_prefetch: The llc_prefetch of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if llc_prefetch not in allowed_values: + raise ValueError( + "Invalid value for `llc_prefetch` ({0}), must be one of {1}" + .format(llc_prefetch, allowed_values) + ) + + self._llc_prefetch = llc_prefetch + + @property + def lom_port0state(self): + """ + Gets the lom_port0state of this BiosPolicy. + BIOS Token for setting LOM Port 0 OptionROM configuration + + :return: The lom_port0state of this BiosPolicy. + :rtype: str + """ + return self._lom_port0state + + @lom_port0state.setter + def lom_port0state(self, lom_port0state): + """ + Sets the lom_port0state of this BiosPolicy. + BIOS Token for setting LOM Port 0 OptionROM configuration + + :param lom_port0state: The lom_port0state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if lom_port0state not in allowed_values: + raise ValueError( + "Invalid value for `lom_port0state` ({0}), must be one of {1}" + .format(lom_port0state, allowed_values) + ) + + self._lom_port0state = lom_port0state + + @property + def lom_port1state(self): + """ + Gets the lom_port1state of this BiosPolicy. + BIOS Token for setting LOM Port 1 OptionRom configuration + + :return: The lom_port1state of this BiosPolicy. + :rtype: str + """ + return self._lom_port1state + + @lom_port1state.setter + def lom_port1state(self, lom_port1state): + """ + Sets the lom_port1state of this BiosPolicy. + BIOS Token for setting LOM Port 1 OptionRom configuration + + :param lom_port1state: The lom_port1state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if lom_port1state not in allowed_values: + raise ValueError( + "Invalid value for `lom_port1state` ({0}), must be one of {1}" + .format(lom_port1state, allowed_values) + ) + + self._lom_port1state = lom_port1state + + @property + def lom_port2state(self): + """ + Gets the lom_port2state of this BiosPolicy. + BIOS Token for setting LOM Port 2 OptionRom configuration + + :return: The lom_port2state of this BiosPolicy. + :rtype: str + """ + return self._lom_port2state + + @lom_port2state.setter + def lom_port2state(self, lom_port2state): + """ + Sets the lom_port2state of this BiosPolicy. + BIOS Token for setting LOM Port 2 OptionRom configuration + + :param lom_port2state: The lom_port2state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if lom_port2state not in allowed_values: + raise ValueError( + "Invalid value for `lom_port2state` ({0}), must be one of {1}" + .format(lom_port2state, allowed_values) + ) + + self._lom_port2state = lom_port2state + + @property + def lom_port3state(self): + """ + Gets the lom_port3state of this BiosPolicy. + BIOS Token for setting LOM Port 3 OptionRom configuration + + :return: The lom_port3state of this BiosPolicy. + :rtype: str + """ + return self._lom_port3state + + @lom_port3state.setter + def lom_port3state(self, lom_port3state): + """ + Sets the lom_port3state of this BiosPolicy. + BIOS Token for setting LOM Port 3 OptionRom configuration + + :param lom_port3state: The lom_port3state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if lom_port3state not in allowed_values: + raise ValueError( + "Invalid value for `lom_port3state` ({0}), must be one of {1}" + .format(lom_port3state, allowed_values) + ) + + self._lom_port3state = lom_port3state + + @property + def lom_ports_all_state(self): + """ + Gets the lom_ports_all_state of this BiosPolicy. + BIOS Token for setting All Onboard LOM Ports configuration + + :return: The lom_ports_all_state of this BiosPolicy. + :rtype: str + """ + return self._lom_ports_all_state + + @lom_ports_all_state.setter + def lom_ports_all_state(self, lom_ports_all_state): + """ + Sets the lom_ports_all_state of this BiosPolicy. + BIOS Token for setting All Onboard LOM Ports configuration + + :param lom_ports_all_state: The lom_ports_all_state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if lom_ports_all_state not in allowed_values: + raise ValueError( + "Invalid value for `lom_ports_all_state` ({0}), must be one of {1}" + .format(lom_ports_all_state, allowed_values) + ) + + self._lom_ports_all_state = lom_ports_all_state + + @property + def lv_ddr_mode(self): + """ + Gets the lv_ddr_mode of this BiosPolicy. + BIOS Token for setting Low Voltage DDR Mode configuration + + :return: The lv_ddr_mode of this BiosPolicy. + :rtype: str + """ + return self._lv_ddr_mode + + @lv_ddr_mode.setter + def lv_ddr_mode(self, lv_ddr_mode): + """ + Sets the lv_ddr_mode of this BiosPolicy. + BIOS Token for setting Low Voltage DDR Mode configuration + + :param lv_ddr_mode: The lv_ddr_mode of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "auto", "performance-mode", "power-saving-mode"] + if lv_ddr_mode not in allowed_values: + raise ValueError( + "Invalid value for `lv_ddr_mode` ({0}), must be one of {1}" + .format(lv_ddr_mode, allowed_values) + ) + + self._lv_ddr_mode = lv_ddr_mode + + @property + def make_device_non_bootable(self): + """ + Gets the make_device_non_bootable of this BiosPolicy. + BIOS Token for setting Make Device Non Bootable configuration + + :return: The make_device_non_bootable of this BiosPolicy. + :rtype: str + """ + return self._make_device_non_bootable + + @make_device_non_bootable.setter + def make_device_non_bootable(self, make_device_non_bootable): + """ + Sets the make_device_non_bootable of this BiosPolicy. + BIOS Token for setting Make Device Non Bootable configuration + + :param make_device_non_bootable: The make_device_non_bootable of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if make_device_non_bootable not in allowed_values: + raise ValueError( + "Invalid value for `make_device_non_bootable` ({0}), must be one of {1}" + .format(make_device_non_bootable, allowed_values) + ) + + self._make_device_non_bootable = make_device_non_bootable + + @property + def memory_inter_leave(self): + """ + Gets the memory_inter_leave of this BiosPolicy. + BIOS Token for setting Memory Interleaving configuration + + :return: The memory_inter_leave of this BiosPolicy. + :rtype: str + """ + return self._memory_inter_leave + + @memory_inter_leave.setter + def memory_inter_leave(self, memory_inter_leave): + """ + Sets the memory_inter_leave of this BiosPolicy. + BIOS Token for setting Memory Interleaving configuration + + :param memory_inter_leave: The memory_inter_leave of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "1 Way Node Interleave", "2 Way Node Interleave", "4 Way Node Interleave", "8 Way Node Interleave", "disabled", "enabled"] + if memory_inter_leave not in allowed_values: + raise ValueError( + "Invalid value for `memory_inter_leave` ({0}), must be one of {1}" + .format(memory_inter_leave, allowed_values) + ) + + self._memory_inter_leave = memory_inter_leave + + @property + def memory_mapped_io_above4gb(self): + """ + Gets the memory_mapped_io_above4gb of this BiosPolicy. + BIOS Token for setting Memory mapped IO above 4GB configuration + + :return: The memory_mapped_io_above4gb of this BiosPolicy. + :rtype: str + """ + return self._memory_mapped_io_above4gb + + @memory_mapped_io_above4gb.setter + def memory_mapped_io_above4gb(self, memory_mapped_io_above4gb): + """ + Sets the memory_mapped_io_above4gb of this BiosPolicy. + BIOS Token for setting Memory mapped IO above 4GB configuration + + :param memory_mapped_io_above4gb: The memory_mapped_io_above4gb of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if memory_mapped_io_above4gb not in allowed_values: + raise ValueError( + "Invalid value for `memory_mapped_io_above4gb` ({0}), must be one of {1}" + .format(memory_mapped_io_above4gb, allowed_values) + ) + + self._memory_mapped_io_above4gb = memory_mapped_io_above4gb + + @property + def mirroring_mode(self): + """ + Gets the mirroring_mode of this BiosPolicy. + BIOS Token for setting Mirroring Mode configuration + + :return: The mirroring_mode of this BiosPolicy. + :rtype: str + """ + return self._mirroring_mode + + @mirroring_mode.setter + def mirroring_mode(self, mirroring_mode): + """ + Sets the mirroring_mode of this BiosPolicy. + BIOS Token for setting Mirroring Mode configuration + + :param mirroring_mode: The mirroring_mode of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "inter-socket", "intra-socket"] + if mirroring_mode not in allowed_values: + raise ValueError( + "Invalid value for `mirroring_mode` ({0}), must be one of {1}" + .format(mirroring_mode, allowed_values) + ) + + self._mirroring_mode = mirroring_mode + + @property + def mmcfg_base(self): + """ + Gets the mmcfg_base of this BiosPolicy. + BIOS Token for setting MMCFG BASE configuration + + :return: The mmcfg_base of this BiosPolicy. + :rtype: str + """ + return self._mmcfg_base + + @mmcfg_base.setter + def mmcfg_base(self, mmcfg_base): + """ + Sets the mmcfg_base of this BiosPolicy. + BIOS Token for setting MMCFG BASE configuration + + :param mmcfg_base: The mmcfg_base of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "1 GB", "2 GB", "2.5 GB", "3 GB", "Auto"] + if mmcfg_base not in allowed_values: + raise ValueError( + "Invalid value for `mmcfg_base` ({0}), must be one of {1}" + .format(mmcfg_base, allowed_values) + ) + + self._mmcfg_base = mmcfg_base + + @property + def numa_optimized(self): + """ + Gets the numa_optimized of this BiosPolicy. + BIOS Token for setting NUMA optimized configuration + + :return: The numa_optimized of this BiosPolicy. + :rtype: str + """ + return self._numa_optimized + + @numa_optimized.setter + def numa_optimized(self, numa_optimized): + """ + Sets the numa_optimized of this BiosPolicy. + BIOS Token for setting NUMA optimized configuration + + :param numa_optimized: The numa_optimized of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if numa_optimized not in allowed_values: + raise ValueError( + "Invalid value for `numa_optimized` ({0}), must be one of {1}" + .format(numa_optimized, allowed_values) + ) + + self._numa_optimized = numa_optimized + + @property + def onboard10gbit_lom(self): + """ + Gets the onboard10gbit_lom of this BiosPolicy. + BIOS Token for setting Onboard 10Gbit LOM configuration + + :return: The onboard10gbit_lom of this BiosPolicy. + :rtype: str + """ + return self._onboard10gbit_lom + + @onboard10gbit_lom.setter + def onboard10gbit_lom(self, onboard10gbit_lom): + """ + Sets the onboard10gbit_lom of this BiosPolicy. + BIOS Token for setting Onboard 10Gbit LOM configuration + + :param onboard10gbit_lom: The onboard10gbit_lom of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if onboard10gbit_lom not in allowed_values: + raise ValueError( + "Invalid value for `onboard10gbit_lom` ({0}), must be one of {1}" + .format(onboard10gbit_lom, allowed_values) + ) + + self._onboard10gbit_lom = onboard10gbit_lom + + @property + def onboard_gbit_lom(self): + """ + Gets the onboard_gbit_lom of this BiosPolicy. + BIOS Token for setting Onboard Gbit LOM configuration + + :return: The onboard_gbit_lom of this BiosPolicy. + :rtype: str + """ + return self._onboard_gbit_lom + + @onboard_gbit_lom.setter + def onboard_gbit_lom(self, onboard_gbit_lom): + """ + Sets the onboard_gbit_lom of this BiosPolicy. + BIOS Token for setting Onboard Gbit LOM configuration + + :param onboard_gbit_lom: The onboard_gbit_lom of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if onboard_gbit_lom not in allowed_values: + raise ValueError( + "Invalid value for `onboard_gbit_lom` ({0}), must be one of {1}" + .format(onboard_gbit_lom, allowed_values) + ) + + self._onboard_gbit_lom = onboard_gbit_lom + + @property + def onboard_scu_storage_support(self): + """ + Gets the onboard_scu_storage_support of this BiosPolicy. + BIOS Token for setting Onboard SCU Storage Support configuration + + :return: The onboard_scu_storage_support of this BiosPolicy. + :rtype: str + """ + return self._onboard_scu_storage_support + + @onboard_scu_storage_support.setter + def onboard_scu_storage_support(self, onboard_scu_storage_support): + """ + Sets the onboard_scu_storage_support of this BiosPolicy. + BIOS Token for setting Onboard SCU Storage Support configuration + + :param onboard_scu_storage_support: The onboard_scu_storage_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if onboard_scu_storage_support not in allowed_values: + raise ValueError( + "Invalid value for `onboard_scu_storage_support` ({0}), must be one of {1}" + .format(onboard_scu_storage_support, allowed_values) + ) + + self._onboard_scu_storage_support = onboard_scu_storage_support + + @property + def onboard_scu_storage_sw_stack(self): + """ + Gets the onboard_scu_storage_sw_stack of this BiosPolicy. + BIOS Token for setting Onboard SCU Storage SW Stack configuration + + :return: The onboard_scu_storage_sw_stack of this BiosPolicy. + :rtype: str + """ + return self._onboard_scu_storage_sw_stack + + @onboard_scu_storage_sw_stack.setter + def onboard_scu_storage_sw_stack(self, onboard_scu_storage_sw_stack): + """ + Sets the onboard_scu_storage_sw_stack of this BiosPolicy. + BIOS Token for setting Onboard SCU Storage SW Stack configuration + + :param onboard_scu_storage_sw_stack: The onboard_scu_storage_sw_stack of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Intel RSTe", "LSI SW RAID"] + if onboard_scu_storage_sw_stack not in allowed_values: + raise ValueError( + "Invalid value for `onboard_scu_storage_sw_stack` ({0}), must be one of {1}" + .format(onboard_scu_storage_sw_stack, allowed_values) + ) + + self._onboard_scu_storage_sw_stack = onboard_scu_storage_sw_stack + + @property + def organization(self): + """ + Gets the organization of this BiosPolicy. + Organization + + :return: The organization of this BiosPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this BiosPolicy. + Organization + + :param organization: The organization of this BiosPolicy. + :type: IamAccountRef + """ + + self._organization = organization + + @property + def os_boot_watchdog_timer(self): + """ + Gets the os_boot_watchdog_timer of this BiosPolicy. + BIOS Token for setting OS Boot Watchdog Timer configuration + + :return: The os_boot_watchdog_timer of this BiosPolicy. + :rtype: str + """ + return self._os_boot_watchdog_timer + + @os_boot_watchdog_timer.setter + def os_boot_watchdog_timer(self, os_boot_watchdog_timer): + """ + Sets the os_boot_watchdog_timer of this BiosPolicy. + BIOS Token for setting OS Boot Watchdog Timer configuration + + :param os_boot_watchdog_timer: The os_boot_watchdog_timer of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if os_boot_watchdog_timer not in allowed_values: + raise ValueError( + "Invalid value for `os_boot_watchdog_timer` ({0}), must be one of {1}" + .format(os_boot_watchdog_timer, allowed_values) + ) + + self._os_boot_watchdog_timer = os_boot_watchdog_timer + + @property + def os_boot_watchdog_timer_policy(self): + """ + Gets the os_boot_watchdog_timer_policy of this BiosPolicy. + BIOS Token for setting OS Boot Watchdog Timer Policy configuration + + :return: The os_boot_watchdog_timer_policy of this BiosPolicy. + :rtype: str + """ + return self._os_boot_watchdog_timer_policy + + @os_boot_watchdog_timer_policy.setter + def os_boot_watchdog_timer_policy(self, os_boot_watchdog_timer_policy): + """ + Sets the os_boot_watchdog_timer_policy of this BiosPolicy. + BIOS Token for setting OS Boot Watchdog Timer Policy configuration + + :param os_boot_watchdog_timer_policy: The os_boot_watchdog_timer_policy of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "do-nothing", "power-off", "reset"] + if os_boot_watchdog_timer_policy not in allowed_values: + raise ValueError( + "Invalid value for `os_boot_watchdog_timer_policy` ({0}), must be one of {1}" + .format(os_boot_watchdog_timer_policy, allowed_values) + ) + + self._os_boot_watchdog_timer_policy = os_boot_watchdog_timer_policy + + @property + def os_boot_watchdog_timer_timeout(self): + """ + Gets the os_boot_watchdog_timer_timeout of this BiosPolicy. + BIOS Token for setting OS Boot Watchdog Timer Timeout configuration + + :return: The os_boot_watchdog_timer_timeout of this BiosPolicy. + :rtype: str + """ + return self._os_boot_watchdog_timer_timeout + + @os_boot_watchdog_timer_timeout.setter + def os_boot_watchdog_timer_timeout(self, os_boot_watchdog_timer_timeout): + """ + Sets the os_boot_watchdog_timer_timeout of this BiosPolicy. + BIOS Token for setting OS Boot Watchdog Timer Timeout configuration + + :param os_boot_watchdog_timer_timeout: The os_boot_watchdog_timer_timeout of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "10-minutes", "15-minutes", "20-minutes", "5-minutes"] + if os_boot_watchdog_timer_timeout not in allowed_values: + raise ValueError( + "Invalid value for `os_boot_watchdog_timer_timeout` ({0}), must be one of {1}" + .format(os_boot_watchdog_timer_timeout, allowed_values) + ) + + self._os_boot_watchdog_timer_timeout = os_boot_watchdog_timer_timeout + + @property + def out_of_band_mgmt_port(self): + """ + Gets the out_of_band_mgmt_port of this BiosPolicy. + BIOS Token for setting Out-of-Band Mgmt Port configuration + + :return: The out_of_band_mgmt_port of this BiosPolicy. + :rtype: str + """ + return self._out_of_band_mgmt_port + + @out_of_band_mgmt_port.setter + def out_of_band_mgmt_port(self, out_of_band_mgmt_port): + """ + Sets the out_of_band_mgmt_port of this BiosPolicy. + BIOS Token for setting Out-of-Band Mgmt Port configuration + + :param out_of_band_mgmt_port: The out_of_band_mgmt_port of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if out_of_band_mgmt_port not in allowed_values: + raise ValueError( + "Invalid value for `out_of_band_mgmt_port` ({0}), must be one of {1}" + .format(out_of_band_mgmt_port, allowed_values) + ) + + self._out_of_band_mgmt_port = out_of_band_mgmt_port + + @property + def package_cstate_limit(self): + """ + Gets the package_cstate_limit of this BiosPolicy. + BIOS Token for setting Package C State Limit configuration + + :return: The package_cstate_limit of this BiosPolicy. + :rtype: str + """ + return self._package_cstate_limit + + @package_cstate_limit.setter + def package_cstate_limit(self, package_cstate_limit): + """ + Sets the package_cstate_limit of this BiosPolicy. + BIOS Token for setting Package C State Limit configuration + + :param package_cstate_limit: The package_cstate_limit of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "C0 C1 State", "C0/C1", "C2", "C6 Non Retention", "C6 Retention", "No Limit"] + if package_cstate_limit not in allowed_values: + raise ValueError( + "Invalid value for `package_cstate_limit` ({0}), must be one of {1}" + .format(package_cstate_limit, allowed_values) + ) + + self._package_cstate_limit = package_cstate_limit + + @property + def patrol_scrub(self): + """ + Gets the patrol_scrub of this BiosPolicy. + BIOS Token for setting Patrol Scrub configuration + + :return: The patrol_scrub of this BiosPolicy. + :rtype: str + """ + return self._patrol_scrub + + @patrol_scrub.setter + def patrol_scrub(self, patrol_scrub): + """ + Sets the patrol_scrub of this BiosPolicy. + BIOS Token for setting Patrol Scrub configuration + + :param patrol_scrub: The patrol_scrub of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if patrol_scrub not in allowed_values: + raise ValueError( + "Invalid value for `patrol_scrub` ({0}), must be one of {1}" + .format(patrol_scrub, allowed_values) + ) + + self._patrol_scrub = patrol_scrub + + @property + def patrol_scrub_duration(self): + """ + Gets the patrol_scrub_duration of this BiosPolicy. + BIOS Token for setting Patrol Scrub Interval configuration + + :return: The patrol_scrub_duration of this BiosPolicy. + :rtype: str + """ + return self._patrol_scrub_duration + + @patrol_scrub_duration.setter + def patrol_scrub_duration(self, patrol_scrub_duration): + """ + Sets the patrol_scrub_duration of this BiosPolicy. + BIOS Token for setting Patrol Scrub Interval configuration + + :param patrol_scrub_duration: The patrol_scrub_duration of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if patrol_scrub_duration not in allowed_values: + raise ValueError( + "Invalid value for `patrol_scrub_duration` ({0}), must be one of {1}" + .format(patrol_scrub_duration, allowed_values) + ) + + self._patrol_scrub_duration = patrol_scrub_duration + + @property + def pc_ie_ssd_hot_plug_support(self): + """ + Gets the pc_ie_ssd_hot_plug_support of this BiosPolicy. + BIOS Token for setting NVMe SSD Hot-Plug Support configuration + + :return: The pc_ie_ssd_hot_plug_support of this BiosPolicy. + :rtype: str + """ + return self._pc_ie_ssd_hot_plug_support + + @pc_ie_ssd_hot_plug_support.setter + def pc_ie_ssd_hot_plug_support(self, pc_ie_ssd_hot_plug_support): + """ + Sets the pc_ie_ssd_hot_plug_support of this BiosPolicy. + BIOS Token for setting NVMe SSD Hot-Plug Support configuration + + :param pc_ie_ssd_hot_plug_support: The pc_ie_ssd_hot_plug_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if pc_ie_ssd_hot_plug_support not in allowed_values: + raise ValueError( + "Invalid value for `pc_ie_ssd_hot_plug_support` ({0}), must be one of {1}" + .format(pc_ie_ssd_hot_plug_support, allowed_values) + ) + + self._pc_ie_ssd_hot_plug_support = pc_ie_ssd_hot_plug_support + + @property + def pch_usb30mode(self): + """ + Gets the pch_usb30mode of this BiosPolicy. + BIOS Token for setting xHCI Mode configuration + + :return: The pch_usb30mode of this BiosPolicy. + :rtype: str + """ + return self._pch_usb30mode + + @pch_usb30mode.setter + def pch_usb30mode(self, pch_usb30mode): + """ + Sets the pch_usb30mode of this BiosPolicy. + BIOS Token for setting xHCI Mode configuration + + :param pch_usb30mode: The pch_usb30mode of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if pch_usb30mode not in allowed_values: + raise ValueError( + "Invalid value for `pch_usb30mode` ({0}), must be one of {1}" + .format(pch_usb30mode, allowed_values) + ) + + self._pch_usb30mode = pch_usb30mode + + @property + def pci_option_ro_ms(self): + """ + Gets the pci_option_ro_ms of this BiosPolicy. + BIOS Token for setting All PCIe Slots OptionROM configuration + + :return: The pci_option_ro_ms of this BiosPolicy. + :rtype: str + """ + return self._pci_option_ro_ms + + @pci_option_ro_ms.setter + def pci_option_ro_ms(self, pci_option_ro_ms): + """ + Sets the pci_option_ro_ms of this BiosPolicy. + BIOS Token for setting All PCIe Slots OptionROM configuration + + :param pci_option_ro_ms: The pci_option_ro_ms of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if pci_option_ro_ms not in allowed_values: + raise ValueError( + "Invalid value for `pci_option_ro_ms` ({0}), must be one of {1}" + .format(pci_option_ro_ms, allowed_values) + ) + + self._pci_option_ro_ms = pci_option_ro_ms + + @property + def pci_rom_clp(self): + """ + Gets the pci_rom_clp of this BiosPolicy. + BIOS Token for setting PCI ROM CLP configuration + + :return: The pci_rom_clp of this BiosPolicy. + :rtype: str + """ + return self._pci_rom_clp + + @pci_rom_clp.setter + def pci_rom_clp(self, pci_rom_clp): + """ + Sets the pci_rom_clp of this BiosPolicy. + BIOS Token for setting PCI ROM CLP configuration + + :param pci_rom_clp: The pci_rom_clp of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if pci_rom_clp not in allowed_values: + raise ValueError( + "Invalid value for `pci_rom_clp` ({0}), must be one of {1}" + .format(pci_rom_clp, allowed_values) + ) + + self._pci_rom_clp = pci_rom_clp + + @property + def pop_support(self): + """ + Gets the pop_support of this BiosPolicy. + BIOS Token for setting Power ON Password configuration + + :return: The pop_support of this BiosPolicy. + :rtype: str + """ + return self._pop_support + + @pop_support.setter + def pop_support(self, pop_support): + """ + Sets the pop_support of this BiosPolicy. + BIOS Token for setting Power ON Password configuration + + :param pop_support: The pop_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if pop_support not in allowed_values: + raise ValueError( + "Invalid value for `pop_support` ({0}), must be one of {1}" + .format(pop_support, allowed_values) + ) + + self._pop_support = pop_support + + @property + def post_error_pause(self): + """ + Gets the post_error_pause of this BiosPolicy. + BIOS Token for setting POST Error Pause configuration + + :return: The post_error_pause of this BiosPolicy. + :rtype: str + """ + return self._post_error_pause + + @post_error_pause.setter + def post_error_pause(self, post_error_pause): + """ + Sets the post_error_pause of this BiosPolicy. + BIOS Token for setting POST Error Pause configuration + + :param post_error_pause: The post_error_pause of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if post_error_pause not in allowed_values: + raise ValueError( + "Invalid value for `post_error_pause` ({0}), must be one of {1}" + .format(post_error_pause, allowed_values) + ) + + self._post_error_pause = post_error_pause + + @property + def processor_c1e(self): + """ + Gets the processor_c1e of this BiosPolicy. + BIOS Token for setting Processor C1E configuration + + :return: The processor_c1e of this BiosPolicy. + :rtype: str + """ + return self._processor_c1e + + @processor_c1e.setter + def processor_c1e(self, processor_c1e): + """ + Sets the processor_c1e of this BiosPolicy. + BIOS Token for setting Processor C1E configuration + + :param processor_c1e: The processor_c1e of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if processor_c1e not in allowed_values: + raise ValueError( + "Invalid value for `processor_c1e` ({0}), must be one of {1}" + .format(processor_c1e, allowed_values) + ) + + self._processor_c1e = processor_c1e + + @property + def processor_c3report(self): + """ + Gets the processor_c3report of this BiosPolicy. + BIOS Token for setting Processor C3 Report configuration + + :return: The processor_c3report of this BiosPolicy. + :rtype: str + """ + return self._processor_c3report + + @processor_c3report.setter + def processor_c3report(self, processor_c3report): + """ + Sets the processor_c3report of this BiosPolicy. + BIOS Token for setting Processor C3 Report configuration + + :param processor_c3report: The processor_c3report of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if processor_c3report not in allowed_values: + raise ValueError( + "Invalid value for `processor_c3report` ({0}), must be one of {1}" + .format(processor_c3report, allowed_values) + ) + + self._processor_c3report = processor_c3report + + @property + def processor_c6report(self): + """ + Gets the processor_c6report of this BiosPolicy. + BIOS Token for setting Processor C6 Report configuration + + :return: The processor_c6report of this BiosPolicy. + :rtype: str + """ + return self._processor_c6report + + @processor_c6report.setter + def processor_c6report(self, processor_c6report): + """ + Sets the processor_c6report of this BiosPolicy. + BIOS Token for setting Processor C6 Report configuration + + :param processor_c6report: The processor_c6report of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if processor_c6report not in allowed_values: + raise ValueError( + "Invalid value for `processor_c6report` ({0}), must be one of {1}" + .format(processor_c6report, allowed_values) + ) + + self._processor_c6report = processor_c6report + + @property + def processor_cstate(self): + """ + Gets the processor_cstate of this BiosPolicy. + BIOS Token for setting CPU C State configuration + + :return: The processor_cstate of this BiosPolicy. + :rtype: str + """ + return self._processor_cstate + + @processor_cstate.setter + def processor_cstate(self, processor_cstate): + """ + Sets the processor_cstate of this BiosPolicy. + BIOS Token for setting CPU C State configuration + + :param processor_cstate: The processor_cstate of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if processor_cstate not in allowed_values: + raise ValueError( + "Invalid value for `processor_cstate` ({0}), must be one of {1}" + .format(processor_cstate, allowed_values) + ) + + self._processor_cstate = processor_cstate + + @property + def profiles(self): + """ + Gets the profiles of this BiosPolicy. + Relationship to the profile objects + + :return: The profiles of this BiosPolicy. + :rtype: list[PolicyAbstractConfigProfileRef] + """ + return self._profiles + + @profiles.setter + def profiles(self, profiles): + """ + Sets the profiles of this BiosPolicy. + Relationship to the profile objects + + :param profiles: The profiles of this BiosPolicy. + :type: list[PolicyAbstractConfigProfileRef] + """ + + self._profiles = profiles + + @property + def psata(self): + """ + Gets the psata of this BiosPolicy. + BIOS Token for setting P-SATA mode configuration + + :return: The psata of this BiosPolicy. + :rtype: str + """ + return self._psata + + @psata.setter + def psata(self, psata): + """ + Sets the psata of this BiosPolicy. + BIOS Token for setting P-SATA mode configuration + + :param psata: The psata of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "AHCI", "Disabled", "LSI SW RAID"] + if psata not in allowed_values: + raise ValueError( + "Invalid value for `psata` ({0}), must be one of {1}" + .format(psata, allowed_values) + ) + + self._psata = psata + + @property + def pstate_coord_type(self): + """ + Gets the pstate_coord_type of this BiosPolicy. + BIOS Token for setting P-STATE Coordination configuration + + :return: The pstate_coord_type of this BiosPolicy. + :rtype: str + """ + return self._pstate_coord_type + + @pstate_coord_type.setter + def pstate_coord_type(self, pstate_coord_type): + """ + Sets the pstate_coord_type of this BiosPolicy. + BIOS Token for setting P-STATE Coordination configuration + + :param pstate_coord_type: The pstate_coord_type of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "HW ALL", "SW ALL", "SW ANY"] + if pstate_coord_type not in allowed_values: + raise ValueError( + "Invalid value for `pstate_coord_type` ({0}), must be one of {1}" + .format(pstate_coord_type, allowed_values) + ) + + self._pstate_coord_type = pstate_coord_type + + @property + def putty_key_pad(self): + """ + Gets the putty_key_pad of this BiosPolicy. + BIOS Token for setting Putty KeyPad configuration + + :return: The putty_key_pad of this BiosPolicy. + :rtype: str + """ + return self._putty_key_pad + + @putty_key_pad.setter + def putty_key_pad(self, putty_key_pad): + """ + Sets the putty_key_pad of this BiosPolicy. + BIOS Token for setting Putty KeyPad configuration + + :param putty_key_pad: The putty_key_pad of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "ESCN", "LINUX", "SCO", "VT100", "VT400", "XTERMR6"] + if putty_key_pad not in allowed_values: + raise ValueError( + "Invalid value for `putty_key_pad` ({0}), must be one of {1}" + .format(putty_key_pad, allowed_values) + ) + + self._putty_key_pad = putty_key_pad + + @property + def pwr_perf_tuning(self): + """ + Gets the pwr_perf_tuning of this BiosPolicy. + BIOS Token for setting Power Performance Tuning configuration + + :return: The pwr_perf_tuning of this BiosPolicy. + :rtype: str + """ + return self._pwr_perf_tuning + + @pwr_perf_tuning.setter + def pwr_perf_tuning(self, pwr_perf_tuning): + """ + Sets the pwr_perf_tuning of this BiosPolicy. + BIOS Token for setting Power Performance Tuning configuration + + :param pwr_perf_tuning: The pwr_perf_tuning of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "bios", "os"] + if pwr_perf_tuning not in allowed_values: + raise ValueError( + "Invalid value for `pwr_perf_tuning` ({0}), must be one of {1}" + .format(pwr_perf_tuning, allowed_values) + ) + + self._pwr_perf_tuning = pwr_perf_tuning + + @property + def qpi_link_frequency(self): + """ + Gets the qpi_link_frequency of this BiosPolicy. + BIOS Token for setting QPI Link Frequency Select configuration + + :return: The qpi_link_frequency of this BiosPolicy. + :rtype: str + """ + return self._qpi_link_frequency + + @qpi_link_frequency.setter + def qpi_link_frequency(self, qpi_link_frequency): + """ + Sets the qpi_link_frequency of this BiosPolicy. + BIOS Token for setting QPI Link Frequency Select configuration + + :param qpi_link_frequency: The qpi_link_frequency of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "6.4-gt/s", "7.2-gt/s", "8.0-gt/s", "9.6-gt/s", "auto"] + if qpi_link_frequency not in allowed_values: + raise ValueError( + "Invalid value for `qpi_link_frequency` ({0}), must be one of {1}" + .format(qpi_link_frequency, allowed_values) + ) + + self._qpi_link_frequency = qpi_link_frequency + + @property + def qpi_snoop_mode(self): + """ + Gets the qpi_snoop_mode of this BiosPolicy. + BIOS Token for setting QPI Snoop Mode configuration + + :return: The qpi_snoop_mode of this BiosPolicy. + :rtype: str + """ + return self._qpi_snoop_mode + + @qpi_snoop_mode.setter + def qpi_snoop_mode(self, qpi_snoop_mode): + """ + Sets the qpi_snoop_mode of this BiosPolicy. + BIOS Token for setting QPI Snoop Mode configuration + + :param qpi_snoop_mode: The qpi_snoop_mode of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "auto", "cluster-on-die", "early-snoop", "home-directory-snoop", "home-directory-snoop-with-osb", "home-snoop"] + if qpi_snoop_mode not in allowed_values: + raise ValueError( + "Invalid value for `qpi_snoop_mode` ({0}), must be one of {1}" + .format(qpi_snoop_mode, allowed_values) + ) + + self._qpi_snoop_mode = qpi_snoop_mode + + @property + def rank_inter_leave(self): + """ + Gets the rank_inter_leave of this BiosPolicy. + BIOS Token for setting Rank Interleaving configuration + + :return: The rank_inter_leave of this BiosPolicy. + :rtype: str + """ + return self._rank_inter_leave + + @rank_inter_leave.setter + def rank_inter_leave(self, rank_inter_leave): + """ + Sets the rank_inter_leave of this BiosPolicy. + BIOS Token for setting Rank Interleaving configuration + + :param rank_inter_leave: The rank_inter_leave of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "1-way", "2-way", "4-way", "8-way", "auto"] + if rank_inter_leave not in allowed_values: + raise ValueError( + "Invalid value for `rank_inter_leave` ({0}), must be one of {1}" + .format(rank_inter_leave, allowed_values) + ) + + self._rank_inter_leave = rank_inter_leave + + @property + def redirection_after_post(self): + """ + Gets the redirection_after_post of this BiosPolicy. + BIOS Token for setting Redirection After BIOS POST configuration + + :return: The redirection_after_post of this BiosPolicy. + :rtype: str + """ + return self._redirection_after_post + + @redirection_after_post.setter + def redirection_after_post(self, redirection_after_post): + """ + Sets the redirection_after_post of this BiosPolicy. + BIOS Token for setting Redirection After BIOS POST configuration + + :param redirection_after_post: The redirection_after_post of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Always Enable", "Bootloader"] + if redirection_after_post not in allowed_values: + raise ValueError( + "Invalid value for `redirection_after_post` ({0}), must be one of {1}" + .format(redirection_after_post, allowed_values) + ) + + self._redirection_after_post = redirection_after_post + + @property + def sata_mode_select(self): + """ + Gets the sata_mode_select of this BiosPolicy. + BIOS Token for setting SATA mode configuration + + :return: The sata_mode_select of this BiosPolicy. + :rtype: str + """ + return self._sata_mode_select + + @sata_mode_select.setter + def sata_mode_select(self, sata_mode_select): + """ + Sets the sata_mode_select of this BiosPolicy. + BIOS Token for setting SATA mode configuration + + :param sata_mode_select: The sata_mode_select of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "AHCI", "Disabled", "LSI SW RAID"] + if sata_mode_select not in allowed_values: + raise ValueError( + "Invalid value for `sata_mode_select` ({0}), must be one of {1}" + .format(sata_mode_select, allowed_values) + ) + + self._sata_mode_select = sata_mode_select + + @property + def select_memory_ras_configuration(self): + """ + Gets the select_memory_ras_configuration of this BiosPolicy. + BIOS Token for setting SelectMemory RAS configuration configuration + + :return: The select_memory_ras_configuration of this BiosPolicy. + :rtype: str + """ + return self._select_memory_ras_configuration + + @select_memory_ras_configuration.setter + def select_memory_ras_configuration(self, select_memory_ras_configuration): + """ + Sets the select_memory_ras_configuration of this BiosPolicy. + BIOS Token for setting SelectMemory RAS configuration configuration + + :param select_memory_ras_configuration: The select_memory_ras_configuration of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "lockstep", "maximum-performance", "mirror-mode-1lm", "mirroring", "sparing"] + if select_memory_ras_configuration not in allowed_values: + raise ValueError( + "Invalid value for `select_memory_ras_configuration` ({0}), must be one of {1}" + .format(select_memory_ras_configuration, allowed_values) + ) + + self._select_memory_ras_configuration = select_memory_ras_configuration + + @property + def serial_port_aenable(self): + """ + Gets the serial_port_aenable of this BiosPolicy. + BIOS Token for setting Serial A Enable configuration + + :return: The serial_port_aenable of this BiosPolicy. + :rtype: str + """ + return self._serial_port_aenable + + @serial_port_aenable.setter + def serial_port_aenable(self, serial_port_aenable): + """ + Sets the serial_port_aenable of this BiosPolicy. + BIOS Token for setting Serial A Enable configuration + + :param serial_port_aenable: The serial_port_aenable of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if serial_port_aenable not in allowed_values: + raise ValueError( + "Invalid value for `serial_port_aenable` ({0}), must be one of {1}" + .format(serial_port_aenable, allowed_values) + ) + + self._serial_port_aenable = serial_port_aenable + + @property + def single_pctl_enable(self): + """ + Gets the single_pctl_enable of this BiosPolicy. + BIOS Token for setting Single PCTL configuration + + :return: The single_pctl_enable of this BiosPolicy. + :rtype: str + """ + return self._single_pctl_enable + + @single_pctl_enable.setter + def single_pctl_enable(self, single_pctl_enable): + """ + Sets the single_pctl_enable of this BiosPolicy. + BIOS Token for setting Single PCTL configuration + + :param single_pctl_enable: The single_pctl_enable of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "No", "Yes"] + if single_pctl_enable not in allowed_values: + raise ValueError( + "Invalid value for `single_pctl_enable` ({0}), must be one of {1}" + .format(single_pctl_enable, allowed_values) + ) + + self._single_pctl_enable = single_pctl_enable + + @property + def slot10link_speed(self): + """ + Gets the slot10link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:10 Link Speed configuration + + :return: The slot10link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot10link_speed + + @slot10link_speed.setter + def slot10link_speed(self, slot10link_speed): + """ + Sets the slot10link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:10 Link Speed configuration + + :param slot10link_speed: The slot10link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot10link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot10link_speed` ({0}), must be one of {1}" + .format(slot10link_speed, allowed_values) + ) + + self._slot10link_speed = slot10link_speed + + @property + def slot10state(self): + """ + Gets the slot10state of this BiosPolicy. + BIOS Token for setting Slot 10 state configuration + + :return: The slot10state of this BiosPolicy. + :rtype: str + """ + return self._slot10state + + @slot10state.setter + def slot10state(self, slot10state): + """ + Sets the slot10state of this BiosPolicy. + BIOS Token for setting Slot 10 state configuration + + :param slot10state: The slot10state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot10state not in allowed_values: + raise ValueError( + "Invalid value for `slot10state` ({0}), must be one of {1}" + .format(slot10state, allowed_values) + ) + + self._slot10state = slot10state + + @property + def slot11link_speed(self): + """ + Gets the slot11link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:11 Link Speed configuration + + :return: The slot11link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot11link_speed + + @slot11link_speed.setter + def slot11link_speed(self, slot11link_speed): + """ + Sets the slot11link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:11 Link Speed configuration + + :param slot11link_speed: The slot11link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot11link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot11link_speed` ({0}), must be one of {1}" + .format(slot11link_speed, allowed_values) + ) + + self._slot11link_speed = slot11link_speed + + @property + def slot11state(self): + """ + Gets the slot11state of this BiosPolicy. + BIOS Token for setting Slot 11 state configuration + + :return: The slot11state of this BiosPolicy. + :rtype: str + """ + return self._slot11state + + @slot11state.setter + def slot11state(self, slot11state): + """ + Sets the slot11state of this BiosPolicy. + BIOS Token for setting Slot 11 state configuration + + :param slot11state: The slot11state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot11state not in allowed_values: + raise ValueError( + "Invalid value for `slot11state` ({0}), must be one of {1}" + .format(slot11state, allowed_values) + ) + + self._slot11state = slot11state + + @property + def slot12link_speed(self): + """ + Gets the slot12link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:12 Link Speed configuration + + :return: The slot12link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot12link_speed + + @slot12link_speed.setter + def slot12link_speed(self, slot12link_speed): + """ + Sets the slot12link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:12 Link Speed configuration + + :param slot12link_speed: The slot12link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot12link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot12link_speed` ({0}), must be one of {1}" + .format(slot12link_speed, allowed_values) + ) + + self._slot12link_speed = slot12link_speed + + @property + def slot12state(self): + """ + Gets the slot12state of this BiosPolicy. + BIOS Token for setting Slot 12 state configuration + + :return: The slot12state of this BiosPolicy. + :rtype: str + """ + return self._slot12state + + @slot12state.setter + def slot12state(self, slot12state): + """ + Sets the slot12state of this BiosPolicy. + BIOS Token for setting Slot 12 state configuration + + :param slot12state: The slot12state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot12state not in allowed_values: + raise ValueError( + "Invalid value for `slot12state` ({0}), must be one of {1}" + .format(slot12state, allowed_values) + ) + + self._slot12state = slot12state + + @property + def slot1link_speed(self): + """ + Gets the slot1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:1 Link Speed configuration + + :return: The slot1link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot1link_speed + + @slot1link_speed.setter + def slot1link_speed(self, slot1link_speed): + """ + Sets the slot1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:1 Link Speed configuration + + :param slot1link_speed: The slot1link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot1link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot1link_speed` ({0}), must be one of {1}" + .format(slot1link_speed, allowed_values) + ) + + self._slot1link_speed = slot1link_speed + + @property + def slot1state(self): + """ + Gets the slot1state of this BiosPolicy. + BIOS Token for setting Slot 1 state configuration + + :return: The slot1state of this BiosPolicy. + :rtype: str + """ + return self._slot1state + + @slot1state.setter + def slot1state(self, slot1state): + """ + Sets the slot1state of this BiosPolicy. + BIOS Token for setting Slot 1 state configuration + + :param slot1state: The slot1state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot1state not in allowed_values: + raise ValueError( + "Invalid value for `slot1state` ({0}), must be one of {1}" + .format(slot1state, allowed_values) + ) + + self._slot1state = slot1state + + @property + def slot2link_speed(self): + """ + Gets the slot2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:2 Link Speed configuration + + :return: The slot2link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot2link_speed + + @slot2link_speed.setter + def slot2link_speed(self, slot2link_speed): + """ + Sets the slot2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:2 Link Speed configuration + + :param slot2link_speed: The slot2link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot2link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot2link_speed` ({0}), must be one of {1}" + .format(slot2link_speed, allowed_values) + ) + + self._slot2link_speed = slot2link_speed + + @property + def slot2state(self): + """ + Gets the slot2state of this BiosPolicy. + BIOS Token for setting Slot 2 state configuration + + :return: The slot2state of this BiosPolicy. + :rtype: str + """ + return self._slot2state + + @slot2state.setter + def slot2state(self, slot2state): + """ + Sets the slot2state of this BiosPolicy. + BIOS Token for setting Slot 2 state configuration + + :param slot2state: The slot2state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot2state not in allowed_values: + raise ValueError( + "Invalid value for `slot2state` ({0}), must be one of {1}" + .format(slot2state, allowed_values) + ) + + self._slot2state = slot2state + + @property + def slot3link_speed(self): + """ + Gets the slot3link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:3 Link Speed configuration + + :return: The slot3link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot3link_speed + + @slot3link_speed.setter + def slot3link_speed(self, slot3link_speed): + """ + Sets the slot3link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:3 Link Speed configuration + + :param slot3link_speed: The slot3link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot3link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot3link_speed` ({0}), must be one of {1}" + .format(slot3link_speed, allowed_values) + ) + + self._slot3link_speed = slot3link_speed + + @property + def slot3state(self): + """ + Gets the slot3state of this BiosPolicy. + BIOS Token for setting Slot 3 state configuration + + :return: The slot3state of this BiosPolicy. + :rtype: str + """ + return self._slot3state + + @slot3state.setter + def slot3state(self, slot3state): + """ + Sets the slot3state of this BiosPolicy. + BIOS Token for setting Slot 3 state configuration + + :param slot3state: The slot3state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot3state not in allowed_values: + raise ValueError( + "Invalid value for `slot3state` ({0}), must be one of {1}" + .format(slot3state, allowed_values) + ) + + self._slot3state = slot3state + + @property + def slot4link_speed(self): + """ + Gets the slot4link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:4 Link Speed configuration + + :return: The slot4link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot4link_speed + + @slot4link_speed.setter + def slot4link_speed(self, slot4link_speed): + """ + Sets the slot4link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:4 Link Speed configuration + + :param slot4link_speed: The slot4link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot4link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot4link_speed` ({0}), must be one of {1}" + .format(slot4link_speed, allowed_values) + ) + + self._slot4link_speed = slot4link_speed + + @property + def slot4state(self): + """ + Gets the slot4state of this BiosPolicy. + BIOS Token for setting Slot 4 state configuration + + :return: The slot4state of this BiosPolicy. + :rtype: str + """ + return self._slot4state + + @slot4state.setter + def slot4state(self, slot4state): + """ + Sets the slot4state of this BiosPolicy. + BIOS Token for setting Slot 4 state configuration + + :param slot4state: The slot4state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot4state not in allowed_values: + raise ValueError( + "Invalid value for `slot4state` ({0}), must be one of {1}" + .format(slot4state, allowed_values) + ) + + self._slot4state = slot4state + + @property + def slot5link_speed(self): + """ + Gets the slot5link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:5 Link Speed configuration + + :return: The slot5link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot5link_speed + + @slot5link_speed.setter + def slot5link_speed(self, slot5link_speed): + """ + Sets the slot5link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:5 Link Speed configuration + + :param slot5link_speed: The slot5link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot5link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot5link_speed` ({0}), must be one of {1}" + .format(slot5link_speed, allowed_values) + ) + + self._slot5link_speed = slot5link_speed + + @property + def slot5state(self): + """ + Gets the slot5state of this BiosPolicy. + BIOS Token for setting Slot 5 state configuration + + :return: The slot5state of this BiosPolicy. + :rtype: str + """ + return self._slot5state + + @slot5state.setter + def slot5state(self, slot5state): + """ + Sets the slot5state of this BiosPolicy. + BIOS Token for setting Slot 5 state configuration + + :param slot5state: The slot5state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot5state not in allowed_values: + raise ValueError( + "Invalid value for `slot5state` ({0}), must be one of {1}" + .format(slot5state, allowed_values) + ) + + self._slot5state = slot5state + + @property + def slot6link_speed(self): + """ + Gets the slot6link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:6 Link Speed configuration + + :return: The slot6link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot6link_speed + + @slot6link_speed.setter + def slot6link_speed(self, slot6link_speed): + """ + Sets the slot6link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:6 Link Speed configuration + + :param slot6link_speed: The slot6link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot6link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot6link_speed` ({0}), must be one of {1}" + .format(slot6link_speed, allowed_values) + ) + + self._slot6link_speed = slot6link_speed + + @property + def slot6state(self): + """ + Gets the slot6state of this BiosPolicy. + BIOS Token for setting Slot 6 state configuration + + :return: The slot6state of this BiosPolicy. + :rtype: str + """ + return self._slot6state + + @slot6state.setter + def slot6state(self, slot6state): + """ + Sets the slot6state of this BiosPolicy. + BIOS Token for setting Slot 6 state configuration + + :param slot6state: The slot6state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot6state not in allowed_values: + raise ValueError( + "Invalid value for `slot6state` ({0}), must be one of {1}" + .format(slot6state, allowed_values) + ) + + self._slot6state = slot6state + + @property + def slot7link_speed(self): + """ + Gets the slot7link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:7 Link Speed configuration + + :return: The slot7link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot7link_speed + + @slot7link_speed.setter + def slot7link_speed(self, slot7link_speed): + """ + Sets the slot7link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:7 Link Speed configuration + + :param slot7link_speed: The slot7link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot7link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot7link_speed` ({0}), must be one of {1}" + .format(slot7link_speed, allowed_values) + ) + + self._slot7link_speed = slot7link_speed + + @property + def slot7state(self): + """ + Gets the slot7state of this BiosPolicy. + BIOS Token for setting Slot 7 state configuration + + :return: The slot7state of this BiosPolicy. + :rtype: str + """ + return self._slot7state + + @slot7state.setter + def slot7state(self, slot7state): + """ + Sets the slot7state of this BiosPolicy. + BIOS Token for setting Slot 7 state configuration + + :param slot7state: The slot7state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot7state not in allowed_values: + raise ValueError( + "Invalid value for `slot7state` ({0}), must be one of {1}" + .format(slot7state, allowed_values) + ) + + self._slot7state = slot7state + + @property + def slot8link_speed(self): + """ + Gets the slot8link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:8 Link Speed configuration + + :return: The slot8link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot8link_speed + + @slot8link_speed.setter + def slot8link_speed(self, slot8link_speed): + """ + Sets the slot8link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:8 Link Speed configuration + + :param slot8link_speed: The slot8link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot8link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot8link_speed` ({0}), must be one of {1}" + .format(slot8link_speed, allowed_values) + ) + + self._slot8link_speed = slot8link_speed + + @property + def slot8state(self): + """ + Gets the slot8state of this BiosPolicy. + BIOS Token for setting Slot 8 state configuration + + :return: The slot8state of this BiosPolicy. + :rtype: str + """ + return self._slot8state + + @slot8state.setter + def slot8state(self, slot8state): + """ + Sets the slot8state of this BiosPolicy. + BIOS Token for setting Slot 8 state configuration + + :param slot8state: The slot8state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot8state not in allowed_values: + raise ValueError( + "Invalid value for `slot8state` ({0}), must be one of {1}" + .format(slot8state, allowed_values) + ) + + self._slot8state = slot8state + + @property + def slot9link_speed(self): + """ + Gets the slot9link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:9 Link Speed configuration + + :return: The slot9link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot9link_speed + + @slot9link_speed.setter + def slot9link_speed(self, slot9link_speed): + """ + Sets the slot9link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:9 Link Speed configuration + + :param slot9link_speed: The slot9link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot9link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot9link_speed` ({0}), must be one of {1}" + .format(slot9link_speed, allowed_values) + ) + + self._slot9link_speed = slot9link_speed + + @property + def slot9state(self): + """ + Gets the slot9state of this BiosPolicy. + BIOS Token for setting Slot 9 state configuration + + :return: The slot9state of this BiosPolicy. + :rtype: str + """ + return self._slot9state + + @slot9state.setter + def slot9state(self, slot9state): + """ + Sets the slot9state of this BiosPolicy. + BIOS Token for setting Slot 9 state configuration + + :param slot9state: The slot9state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot9state not in allowed_values: + raise ValueError( + "Invalid value for `slot9state` ({0}), must be one of {1}" + .format(slot9state, allowed_values) + ) + + self._slot9state = slot9state + + @property + def slot_flom_link_speed(self): + """ + Gets the slot_flom_link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:FLOM Link Speed configuration + + :return: The slot_flom_link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_flom_link_speed + + @slot_flom_link_speed.setter + def slot_flom_link_speed(self, slot_flom_link_speed): + """ + Sets the slot_flom_link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:FLOM Link Speed configuration + + :param slot_flom_link_speed: The slot_flom_link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_flom_link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_flom_link_speed` ({0}), must be one of {1}" + .format(slot_flom_link_speed, allowed_values) + ) + + self._slot_flom_link_speed = slot_flom_link_speed + + @property + def slot_front_nvme1link_speed(self): + """ + Gets the slot_front_nvme1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Front Nvme1 Link Speed configuration + + :return: The slot_front_nvme1link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_front_nvme1link_speed + + @slot_front_nvme1link_speed.setter + def slot_front_nvme1link_speed(self, slot_front_nvme1link_speed): + """ + Sets the slot_front_nvme1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Front Nvme1 Link Speed configuration + + :param slot_front_nvme1link_speed: The slot_front_nvme1link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_front_nvme1link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_front_nvme1link_speed` ({0}), must be one of {1}" + .format(slot_front_nvme1link_speed, allowed_values) + ) + + self._slot_front_nvme1link_speed = slot_front_nvme1link_speed + + @property + def slot_front_nvme2link_speed(self): + """ + Gets the slot_front_nvme2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Front Nvme2 Link Speed configuration + + :return: The slot_front_nvme2link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_front_nvme2link_speed + + @slot_front_nvme2link_speed.setter + def slot_front_nvme2link_speed(self, slot_front_nvme2link_speed): + """ + Sets the slot_front_nvme2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Front Nvme2 Link Speed configuration + + :param slot_front_nvme2link_speed: The slot_front_nvme2link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_front_nvme2link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_front_nvme2link_speed` ({0}), must be one of {1}" + .format(slot_front_nvme2link_speed, allowed_values) + ) + + self._slot_front_nvme2link_speed = slot_front_nvme2link_speed + + @property + def slot_front_slot5link_speed(self): + """ + Gets the slot_front_slot5link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Front1 Link Speed configuration + + :return: The slot_front_slot5link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_front_slot5link_speed + + @slot_front_slot5link_speed.setter + def slot_front_slot5link_speed(self, slot_front_slot5link_speed): + """ + Sets the slot_front_slot5link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Front1 Link Speed configuration + + :param slot_front_slot5link_speed: The slot_front_slot5link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_front_slot5link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_front_slot5link_speed` ({0}), must be one of {1}" + .format(slot_front_slot5link_speed, allowed_values) + ) + + self._slot_front_slot5link_speed = slot_front_slot5link_speed + + @property + def slot_front_slot6link_speed(self): + """ + Gets the slot_front_slot6link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Front2 Link Speed configuration + + :return: The slot_front_slot6link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_front_slot6link_speed + + @slot_front_slot6link_speed.setter + def slot_front_slot6link_speed(self, slot_front_slot6link_speed): + """ + Sets the slot_front_slot6link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Front2 Link Speed configuration + + :param slot_front_slot6link_speed: The slot_front_slot6link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_front_slot6link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_front_slot6link_speed` ({0}), must be one of {1}" + .format(slot_front_slot6link_speed, allowed_values) + ) + + self._slot_front_slot6link_speed = slot_front_slot6link_speed + + @property + def slot_hba_link_speed(self): + """ + Gets the slot_hba_link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:HBA Link Speed configuration + + :return: The slot_hba_link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_hba_link_speed + + @slot_hba_link_speed.setter + def slot_hba_link_speed(self, slot_hba_link_speed): + """ + Sets the slot_hba_link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:HBA Link Speed configuration + + :param slot_hba_link_speed: The slot_hba_link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_hba_link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_hba_link_speed` ({0}), must be one of {1}" + .format(slot_hba_link_speed, allowed_values) + ) + + self._slot_hba_link_speed = slot_hba_link_speed + + @property + def slot_hba_state(self): + """ + Gets the slot_hba_state of this BiosPolicy. + BIOS Token for setting PCIe Slot:HBA OptionROM configuration + + :return: The slot_hba_state of this BiosPolicy. + :rtype: str + """ + return self._slot_hba_state + + @slot_hba_state.setter + def slot_hba_state(self, slot_hba_state): + """ + Sets the slot_hba_state of this BiosPolicy. + BIOS Token for setting PCIe Slot:HBA OptionROM configuration + + :param slot_hba_state: The slot_hba_state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot_hba_state not in allowed_values: + raise ValueError( + "Invalid value for `slot_hba_state` ({0}), must be one of {1}" + .format(slot_hba_state, allowed_values) + ) + + self._slot_hba_state = slot_hba_state + + @property + def slot_lom1link(self): + """ + Gets the slot_lom1link of this BiosPolicy. + BIOS Token for setting PCIe LOM:1 Link configuration + + :return: The slot_lom1link of this BiosPolicy. + :rtype: str + """ + return self._slot_lom1link + + @slot_lom1link.setter + def slot_lom1link(self, slot_lom1link): + """ + Sets the slot_lom1link of this BiosPolicy. + BIOS Token for setting PCIe LOM:1 Link configuration + + :param slot_lom1link: The slot_lom1link of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_lom1link not in allowed_values: + raise ValueError( + "Invalid value for `slot_lom1link` ({0}), must be one of {1}" + .format(slot_lom1link, allowed_values) + ) + + self._slot_lom1link = slot_lom1link + + @property + def slot_lom2link(self): + """ + Gets the slot_lom2link of this BiosPolicy. + BIOS Token for setting PCIe LOM:2 Link configuration + + :return: The slot_lom2link of this BiosPolicy. + :rtype: str + """ + return self._slot_lom2link + + @slot_lom2link.setter + def slot_lom2link(self, slot_lom2link): + """ + Sets the slot_lom2link of this BiosPolicy. + BIOS Token for setting PCIe LOM:2 Link configuration + + :param slot_lom2link: The slot_lom2link of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_lom2link not in allowed_values: + raise ValueError( + "Invalid value for `slot_lom2link` ({0}), must be one of {1}" + .format(slot_lom2link, allowed_values) + ) + + self._slot_lom2link = slot_lom2link + + @property + def slot_mezz_state(self): + """ + Gets the slot_mezz_state of this BiosPolicy. + BIOS Token for setting Slot Mezz state configuration + + :return: The slot_mezz_state of this BiosPolicy. + :rtype: str + """ + return self._slot_mezz_state + + @slot_mezz_state.setter + def slot_mezz_state(self, slot_mezz_state): + """ + Sets the slot_mezz_state of this BiosPolicy. + BIOS Token for setting Slot Mezz state configuration + + :param slot_mezz_state: The slot_mezz_state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot_mezz_state not in allowed_values: + raise ValueError( + "Invalid value for `slot_mezz_state` ({0}), must be one of {1}" + .format(slot_mezz_state, allowed_values) + ) + + self._slot_mezz_state = slot_mezz_state + + @property + def slot_mlom_link_speed(self): + """ + Gets the slot_mlom_link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:MLOM Link Speed configuration + + :return: The slot_mlom_link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_mlom_link_speed + + @slot_mlom_link_speed.setter + def slot_mlom_link_speed(self, slot_mlom_link_speed): + """ + Sets the slot_mlom_link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:MLOM Link Speed configuration + + :param slot_mlom_link_speed: The slot_mlom_link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_mlom_link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_mlom_link_speed` ({0}), must be one of {1}" + .format(slot_mlom_link_speed, allowed_values) + ) + + self._slot_mlom_link_speed = slot_mlom_link_speed + + @property + def slot_mlom_state(self): + """ + Gets the slot_mlom_state of this BiosPolicy. + BIOS Token for setting PCIe Slot MLOM OptionROM configuration + + :return: The slot_mlom_state of this BiosPolicy. + :rtype: str + """ + return self._slot_mlom_state + + @slot_mlom_state.setter + def slot_mlom_state(self, slot_mlom_state): + """ + Sets the slot_mlom_state of this BiosPolicy. + BIOS Token for setting PCIe Slot MLOM OptionROM configuration + + :param slot_mlom_state: The slot_mlom_state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot_mlom_state not in allowed_values: + raise ValueError( + "Invalid value for `slot_mlom_state` ({0}), must be one of {1}" + .format(slot_mlom_state, allowed_values) + ) + + self._slot_mlom_state = slot_mlom_state + + @property + def slot_mraid_link_speed(self): + """ + Gets the slot_mraid_link_speed of this BiosPolicy. + BIOS Token for setting MRAID Link Speed configuration + + :return: The slot_mraid_link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_mraid_link_speed + + @slot_mraid_link_speed.setter + def slot_mraid_link_speed(self, slot_mraid_link_speed): + """ + Sets the slot_mraid_link_speed of this BiosPolicy. + BIOS Token for setting MRAID Link Speed configuration + + :param slot_mraid_link_speed: The slot_mraid_link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_mraid_link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_mraid_link_speed` ({0}), must be one of {1}" + .format(slot_mraid_link_speed, allowed_values) + ) + + self._slot_mraid_link_speed = slot_mraid_link_speed + + @property + def slot_mraid_state(self): + """ + Gets the slot_mraid_state of this BiosPolicy. + BIOS Token for setting PCIe Slot MRAID OptionROM configuration + + :return: The slot_mraid_state of this BiosPolicy. + :rtype: str + """ + return self._slot_mraid_state + + @slot_mraid_state.setter + def slot_mraid_state(self, slot_mraid_state): + """ + Sets the slot_mraid_state of this BiosPolicy. + BIOS Token for setting PCIe Slot MRAID OptionROM configuration + + :param slot_mraid_state: The slot_mraid_state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_mraid_state not in allowed_values: + raise ValueError( + "Invalid value for `slot_mraid_state` ({0}), must be one of {1}" + .format(slot_mraid_state, allowed_values) + ) + + self._slot_mraid_state = slot_mraid_state + + @property + def slot_n10state(self): + """ + Gets the slot_n10state of this BiosPolicy. + BIOS Token for setting PCIe Slot N10 OptionROM configuration + + :return: The slot_n10state of this BiosPolicy. + :rtype: str + """ + return self._slot_n10state + + @slot_n10state.setter + def slot_n10state(self, slot_n10state): + """ + Sets the slot_n10state of this BiosPolicy. + BIOS Token for setting PCIe Slot N10 OptionROM configuration + + :param slot_n10state: The slot_n10state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n10state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n10state` ({0}), must be one of {1}" + .format(slot_n10state, allowed_values) + ) + + self._slot_n10state = slot_n10state + + @property + def slot_n11state(self): + """ + Gets the slot_n11state of this BiosPolicy. + BIOS Token for setting PCIe Slot N11 OptionROM configuration + + :return: The slot_n11state of this BiosPolicy. + :rtype: str + """ + return self._slot_n11state + + @slot_n11state.setter + def slot_n11state(self, slot_n11state): + """ + Sets the slot_n11state of this BiosPolicy. + BIOS Token for setting PCIe Slot N11 OptionROM configuration + + :param slot_n11state: The slot_n11state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n11state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n11state` ({0}), must be one of {1}" + .format(slot_n11state, allowed_values) + ) + + self._slot_n11state = slot_n11state + + @property + def slot_n12state(self): + """ + Gets the slot_n12state of this BiosPolicy. + BIOS Token for setting PCIe Slot N12 OptionROM configuration + + :return: The slot_n12state of this BiosPolicy. + :rtype: str + """ + return self._slot_n12state + + @slot_n12state.setter + def slot_n12state(self, slot_n12state): + """ + Sets the slot_n12state of this BiosPolicy. + BIOS Token for setting PCIe Slot N12 OptionROM configuration + + :param slot_n12state: The slot_n12state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n12state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n12state` ({0}), must be one of {1}" + .format(slot_n12state, allowed_values) + ) + + self._slot_n12state = slot_n12state + + @property + def slot_n13state(self): + """ + Gets the slot_n13state of this BiosPolicy. + BIOS Token for setting PCIe Slot N13 OptionROM configuration + + :return: The slot_n13state of this BiosPolicy. + :rtype: str + """ + return self._slot_n13state + + @slot_n13state.setter + def slot_n13state(self, slot_n13state): + """ + Sets the slot_n13state of this BiosPolicy. + BIOS Token for setting PCIe Slot N13 OptionROM configuration + + :param slot_n13state: The slot_n13state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n13state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n13state` ({0}), must be one of {1}" + .format(slot_n13state, allowed_values) + ) + + self._slot_n13state = slot_n13state + + @property + def slot_n14state(self): + """ + Gets the slot_n14state of this BiosPolicy. + BIOS Token for setting PCIe Slot N14 OptionROM configuration + + :return: The slot_n14state of this BiosPolicy. + :rtype: str + """ + return self._slot_n14state + + @slot_n14state.setter + def slot_n14state(self, slot_n14state): + """ + Sets the slot_n14state of this BiosPolicy. + BIOS Token for setting PCIe Slot N14 OptionROM configuration + + :param slot_n14state: The slot_n14state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n14state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n14state` ({0}), must be one of {1}" + .format(slot_n14state, allowed_values) + ) + + self._slot_n14state = slot_n14state + + @property + def slot_n15state(self): + """ + Gets the slot_n15state of this BiosPolicy. + BIOS Token for setting PCIe Slot N15 OptionROM configuration + + :return: The slot_n15state of this BiosPolicy. + :rtype: str + """ + return self._slot_n15state + + @slot_n15state.setter + def slot_n15state(self, slot_n15state): + """ + Sets the slot_n15state of this BiosPolicy. + BIOS Token for setting PCIe Slot N15 OptionROM configuration + + :param slot_n15state: The slot_n15state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n15state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n15state` ({0}), must be one of {1}" + .format(slot_n15state, allowed_values) + ) + + self._slot_n15state = slot_n15state + + @property + def slot_n16state(self): + """ + Gets the slot_n16state of this BiosPolicy. + BIOS Token for setting PCIe Slot N16 OptionROM configuration + + :return: The slot_n16state of this BiosPolicy. + :rtype: str + """ + return self._slot_n16state + + @slot_n16state.setter + def slot_n16state(self, slot_n16state): + """ + Sets the slot_n16state of this BiosPolicy. + BIOS Token for setting PCIe Slot N16 OptionROM configuration + + :param slot_n16state: The slot_n16state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n16state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n16state` ({0}), must be one of {1}" + .format(slot_n16state, allowed_values) + ) + + self._slot_n16state = slot_n16state + + @property + def slot_n17state(self): + """ + Gets the slot_n17state of this BiosPolicy. + BIOS Token for setting PCIe Slot N17 OptionROM configuration + + :return: The slot_n17state of this BiosPolicy. + :rtype: str + """ + return self._slot_n17state + + @slot_n17state.setter + def slot_n17state(self, slot_n17state): + """ + Sets the slot_n17state of this BiosPolicy. + BIOS Token for setting PCIe Slot N17 OptionROM configuration + + :param slot_n17state: The slot_n17state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n17state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n17state` ({0}), must be one of {1}" + .format(slot_n17state, allowed_values) + ) + + self._slot_n17state = slot_n17state + + @property + def slot_n18state(self): + """ + Gets the slot_n18state of this BiosPolicy. + BIOS Token for setting PCIe Slot N18 OptionROM configuration + + :return: The slot_n18state of this BiosPolicy. + :rtype: str + """ + return self._slot_n18state + + @slot_n18state.setter + def slot_n18state(self, slot_n18state): + """ + Sets the slot_n18state of this BiosPolicy. + BIOS Token for setting PCIe Slot N18 OptionROM configuration + + :param slot_n18state: The slot_n18state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n18state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n18state` ({0}), must be one of {1}" + .format(slot_n18state, allowed_values) + ) + + self._slot_n18state = slot_n18state + + @property + def slot_n19state(self): + """ + Gets the slot_n19state of this BiosPolicy. + BIOS Token for setting PCIe Slot N19 OptionROM configuration + + :return: The slot_n19state of this BiosPolicy. + :rtype: str + """ + return self._slot_n19state + + @slot_n19state.setter + def slot_n19state(self, slot_n19state): + """ + Sets the slot_n19state of this BiosPolicy. + BIOS Token for setting PCIe Slot N19 OptionROM configuration + + :param slot_n19state: The slot_n19state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n19state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n19state` ({0}), must be one of {1}" + .format(slot_n19state, allowed_values) + ) + + self._slot_n19state = slot_n19state + + @property + def slot_n1state(self): + """ + Gets the slot_n1state of this BiosPolicy. + BIOS Token for setting PCIe Slot N1 OptionROM configuration + + :return: The slot_n1state of this BiosPolicy. + :rtype: str + """ + return self._slot_n1state + + @slot_n1state.setter + def slot_n1state(self, slot_n1state): + """ + Sets the slot_n1state of this BiosPolicy. + BIOS Token for setting PCIe Slot N1 OptionROM configuration + + :param slot_n1state: The slot_n1state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot_n1state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n1state` ({0}), must be one of {1}" + .format(slot_n1state, allowed_values) + ) + + self._slot_n1state = slot_n1state + + @property + def slot_n20state(self): + """ + Gets the slot_n20state of this BiosPolicy. + BIOS Token for setting PCIe Slot N20 OptionROM configuration + + :return: The slot_n20state of this BiosPolicy. + :rtype: str + """ + return self._slot_n20state + + @slot_n20state.setter + def slot_n20state(self, slot_n20state): + """ + Sets the slot_n20state of this BiosPolicy. + BIOS Token for setting PCIe Slot N20 OptionROM configuration + + :param slot_n20state: The slot_n20state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n20state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n20state` ({0}), must be one of {1}" + .format(slot_n20state, allowed_values) + ) + + self._slot_n20state = slot_n20state + + @property + def slot_n21state(self): + """ + Gets the slot_n21state of this BiosPolicy. + BIOS Token for setting PCIe Slot N21 OptionROM configuration + + :return: The slot_n21state of this BiosPolicy. + :rtype: str + """ + return self._slot_n21state + + @slot_n21state.setter + def slot_n21state(self, slot_n21state): + """ + Sets the slot_n21state of this BiosPolicy. + BIOS Token for setting PCIe Slot N21 OptionROM configuration + + :param slot_n21state: The slot_n21state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n21state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n21state` ({0}), must be one of {1}" + .format(slot_n21state, allowed_values) + ) + + self._slot_n21state = slot_n21state + + @property + def slot_n22state(self): + """ + Gets the slot_n22state of this BiosPolicy. + BIOS Token for setting PCIe Slot N22 OptionROM configuration + + :return: The slot_n22state of this BiosPolicy. + :rtype: str + """ + return self._slot_n22state + + @slot_n22state.setter + def slot_n22state(self, slot_n22state): + """ + Sets the slot_n22state of this BiosPolicy. + BIOS Token for setting PCIe Slot N22 OptionROM configuration + + :param slot_n22state: The slot_n22state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n22state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n22state` ({0}), must be one of {1}" + .format(slot_n22state, allowed_values) + ) + + self._slot_n22state = slot_n22state + + @property + def slot_n23state(self): + """ + Gets the slot_n23state of this BiosPolicy. + BIOS Token for setting PCIe Slot N23 OptionROM configuration + + :return: The slot_n23state of this BiosPolicy. + :rtype: str + """ + return self._slot_n23state + + @slot_n23state.setter + def slot_n23state(self, slot_n23state): + """ + Sets the slot_n23state of this BiosPolicy. + BIOS Token for setting PCIe Slot N23 OptionROM configuration + + :param slot_n23state: The slot_n23state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n23state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n23state` ({0}), must be one of {1}" + .format(slot_n23state, allowed_values) + ) + + self._slot_n23state = slot_n23state + + @property + def slot_n24state(self): + """ + Gets the slot_n24state of this BiosPolicy. + BIOS Token for setting PCIe Slot N24 OptionROM configuration + + :return: The slot_n24state of this BiosPolicy. + :rtype: str + """ + return self._slot_n24state + + @slot_n24state.setter + def slot_n24state(self, slot_n24state): + """ + Sets the slot_n24state of this BiosPolicy. + BIOS Token for setting PCIe Slot N24 OptionROM configuration + + :param slot_n24state: The slot_n24state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n24state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n24state` ({0}), must be one of {1}" + .format(slot_n24state, allowed_values) + ) + + self._slot_n24state = slot_n24state + + @property + def slot_n2state(self): + """ + Gets the slot_n2state of this BiosPolicy. + BIOS Token for setting PCIe Slot N2 OptionROM configuration + + :return: The slot_n2state of this BiosPolicy. + :rtype: str + """ + return self._slot_n2state + + @slot_n2state.setter + def slot_n2state(self, slot_n2state): + """ + Sets the slot_n2state of this BiosPolicy. + BIOS Token for setting PCIe Slot N2 OptionROM configuration + + :param slot_n2state: The slot_n2state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot_n2state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n2state` ({0}), must be one of {1}" + .format(slot_n2state, allowed_values) + ) + + self._slot_n2state = slot_n2state + + @property + def slot_n3state(self): + """ + Gets the slot_n3state of this BiosPolicy. + BIOS Token for setting PCIe Slot N3 OptionROM configuration + + :return: The slot_n3state of this BiosPolicy. + :rtype: str + """ + return self._slot_n3state + + @slot_n3state.setter + def slot_n3state(self, slot_n3state): + """ + Sets the slot_n3state of this BiosPolicy. + BIOS Token for setting PCIe Slot N3 OptionROM configuration + + :param slot_n3state: The slot_n3state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n3state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n3state` ({0}), must be one of {1}" + .format(slot_n3state, allowed_values) + ) + + self._slot_n3state = slot_n3state + + @property + def slot_n4state(self): + """ + Gets the slot_n4state of this BiosPolicy. + BIOS Token for setting PCIe Slot N4 OptionROM configuration + + :return: The slot_n4state of this BiosPolicy. + :rtype: str + """ + return self._slot_n4state + + @slot_n4state.setter + def slot_n4state(self, slot_n4state): + """ + Sets the slot_n4state of this BiosPolicy. + BIOS Token for setting PCIe Slot N4 OptionROM configuration + + :param slot_n4state: The slot_n4state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n4state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n4state` ({0}), must be one of {1}" + .format(slot_n4state, allowed_values) + ) + + self._slot_n4state = slot_n4state + + @property + def slot_n5state(self): + """ + Gets the slot_n5state of this BiosPolicy. + BIOS Token for setting PCIe Slot N5 OptionROM configuration + + :return: The slot_n5state of this BiosPolicy. + :rtype: str + """ + return self._slot_n5state + + @slot_n5state.setter + def slot_n5state(self, slot_n5state): + """ + Sets the slot_n5state of this BiosPolicy. + BIOS Token for setting PCIe Slot N5 OptionROM configuration + + :param slot_n5state: The slot_n5state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n5state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n5state` ({0}), must be one of {1}" + .format(slot_n5state, allowed_values) + ) + + self._slot_n5state = slot_n5state + + @property + def slot_n6state(self): + """ + Gets the slot_n6state of this BiosPolicy. + BIOS Token for setting PCIe Slot N6 OptionROM configuration + + :return: The slot_n6state of this BiosPolicy. + :rtype: str + """ + return self._slot_n6state + + @slot_n6state.setter + def slot_n6state(self, slot_n6state): + """ + Sets the slot_n6state of this BiosPolicy. + BIOS Token for setting PCIe Slot N6 OptionROM configuration + + :param slot_n6state: The slot_n6state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n6state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n6state` ({0}), must be one of {1}" + .format(slot_n6state, allowed_values) + ) + + self._slot_n6state = slot_n6state + + @property + def slot_n7state(self): + """ + Gets the slot_n7state of this BiosPolicy. + BIOS Token for setting PCIe Slot N7 OptionROM configuration + + :return: The slot_n7state of this BiosPolicy. + :rtype: str + """ + return self._slot_n7state + + @slot_n7state.setter + def slot_n7state(self, slot_n7state): + """ + Sets the slot_n7state of this BiosPolicy. + BIOS Token for setting PCIe Slot N7 OptionROM configuration + + :param slot_n7state: The slot_n7state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n7state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n7state` ({0}), must be one of {1}" + .format(slot_n7state, allowed_values) + ) + + self._slot_n7state = slot_n7state + + @property + def slot_n8state(self): + """ + Gets the slot_n8state of this BiosPolicy. + BIOS Token for setting PCIe Slot N8 OptionROM configuration + + :return: The slot_n8state of this BiosPolicy. + :rtype: str + """ + return self._slot_n8state + + @slot_n8state.setter + def slot_n8state(self, slot_n8state): + """ + Sets the slot_n8state of this BiosPolicy. + BIOS Token for setting PCIe Slot N8 OptionROM configuration + + :param slot_n8state: The slot_n8state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n8state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n8state` ({0}), must be one of {1}" + .format(slot_n8state, allowed_values) + ) + + self._slot_n8state = slot_n8state + + @property + def slot_n9state(self): + """ + Gets the slot_n9state of this BiosPolicy. + BIOS Token for setting PCIe Slot N9 OptionROM configuration + + :return: The slot_n9state of this BiosPolicy. + :rtype: str + """ + return self._slot_n9state + + @slot_n9state.setter + def slot_n9state(self, slot_n9state): + """ + Sets the slot_n9state of this BiosPolicy. + BIOS Token for setting PCIe Slot N9 OptionROM configuration + + :param slot_n9state: The slot_n9state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_n9state not in allowed_values: + raise ValueError( + "Invalid value for `slot_n9state` ({0}), must be one of {1}" + .format(slot_n9state, allowed_values) + ) + + self._slot_n9state = slot_n9state + + @property + def slot_raid_link_speed(self): + """ + Gets the slot_raid_link_speed of this BiosPolicy. + BIOS Token for setting RAID Link Speed configuration + + :return: The slot_raid_link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_raid_link_speed + + @slot_raid_link_speed.setter + def slot_raid_link_speed(self, slot_raid_link_speed): + """ + Sets the slot_raid_link_speed of this BiosPolicy. + BIOS Token for setting RAID Link Speed configuration + + :param slot_raid_link_speed: The slot_raid_link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_raid_link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_raid_link_speed` ({0}), must be one of {1}" + .format(slot_raid_link_speed, allowed_values) + ) + + self._slot_raid_link_speed = slot_raid_link_speed + + @property + def slot_raid_state(self): + """ + Gets the slot_raid_state of this BiosPolicy. + BIOS Token for setting PCIe Slot RAID OptionROM configuration + + :return: The slot_raid_state of this BiosPolicy. + :rtype: str + """ + return self._slot_raid_state + + @slot_raid_state.setter + def slot_raid_state(self, slot_raid_state): + """ + Sets the slot_raid_state of this BiosPolicy. + BIOS Token for setting PCIe Slot RAID OptionROM configuration + + :param slot_raid_state: The slot_raid_state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_raid_state not in allowed_values: + raise ValueError( + "Invalid value for `slot_raid_state` ({0}), must be one of {1}" + .format(slot_raid_state, allowed_values) + ) + + self._slot_raid_state = slot_raid_state + + @property + def slot_rear_nvme1link_speed(self): + """ + Gets the slot_rear_nvme1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear Nvme1 Link Speed configuration + + :return: The slot_rear_nvme1link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme1link_speed + + @slot_rear_nvme1link_speed.setter + def slot_rear_nvme1link_speed(self, slot_rear_nvme1link_speed): + """ + Sets the slot_rear_nvme1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear Nvme1 Link Speed configuration + + :param slot_rear_nvme1link_speed: The slot_rear_nvme1link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_rear_nvme1link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme1link_speed` ({0}), must be one of {1}" + .format(slot_rear_nvme1link_speed, allowed_values) + ) + + self._slot_rear_nvme1link_speed = slot_rear_nvme1link_speed + + @property + def slot_rear_nvme1state(self): + """ + Gets the slot_rear_nvme1state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 1 OptionRom configuration + + :return: The slot_rear_nvme1state of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme1state + + @slot_rear_nvme1state.setter + def slot_rear_nvme1state(self, slot_rear_nvme1state): + """ + Sets the slot_rear_nvme1state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 1 OptionRom configuration + + :param slot_rear_nvme1state: The slot_rear_nvme1state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_rear_nvme1state not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme1state` ({0}), must be one of {1}" + .format(slot_rear_nvme1state, allowed_values) + ) + + self._slot_rear_nvme1state = slot_rear_nvme1state + + @property + def slot_rear_nvme2link_speed(self): + """ + Gets the slot_rear_nvme2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear Nvme2 Link Speed configuration + + :return: The slot_rear_nvme2link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme2link_speed + + @slot_rear_nvme2link_speed.setter + def slot_rear_nvme2link_speed(self, slot_rear_nvme2link_speed): + """ + Sets the slot_rear_nvme2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear Nvme2 Link Speed configuration + + :param slot_rear_nvme2link_speed: The slot_rear_nvme2link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_rear_nvme2link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme2link_speed` ({0}), must be one of {1}" + .format(slot_rear_nvme2link_speed, allowed_values) + ) + + self._slot_rear_nvme2link_speed = slot_rear_nvme2link_speed + + @property + def slot_rear_nvme2state(self): + """ + Gets the slot_rear_nvme2state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 2 OptionRom configuration + + :return: The slot_rear_nvme2state of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme2state + + @slot_rear_nvme2state.setter + def slot_rear_nvme2state(self, slot_rear_nvme2state): + """ + Sets the slot_rear_nvme2state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 2 OptionRom configuration + + :param slot_rear_nvme2state: The slot_rear_nvme2state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_rear_nvme2state not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme2state` ({0}), must be one of {1}" + .format(slot_rear_nvme2state, allowed_values) + ) + + self._slot_rear_nvme2state = slot_rear_nvme2state + + @property + def slot_rear_nvme3state(self): + """ + Gets the slot_rear_nvme3state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 3 OptionRom configuration + + :return: The slot_rear_nvme3state of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme3state + + @slot_rear_nvme3state.setter + def slot_rear_nvme3state(self, slot_rear_nvme3state): + """ + Sets the slot_rear_nvme3state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 3 OptionRom configuration + + :param slot_rear_nvme3state: The slot_rear_nvme3state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_rear_nvme3state not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme3state` ({0}), must be one of {1}" + .format(slot_rear_nvme3state, allowed_values) + ) + + self._slot_rear_nvme3state = slot_rear_nvme3state + + @property + def slot_rear_nvme4state(self): + """ + Gets the slot_rear_nvme4state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 4 OptionRom configuration + + :return: The slot_rear_nvme4state of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme4state + + @slot_rear_nvme4state.setter + def slot_rear_nvme4state(self, slot_rear_nvme4state): + """ + Sets the slot_rear_nvme4state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 4 OptionRom configuration + + :param slot_rear_nvme4state: The slot_rear_nvme4state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_rear_nvme4state not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme4state` ({0}), must be one of {1}" + .format(slot_rear_nvme4state, allowed_values) + ) + + self._slot_rear_nvme4state = slot_rear_nvme4state + + @property + def slot_rear_nvme5state(self): + """ + Gets the slot_rear_nvme5state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 5 OptionRom configuration + + :return: The slot_rear_nvme5state of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme5state + + @slot_rear_nvme5state.setter + def slot_rear_nvme5state(self, slot_rear_nvme5state): + """ + Sets the slot_rear_nvme5state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 5 OptionRom configuration + + :param slot_rear_nvme5state: The slot_rear_nvme5state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_rear_nvme5state not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme5state` ({0}), must be one of {1}" + .format(slot_rear_nvme5state, allowed_values) + ) + + self._slot_rear_nvme5state = slot_rear_nvme5state + + @property + def slot_rear_nvme6state(self): + """ + Gets the slot_rear_nvme6state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 6 OptionRom configuration + + :return: The slot_rear_nvme6state of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme6state + + @slot_rear_nvme6state.setter + def slot_rear_nvme6state(self, slot_rear_nvme6state): + """ + Sets the slot_rear_nvme6state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 6 OptionRom configuration + + :param slot_rear_nvme6state: The slot_rear_nvme6state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_rear_nvme6state not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme6state` ({0}), must be one of {1}" + .format(slot_rear_nvme6state, allowed_values) + ) + + self._slot_rear_nvme6state = slot_rear_nvme6state + + @property + def slot_rear_nvme7state(self): + """ + Gets the slot_rear_nvme7state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 7 OptionRom configuration + + :return: The slot_rear_nvme7state of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme7state + + @slot_rear_nvme7state.setter + def slot_rear_nvme7state(self, slot_rear_nvme7state): + """ + Sets the slot_rear_nvme7state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 7 OptionRom configuration + + :param slot_rear_nvme7state: The slot_rear_nvme7state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_rear_nvme7state not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme7state` ({0}), must be one of {1}" + .format(slot_rear_nvme7state, allowed_values) + ) + + self._slot_rear_nvme7state = slot_rear_nvme7state + + @property + def slot_rear_nvme8state(self): + """ + Gets the slot_rear_nvme8state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 8 OptionRom configuration + + :return: The slot_rear_nvme8state of this BiosPolicy. + :rtype: str + """ + return self._slot_rear_nvme8state + + @slot_rear_nvme8state.setter + def slot_rear_nvme8state(self, slot_rear_nvme8state): + """ + Sets the slot_rear_nvme8state of this BiosPolicy. + BIOS Token for setting PCIe Slot:Rear NVME 8 OptionRom configuration + + :param slot_rear_nvme8state: The slot_rear_nvme8state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if slot_rear_nvme8state not in allowed_values: + raise ValueError( + "Invalid value for `slot_rear_nvme8state` ({0}), must be one of {1}" + .format(slot_rear_nvme8state, allowed_values) + ) + + self._slot_rear_nvme8state = slot_rear_nvme8state + + @property + def slot_riser1link_speed(self): + """ + Gets the slot_riser1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser1 Link Speed configuration + + :return: The slot_riser1link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_riser1link_speed + + @slot_riser1link_speed.setter + def slot_riser1link_speed(self, slot_riser1link_speed): + """ + Sets the slot_riser1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser1 Link Speed configuration + + :param slot_riser1link_speed: The slot_riser1link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_riser1link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_riser1link_speed` ({0}), must be one of {1}" + .format(slot_riser1link_speed, allowed_values) + ) + + self._slot_riser1link_speed = slot_riser1link_speed + + @property + def slot_riser1slot1link_speed(self): + """ + Gets the slot_riser1slot1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser1 Slot1 Link Speed configuration + + :return: The slot_riser1slot1link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_riser1slot1link_speed + + @slot_riser1slot1link_speed.setter + def slot_riser1slot1link_speed(self, slot_riser1slot1link_speed): + """ + Sets the slot_riser1slot1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser1 Slot1 Link Speed configuration + + :param slot_riser1slot1link_speed: The slot_riser1slot1link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_riser1slot1link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_riser1slot1link_speed` ({0}), must be one of {1}" + .format(slot_riser1slot1link_speed, allowed_values) + ) + + self._slot_riser1slot1link_speed = slot_riser1slot1link_speed + + @property + def slot_riser1slot2link_speed(self): + """ + Gets the slot_riser1slot2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser1 Slot2 Link Speed configuration + + :return: The slot_riser1slot2link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_riser1slot2link_speed + + @slot_riser1slot2link_speed.setter + def slot_riser1slot2link_speed(self, slot_riser1slot2link_speed): + """ + Sets the slot_riser1slot2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser1 Slot2 Link Speed configuration + + :param slot_riser1slot2link_speed: The slot_riser1slot2link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_riser1slot2link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_riser1slot2link_speed` ({0}), must be one of {1}" + .format(slot_riser1slot2link_speed, allowed_values) + ) + + self._slot_riser1slot2link_speed = slot_riser1slot2link_speed + + @property + def slot_riser1slot3link_speed(self): + """ + Gets the slot_riser1slot3link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser1 Slot3 Link Speed configuration + + :return: The slot_riser1slot3link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_riser1slot3link_speed + + @slot_riser1slot3link_speed.setter + def slot_riser1slot3link_speed(self, slot_riser1slot3link_speed): + """ + Sets the slot_riser1slot3link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser1 Slot3 Link Speed configuration + + :param slot_riser1slot3link_speed: The slot_riser1slot3link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_riser1slot3link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_riser1slot3link_speed` ({0}), must be one of {1}" + .format(slot_riser1slot3link_speed, allowed_values) + ) + + self._slot_riser1slot3link_speed = slot_riser1slot3link_speed + + @property + def slot_riser2link_speed(self): + """ + Gets the slot_riser2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser2 Link Speed configuration + + :return: The slot_riser2link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_riser2link_speed + + @slot_riser2link_speed.setter + def slot_riser2link_speed(self, slot_riser2link_speed): + """ + Sets the slot_riser2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser2 Link Speed configuration + + :param slot_riser2link_speed: The slot_riser2link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_riser2link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_riser2link_speed` ({0}), must be one of {1}" + .format(slot_riser2link_speed, allowed_values) + ) + + self._slot_riser2link_speed = slot_riser2link_speed + + @property + def slot_riser2slot4link_speed(self): + """ + Gets the slot_riser2slot4link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser2 Slot4 Link Speed configuration + + :return: The slot_riser2slot4link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_riser2slot4link_speed + + @slot_riser2slot4link_speed.setter + def slot_riser2slot4link_speed(self, slot_riser2slot4link_speed): + """ + Sets the slot_riser2slot4link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser2 Slot4 Link Speed configuration + + :param slot_riser2slot4link_speed: The slot_riser2slot4link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_riser2slot4link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_riser2slot4link_speed` ({0}), must be one of {1}" + .format(slot_riser2slot4link_speed, allowed_values) + ) + + self._slot_riser2slot4link_speed = slot_riser2slot4link_speed + + @property + def slot_riser2slot5link_speed(self): + """ + Gets the slot_riser2slot5link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser2 Slot5 Link Speed configuration + + :return: The slot_riser2slot5link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_riser2slot5link_speed + + @slot_riser2slot5link_speed.setter + def slot_riser2slot5link_speed(self, slot_riser2slot5link_speed): + """ + Sets the slot_riser2slot5link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser2 Slot5 Link Speed configuration + + :param slot_riser2slot5link_speed: The slot_riser2slot5link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_riser2slot5link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_riser2slot5link_speed` ({0}), must be one of {1}" + .format(slot_riser2slot5link_speed, allowed_values) + ) + + self._slot_riser2slot5link_speed = slot_riser2slot5link_speed + + @property + def slot_riser2slot6link_speed(self): + """ + Gets the slot_riser2slot6link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser2 Slot6 Link Speed configuration + + :return: The slot_riser2slot6link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_riser2slot6link_speed + + @slot_riser2slot6link_speed.setter + def slot_riser2slot6link_speed(self, slot_riser2slot6link_speed): + """ + Sets the slot_riser2slot6link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:Riser2 Slot6 Link Speed configuration + + :param slot_riser2slot6link_speed: The slot_riser2slot6link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_riser2slot6link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_riser2slot6link_speed` ({0}), must be one of {1}" + .format(slot_riser2slot6link_speed, allowed_values) + ) + + self._slot_riser2slot6link_speed = slot_riser2slot6link_speed + + @property + def slot_sas_state(self): + """ + Gets the slot_sas_state of this BiosPolicy. + BIOS Token for setting PCIe Slot:SAS OptionROM configuration + + :return: The slot_sas_state of this BiosPolicy. + :rtype: str + """ + return self._slot_sas_state + + @slot_sas_state.setter + def slot_sas_state(self, slot_sas_state): + """ + Sets the slot_sas_state of this BiosPolicy. + BIOS Token for setting PCIe Slot:SAS OptionROM configuration + + :param slot_sas_state: The slot_sas_state of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "disabled", "enabled", "Legacy Only", "UEFI Only"] + if slot_sas_state not in allowed_values: + raise ValueError( + "Invalid value for `slot_sas_state` ({0}), must be one of {1}" + .format(slot_sas_state, allowed_values) + ) + + self._slot_sas_state = slot_sas_state + + @property + def slot_ssd_slot1link_speed(self): + """ + Gets the slot_ssd_slot1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:FrontPcie1 Link Speed configuration + + :return: The slot_ssd_slot1link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_ssd_slot1link_speed + + @slot_ssd_slot1link_speed.setter + def slot_ssd_slot1link_speed(self, slot_ssd_slot1link_speed): + """ + Sets the slot_ssd_slot1link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:FrontPcie1 Link Speed configuration + + :param slot_ssd_slot1link_speed: The slot_ssd_slot1link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_ssd_slot1link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_ssd_slot1link_speed` ({0}), must be one of {1}" + .format(slot_ssd_slot1link_speed, allowed_values) + ) + + self._slot_ssd_slot1link_speed = slot_ssd_slot1link_speed + + @property + def slot_ssd_slot2link_speed(self): + """ + Gets the slot_ssd_slot2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:FrontPcie2 Link Speed configuration + + :return: The slot_ssd_slot2link_speed of this BiosPolicy. + :rtype: str + """ + return self._slot_ssd_slot2link_speed + + @slot_ssd_slot2link_speed.setter + def slot_ssd_slot2link_speed(self, slot_ssd_slot2link_speed): + """ + Sets the slot_ssd_slot2link_speed of this BiosPolicy. + BIOS Token for setting PCIe Slot:FrontPcie2 Link Speed configuration + + :param slot_ssd_slot2link_speed: The slot_ssd_slot2link_speed of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Disabled", "GEN1", "GEN2", "GEN3"] + if slot_ssd_slot2link_speed not in allowed_values: + raise ValueError( + "Invalid value for `slot_ssd_slot2link_speed` ({0}), must be one of {1}" + .format(slot_ssd_slot2link_speed, allowed_values) + ) + + self._slot_ssd_slot2link_speed = slot_ssd_slot2link_speed + + @property + def smee(self): + """ + Gets the smee of this BiosPolicy. + BIOS Token for setting SMEE configuration + + :return: The smee of this BiosPolicy. + :rtype: str + """ + return self._smee + + @smee.setter + def smee(self, smee): + """ + Sets the smee of this BiosPolicy. + BIOS Token for setting SMEE configuration + + :param smee: The smee of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if smee not in allowed_values: + raise ValueError( + "Invalid value for `smee` ({0}), must be one of {1}" + .format(smee, allowed_values) + ) + + self._smee = smee + + @property + def smt_mode(self): + """ + Gets the smt_mode of this BiosPolicy. + BIOS Token for setting SMT Mode configuration + + :return: The smt_mode of this BiosPolicy. + :rtype: str + """ + return self._smt_mode + + @smt_mode.setter + def smt_mode(self, smt_mode): + """ + Sets the smt_mode of this BiosPolicy. + BIOS Token for setting SMT Mode configuration + + :param smt_mode: The smt_mode of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "Off"] + if smt_mode not in allowed_values: + raise ValueError( + "Invalid value for `smt_mode` ({0}), must be one of {1}" + .format(smt_mode, allowed_values) + ) + + self._smt_mode = smt_mode + + @property + def snc(self): + """ + Gets the snc of this BiosPolicy. + BIOS Token for setting Sub Numa Clustering configuration + + :return: The snc of this BiosPolicy. + :rtype: str + """ + return self._snc + + @snc.setter + def snc(self, snc): + """ + Sets the snc of this BiosPolicy. + BIOS Token for setting Sub Numa Clustering configuration + + :param snc: The snc of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Auto", "disabled", "enabled"] + if snc not in allowed_values: + raise ValueError( + "Invalid value for `snc` ({0}), must be one of {1}" + .format(snc, allowed_values) + ) + + self._snc = snc + + @property + def sparing_mode(self): + """ + Gets the sparing_mode of this BiosPolicy. + BIOS Token for setting Sparing Mode configuration + + :return: The sparing_mode of this BiosPolicy. + :rtype: str + """ + return self._sparing_mode + + @sparing_mode.setter + def sparing_mode(self, sparing_mode): + """ + Sets the sparing_mode of this BiosPolicy. + BIOS Token for setting Sparing Mode configuration + + :param sparing_mode: The sparing_mode of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "dimm-sparing", "rank-sparing"] + if sparing_mode not in allowed_values: + raise ValueError( + "Invalid value for `sparing_mode` ({0}), must be one of {1}" + .format(sparing_mode, allowed_values) + ) + + self._sparing_mode = sparing_mode + + @property + def sr_iov(self): + """ + Gets the sr_iov of this BiosPolicy. + BIOS Token for setting SR-IOV Support configuration + + :return: The sr_iov of this BiosPolicy. + :rtype: str + """ + return self._sr_iov + + @sr_iov.setter + def sr_iov(self, sr_iov): + """ + Sets the sr_iov of this BiosPolicy. + BIOS Token for setting SR-IOV Support configuration + + :param sr_iov: The sr_iov of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if sr_iov not in allowed_values: + raise ValueError( + "Invalid value for `sr_iov` ({0}), must be one of {1}" + .format(sr_iov, allowed_values) + ) + + self._sr_iov = sr_iov + + @property + def streamer_prefetch(self): + """ + Gets the streamer_prefetch of this BiosPolicy. + BIOS Token for setting DCU Streamer Prefetch configuration + + :return: The streamer_prefetch of this BiosPolicy. + :rtype: str + """ + return self._streamer_prefetch + + @streamer_prefetch.setter + def streamer_prefetch(self, streamer_prefetch): + """ + Sets the streamer_prefetch of this BiosPolicy. + BIOS Token for setting DCU Streamer Prefetch configuration + + :param streamer_prefetch: The streamer_prefetch of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if streamer_prefetch not in allowed_values: + raise ValueError( + "Invalid value for `streamer_prefetch` ({0}), must be one of {1}" + .format(streamer_prefetch, allowed_values) + ) + + self._streamer_prefetch = streamer_prefetch + + @property + def svm_mode(self): + """ + Gets the svm_mode of this BiosPolicy. + BIOS Token for setting SVM Mode configuration + + :return: The svm_mode of this BiosPolicy. + :rtype: str + """ + return self._svm_mode + + @svm_mode.setter + def svm_mode(self, svm_mode): + """ + Sets the svm_mode of this BiosPolicy. + BIOS Token for setting SVM Mode configuration + + :param svm_mode: The svm_mode of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if svm_mode not in allowed_values: + raise ValueError( + "Invalid value for `svm_mode` ({0}), must be one of {1}" + .format(svm_mode, allowed_values) + ) + + self._svm_mode = svm_mode + + @property + def terminal_type(self): + """ + Gets the terminal_type of this BiosPolicy. + BIOS Token for setting Terminal Type configuration + + :return: The terminal_type of this BiosPolicy. + :rtype: str + """ + return self._terminal_type + + @terminal_type.setter + def terminal_type(self, terminal_type): + """ + Sets the terminal_type of this BiosPolicy. + BIOS Token for setting Terminal Type configuration + + :param terminal_type: The terminal_type of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "pc-ansi", "vt-utf8", "vt100", "vt100-plus"] + if terminal_type not in allowed_values: + raise ValueError( + "Invalid value for `terminal_type` ({0}), must be one of {1}" + .format(terminal_type, allowed_values) + ) + + self._terminal_type = terminal_type + + @property + def tpm_control(self): + """ + Gets the tpm_control of this BiosPolicy. + BIOS Token for setting Trusted Platform Module State configuration + + :return: The tpm_control of this BiosPolicy. + :rtype: str + """ + return self._tpm_control + + @tpm_control.setter + def tpm_control(self, tpm_control): + """ + Sets the tpm_control of this BiosPolicy. + BIOS Token for setting Trusted Platform Module State configuration + + :param tpm_control: The tpm_control of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if tpm_control not in allowed_values: + raise ValueError( + "Invalid value for `tpm_control` ({0}), must be one of {1}" + .format(tpm_control, allowed_values) + ) + + self._tpm_control = tpm_control + + @property + def tpm_support(self): + """ + Gets the tpm_support of this BiosPolicy. + BIOS Token for setting TPM Support configuration + + :return: The tpm_support of this BiosPolicy. + :rtype: str + """ + return self._tpm_support + + @tpm_support.setter + def tpm_support(self, tpm_support): + """ + Sets the tpm_support of this BiosPolicy. + BIOS Token for setting TPM Support configuration + + :param tpm_support: The tpm_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if tpm_support not in allowed_values: + raise ValueError( + "Invalid value for `tpm_support` ({0}), must be one of {1}" + .format(tpm_support, allowed_values) + ) + + self._tpm_support = tpm_support + + @property + def txt_support(self): + """ + Gets the txt_support of this BiosPolicy. + BIOS Token for setting Intel Trusted Execution Technology Support configuration + + :return: The txt_support of this BiosPolicy. + :rtype: str + """ + return self._txt_support + + @txt_support.setter + def txt_support(self, txt_support): + """ + Sets the txt_support of this BiosPolicy. + BIOS Token for setting Intel Trusted Execution Technology Support configuration + + :param txt_support: The txt_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if txt_support not in allowed_values: + raise ValueError( + "Invalid value for `txt_support` ({0}), must be one of {1}" + .format(txt_support, allowed_values) + ) + + self._txt_support = txt_support + + @property + def ucsm_boot_order_rule(self): + """ + Gets the ucsm_boot_order_rule of this BiosPolicy. + BIOS Token for setting Boot Order Rules configuration + + :return: The ucsm_boot_order_rule of this BiosPolicy. + :rtype: str + """ + return self._ucsm_boot_order_rule + + @ucsm_boot_order_rule.setter + def ucsm_boot_order_rule(self, ucsm_boot_order_rule): + """ + Sets the ucsm_boot_order_rule of this BiosPolicy. + BIOS Token for setting Boot Order Rules configuration + + :param ucsm_boot_order_rule: The ucsm_boot_order_rule of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Loose", "Strict"] + if ucsm_boot_order_rule not in allowed_values: + raise ValueError( + "Invalid value for `ucsm_boot_order_rule` ({0}), must be one of {1}" + .format(ucsm_boot_order_rule, allowed_values) + ) + + self._ucsm_boot_order_rule = ucsm_boot_order_rule + + @property + def usb_emul6064(self): + """ + Gets the usb_emul6064 of this BiosPolicy. + BIOS Token for setting Port 60/64 Emulation configuration + + :return: The usb_emul6064 of this BiosPolicy. + :rtype: str + """ + return self._usb_emul6064 + + @usb_emul6064.setter + def usb_emul6064(self, usb_emul6064): + """ + Sets the usb_emul6064 of this BiosPolicy. + BIOS Token for setting Port 60/64 Emulation configuration + + :param usb_emul6064: The usb_emul6064 of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if usb_emul6064 not in allowed_values: + raise ValueError( + "Invalid value for `usb_emul6064` ({0}), must be one of {1}" + .format(usb_emul6064, allowed_values) + ) + + self._usb_emul6064 = usb_emul6064 + + @property + def usb_port_front(self): + """ + Gets the usb_port_front of this BiosPolicy. + BIOS Token for setting USB Port Front configuration + + :return: The usb_port_front of this BiosPolicy. + :rtype: str + """ + return self._usb_port_front + + @usb_port_front.setter + def usb_port_front(self, usb_port_front): + """ + Sets the usb_port_front of this BiosPolicy. + BIOS Token for setting USB Port Front configuration + + :param usb_port_front: The usb_port_front of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if usb_port_front not in allowed_values: + raise ValueError( + "Invalid value for `usb_port_front` ({0}), must be one of {1}" + .format(usb_port_front, allowed_values) + ) + + self._usb_port_front = usb_port_front + + @property + def usb_port_internal(self): + """ + Gets the usb_port_internal of this BiosPolicy. + BIOS Token for setting USB Port Internal configuration + + :return: The usb_port_internal of this BiosPolicy. + :rtype: str + """ + return self._usb_port_internal + + @usb_port_internal.setter + def usb_port_internal(self, usb_port_internal): + """ + Sets the usb_port_internal of this BiosPolicy. + BIOS Token for setting USB Port Internal configuration + + :param usb_port_internal: The usb_port_internal of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if usb_port_internal not in allowed_values: + raise ValueError( + "Invalid value for `usb_port_internal` ({0}), must be one of {1}" + .format(usb_port_internal, allowed_values) + ) + + self._usb_port_internal = usb_port_internal + + @property + def usb_port_kvm(self): + """ + Gets the usb_port_kvm of this BiosPolicy. + BIOS Token for setting USB Port KVM configuration + + :return: The usb_port_kvm of this BiosPolicy. + :rtype: str + """ + return self._usb_port_kvm + + @usb_port_kvm.setter + def usb_port_kvm(self, usb_port_kvm): + """ + Sets the usb_port_kvm of this BiosPolicy. + BIOS Token for setting USB Port KVM configuration + + :param usb_port_kvm: The usb_port_kvm of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if usb_port_kvm not in allowed_values: + raise ValueError( + "Invalid value for `usb_port_kvm` ({0}), must be one of {1}" + .format(usb_port_kvm, allowed_values) + ) + + self._usb_port_kvm = usb_port_kvm + + @property + def usb_port_rear(self): + """ + Gets the usb_port_rear of this BiosPolicy. + BIOS Token for setting USB Port Rear configuration + + :return: The usb_port_rear of this BiosPolicy. + :rtype: str + """ + return self._usb_port_rear + + @usb_port_rear.setter + def usb_port_rear(self, usb_port_rear): + """ + Sets the usb_port_rear of this BiosPolicy. + BIOS Token for setting USB Port Rear configuration + + :param usb_port_rear: The usb_port_rear of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if usb_port_rear not in allowed_values: + raise ValueError( + "Invalid value for `usb_port_rear` ({0}), must be one of {1}" + .format(usb_port_rear, allowed_values) + ) + + self._usb_port_rear = usb_port_rear + + @property + def usb_port_sd_card(self): + """ + Gets the usb_port_sd_card of this BiosPolicy. + BIOS Token for setting USB Port SD Card configuration + + :return: The usb_port_sd_card of this BiosPolicy. + :rtype: str + """ + return self._usb_port_sd_card + + @usb_port_sd_card.setter + def usb_port_sd_card(self, usb_port_sd_card): + """ + Sets the usb_port_sd_card of this BiosPolicy. + BIOS Token for setting USB Port SD Card configuration + + :param usb_port_sd_card: The usb_port_sd_card of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if usb_port_sd_card not in allowed_values: + raise ValueError( + "Invalid value for `usb_port_sd_card` ({0}), must be one of {1}" + .format(usb_port_sd_card, allowed_values) + ) + + self._usb_port_sd_card = usb_port_sd_card + + @property + def usb_port_vmedia(self): + """ + Gets the usb_port_vmedia of this BiosPolicy. + BIOS Token for setting USB Port VMedia configuration + + :return: The usb_port_vmedia of this BiosPolicy. + :rtype: str + """ + return self._usb_port_vmedia + + @usb_port_vmedia.setter + def usb_port_vmedia(self, usb_port_vmedia): + """ + Sets the usb_port_vmedia of this BiosPolicy. + BIOS Token for setting USB Port VMedia configuration + + :param usb_port_vmedia: The usb_port_vmedia of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if usb_port_vmedia not in allowed_values: + raise ValueError( + "Invalid value for `usb_port_vmedia` ({0}), must be one of {1}" + .format(usb_port_vmedia, allowed_values) + ) + + self._usb_port_vmedia = usb_port_vmedia + + @property + def usb_xhci_support(self): + """ + Gets the usb_xhci_support of this BiosPolicy. + BIOS Token for setting XHCI Legacy Support configuration + + :return: The usb_xhci_support of this BiosPolicy. + :rtype: str + """ + return self._usb_xhci_support + + @usb_xhci_support.setter + def usb_xhci_support(self, usb_xhci_support): + """ + Sets the usb_xhci_support of this BiosPolicy. + BIOS Token for setting XHCI Legacy Support configuration + + :param usb_xhci_support: The usb_xhci_support of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if usb_xhci_support not in allowed_values: + raise ValueError( + "Invalid value for `usb_xhci_support` ({0}), must be one of {1}" + .format(usb_xhci_support, allowed_values) + ) + + self._usb_xhci_support = usb_xhci_support + + @property + def vga_priority(self): + """ + Gets the vga_priority of this BiosPolicy. + BIOS Token for setting VGA Priority configuration + + :return: The vga_priority of this BiosPolicy. + :rtype: str + """ + return self._vga_priority + + @vga_priority.setter + def vga_priority(self, vga_priority): + """ + Sets the vga_priority of this BiosPolicy. + BIOS Token for setting VGA Priority configuration + + :param vga_priority: The vga_priority of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Offboard", "Onboard", "Onboard VGA Disabled"] + if vga_priority not in allowed_values: + raise ValueError( + "Invalid value for `vga_priority` ({0}), must be one of {1}" + .format(vga_priority, allowed_values) + ) + + self._vga_priority = vga_priority + + @property + def vmd_enable(self): + """ + Gets the vmd_enable of this BiosPolicy. + BIOS Token for setting VMD Enablement configuration + + :return: The vmd_enable of this BiosPolicy. + :rtype: str + """ + return self._vmd_enable + + @vmd_enable.setter + def vmd_enable(self, vmd_enable): + """ + Sets the vmd_enable of this BiosPolicy. + BIOS Token for setting VMD Enablement configuration + + :param vmd_enable: The vmd_enable of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "enabled", "disabled"] + if vmd_enable not in allowed_values: + raise ValueError( + "Invalid value for `vmd_enable` ({0}), must be one of {1}" + .format(vmd_enable, allowed_values) + ) + + self._vmd_enable = vmd_enable + + @property + def work_load_config(self): + """ + Gets the work_load_config of this BiosPolicy. + BIOS Token for setting Workload Configuration configuration + + :return: The work_load_config of this BiosPolicy. + :rtype: str + """ + return self._work_load_config + + @work_load_config.setter + def work_load_config(self, work_load_config): + """ + Sets the work_load_config of this BiosPolicy. + BIOS Token for setting Workload Configuration configuration + + :param work_load_config: The work_load_config of this BiosPolicy. + :type: str + """ + allowed_values = ["platform-default", "Balanced", "I/O Sensitive", "NUMA", "UMA"] + if work_load_config not in allowed_values: + raise ValueError( + "Invalid value for `work_load_config` ({0}), must be one of {1}" + .format(work_load_config, allowed_values) + ) + + self._work_load_config = work_load_config + + @property + def xpt_prefetch(self): + """ + Gets the xpt_prefetch of this BiosPolicy. + BIOS Token for setting XPT Prefetch configuration + + :return: The xpt_prefetch of this BiosPolicy. + :rtype: str + """ + return self._xpt_prefetch + + @xpt_prefetch.setter + def xpt_prefetch(self, xpt_prefetch): + """ + Sets the xpt_prefetch of this BiosPolicy. + BIOS Token for setting XPT Prefetch configuration + + :param xpt_prefetch: The xpt_prefetch of this BiosPolicy. + :type: str """ + allowed_values = ["platform-default", "enabled", "disabled"] + if xpt_prefetch not in allowed_values: + raise ValueError( + "Invalid value for `xpt_prefetch` ({0}), must be one of {1}" + .format(xpt_prefetch, allowed_values) + ) - self._server_management = server_management + self._xpt_prefetch = xpt_prefetch def to_dict(self): """ diff --git a/intersight/models/bios_policy_list.py b/intersight/models/bios_policy_list.py index 4e3ece6b..0ce3cbaf 100644 --- a/intersight/models/bios_policy_list.py +++ b/intersight/models/bios_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/bios_policy_ref.py b/intersight/models/bios_policy_ref.py new file mode 100644 index 00000000..bdc1589d --- /dev/null +++ b/intersight/models/bios_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BiosPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BiosPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BiosPolicyRef. + + :return: The moid of this BiosPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BiosPolicyRef. + + :param moid: The moid of this BiosPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BiosPolicyRef. + + :return: The object_type of this BiosPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BiosPolicyRef. + + :param object_type: The object_type of this BiosPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BiosPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/bios_power_or_performance.py b/intersight/models/bios_power_or_performance.py deleted file mode 100644 index 6768f809..00000000 --- a/intersight/models/bios_power_or_performance.py +++ /dev/null @@ -1,267 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class BiosPowerOrPerformance(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'adjacent_cache_line_prefetch': 'str', - 'cpu_performance': 'str', - 'hardware_prefetch': 'str', - 'ip_prefetch': 'str', - 'streamer_prefetch': 'str' - } - - attribute_map = { - 'adjacent_cache_line_prefetch': 'AdjacentCacheLinePrefetch', - 'cpu_performance': 'CpuPerformance', - 'hardware_prefetch': 'HardwarePrefetch', - 'ip_prefetch': 'IpPrefetch', - 'streamer_prefetch': 'StreamerPrefetch' - } - - def __init__(self, adjacent_cache_line_prefetch='platform-default', cpu_performance='platform-default', hardware_prefetch='platform-default', ip_prefetch='platform-default', streamer_prefetch='platform-default'): - """ - BiosPowerOrPerformance - a model defined in Swagger - """ - - self._adjacent_cache_line_prefetch = None - self._cpu_performance = None - self._hardware_prefetch = None - self._ip_prefetch = None - self._streamer_prefetch = None - - if adjacent_cache_line_prefetch is not None: - self.adjacent_cache_line_prefetch = adjacent_cache_line_prefetch - if cpu_performance is not None: - self.cpu_performance = cpu_performance - if hardware_prefetch is not None: - self.hardware_prefetch = hardware_prefetch - if ip_prefetch is not None: - self.ip_prefetch = ip_prefetch - if streamer_prefetch is not None: - self.streamer_prefetch = streamer_prefetch - - @property - def adjacent_cache_line_prefetch(self): - """ - Gets the adjacent_cache_line_prefetch of this BiosPowerOrPerformance. - BIOS Token for setting Adjacent Cache Line Prefetcher configuration - - :return: The adjacent_cache_line_prefetch of this BiosPowerOrPerformance. - :rtype: str - """ - return self._adjacent_cache_line_prefetch - - @adjacent_cache_line_prefetch.setter - def adjacent_cache_line_prefetch(self, adjacent_cache_line_prefetch): - """ - Sets the adjacent_cache_line_prefetch of this BiosPowerOrPerformance. - BIOS Token for setting Adjacent Cache Line Prefetcher configuration - - :param adjacent_cache_line_prefetch: The adjacent_cache_line_prefetch of this BiosPowerOrPerformance. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if adjacent_cache_line_prefetch not in allowed_values: - raise ValueError( - "Invalid value for `adjacent_cache_line_prefetch` ({0}), must be one of {1}" - .format(adjacent_cache_line_prefetch, allowed_values) - ) - - self._adjacent_cache_line_prefetch = adjacent_cache_line_prefetch - - @property - def cpu_performance(self): - """ - Gets the cpu_performance of this BiosPowerOrPerformance. - BIOS Token for setting CPU Performance configuration - - :return: The cpu_performance of this BiosPowerOrPerformance. - :rtype: str - """ - return self._cpu_performance - - @cpu_performance.setter - def cpu_performance(self, cpu_performance): - """ - Sets the cpu_performance of this BiosPowerOrPerformance. - BIOS Token for setting CPU Performance configuration - - :param cpu_performance: The cpu_performance of this BiosPowerOrPerformance. - :type: str - """ - allowed_values = ["platform-default", "custom", "enterprise", "high-throughput", "hpc"] - if cpu_performance not in allowed_values: - raise ValueError( - "Invalid value for `cpu_performance` ({0}), must be one of {1}" - .format(cpu_performance, allowed_values) - ) - - self._cpu_performance = cpu_performance - - @property - def hardware_prefetch(self): - """ - Gets the hardware_prefetch of this BiosPowerOrPerformance. - BIOS Token for setting Hardware Prefetcher configuration - - :return: The hardware_prefetch of this BiosPowerOrPerformance. - :rtype: str - """ - return self._hardware_prefetch - - @hardware_prefetch.setter - def hardware_prefetch(self, hardware_prefetch): - """ - Sets the hardware_prefetch of this BiosPowerOrPerformance. - BIOS Token for setting Hardware Prefetcher configuration - - :param hardware_prefetch: The hardware_prefetch of this BiosPowerOrPerformance. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if hardware_prefetch not in allowed_values: - raise ValueError( - "Invalid value for `hardware_prefetch` ({0}), must be one of {1}" - .format(hardware_prefetch, allowed_values) - ) - - self._hardware_prefetch = hardware_prefetch - - @property - def ip_prefetch(self): - """ - Gets the ip_prefetch of this BiosPowerOrPerformance. - BIOS Token for setting DCU IP Prefetcher configuration - - :return: The ip_prefetch of this BiosPowerOrPerformance. - :rtype: str - """ - return self._ip_prefetch - - @ip_prefetch.setter - def ip_prefetch(self, ip_prefetch): - """ - Sets the ip_prefetch of this BiosPowerOrPerformance. - BIOS Token for setting DCU IP Prefetcher configuration - - :param ip_prefetch: The ip_prefetch of this BiosPowerOrPerformance. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if ip_prefetch not in allowed_values: - raise ValueError( - "Invalid value for `ip_prefetch` ({0}), must be one of {1}" - .format(ip_prefetch, allowed_values) - ) - - self._ip_prefetch = ip_prefetch - - @property - def streamer_prefetch(self): - """ - Gets the streamer_prefetch of this BiosPowerOrPerformance. - BIOS Token for setting DCU Streamer Prefetch configuration - - :return: The streamer_prefetch of this BiosPowerOrPerformance. - :rtype: str - """ - return self._streamer_prefetch - - @streamer_prefetch.setter - def streamer_prefetch(self, streamer_prefetch): - """ - Sets the streamer_prefetch of this BiosPowerOrPerformance. - BIOS Token for setting DCU Streamer Prefetch configuration - - :param streamer_prefetch: The streamer_prefetch of this BiosPowerOrPerformance. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if streamer_prefetch not in allowed_values: - raise ValueError( - "Invalid value for `streamer_prefetch` ({0}), must be one of {1}" - .format(streamer_prefetch, allowed_values) - ) - - self._streamer_prefetch = streamer_prefetch - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, BiosPowerOrPerformance): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/bios_processor.py b/intersight/models/bios_processor.py deleted file mode 100644 index 427c3120..00000000 --- a/intersight/models/bios_processor.py +++ /dev/null @@ -1,845 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class BiosProcessor(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'boot_performance_mode': 'str', - 'cmci_enable': 'str', - 'core_multi_processing': 'str', - 'cpu_energy_performance': 'str', - 'enhanced_intel_speed_step_tech': 'str', - 'execute_disable_bit': 'str', - 'extended_apic': 'str', - 'hwpm_enable': 'str', - 'imc_interleave': 'str', - 'intel_hyper_threading_tech': 'str', - 'intel_turbo_boost_tech': 'str', - 'intel_virtualization_technology': 'str', - 'kti_prefetch': 'str', - 'llc_prefetch': 'str', - 'package_cstate_limit': 'str', - 'processor_c1e': 'str', - 'processor_c6report': 'str', - 'pstate_coord_type': 'str', - 'pwr_perf_tuning': 'str', - 'snc': 'str', - 'work_load_config': 'str', - 'xpt_prefetch': 'str' - } - - attribute_map = { - 'boot_performance_mode': 'BootPerformanceMode', - 'cmci_enable': 'CmciEnable', - 'core_multi_processing': 'CoreMultiProcessing', - 'cpu_energy_performance': 'CpuEnergyPerformance', - 'enhanced_intel_speed_step_tech': 'EnhancedIntelSpeedStepTech', - 'execute_disable_bit': 'ExecuteDisableBit', - 'extended_apic': 'ExtendedApic', - 'hwpm_enable': 'HwpmEnable', - 'imc_interleave': 'ImcInterleave', - 'intel_hyper_threading_tech': 'IntelHyperThreadingTech', - 'intel_turbo_boost_tech': 'IntelTurboBoostTech', - 'intel_virtualization_technology': 'IntelVirtualizationTechnology', - 'kti_prefetch': 'KtiPrefetch', - 'llc_prefetch': 'LlcPrefetch', - 'package_cstate_limit': 'PackageCstateLimit', - 'processor_c1e': 'ProcessorC1e', - 'processor_c6report': 'ProcessorC6report', - 'pstate_coord_type': 'PstateCoordType', - 'pwr_perf_tuning': 'PwrPerfTuning', - 'snc': 'Snc', - 'work_load_config': 'WorkLoadConfig', - 'xpt_prefetch': 'XptPrefetch' - } - - def __init__(self, boot_performance_mode='platform-default', cmci_enable='platform-default', core_multi_processing='platform-default', cpu_energy_performance='platform-default', enhanced_intel_speed_step_tech='platform-default', execute_disable_bit='platform-default', extended_apic='platform-default', hwpm_enable='platform-default', imc_interleave='platform-default', intel_hyper_threading_tech='platform-default', intel_turbo_boost_tech='platform-default', intel_virtualization_technology='platform-default', kti_prefetch='platform-default', llc_prefetch='platform-default', package_cstate_limit='platform-default', processor_c1e='platform-default', processor_c6report='platform-default', pstate_coord_type='platform-default', pwr_perf_tuning='platform-default', snc='platform-default', work_load_config='platform-default', xpt_prefetch='platform-default'): - """ - BiosProcessor - a model defined in Swagger - """ - - self._boot_performance_mode = None - self._cmci_enable = None - self._core_multi_processing = None - self._cpu_energy_performance = None - self._enhanced_intel_speed_step_tech = None - self._execute_disable_bit = None - self._extended_apic = None - self._hwpm_enable = None - self._imc_interleave = None - self._intel_hyper_threading_tech = None - self._intel_turbo_boost_tech = None - self._intel_virtualization_technology = None - self._kti_prefetch = None - self._llc_prefetch = None - self._package_cstate_limit = None - self._processor_c1e = None - self._processor_c6report = None - self._pstate_coord_type = None - self._pwr_perf_tuning = None - self._snc = None - self._work_load_config = None - self._xpt_prefetch = None - - if boot_performance_mode is not None: - self.boot_performance_mode = boot_performance_mode - if cmci_enable is not None: - self.cmci_enable = cmci_enable - if core_multi_processing is not None: - self.core_multi_processing = core_multi_processing - if cpu_energy_performance is not None: - self.cpu_energy_performance = cpu_energy_performance - if enhanced_intel_speed_step_tech is not None: - self.enhanced_intel_speed_step_tech = enhanced_intel_speed_step_tech - if execute_disable_bit is not None: - self.execute_disable_bit = execute_disable_bit - if extended_apic is not None: - self.extended_apic = extended_apic - if hwpm_enable is not None: - self.hwpm_enable = hwpm_enable - if imc_interleave is not None: - self.imc_interleave = imc_interleave - if intel_hyper_threading_tech is not None: - self.intel_hyper_threading_tech = intel_hyper_threading_tech - if intel_turbo_boost_tech is not None: - self.intel_turbo_boost_tech = intel_turbo_boost_tech - if intel_virtualization_technology is not None: - self.intel_virtualization_technology = intel_virtualization_technology - if kti_prefetch is not None: - self.kti_prefetch = kti_prefetch - if llc_prefetch is not None: - self.llc_prefetch = llc_prefetch - if package_cstate_limit is not None: - self.package_cstate_limit = package_cstate_limit - if processor_c1e is not None: - self.processor_c1e = processor_c1e - if processor_c6report is not None: - self.processor_c6report = processor_c6report - if pstate_coord_type is not None: - self.pstate_coord_type = pstate_coord_type - if pwr_perf_tuning is not None: - self.pwr_perf_tuning = pwr_perf_tuning - if snc is not None: - self.snc = snc - if work_load_config is not None: - self.work_load_config = work_load_config - if xpt_prefetch is not None: - self.xpt_prefetch = xpt_prefetch - - @property - def boot_performance_mode(self): - """ - Gets the boot_performance_mode of this BiosProcessor. - BIOS Token for setting Boot Performance Mode configuration - - :return: The boot_performance_mode of this BiosProcessor. - :rtype: str - """ - return self._boot_performance_mode - - @boot_performance_mode.setter - def boot_performance_mode(self, boot_performance_mode): - """ - Sets the boot_performance_mode of this BiosProcessor. - BIOS Token for setting Boot Performance Mode configuration - - :param boot_performance_mode: The boot_performance_mode of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "Max Efficient", "Max Performance", "Set by Intel NM"] - if boot_performance_mode not in allowed_values: - raise ValueError( - "Invalid value for `boot_performance_mode` ({0}), must be one of {1}" - .format(boot_performance_mode, allowed_values) - ) - - self._boot_performance_mode = boot_performance_mode - - @property - def cmci_enable(self): - """ - Gets the cmci_enable of this BiosProcessor. - BIOS Token for setting Processor CMCI configuration - - :return: The cmci_enable of this BiosProcessor. - :rtype: str - """ - return self._cmci_enable - - @cmci_enable.setter - def cmci_enable(self, cmci_enable): - """ - Sets the cmci_enable of this BiosProcessor. - BIOS Token for setting Processor CMCI configuration - - :param cmci_enable: The cmci_enable of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if cmci_enable not in allowed_values: - raise ValueError( - "Invalid value for `cmci_enable` ({0}), must be one of {1}" - .format(cmci_enable, allowed_values) - ) - - self._cmci_enable = cmci_enable - - @property - def core_multi_processing(self): - """ - Gets the core_multi_processing of this BiosProcessor. - BIOS Token for setting Cores Enabled configuration - - :return: The core_multi_processing of this BiosProcessor. - :rtype: str - """ - return self._core_multi_processing - - @core_multi_processing.setter - def core_multi_processing(self, core_multi_processing): - """ - Sets the core_multi_processing of this BiosProcessor. - BIOS Token for setting Cores Enabled configuration - - :param core_multi_processing: The core_multi_processing of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "1", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "2", "20", "21", "22", "23", "24", "25", "26", "27", "3", "4", "5", "6", "7", "8", "9", "all"] - if core_multi_processing not in allowed_values: - raise ValueError( - "Invalid value for `core_multi_processing` ({0}), must be one of {1}" - .format(core_multi_processing, allowed_values) - ) - - self._core_multi_processing = core_multi_processing - - @property - def cpu_energy_performance(self): - """ - Gets the cpu_energy_performance of this BiosProcessor. - BIOS Token for setting Energy Performance BIOS Config configuration - - :return: The cpu_energy_performance of this BiosProcessor. - :rtype: str - """ - return self._cpu_energy_performance - - @cpu_energy_performance.setter - def cpu_energy_performance(self, cpu_energy_performance): - """ - Sets the cpu_energy_performance of this BiosProcessor. - BIOS Token for setting Energy Performance BIOS Config configuration - - :param cpu_energy_performance: The cpu_energy_performance of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "balanced-performance", "balanced-power", "performance", "power"] - if cpu_energy_performance not in allowed_values: - raise ValueError( - "Invalid value for `cpu_energy_performance` ({0}), must be one of {1}" - .format(cpu_energy_performance, allowed_values) - ) - - self._cpu_energy_performance = cpu_energy_performance - - @property - def enhanced_intel_speed_step_tech(self): - """ - Gets the enhanced_intel_speed_step_tech of this BiosProcessor. - BIOS Token for setting Enhanced Intel Speedstep(R) Technology configuration - - :return: The enhanced_intel_speed_step_tech of this BiosProcessor. - :rtype: str - """ - return self._enhanced_intel_speed_step_tech - - @enhanced_intel_speed_step_tech.setter - def enhanced_intel_speed_step_tech(self, enhanced_intel_speed_step_tech): - """ - Sets the enhanced_intel_speed_step_tech of this BiosProcessor. - BIOS Token for setting Enhanced Intel Speedstep(R) Technology configuration - - :param enhanced_intel_speed_step_tech: The enhanced_intel_speed_step_tech of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if enhanced_intel_speed_step_tech not in allowed_values: - raise ValueError( - "Invalid value for `enhanced_intel_speed_step_tech` ({0}), must be one of {1}" - .format(enhanced_intel_speed_step_tech, allowed_values) - ) - - self._enhanced_intel_speed_step_tech = enhanced_intel_speed_step_tech - - @property - def execute_disable_bit(self): - """ - Gets the execute_disable_bit of this BiosProcessor. - BIOS Token for setting Execute Disable Bit configuration - - :return: The execute_disable_bit of this BiosProcessor. - :rtype: str - """ - return self._execute_disable_bit - - @execute_disable_bit.setter - def execute_disable_bit(self, execute_disable_bit): - """ - Sets the execute_disable_bit of this BiosProcessor. - BIOS Token for setting Execute Disable Bit configuration - - :param execute_disable_bit: The execute_disable_bit of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if execute_disable_bit not in allowed_values: - raise ValueError( - "Invalid value for `execute_disable_bit` ({0}), must be one of {1}" - .format(execute_disable_bit, allowed_values) - ) - - self._execute_disable_bit = execute_disable_bit - - @property - def extended_apic(self): - """ - Gets the extended_apic of this BiosProcessor. - BIOS Token for setting Extended Apic configuration - - :return: The extended_apic of this BiosProcessor. - :rtype: str - """ - return self._extended_apic - - @extended_apic.setter - def extended_apic(self, extended_apic): - """ - Sets the extended_apic of this BiosProcessor. - BIOS Token for setting Extended Apic configuration - - :param extended_apic: The extended_apic of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if extended_apic not in allowed_values: - raise ValueError( - "Invalid value for `extended_apic` ({0}), must be one of {1}" - .format(extended_apic, allowed_values) - ) - - self._extended_apic = extended_apic - - @property - def hwpm_enable(self): - """ - Gets the hwpm_enable of this BiosProcessor. - BIOS Token for setting Hardware P-States configuration - - :return: The hwpm_enable of this BiosProcessor. - :rtype: str - """ - return self._hwpm_enable - - @hwpm_enable.setter - def hwpm_enable(self, hwpm_enable): - """ - Sets the hwpm_enable of this BiosProcessor. - BIOS Token for setting Hardware P-States configuration - - :param hwpm_enable: The hwpm_enable of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "Disabled", "HWPM Native Mode", "HWPM OOB Mode", "Native Mode with no Legacy"] - if hwpm_enable not in allowed_values: - raise ValueError( - "Invalid value for `hwpm_enable` ({0}), must be one of {1}" - .format(hwpm_enable, allowed_values) - ) - - self._hwpm_enable = hwpm_enable - - @property - def imc_interleave(self): - """ - Gets the imc_interleave of this BiosProcessor. - BIOS Token for setting IMC Interleaving configuration - - :return: The imc_interleave of this BiosProcessor. - :rtype: str - """ - return self._imc_interleave - - @imc_interleave.setter - def imc_interleave(self, imc_interleave): - """ - Sets the imc_interleave of this BiosProcessor. - BIOS Token for setting IMC Interleaving configuration - - :param imc_interleave: The imc_interleave of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "1-way Interleave", "2-way Interleave", "Auto"] - if imc_interleave not in allowed_values: - raise ValueError( - "Invalid value for `imc_interleave` ({0}), must be one of {1}" - .format(imc_interleave, allowed_values) - ) - - self._imc_interleave = imc_interleave - - @property - def intel_hyper_threading_tech(self): - """ - Gets the intel_hyper_threading_tech of this BiosProcessor. - BIOS Token for setting Hyper-Threading [ALL] configuration - - :return: The intel_hyper_threading_tech of this BiosProcessor. - :rtype: str - """ - return self._intel_hyper_threading_tech - - @intel_hyper_threading_tech.setter - def intel_hyper_threading_tech(self, intel_hyper_threading_tech): - """ - Sets the intel_hyper_threading_tech of this BiosProcessor. - BIOS Token for setting Hyper-Threading [ALL] configuration - - :param intel_hyper_threading_tech: The intel_hyper_threading_tech of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if intel_hyper_threading_tech not in allowed_values: - raise ValueError( - "Invalid value for `intel_hyper_threading_tech` ({0}), must be one of {1}" - .format(intel_hyper_threading_tech, allowed_values) - ) - - self._intel_hyper_threading_tech = intel_hyper_threading_tech - - @property - def intel_turbo_boost_tech(self): - """ - Gets the intel_turbo_boost_tech of this BiosProcessor. - BIOS Token for setting Turbo Mode configuration - - :return: The intel_turbo_boost_tech of this BiosProcessor. - :rtype: str - """ - return self._intel_turbo_boost_tech - - @intel_turbo_boost_tech.setter - def intel_turbo_boost_tech(self, intel_turbo_boost_tech): - """ - Sets the intel_turbo_boost_tech of this BiosProcessor. - BIOS Token for setting Turbo Mode configuration - - :param intel_turbo_boost_tech: The intel_turbo_boost_tech of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if intel_turbo_boost_tech not in allowed_values: - raise ValueError( - "Invalid value for `intel_turbo_boost_tech` ({0}), must be one of {1}" - .format(intel_turbo_boost_tech, allowed_values) - ) - - self._intel_turbo_boost_tech = intel_turbo_boost_tech - - @property - def intel_virtualization_technology(self): - """ - Gets the intel_virtualization_technology of this BiosProcessor. - BIOS Token for setting Intel(R) VT configuration - - :return: The intel_virtualization_technology of this BiosProcessor. - :rtype: str - """ - return self._intel_virtualization_technology - - @intel_virtualization_technology.setter - def intel_virtualization_technology(self, intel_virtualization_technology): - """ - Sets the intel_virtualization_technology of this BiosProcessor. - BIOS Token for setting Intel(R) VT configuration - - :param intel_virtualization_technology: The intel_virtualization_technology of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if intel_virtualization_technology not in allowed_values: - raise ValueError( - "Invalid value for `intel_virtualization_technology` ({0}), must be one of {1}" - .format(intel_virtualization_technology, allowed_values) - ) - - self._intel_virtualization_technology = intel_virtualization_technology - - @property - def kti_prefetch(self): - """ - Gets the kti_prefetch of this BiosProcessor. - BIOS Token for setting KTI Prefetch configuration - - :return: The kti_prefetch of this BiosProcessor. - :rtype: str - """ - return self._kti_prefetch - - @kti_prefetch.setter - def kti_prefetch(self, kti_prefetch): - """ - Sets the kti_prefetch of this BiosProcessor. - BIOS Token for setting KTI Prefetch configuration - - :param kti_prefetch: The kti_prefetch of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if kti_prefetch not in allowed_values: - raise ValueError( - "Invalid value for `kti_prefetch` ({0}), must be one of {1}" - .format(kti_prefetch, allowed_values) - ) - - self._kti_prefetch = kti_prefetch - - @property - def llc_prefetch(self): - """ - Gets the llc_prefetch of this BiosProcessor. - BIOS Token for setting LLC Prefetch configuration - - :return: The llc_prefetch of this BiosProcessor. - :rtype: str - """ - return self._llc_prefetch - - @llc_prefetch.setter - def llc_prefetch(self, llc_prefetch): - """ - Sets the llc_prefetch of this BiosProcessor. - BIOS Token for setting LLC Prefetch configuration - - :param llc_prefetch: The llc_prefetch of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if llc_prefetch not in allowed_values: - raise ValueError( - "Invalid value for `llc_prefetch` ({0}), must be one of {1}" - .format(llc_prefetch, allowed_values) - ) - - self._llc_prefetch = llc_prefetch - - @property - def package_cstate_limit(self): - """ - Gets the package_cstate_limit of this BiosProcessor. - BIOS Token for setting Package C State configuration - - :return: The package_cstate_limit of this BiosProcessor. - :rtype: str - """ - return self._package_cstate_limit - - @package_cstate_limit.setter - def package_cstate_limit(self, package_cstate_limit): - """ - Sets the package_cstate_limit of this BiosProcessor. - BIOS Token for setting Package C State configuration - - :param package_cstate_limit: The package_cstate_limit of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "Auto", "C0 C1 State", "C2", "C6 Non Retention", "C6 Retention", "No Limit"] - if package_cstate_limit not in allowed_values: - raise ValueError( - "Invalid value for `package_cstate_limit` ({0}), must be one of {1}" - .format(package_cstate_limit, allowed_values) - ) - - self._package_cstate_limit = package_cstate_limit - - @property - def processor_c1e(self): - """ - Gets the processor_c1e of this BiosProcessor. - BIOS Token for setting Processor C1E configuration - - :return: The processor_c1e of this BiosProcessor. - :rtype: str - """ - return self._processor_c1e - - @processor_c1e.setter - def processor_c1e(self, processor_c1e): - """ - Sets the processor_c1e of this BiosProcessor. - BIOS Token for setting Processor C1E configuration - - :param processor_c1e: The processor_c1e of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if processor_c1e not in allowed_values: - raise ValueError( - "Invalid value for `processor_c1e` ({0}), must be one of {1}" - .format(processor_c1e, allowed_values) - ) - - self._processor_c1e = processor_c1e - - @property - def processor_c6report(self): - """ - Gets the processor_c6report of this BiosProcessor. - BIOS Token for setting Processor C6 Report configuration - - :return: The processor_c6report of this BiosProcessor. - :rtype: str - """ - return self._processor_c6report - - @processor_c6report.setter - def processor_c6report(self, processor_c6report): - """ - Sets the processor_c6report of this BiosProcessor. - BIOS Token for setting Processor C6 Report configuration - - :param processor_c6report: The processor_c6report of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if processor_c6report not in allowed_values: - raise ValueError( - "Invalid value for `processor_c6report` ({0}), must be one of {1}" - .format(processor_c6report, allowed_values) - ) - - self._processor_c6report = processor_c6report - - @property - def pstate_coord_type(self): - """ - Gets the pstate_coord_type of this BiosProcessor. - BIOS Token for setting EIST PSD Function configuration - - :return: The pstate_coord_type of this BiosProcessor. - :rtype: str - """ - return self._pstate_coord_type - - @pstate_coord_type.setter - def pstate_coord_type(self, pstate_coord_type): - """ - Sets the pstate_coord_type of this BiosProcessor. - BIOS Token for setting EIST PSD Function configuration - - :param pstate_coord_type: The pstate_coord_type of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "HW ALL", "SW ALL", "SW ANY"] - if pstate_coord_type not in allowed_values: - raise ValueError( - "Invalid value for `pstate_coord_type` ({0}), must be one of {1}" - .format(pstate_coord_type, allowed_values) - ) - - self._pstate_coord_type = pstate_coord_type - - @property - def pwr_perf_tuning(self): - """ - Gets the pwr_perf_tuning of this BiosProcessor. - BIOS Token for setting Power Performance Tuning configuration - - :return: The pwr_perf_tuning of this BiosProcessor. - :rtype: str - """ - return self._pwr_perf_tuning - - @pwr_perf_tuning.setter - def pwr_perf_tuning(self, pwr_perf_tuning): - """ - Sets the pwr_perf_tuning of this BiosProcessor. - BIOS Token for setting Power Performance Tuning configuration - - :param pwr_perf_tuning: The pwr_perf_tuning of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "bios", "os"] - if pwr_perf_tuning not in allowed_values: - raise ValueError( - "Invalid value for `pwr_perf_tuning` ({0}), must be one of {1}" - .format(pwr_perf_tuning, allowed_values) - ) - - self._pwr_perf_tuning = pwr_perf_tuning - - @property - def snc(self): - """ - Gets the snc of this BiosProcessor. - BIOS Token for setting Sub Numa Clustering configuration - - :return: The snc of this BiosProcessor. - :rtype: str - """ - return self._snc - - @snc.setter - def snc(self, snc): - """ - Sets the snc of this BiosProcessor. - BIOS Token for setting Sub Numa Clustering configuration - - :param snc: The snc of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "Auto", "disabled", "enabled"] - if snc not in allowed_values: - raise ValueError( - "Invalid value for `snc` ({0}), must be one of {1}" - .format(snc, allowed_values) - ) - - self._snc = snc - - @property - def work_load_config(self): - """ - Gets the work_load_config of this BiosProcessor. - BIOS Token for setting Workload Configuration configuration - - :return: The work_load_config of this BiosProcessor. - :rtype: str - """ - return self._work_load_config - - @work_load_config.setter - def work_load_config(self, work_load_config): - """ - Sets the work_load_config of this BiosProcessor. - BIOS Token for setting Workload Configuration configuration - - :param work_load_config: The work_load_config of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "Balanced", "I/O Sensitive"] - if work_load_config not in allowed_values: - raise ValueError( - "Invalid value for `work_load_config` ({0}), must be one of {1}" - .format(work_load_config, allowed_values) - ) - - self._work_load_config = work_load_config - - @property - def xpt_prefetch(self): - """ - Gets the xpt_prefetch of this BiosProcessor. - BIOS Token for setting XPT Prefetch configuration - - :return: The xpt_prefetch of this BiosProcessor. - :rtype: str - """ - return self._xpt_prefetch - - @xpt_prefetch.setter - def xpt_prefetch(self, xpt_prefetch): - """ - Sets the xpt_prefetch of this BiosProcessor. - BIOS Token for setting XPT Prefetch configuration - - :param xpt_prefetch: The xpt_prefetch of this BiosProcessor. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if xpt_prefetch not in allowed_values: - raise ValueError( - "Invalid value for `xpt_prefetch` ({0}), must be one of {1}" - .format(xpt_prefetch, allowed_values) - ) - - self._xpt_prefetch = xpt_prefetch - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, BiosProcessor): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/bios_security.py b/intersight/models/bios_security.py deleted file mode 100644 index 9f24d92c..00000000 --- a/intersight/models/bios_security.py +++ /dev/null @@ -1,199 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class BiosSecurity(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'pop_support': 'str', - 'tpm_control': 'str', - 'txt_support': 'str' - } - - attribute_map = { - 'pop_support': 'PopSupport', - 'tpm_control': 'TpmControl', - 'txt_support': 'TxtSupport' - } - - def __init__(self, pop_support='platform-default', tpm_control='platform-default', txt_support='platform-default'): - """ - BiosSecurity - a model defined in Swagger - """ - - self._pop_support = None - self._tpm_control = None - self._txt_support = None - - if pop_support is not None: - self.pop_support = pop_support - if tpm_control is not None: - self.tpm_control = tpm_control - if txt_support is not None: - self.txt_support = txt_support - - @property - def pop_support(self): - """ - Gets the pop_support of this BiosSecurity. - BIOS Token for setting Power ON Password Support configuration - - :return: The pop_support of this BiosSecurity. - :rtype: str - """ - return self._pop_support - - @pop_support.setter - def pop_support(self, pop_support): - """ - Sets the pop_support of this BiosSecurity. - BIOS Token for setting Power ON Password Support configuration - - :param pop_support: The pop_support of this BiosSecurity. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if pop_support not in allowed_values: - raise ValueError( - "Invalid value for `pop_support` ({0}), must be one of {1}" - .format(pop_support, allowed_values) - ) - - self._pop_support = pop_support - - @property - def tpm_control(self): - """ - Gets the tpm_control of this BiosSecurity. - BIOS Token for setting Trusted Platform Module State configuration - - :return: The tpm_control of this BiosSecurity. - :rtype: str - """ - return self._tpm_control - - @tpm_control.setter - def tpm_control(self, tpm_control): - """ - Sets the tpm_control of this BiosSecurity. - BIOS Token for setting Trusted Platform Module State configuration - - :param tpm_control: The tpm_control of this BiosSecurity. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if tpm_control not in allowed_values: - raise ValueError( - "Invalid value for `tpm_control` ({0}), must be one of {1}" - .format(tpm_control, allowed_values) - ) - - self._tpm_control = tpm_control - - @property - def txt_support(self): - """ - Gets the txt_support of this BiosSecurity. - BIOS Token for setting Intel Trusted Execution Technology Support configuration - - :return: The txt_support of this BiosSecurity. - :rtype: str - """ - return self._txt_support - - @txt_support.setter - def txt_support(self, txt_support): - """ - Sets the txt_support of this BiosSecurity. - BIOS Token for setting Intel Trusted Execution Technology Support configuration - - :param txt_support: The txt_support of this BiosSecurity. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if txt_support not in allowed_values: - raise ValueError( - "Invalid value for `txt_support` ({0}), must be one of {1}" - .format(txt_support, allowed_values) - ) - - self._txt_support = txt_support - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, BiosSecurity): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/bios_serial_configuration.py b/intersight/models/bios_serial_configuration.py deleted file mode 100644 index 1ce5442a..00000000 --- a/intersight/models/bios_serial_configuration.py +++ /dev/null @@ -1,335 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class BiosSerialConfiguration(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'baud_rate': 'str', - 'console_redirection': 'str', - 'flow_control': 'str', - 'legacy_os_redirection': 'str', - 'putty_key_pad': 'str', - 'redirection_after_post': 'str', - 'terminal_type': 'str' - } - - attribute_map = { - 'baud_rate': 'BaudRate', - 'console_redirection': 'ConsoleRedirection', - 'flow_control': 'FlowControl', - 'legacy_os_redirection': 'LegacyOsRedirection', - 'putty_key_pad': 'PuttyKeyPad', - 'redirection_after_post': 'RedirectionAfterPost', - 'terminal_type': 'TerminalType' - } - - def __init__(self, baud_rate='platform-default', console_redirection='platform-default', flow_control='platform-default', legacy_os_redirection='platform-default', putty_key_pad='platform-default', redirection_after_post='platform-default', terminal_type='platform-default'): - """ - BiosSerialConfiguration - a model defined in Swagger - """ - - self._baud_rate = None - self._console_redirection = None - self._flow_control = None - self._legacy_os_redirection = None - self._putty_key_pad = None - self._redirection_after_post = None - self._terminal_type = None - - if baud_rate is not None: - self.baud_rate = baud_rate - if console_redirection is not None: - self.console_redirection = console_redirection - if flow_control is not None: - self.flow_control = flow_control - if legacy_os_redirection is not None: - self.legacy_os_redirection = legacy_os_redirection - if putty_key_pad is not None: - self.putty_key_pad = putty_key_pad - if redirection_after_post is not None: - self.redirection_after_post = redirection_after_post - if terminal_type is not None: - self.terminal_type = terminal_type - - @property - def baud_rate(self): - """ - Gets the baud_rate of this BiosSerialConfiguration. - BIOS Token for setting Bits per second configuration - - :return: The baud_rate of this BiosSerialConfiguration. - :rtype: str - """ - return self._baud_rate - - @baud_rate.setter - def baud_rate(self, baud_rate): - """ - Sets the baud_rate of this BiosSerialConfiguration. - BIOS Token for setting Bits per second configuration - - :param baud_rate: The baud_rate of this BiosSerialConfiguration. - :type: str - """ - allowed_values = ["platform-default", "115200", "19200", "38400", "57600", "9600"] - if baud_rate not in allowed_values: - raise ValueError( - "Invalid value for `baud_rate` ({0}), must be one of {1}" - .format(baud_rate, allowed_values) - ) - - self._baud_rate = baud_rate - - @property - def console_redirection(self): - """ - Gets the console_redirection of this BiosSerialConfiguration. - BIOS Token for setting Console Redirection configuration - - :return: The console_redirection of this BiosSerialConfiguration. - :rtype: str - """ - return self._console_redirection - - @console_redirection.setter - def console_redirection(self, console_redirection): - """ - Sets the console_redirection of this BiosSerialConfiguration. - BIOS Token for setting Console Redirection configuration - - :param console_redirection: The console_redirection of this BiosSerialConfiguration. - :type: str - """ - allowed_values = ["platform-default", "com-0", "com-1", "disabled"] - if console_redirection not in allowed_values: - raise ValueError( - "Invalid value for `console_redirection` ({0}), must be one of {1}" - .format(console_redirection, allowed_values) - ) - - self._console_redirection = console_redirection - - @property - def flow_control(self): - """ - Gets the flow_control of this BiosSerialConfiguration. - BIOS Token for setting Flow Control configuration - - :return: The flow_control of this BiosSerialConfiguration. - :rtype: str - """ - return self._flow_control - - @flow_control.setter - def flow_control(self, flow_control): - """ - Sets the flow_control of this BiosSerialConfiguration. - BIOS Token for setting Flow Control configuration - - :param flow_control: The flow_control of this BiosSerialConfiguration. - :type: str - """ - allowed_values = ["platform-default", "none", "rts-cts"] - if flow_control not in allowed_values: - raise ValueError( - "Invalid value for `flow_control` ({0}), must be one of {1}" - .format(flow_control, allowed_values) - ) - - self._flow_control = flow_control - - @property - def legacy_os_redirection(self): - """ - Gets the legacy_os_redirection of this BiosSerialConfiguration. - BIOS Token for setting Legacy OS Redirection configuration - - :return: The legacy_os_redirection of this BiosSerialConfiguration. - :rtype: str - """ - return self._legacy_os_redirection - - @legacy_os_redirection.setter - def legacy_os_redirection(self, legacy_os_redirection): - """ - Sets the legacy_os_redirection of this BiosSerialConfiguration. - BIOS Token for setting Legacy OS Redirection configuration - - :param legacy_os_redirection: The legacy_os_redirection of this BiosSerialConfiguration. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if legacy_os_redirection not in allowed_values: - raise ValueError( - "Invalid value for `legacy_os_redirection` ({0}), must be one of {1}" - .format(legacy_os_redirection, allowed_values) - ) - - self._legacy_os_redirection = legacy_os_redirection - - @property - def putty_key_pad(self): - """ - Gets the putty_key_pad of this BiosSerialConfiguration. - BIOS Token for setting Putty KeyPad configuration - - :return: The putty_key_pad of this BiosSerialConfiguration. - :rtype: str - """ - return self._putty_key_pad - - @putty_key_pad.setter - def putty_key_pad(self, putty_key_pad): - """ - Sets the putty_key_pad of this BiosSerialConfiguration. - BIOS Token for setting Putty KeyPad configuration - - :param putty_key_pad: The putty_key_pad of this BiosSerialConfiguration. - :type: str - """ - allowed_values = ["platform-default", "ESCN", "LINUX", "SCO", "VT100", "VT400", "XTERMR6"] - if putty_key_pad not in allowed_values: - raise ValueError( - "Invalid value for `putty_key_pad` ({0}), must be one of {1}" - .format(putty_key_pad, allowed_values) - ) - - self._putty_key_pad = putty_key_pad - - @property - def redirection_after_post(self): - """ - Gets the redirection_after_post of this BiosSerialConfiguration. - BIOS Token for setting Redirection After BIOS POST configuration - - :return: The redirection_after_post of this BiosSerialConfiguration. - :rtype: str - """ - return self._redirection_after_post - - @redirection_after_post.setter - def redirection_after_post(self, redirection_after_post): - """ - Sets the redirection_after_post of this BiosSerialConfiguration. - BIOS Token for setting Redirection After BIOS POST configuration - - :param redirection_after_post: The redirection_after_post of this BiosSerialConfiguration. - :type: str - """ - allowed_values = ["platform-default", "Always Enable", "Bootloader"] - if redirection_after_post not in allowed_values: - raise ValueError( - "Invalid value for `redirection_after_post` ({0}), must be one of {1}" - .format(redirection_after_post, allowed_values) - ) - - self._redirection_after_post = redirection_after_post - - @property - def terminal_type(self): - """ - Gets the terminal_type of this BiosSerialConfiguration. - BIOS Token for setting Terminal Type configuration - - :return: The terminal_type of this BiosSerialConfiguration. - :rtype: str - """ - return self._terminal_type - - @terminal_type.setter - def terminal_type(self, terminal_type): - """ - Sets the terminal_type of this BiosSerialConfiguration. - BIOS Token for setting Terminal Type configuration - - :param terminal_type: The terminal_type of this BiosSerialConfiguration. - :type: str - """ - allowed_values = ["platform-default", "pc-ansi", "vt-utf8", "vt100", "vt100-plus"] - if terminal_type not in allowed_values: - raise ValueError( - "Invalid value for `terminal_type` ({0}), must be one of {1}" - .format(terminal_type, allowed_values) - ) - - self._terminal_type = terminal_type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, BiosSerialConfiguration): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/bios_server_management.py b/intersight/models/bios_server_management.py deleted file mode 100644 index 9c6aeebc..00000000 --- a/intersight/models/bios_server_management.py +++ /dev/null @@ -1,369 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class BiosServerManagement(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'boot_option_num_retry': 'str', - 'boot_option_re_cool_down': 'str', - 'boot_option_retry': 'str', - 'cdn_enable': 'str', - 'frb2enable': 'str', - 'os_boot_watchdog_timer': 'str', - 'os_boot_watchdog_timer_policy': 'str', - 'os_boot_watchdog_timer_timeout': 'str' - } - - attribute_map = { - 'boot_option_num_retry': 'BootOptionNumRetry', - 'boot_option_re_cool_down': 'BootOptionReCoolDown', - 'boot_option_retry': 'BootOptionRetry', - 'cdn_enable': 'CdnEnable', - 'frb2enable': 'Frb2enable', - 'os_boot_watchdog_timer': 'OsBootWatchdogTimer', - 'os_boot_watchdog_timer_policy': 'OsBootWatchdogTimerPolicy', - 'os_boot_watchdog_timer_timeout': 'OsBootWatchdogTimerTimeout' - } - - def __init__(self, boot_option_num_retry='platform-default', boot_option_re_cool_down='platform-default', boot_option_retry='platform-default', cdn_enable='platform-default', frb2enable='platform-default', os_boot_watchdog_timer='platform-default', os_boot_watchdog_timer_policy='platform-default', os_boot_watchdog_timer_timeout='platform-default'): - """ - BiosServerManagement - a model defined in Swagger - """ - - self._boot_option_num_retry = None - self._boot_option_re_cool_down = None - self._boot_option_retry = None - self._cdn_enable = None - self._frb2enable = None - self._os_boot_watchdog_timer = None - self._os_boot_watchdog_timer_policy = None - self._os_boot_watchdog_timer_timeout = None - - if boot_option_num_retry is not None: - self.boot_option_num_retry = boot_option_num_retry - if boot_option_re_cool_down is not None: - self.boot_option_re_cool_down = boot_option_re_cool_down - if boot_option_retry is not None: - self.boot_option_retry = boot_option_retry - if cdn_enable is not None: - self.cdn_enable = cdn_enable - if frb2enable is not None: - self.frb2enable = frb2enable - if os_boot_watchdog_timer is not None: - self.os_boot_watchdog_timer = os_boot_watchdog_timer - if os_boot_watchdog_timer_policy is not None: - self.os_boot_watchdog_timer_policy = os_boot_watchdog_timer_policy - if os_boot_watchdog_timer_timeout is not None: - self.os_boot_watchdog_timer_timeout = os_boot_watchdog_timer_timeout - - @property - def boot_option_num_retry(self): - """ - Gets the boot_option_num_retry of this BiosServerManagement. - BIOS Token for setting Number of Retries configuration - - :return: The boot_option_num_retry of this BiosServerManagement. - :rtype: str - """ - return self._boot_option_num_retry - - @boot_option_num_retry.setter - def boot_option_num_retry(self, boot_option_num_retry): - """ - Sets the boot_option_num_retry of this BiosServerManagement. - BIOS Token for setting Number of Retries configuration - - :param boot_option_num_retry: The boot_option_num_retry of this BiosServerManagement. - :type: str - """ - allowed_values = ["platform-default", "13", "5", "Infinite"] - if boot_option_num_retry not in allowed_values: - raise ValueError( - "Invalid value for `boot_option_num_retry` ({0}), must be one of {1}" - .format(boot_option_num_retry, allowed_values) - ) - - self._boot_option_num_retry = boot_option_num_retry - - @property - def boot_option_re_cool_down(self): - """ - Gets the boot_option_re_cool_down of this BiosServerManagement. - BIOS Token for setting Cool Down Time (sec) configuration - - :return: The boot_option_re_cool_down of this BiosServerManagement. - :rtype: str - """ - return self._boot_option_re_cool_down - - @boot_option_re_cool_down.setter - def boot_option_re_cool_down(self, boot_option_re_cool_down): - """ - Sets the boot_option_re_cool_down of this BiosServerManagement. - BIOS Token for setting Cool Down Time (sec) configuration - - :param boot_option_re_cool_down: The boot_option_re_cool_down of this BiosServerManagement. - :type: str - """ - allowed_values = ["platform-default", "15", "45", "90"] - if boot_option_re_cool_down not in allowed_values: - raise ValueError( - "Invalid value for `boot_option_re_cool_down` ({0}), must be one of {1}" - .format(boot_option_re_cool_down, allowed_values) - ) - - self._boot_option_re_cool_down = boot_option_re_cool_down - - @property - def boot_option_retry(self): - """ - Gets the boot_option_retry of this BiosServerManagement. - BIOS Token for setting Boot Option Retry configuration - - :return: The boot_option_retry of this BiosServerManagement. - :rtype: str - """ - return self._boot_option_retry - - @boot_option_retry.setter - def boot_option_retry(self, boot_option_retry): - """ - Sets the boot_option_retry of this BiosServerManagement. - BIOS Token for setting Boot Option Retry configuration - - :param boot_option_retry: The boot_option_retry of this BiosServerManagement. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if boot_option_retry not in allowed_values: - raise ValueError( - "Invalid value for `boot_option_retry` ({0}), must be one of {1}" - .format(boot_option_retry, allowed_values) - ) - - self._boot_option_retry = boot_option_retry - - @property - def cdn_enable(self): - """ - Gets the cdn_enable of this BiosServerManagement. - BIOS Token for setting Consistent Device Naming configuration - - :return: The cdn_enable of this BiosServerManagement. - :rtype: str - """ - return self._cdn_enable - - @cdn_enable.setter - def cdn_enable(self, cdn_enable): - """ - Sets the cdn_enable of this BiosServerManagement. - BIOS Token for setting Consistent Device Naming configuration - - :param cdn_enable: The cdn_enable of this BiosServerManagement. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if cdn_enable not in allowed_values: - raise ValueError( - "Invalid value for `cdn_enable` ({0}), must be one of {1}" - .format(cdn_enable, allowed_values) - ) - - self._cdn_enable = cdn_enable - - @property - def frb2enable(self): - """ - Gets the frb2enable of this BiosServerManagement. - BIOS Token for setting FRB-2 Timer configuration - - :return: The frb2enable of this BiosServerManagement. - :rtype: str - """ - return self._frb2enable - - @frb2enable.setter - def frb2enable(self, frb2enable): - """ - Sets the frb2enable of this BiosServerManagement. - BIOS Token for setting FRB-2 Timer configuration - - :param frb2enable: The frb2enable of this BiosServerManagement. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if frb2enable not in allowed_values: - raise ValueError( - "Invalid value for `frb2enable` ({0}), must be one of {1}" - .format(frb2enable, allowed_values) - ) - - self._frb2enable = frb2enable - - @property - def os_boot_watchdog_timer(self): - """ - Gets the os_boot_watchdog_timer of this BiosServerManagement. - BIOS Token for setting OS Watchdog Timer configuration - - :return: The os_boot_watchdog_timer of this BiosServerManagement. - :rtype: str - """ - return self._os_boot_watchdog_timer - - @os_boot_watchdog_timer.setter - def os_boot_watchdog_timer(self, os_boot_watchdog_timer): - """ - Sets the os_boot_watchdog_timer of this BiosServerManagement. - BIOS Token for setting OS Watchdog Timer configuration - - :param os_boot_watchdog_timer: The os_boot_watchdog_timer of this BiosServerManagement. - :type: str - """ - allowed_values = ["platform-default", "enabled", "disabled"] - if os_boot_watchdog_timer not in allowed_values: - raise ValueError( - "Invalid value for `os_boot_watchdog_timer` ({0}), must be one of {1}" - .format(os_boot_watchdog_timer, allowed_values) - ) - - self._os_boot_watchdog_timer = os_boot_watchdog_timer - - @property - def os_boot_watchdog_timer_policy(self): - """ - Gets the os_boot_watchdog_timer_policy of this BiosServerManagement. - BIOS Token for setting OS Watchdog Timer Policy configuration - - :return: The os_boot_watchdog_timer_policy of this BiosServerManagement. - :rtype: str - """ - return self._os_boot_watchdog_timer_policy - - @os_boot_watchdog_timer_policy.setter - def os_boot_watchdog_timer_policy(self, os_boot_watchdog_timer_policy): - """ - Sets the os_boot_watchdog_timer_policy of this BiosServerManagement. - BIOS Token for setting OS Watchdog Timer Policy configuration - - :param os_boot_watchdog_timer_policy: The os_boot_watchdog_timer_policy of this BiosServerManagement. - :type: str - """ - allowed_values = ["platform-default", "power-off", "reset"] - if os_boot_watchdog_timer_policy not in allowed_values: - raise ValueError( - "Invalid value for `os_boot_watchdog_timer_policy` ({0}), must be one of {1}" - .format(os_boot_watchdog_timer_policy, allowed_values) - ) - - self._os_boot_watchdog_timer_policy = os_boot_watchdog_timer_policy - - @property - def os_boot_watchdog_timer_timeout(self): - """ - Gets the os_boot_watchdog_timer_timeout of this BiosServerManagement. - BIOS Token for setting OS Watchdog Timer Timeout configuration - - :return: The os_boot_watchdog_timer_timeout of this BiosServerManagement. - :rtype: str - """ - return self._os_boot_watchdog_timer_timeout - - @os_boot_watchdog_timer_timeout.setter - def os_boot_watchdog_timer_timeout(self, os_boot_watchdog_timer_timeout): - """ - Sets the os_boot_watchdog_timer_timeout of this BiosServerManagement. - BIOS Token for setting OS Watchdog Timer Timeout configuration - - :param os_boot_watchdog_timer_timeout: The os_boot_watchdog_timer_timeout of this BiosServerManagement. - :type: str - """ - allowed_values = ["platform-default", "10-minutes", "15-minutes", "20-minutes", "5-minutes"] - if os_boot_watchdog_timer_timeout not in allowed_values: - raise ValueError( - "Invalid value for `os_boot_watchdog_timer_timeout` ({0}), must be one of {1}" - .format(os_boot_watchdog_timer_timeout, allowed_values) - ) - - self._os_boot_watchdog_timer_timeout = os_boot_watchdog_timer_timeout - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, BiosServerManagement): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/bios_unit.py b/intersight/models/bios_unit.py index 178e2956..c4791f28 100644 --- a/intersight/models/bios_unit.py +++ b/intersight/models/bios_unit.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class BiosUnit(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -47,11 +48,12 @@ class BiosUnit(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'compute_rack_unit': 'MoMoRef', + 'compute_blade': 'ComputeBladeRef', + 'compute_rack_unit': 'ComputeRackUnitRef', 'init_seq': 'str', 'init_ts': 'str', - 'registered_device': 'MoMoRef', - 'running_firmware': 'list[MoMoRef]' + 'registered_device': 'AssetDeviceRegistrationRef', + 'running_firmware': 'list[FirmwareRunningFirmwareRef]' } attribute_map = { @@ -64,6 +66,7 @@ class BiosUnit(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -71,6 +74,7 @@ class BiosUnit(object): 'revision': 'Revision', 'serial': 'Serial', 'vendor': 'Vendor', + 'compute_blade': 'ComputeBlade', 'compute_rack_unit': 'ComputeRackUnit', 'init_seq': 'InitSeq', 'init_ts': 'InitTs', @@ -78,7 +82,7 @@ class BiosUnit(object): 'running_firmware': 'RunningFirmware' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_rack_unit=None, init_seq=None, init_ts=None, registered_device=None, running_firmware=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_blade=None, compute_rack_unit=None, init_seq=None, init_ts=None, registered_device=None, running_firmware=None): """ BiosUnit - a model defined in Swagger """ @@ -92,6 +96,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -99,6 +104,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._revision = None self._serial = None self._vendor = None + self._compute_blade = None self._compute_rack_unit = None self._init_seq = None self._init_ts = None @@ -123,6 +129,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -137,6 +145,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.serial = serial if vendor is not None: self.vendor = vendor + if compute_blade is not None: + self.compute_blade = compute_blade if compute_rack_unit is not None: self.compute_rack_unit = compute_rack_unit if init_seq is not None: @@ -178,7 +188,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this BiosUnit. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -189,7 +199,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this BiosUnit. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -316,7 +326,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this BiosUnit. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -327,7 +337,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this BiosUnit. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -336,7 +346,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this BiosUnit. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this BiosUnit. :rtype: list[MoTag] @@ -347,7 +357,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this BiosUnit. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this BiosUnit. :type: list[MoTag] @@ -355,6 +365,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this BiosUnit. + The versioning info for this managed object + + :return: The version_context of this BiosUnit. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this BiosUnit. + The versioning info for this managed object + + :param version_context: The version_context of this BiosUnit. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -502,13 +535,34 @@ def vendor(self, vendor): self._vendor = vendor + @property + def compute_blade(self): + """ + Gets the compute_blade of this BiosUnit. + + :return: The compute_blade of this BiosUnit. + :rtype: ComputeBladeRef + """ + return self._compute_blade + + @compute_blade.setter + def compute_blade(self, compute_blade): + """ + Sets the compute_blade of this BiosUnit. + + :param compute_blade: The compute_blade of this BiosUnit. + :type: ComputeBladeRef + """ + + self._compute_blade = compute_blade + @property def compute_rack_unit(self): """ Gets the compute_rack_unit of this BiosUnit. :return: The compute_rack_unit of this BiosUnit. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._compute_rack_unit @@ -518,7 +572,7 @@ def compute_rack_unit(self, compute_rack_unit): Sets the compute_rack_unit of this BiosUnit. :param compute_rack_unit: The compute_rack_unit of this BiosUnit. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._compute_rack_unit = compute_rack_unit @@ -571,7 +625,7 @@ def registered_device(self): Gets the registered_device of this BiosUnit. :return: The registered_device of this BiosUnit. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -581,7 +635,7 @@ def registered_device(self, registered_device): Sets the registered_device of this BiosUnit. :param registered_device: The registered_device of this BiosUnit. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -592,7 +646,7 @@ def running_firmware(self): Gets the running_firmware of this BiosUnit. :return: The running_firmware of this BiosUnit. - :rtype: list[MoMoRef] + :rtype: list[FirmwareRunningFirmwareRef] """ return self._running_firmware @@ -602,7 +656,7 @@ def running_firmware(self, running_firmware): Sets the running_firmware of this BiosUnit. :param running_firmware: The running_firmware of this BiosUnit. - :type: list[MoMoRef] + :type: list[FirmwareRunningFirmwareRef] """ self._running_firmware = running_firmware diff --git a/intersight/models/bios_unit_list.py b/intersight/models/bios_unit_list.py index 4d50a5b8..06740174 100644 --- a/intersight/models/bios_unit_list.py +++ b/intersight/models/bios_unit_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/bios_unit_ref.py b/intersight/models/bios_unit_ref.py new file mode 100644 index 00000000..5b3fa9db --- /dev/null +++ b/intersight/models/bios_unit_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BiosUnitRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BiosUnitRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BiosUnitRef. + + :return: The moid of this BiosUnitRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BiosUnitRef. + + :param moid: The moid of this BiosUnitRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BiosUnitRef. + + :return: The object_type of this BiosUnitRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BiosUnitRef. + + :param object_type: The object_type of this BiosUnitRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BiosUnitRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/bios_validation_task_ref.py b/intersight/models/bios_validation_task_ref.py new file mode 100644 index 00000000..8e6c9ec3 --- /dev/null +++ b/intersight/models/bios_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BiosValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BiosValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BiosValidationTaskRef. + + :return: The moid of this BiosValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BiosValidationTaskRef. + + :param moid: The moid of this BiosValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BiosValidationTaskRef. + + :return: The object_type of this BiosValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BiosValidationTaskRef. + + :param object_type: The object_type of this BiosValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BiosValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_uefi_shell.py b/intersight/models/boot_bootloader.py similarity index 55% rename from intersight/models/boot_uefi_shell.py rename to intersight/models/boot_bootloader.py index 4216bb85..6354d4da 100644 --- a/intersight/models/boot_uefi_shell.py +++ b/intersight/models/boot_bootloader.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class BootUefiShell(object): +class BootBootloader(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,58 +31,63 @@ class BootUefiShell(object): and the value is json key in definition. """ swagger_types = { - 'enabled': 'bool', - 'name': 'str' + 'description': 'str', + 'name': 'str', + 'path': 'str' } attribute_map = { - 'enabled': 'Enabled', - 'name': 'Name' + 'description': 'Description', + 'name': 'Name', + 'path': 'Path' } - def __init__(self, enabled=None, name=None): + def __init__(self, description=None, name=None, path=None): """ - BootUefiShell - a model defined in Swagger + BootBootloader - a model defined in Swagger """ - self._enabled = None + self._description = None self._name = None + self._path = None - if enabled is not None: - self.enabled = enabled + if description is not None: + self.description = description if name is not None: self.name = name + if path is not None: + self.path = path @property - def enabled(self): + def description(self): """ - Gets the enabled of this BootUefiShell. - Specifies if the boot device is enabled or disabled. + Gets the description of this BootBootloader. + Carries more information about the bootloader - :return: The enabled of this BootUefiShell. - :rtype: bool + :return: The description of this BootBootloader. + :rtype: str """ - return self._enabled + return self._description - @enabled.setter - def enabled(self, enabled): + @description.setter + def description(self, description): """ - Sets the enabled of this BootUefiShell. - Specifies if the boot device is enabled or disabled. + Sets the description of this BootBootloader. + Carries more information about the bootloader - :param enabled: The enabled of this BootUefiShell. - :type: bool + :param description: The description of this BootBootloader. + :type: str """ - self._enabled = enabled + self._description = description @property def name(self): """ - Gets the name of this BootUefiShell. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. + Gets the name of this BootBootloader. + Name of the bootloader - :return: The name of this BootUefiShell. + :return: The name of this BootBootloader. :rtype: str """ return self._name @@ -90,15 +95,38 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this BootUefiShell. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. + Sets the name of this BootBootloader. + Name of the bootloader - :param name: The name of this BootUefiShell. + :param name: The name of this BootBootloader. :type: str """ self._name = name + @property + def path(self): + """ + Gets the path of this BootBootloader. + Path to the bootloader image + + :return: The path of this BootBootloader. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this BootBootloader. + Path to the bootloader image + + :param path: The path of this BootBootloader. + :type: str + """ + + self._path = path + def to_dict(self): """ Returns the model properties as a dict @@ -141,7 +169,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, BootUefiShell): + if not isinstance(other, BootBootloader): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/boot_bootloader_ref.py b/intersight/models/boot_bootloader_ref.py new file mode 100644 index 00000000..98fc1a9d --- /dev/null +++ b/intersight/models/boot_bootloader_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootBootloaderRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootBootloaderRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootBootloaderRef. + + :return: The moid of this BootBootloaderRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootBootloaderRef. + + :param moid: The moid of this BootBootloaderRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootBootloaderRef. + + :return: The object_type of this BootBootloaderRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootBootloaderRef. + + :param object_type: The object_type of this BootBootloaderRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootBootloaderRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_device_base.py b/intersight/models/boot_device_base.py index 30e70134..14c47405 100644 --- a/intersight/models/boot_device_base.py +++ b/intersight/models/boot_device_base.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -57,7 +57,7 @@ def __init__(self, enabled=None, name=None): def enabled(self): """ Gets the enabled of this BootDeviceBase. - Specifies if the boot device is enabled or disabled. + Specifies if the boot device is enabled or disabled :return: The enabled of this BootDeviceBase. :rtype: bool @@ -68,7 +68,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this BootDeviceBase. - Specifies if the boot device is enabled or disabled. + Specifies if the boot device is enabled or disabled :param enabled: The enabled of this BootDeviceBase. :type: bool diff --git a/intersight/models/boot_device_base_ref.py b/intersight/models/boot_device_base_ref.py new file mode 100644 index 00000000..8525926e --- /dev/null +++ b/intersight/models/boot_device_base_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootDeviceBaseRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootDeviceBaseRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootDeviceBaseRef. + + :return: The moid of this BootDeviceBaseRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootDeviceBaseRef. + + :param moid: The moid of this BootDeviceBaseRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootDeviceBaseRef. + + :return: The object_type of this BootDeviceBaseRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootDeviceBaseRef. + + :param object_type: The object_type of this BootDeviceBaseRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootDeviceBaseRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_iscsi.py b/intersight/models/boot_iscsi.py deleted file mode 100644 index dcb5403e..00000000 --- a/intersight/models/boot_iscsi.py +++ /dev/null @@ -1,209 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class BootIscsi(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'enabled': 'bool', - 'name': 'str', - 'port': 'int', - 'slot': 'str' - } - - attribute_map = { - 'enabled': 'Enabled', - 'name': 'Name', - 'port': 'Port', - 'slot': 'Slot' - } - - def __init__(self, enabled=None, name=None, port=None, slot=None): - """ - BootIscsi - a model defined in Swagger - """ - - self._enabled = None - self._name = None - self._port = None - self._slot = None - - if enabled is not None: - self.enabled = enabled - if name is not None: - self.name = name - if port is not None: - self.port = port - if slot is not None: - self.slot = slot - - @property - def enabled(self): - """ - Gets the enabled of this BootIscsi. - Specifies if the boot device is enabled or disabled. - - :return: The enabled of this BootIscsi. - :rtype: bool - """ - return self._enabled - - @enabled.setter - def enabled(self, enabled): - """ - Sets the enabled of this BootIscsi. - Specifies if the boot device is enabled or disabled. - - :param enabled: The enabled of this BootIscsi. - :type: bool - """ - - self._enabled = enabled - - @property - def name(self): - """ - Gets the name of this BootIscsi. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. - - :return: The name of this BootIscsi. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this BootIscsi. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. - - :param name: The name of this BootIscsi. - :type: str - """ - - self._name = name - - @property - def port(self): - """ - Gets the port of this BootIscsi. - Specifies the port id of the device. - - :return: The port of this BootIscsi. - :rtype: int - """ - return self._port - - @port.setter - def port(self, port): - """ - Sets the port of this BootIscsi. - Specifies the port id of the device. - - :param port: The port of this BootIscsi. - :type: int - """ - - self._port = port - - @property - def slot(self): - """ - Gets the slot of this BootIscsi. - Specifies the slot id of the device. Supported values are (1 - 255, \"MLOM\", \"L\") - - :return: The slot of this BootIscsi. - :rtype: str - """ - return self._slot - - @slot.setter - def slot(self, slot): - """ - Sets the slot of this BootIscsi. - Specifies the slot id of the device. Supported values are (1 - 255, \"MLOM\", \"L\") - - :param slot: The slot of this BootIscsi. - :type: str - """ - - self._slot = slot - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, BootIscsi): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/boot_iscsi_ref.py b/intersight/models/boot_iscsi_ref.py new file mode 100644 index 00000000..7acf5f84 --- /dev/null +++ b/intersight/models/boot_iscsi_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootIscsiRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootIscsiRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootIscsiRef. + + :return: The moid of this BootIscsiRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootIscsiRef. + + :param moid: The moid of this BootIscsiRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootIscsiRef. + + :return: The object_type of this BootIscsiRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootIscsiRef. + + :param object_type: The object_type of this BootIscsiRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootIscsiRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_local_cdd_ref.py b/intersight/models/boot_local_cdd_ref.py new file mode 100644 index 00000000..c241d969 --- /dev/null +++ b/intersight/models/boot_local_cdd_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootLocalCddRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootLocalCddRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootLocalCddRef. + + :return: The moid of this BootLocalCddRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootLocalCddRef. + + :param moid: The moid of this BootLocalCddRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootLocalCddRef. + + :return: The object_type of this BootLocalCddRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootLocalCddRef. + + :param object_type: The object_type of this BootLocalCddRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootLocalCddRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_local_disk_ref.py b/intersight/models/boot_local_disk_ref.py new file mode 100644 index 00000000..a616734b --- /dev/null +++ b/intersight/models/boot_local_disk_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootLocalDiskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootLocalDiskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootLocalDiskRef. + + :return: The moid of this BootLocalDiskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootLocalDiskRef. + + :param moid: The moid of this BootLocalDiskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootLocalDiskRef. + + :return: The object_type of this BootLocalDiskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootLocalDiskRef. + + :param object_type: The object_type of this BootLocalDiskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootLocalDiskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_nvme_ref.py b/intersight/models/boot_nvme_ref.py new file mode 100644 index 00000000..f9d7a9bd --- /dev/null +++ b/intersight/models/boot_nvme_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootNvmeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootNvmeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootNvmeRef. + + :return: The moid of this BootNvmeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootNvmeRef. + + :param moid: The moid of this BootNvmeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootNvmeRef. + + :return: The object_type of this BootNvmeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootNvmeRef. + + :param object_type: The object_type of this BootNvmeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootNvmeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_pch_storage_ref.py b/intersight/models/boot_pch_storage_ref.py new file mode 100644 index 00000000..88f82527 --- /dev/null +++ b/intersight/models/boot_pch_storage_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootPchStorageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootPchStorageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootPchStorageRef. + + :return: The moid of this BootPchStorageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootPchStorageRef. + + :param moid: The moid of this BootPchStorageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootPchStorageRef. + + :return: The object_type of this BootPchStorageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootPchStorageRef. + + :param object_type: The object_type of this BootPchStorageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootPchStorageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_precision_deploy_task_ref.py b/intersight/models/boot_precision_deploy_task_ref.py new file mode 100644 index 00000000..fe2c48a7 --- /dev/null +++ b/intersight/models/boot_precision_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootPrecisionDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootPrecisionDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootPrecisionDeployTaskRef. + + :return: The moid of this BootPrecisionDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootPrecisionDeployTaskRef. + + :param moid: The moid of this BootPrecisionDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootPrecisionDeployTaskRef. + + :return: The object_type of this BootPrecisionDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootPrecisionDeployTaskRef. + + :param object_type: The object_type of this BootPrecisionDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootPrecisionDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_precision_policy.py b/intersight/models/boot_precision_policy.py index 84e04450..5c60c5f3 100644 --- a/intersight/models/boot_precision_policy.py +++ b/intersight/models/boot_precision_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,22 @@ class BootPrecisionPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', 'boot_devices': 'list[BootDeviceBase]', 'configured_boot_mode': 'str', 'enforce_uefi_secure_boot': 'bool', - 'organization': 'MoMoRef', - 'profiles': 'list[MoMoRef]' + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]' } attribute_map = { @@ -59,6 +60,7 @@ class BootPrecisionPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'boot_devices': 'BootDevices', @@ -68,7 +70,7 @@ class BootPrecisionPolicy(object): 'profiles': 'Profiles' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, boot_devices=None, configured_boot_mode='Legacy', enforce_uefi_secure_boot=None, organization=None, profiles=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, boot_devices=None, configured_boot_mode='Legacy', enforce_uefi_secure_boot=None, organization=None, profiles=None): """ BootPrecisionPolicy - a model defined in Swagger """ @@ -82,6 +84,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._boot_devices = None @@ -108,6 +111,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -153,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this BootPrecisionPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this BootPrecisionPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this BootPrecisionPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this BootPrecisionPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -311,7 +316,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this BootPrecisionPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this BootPrecisionPolicy. :rtype: list[MoTag] @@ -322,7 +327,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this BootPrecisionPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this BootPrecisionPolicy. :type: list[MoTag] @@ -330,6 +335,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this BootPrecisionPolicy. + The versioning info for this managed object + + :return: The version_context of this BootPrecisionPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this BootPrecisionPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this BootPrecisionPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -458,7 +486,7 @@ def organization(self): Organization :return: The organization of this BootPrecisionPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -469,7 +497,7 @@ def organization(self, organization): Organization :param organization: The organization of this BootPrecisionPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -481,7 +509,7 @@ def profiles(self): Reference to the profile objects that this policy is a part of :return: The profiles of this BootPrecisionPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -492,7 +520,7 @@ def profiles(self, profiles): Reference to the profile objects that this policy is a part of :param profiles: The profiles of this BootPrecisionPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles diff --git a/intersight/models/boot_precision_policy_list.py b/intersight/models/boot_precision_policy_list.py index 7ae7e147..ff283427 100644 --- a/intersight/models/boot_precision_policy_list.py +++ b/intersight/models/boot_precision_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/boot_precision_policy_ref.py b/intersight/models/boot_precision_policy_ref.py new file mode 100644 index 00000000..4f1e104e --- /dev/null +++ b/intersight/models/boot_precision_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootPrecisionPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootPrecisionPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootPrecisionPolicyRef. + + :return: The moid of this BootPrecisionPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootPrecisionPolicyRef. + + :param moid: The moid of this BootPrecisionPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootPrecisionPolicyRef. + + :return: The object_type of this BootPrecisionPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootPrecisionPolicyRef. + + :param object_type: The object_type of this BootPrecisionPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootPrecisionPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_precision_validation_task_ref.py b/intersight/models/boot_precision_validation_task_ref.py new file mode 100644 index 00000000..b16d3373 --- /dev/null +++ b/intersight/models/boot_precision_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootPrecisionValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootPrecisionValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootPrecisionValidationTaskRef. + + :return: The moid of this BootPrecisionValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootPrecisionValidationTaskRef. + + :param moid: The moid of this BootPrecisionValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootPrecisionValidationTaskRef. + + :return: The object_type of this BootPrecisionValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootPrecisionValidationTaskRef. + + :param object_type: The object_type of this BootPrecisionValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootPrecisionValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_pxe.py b/intersight/models/boot_pxe.py deleted file mode 100644 index 63262b48..00000000 --- a/intersight/models/boot_pxe.py +++ /dev/null @@ -1,237 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class BootPxe(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'enabled': 'bool', - 'name': 'str', - 'mac_address': 'str', - 'port': 'int', - 'slot': 'str' - } - - attribute_map = { - 'enabled': 'Enabled', - 'name': 'Name', - 'mac_address': 'MacAddress', - 'port': 'Port', - 'slot': 'Slot' - } - - def __init__(self, enabled=None, name=None, mac_address=None, port=None, slot=None): - """ - BootPxe - a model defined in Swagger - """ - - self._enabled = None - self._name = None - self._mac_address = None - self._port = None - self._slot = None - - if enabled is not None: - self.enabled = enabled - if name is not None: - self.name = name - if mac_address is not None: - self.mac_address = mac_address - if port is not None: - self.port = port - if slot is not None: - self.slot = slot - - @property - def enabled(self): - """ - Gets the enabled of this BootPxe. - Specifies if the boot device is enabled or disabled. - - :return: The enabled of this BootPxe. - :rtype: bool - """ - return self._enabled - - @enabled.setter - def enabled(self, enabled): - """ - Sets the enabled of this BootPxe. - Specifies if the boot device is enabled or disabled. - - :param enabled: The enabled of this BootPxe. - :type: bool - """ - - self._enabled = enabled - - @property - def name(self): - """ - Gets the name of this BootPxe. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. - - :return: The name of this BootPxe. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this BootPxe. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. - - :param name: The name of this BootPxe. - :type: str - """ - - self._name = name - - @property - def mac_address(self): - """ - Gets the mac_address of this BootPxe. - Specifies the MAC Address - - :return: The mac_address of this BootPxe. - :rtype: str - """ - return self._mac_address - - @mac_address.setter - def mac_address(self, mac_address): - """ - Sets the mac_address of this BootPxe. - Specifies the MAC Address - - :param mac_address: The mac_address of this BootPxe. - :type: str - """ - - self._mac_address = mac_address - - @property - def port(self): - """ - Gets the port of this BootPxe. - Specifies the port id of the device. - - :return: The port of this BootPxe. - :rtype: int - """ - return self._port - - @port.setter - def port(self, port): - """ - Sets the port of this BootPxe. - Specifies the port id of the device. - - :param port: The port of this BootPxe. - :type: int - """ - - self._port = port - - @property - def slot(self): - """ - Gets the slot of this BootPxe. - Specifies the slot id of the device. Supported values are (1 - 255, \"MLOM\", \"L\") - - :return: The slot of this BootPxe. - :rtype: str - """ - return self._slot - - @slot.setter - def slot(self, slot): - """ - Sets the slot of this BootPxe. - Specifies the slot id of the device. Supported values are (1 - 255, \"MLOM\", \"L\") - - :param slot: The slot of this BootPxe. - :type: str - """ - - self._slot = slot - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, BootPxe): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/boot_pxe_ref.py b/intersight/models/boot_pxe_ref.py new file mode 100644 index 00000000..d00a70fa --- /dev/null +++ b/intersight/models/boot_pxe_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootPxeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootPxeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootPxeRef. + + :return: The moid of this BootPxeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootPxeRef. + + :param moid: The moid of this BootPxeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootPxeRef. + + :return: The object_type of this BootPxeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootPxeRef. + + :param object_type: The object_type of this BootPxeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootPxeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_san_ref.py b/intersight/models/boot_san_ref.py new file mode 100644 index 00000000..37ca249c --- /dev/null +++ b/intersight/models/boot_san_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootSanRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootSanRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootSanRef. + + :return: The moid of this BootSanRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootSanRef. + + :param moid: The moid of this BootSanRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootSanRef. + + :return: The object_type of this BootSanRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootSanRef. + + :param object_type: The object_type of this BootSanRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootSanRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_sd_card.py b/intersight/models/boot_sd_card.py deleted file mode 100644 index 5cffd358..00000000 --- a/intersight/models/boot_sd_card.py +++ /dev/null @@ -1,215 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class BootSdCard(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'enabled': 'bool', - 'name': 'str', - 'lun': 'int', - 'subtype': 'str' - } - - attribute_map = { - 'enabled': 'Enabled', - 'name': 'Name', - 'lun': 'Lun', - 'subtype': 'Subtype' - } - - def __init__(self, enabled=None, name=None, lun=None, subtype='None'): - """ - BootSdCard - a model defined in Swagger - """ - - self._enabled = None - self._name = None - self._lun = None - self._subtype = None - - if enabled is not None: - self.enabled = enabled - if name is not None: - self.name = name - if lun is not None: - self.lun = lun - if subtype is not None: - self.subtype = subtype - - @property - def enabled(self): - """ - Gets the enabled of this BootSdCard. - Specifies if the boot device is enabled or disabled. - - :return: The enabled of this BootSdCard. - :rtype: bool - """ - return self._enabled - - @enabled.setter - def enabled(self, enabled): - """ - Sets the enabled of this BootSdCard. - Specifies if the boot device is enabled or disabled. - - :param enabled: The enabled of this BootSdCard. - :type: bool - """ - - self._enabled = enabled - - @property - def name(self): - """ - Gets the name of this BootSdCard. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. - - :return: The name of this BootSdCard. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this BootSdCard. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. - - :param name: The name of this BootSdCard. - :type: str - """ - - self._name = name - - @property - def lun(self): - """ - Gets the lun of this BootSdCard. - Specifies the Logical Unit Number(LUN) of the device. - - :return: The lun of this BootSdCard. - :rtype: int - """ - return self._lun - - @lun.setter - def lun(self, lun): - """ - Sets the lun of this BootSdCard. - Specifies the Logical Unit Number(LUN) of the device. - - :param lun: The lun of this BootSdCard. - :type: int - """ - - self._lun = lun - - @property - def subtype(self): - """ - Gets the subtype of this BootSdCard. - Specifies the subtype for the selected device type. - - :return: The subtype of this BootSdCard. - :rtype: str - """ - return self._subtype - - @subtype.setter - def subtype(self, subtype): - """ - Sets the subtype of this BootSdCard. - Specifies the subtype for the selected device type. - - :param subtype: The subtype of this BootSdCard. - :type: str - """ - allowed_values = ["None", "flex-util", "flex-flash"] - if subtype not in allowed_values: - raise ValueError( - "Invalid value for `subtype` ({0}), must be one of {1}" - .format(subtype, allowed_values) - ) - - self._subtype = subtype - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, BootSdCard): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/boot_sd_card_ref.py b/intersight/models/boot_sd_card_ref.py new file mode 100644 index 00000000..d423bbe7 --- /dev/null +++ b/intersight/models/boot_sd_card_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootSdCardRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootSdCardRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootSdCardRef. + + :return: The moid of this BootSdCardRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootSdCardRef. + + :param moid: The moid of this BootSdCardRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootSdCardRef. + + :return: The object_type of this BootSdCardRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootSdCardRef. + + :param object_type: The object_type of this BootSdCardRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootSdCardRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_uefi_shell_ref.py b/intersight/models/boot_uefi_shell_ref.py new file mode 100644 index 00000000..982de578 --- /dev/null +++ b/intersight/models/boot_uefi_shell_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootUefiShellRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootUefiShellRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootUefiShellRef. + + :return: The moid of this BootUefiShellRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootUefiShellRef. + + :param moid: The moid of this BootUefiShellRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootUefiShellRef. + + :return: The object_type of this BootUefiShellRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootUefiShellRef. + + :param object_type: The object_type of this BootUefiShellRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootUefiShellRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_usb_ref.py b/intersight/models/boot_usb_ref.py new file mode 100644 index 00000000..c06043af --- /dev/null +++ b/intersight/models/boot_usb_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootUsbRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootUsbRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootUsbRef. + + :return: The moid of this BootUsbRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootUsbRef. + + :param moid: The moid of this BootUsbRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootUsbRef. + + :return: The object_type of this BootUsbRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootUsbRef. + + :param object_type: The object_type of this BootUsbRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootUsbRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_virtual_media.py b/intersight/models/boot_virtual_media.py deleted file mode 100644 index d61df632..00000000 --- a/intersight/models/boot_virtual_media.py +++ /dev/null @@ -1,187 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class BootVirtualMedia(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'enabled': 'bool', - 'name': 'str', - 'subtype': 'str' - } - - attribute_map = { - 'enabled': 'Enabled', - 'name': 'Name', - 'subtype': 'Subtype' - } - - def __init__(self, enabled=None, name=None, subtype='None'): - """ - BootVirtualMedia - a model defined in Swagger - """ - - self._enabled = None - self._name = None - self._subtype = None - - if enabled is not None: - self.enabled = enabled - if name is not None: - self.name = name - if subtype is not None: - self.subtype = subtype - - @property - def enabled(self): - """ - Gets the enabled of this BootVirtualMedia. - Specifies if the boot device is enabled or disabled. - - :return: The enabled of this BootVirtualMedia. - :rtype: bool - """ - return self._enabled - - @enabled.setter - def enabled(self, enabled): - """ - Sets the enabled of this BootVirtualMedia. - Specifies if the boot device is enabled or disabled. - - :param enabled: The enabled of this BootVirtualMedia. - :type: bool - """ - - self._enabled = enabled - - @property - def name(self): - """ - Gets the name of this BootVirtualMedia. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. - - :return: The name of this BootVirtualMedia. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this BootVirtualMedia. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. - - :param name: The name of this BootVirtualMedia. - :type: str - """ - - self._name = name - - @property - def subtype(self): - """ - Gets the subtype of this BootVirtualMedia. - Specifies the subtype for the selected device type. - - :return: The subtype of this BootVirtualMedia. - :rtype: str - """ - return self._subtype - - @subtype.setter - def subtype(self, subtype): - """ - Sets the subtype of this BootVirtualMedia. - Specifies the subtype for the selected device type. - - :param subtype: The subtype of this BootVirtualMedia. - :type: str - """ - allowed_values = ["None", "cimc-mapped-dvd", "cimc-mapped-hdd", "kvm-mapped-dvd", "kvm-mapped-hdd", "kvm-mapped-fdd"] - if subtype not in allowed_values: - raise ValueError( - "Invalid value for `subtype` ({0}), must be one of {1}" - .format(subtype, allowed_values) - ) - - self._subtype = subtype - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, BootVirtualMedia): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/boot_virtual_media_ref.py b/intersight/models/boot_virtual_media_ref.py new file mode 100644 index 00000000..a8b5fe14 --- /dev/null +++ b/intersight/models/boot_virtual_media_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class BootVirtualMediaRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + BootVirtualMediaRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this BootVirtualMediaRef. + + :return: The moid of this BootVirtualMediaRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this BootVirtualMediaRef. + + :param moid: The moid of this BootVirtualMediaRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this BootVirtualMediaRef. + + :return: The object_type of this BootVirtualMediaRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this BootVirtualMediaRef. + + :param object_type: The object_type of this BootVirtualMediaRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, BootVirtualMediaRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/comm_ip_v4_interface.py b/intersight/models/comm_ip_v4_interface.py new file mode 100644 index 00000000..0bd32c35 --- /dev/null +++ b/intersight/models/comm_ip_v4_interface.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CommIpV4Interface(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'gateway': 'str', + 'ip_address': 'str', + 'netmask': 'str' + } + + attribute_map = { + 'gateway': 'Gateway', + 'ip_address': 'IpAddress', + 'netmask': 'Netmask' + } + + def __init__(self, gateway=None, ip_address=None, netmask=None): + """ + CommIpV4Interface - a model defined in Swagger + """ + + self._gateway = None + self._ip_address = None + self._netmask = None + + if gateway is not None: + self.gateway = gateway + if ip_address is not None: + self.ip_address = ip_address + if netmask is not None: + self.netmask = netmask + + @property + def gateway(self): + """ + Gets the gateway of this CommIpV4Interface. + IP Gateway + + :return: The gateway of this CommIpV4Interface. + :rtype: str + """ + return self._gateway + + @gateway.setter + def gateway(self, gateway): + """ + Sets the gateway of this CommIpV4Interface. + IP Gateway + + :param gateway: The gateway of this CommIpV4Interface. + :type: str + """ + + self._gateway = gateway + + @property + def ip_address(self): + """ + Gets the ip_address of this CommIpV4Interface. + IP Address + + :return: The ip_address of this CommIpV4Interface. + :rtype: str + """ + return self._ip_address + + @ip_address.setter + def ip_address(self, ip_address): + """ + Sets the ip_address of this CommIpV4Interface. + IP Address + + :param ip_address: The ip_address of this CommIpV4Interface. + :type: str + """ + + self._ip_address = ip_address + + @property + def netmask(self): + """ + Gets the netmask of this CommIpV4Interface. + IP Netmask + + :return: The netmask of this CommIpV4Interface. + :rtype: str + """ + return self._netmask + + @netmask.setter + def netmask(self, netmask): + """ + Sets the netmask of this CommIpV4Interface. + IP Netmask + + :param netmask: The netmask of this CommIpV4Interface. + :type: str + """ + + self._netmask = netmask + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CommIpV4Interface): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/comm_ip_v4_interface_ref.py b/intersight/models/comm_ip_v4_interface_ref.py new file mode 100644 index 00000000..f621d8a7 --- /dev/null +++ b/intersight/models/comm_ip_v4_interface_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CommIpV4InterfaceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CommIpV4InterfaceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CommIpV4InterfaceRef. + + :return: The moid of this CommIpV4InterfaceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CommIpV4InterfaceRef. + + :param moid: The moid of this CommIpV4InterfaceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CommIpV4InterfaceRef. + + :return: The object_type of this CommIpV4InterfaceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CommIpV4InterfaceRef. + + :param object_type: The object_type of this CommIpV4InterfaceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CommIpV4InterfaceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/comm_ip_v6_interface.py b/intersight/models/comm_ip_v6_interface.py new file mode 100644 index 00000000..9f504050 --- /dev/null +++ b/intersight/models/comm_ip_v6_interface.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CommIpV6Interface(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'gateway': 'str', + 'ip_address': 'str', + 'prefix': 'str' + } + + attribute_map = { + 'gateway': 'Gateway', + 'ip_address': 'IpAddress', + 'prefix': 'Prefix' + } + + def __init__(self, gateway=None, ip_address=None, prefix=None): + """ + CommIpV6Interface - a model defined in Swagger + """ + + self._gateway = None + self._ip_address = None + self._prefix = None + + if gateway is not None: + self.gateway = gateway + if ip_address is not None: + self.ip_address = ip_address + if prefix is not None: + self.prefix = prefix + + @property + def gateway(self): + """ + Gets the gateway of this CommIpV6Interface. + IP Gateway + + :return: The gateway of this CommIpV6Interface. + :rtype: str + """ + return self._gateway + + @gateway.setter + def gateway(self, gateway): + """ + Sets the gateway of this CommIpV6Interface. + IP Gateway + + :param gateway: The gateway of this CommIpV6Interface. + :type: str + """ + + self._gateway = gateway + + @property + def ip_address(self): + """ + Gets the ip_address of this CommIpV6Interface. + IP Address + + :return: The ip_address of this CommIpV6Interface. + :rtype: str + """ + return self._ip_address + + @ip_address.setter + def ip_address(self, ip_address): + """ + Sets the ip_address of this CommIpV6Interface. + IP Address + + :param ip_address: The ip_address of this CommIpV6Interface. + :type: str + """ + + self._ip_address = ip_address + + @property + def prefix(self): + """ + Gets the prefix of this CommIpV6Interface. + IPv6 Prefix + + :return: The prefix of this CommIpV6Interface. + :rtype: str + """ + return self._prefix + + @prefix.setter + def prefix(self, prefix): + """ + Sets the prefix of this CommIpV6Interface. + IPv6 Prefix + + :param prefix: The prefix of this CommIpV6Interface. + :type: str + """ + + self._prefix = prefix + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CommIpV6Interface): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/comm_ip_v6_interface_ref.py b/intersight/models/comm_ip_v6_interface_ref.py new file mode 100644 index 00000000..1b78e96a --- /dev/null +++ b/intersight/models/comm_ip_v6_interface_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CommIpV6InterfaceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CommIpV6InterfaceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CommIpV6InterfaceRef. + + :return: The moid of this CommIpV6InterfaceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CommIpV6InterfaceRef. + + :param moid: The moid of this CommIpV6InterfaceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CommIpV6InterfaceRef. + + :return: The object_type of this CommIpV6InterfaceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CommIpV6InterfaceRef. + + :param object_type: The object_type of this CommIpV6InterfaceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CommIpV6InterfaceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_blade.py b/intersight/models/compute_blade.py index 4cfc6310..dc7fcdb9 100644 --- a/intersight/models/compute_blade.py +++ b/intersight/models/compute_blade.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class ComputeBlade(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -48,6 +49,7 @@ class ComputeBlade(object): 'serial': 'str', 'vendor': 'str', 'admin_power_state': 'str', + 'asset_tag': 'str', 'available_memory': 'int', 'fault_summary': 'int', 'kvm_ip_addresses': 'list[ComputeIpAddress]', @@ -66,17 +68,22 @@ class ComputeBlade(object): 'presence': 'str', 'service_profile': 'str', 'total_memory': 'int', + 'user_label': 'str', 'uuid': 'str', - 'adapters': 'list[MoMoRef]', - 'bmc': 'MoMoRef', - 'board': 'MoMoRef', + 'adapters': 'list[AdapterUnitRef]', + 'bios_units': 'list[BiosUnitRef]', + 'bmc': 'ManagementControllerRef', + 'board': 'ComputeBoardRef', 'chassis_id': 'str', - 'equipment_chassis': 'MoMoRef', - 'generic_inventory_holders': 'list[MoMoRef]', - 'locator_led': 'MoMoRef', - 'registered_device': 'MoMoRef', + 'equipment_chassis': 'EquipmentChassisRef', + 'equipment_io_expanders': 'list[EquipmentIoExpanderRef]', + 'generic_inventory_holders': 'list[InventoryGenericInventoryHolderRef]', + 'locator_led': 'EquipmentLocatorLedRef', + 'registered_device': 'AssetDeviceRegistrationRef', + 'scaled_mode': 'str', 'slot_id': 'int', - 'top_system': 'MoMoRef' + 'storage_enclosures': 'list[StorageEnclosureRef]', + 'top_system': 'TopSystemRef' } attribute_map = { @@ -89,6 +96,7 @@ class ComputeBlade(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -97,6 +105,7 @@ class ComputeBlade(object): 'serial': 'Serial', 'vendor': 'Vendor', 'admin_power_state': 'AdminPowerState', + 'asset_tag': 'AssetTag', 'available_memory': 'AvailableMemory', 'fault_summary': 'FaultSummary', 'kvm_ip_addresses': 'KvmIpAddresses', @@ -115,20 +124,25 @@ class ComputeBlade(object): 'presence': 'Presence', 'service_profile': 'ServiceProfile', 'total_memory': 'TotalMemory', + 'user_label': 'UserLabel', 'uuid': 'Uuid', 'adapters': 'Adapters', + 'bios_units': 'BiosUnits', 'bmc': 'Bmc', 'board': 'Board', 'chassis_id': 'ChassisId', 'equipment_chassis': 'EquipmentChassis', + 'equipment_io_expanders': 'EquipmentIoExpanders', 'generic_inventory_holders': 'GenericInventoryHolders', 'locator_led': 'LocatorLed', 'registered_device': 'RegisteredDevice', + 'scaled_mode': 'ScaledMode', 'slot_id': 'SlotId', + 'storage_enclosures': 'StorageEnclosures', 'top_system': 'TopSystem' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, admin_power_state=None, available_memory=None, fault_summary=None, kvm_ip_addresses=None, memory_speed=None, num_adaptors=None, num_cpu_cores=None, num_cpu_cores_enabled=None, num_cpus=None, num_eth_host_interfaces=None, num_fc_host_interfaces=None, num_threads=None, oper_power_state=None, oper_state=None, operability=None, platform_type=None, presence=None, service_profile=None, total_memory=None, uuid=None, adapters=None, bmc=None, board=None, chassis_id=None, equipment_chassis=None, generic_inventory_holders=None, locator_led=None, registered_device=None, slot_id=None, top_system=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, admin_power_state=None, asset_tag=None, available_memory=None, fault_summary=None, kvm_ip_addresses=None, memory_speed=None, num_adaptors=None, num_cpu_cores=None, num_cpu_cores_enabled=None, num_cpus=None, num_eth_host_interfaces=None, num_fc_host_interfaces=None, num_threads=None, oper_power_state=None, oper_state=None, operability=None, platform_type=None, presence=None, service_profile=None, total_memory=None, user_label=None, uuid=None, adapters=None, bios_units=None, bmc=None, board=None, chassis_id=None, equipment_chassis=None, equipment_io_expanders=None, generic_inventory_holders=None, locator_led=None, registered_device=None, scaled_mode=None, slot_id=None, storage_enclosures=None, top_system=None): """ ComputeBlade - a model defined in Swagger """ @@ -142,6 +156,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -150,6 +165,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._serial = None self._vendor = None self._admin_power_state = None + self._asset_tag = None self._available_memory = None self._fault_summary = None self._kvm_ip_addresses = None @@ -168,16 +184,21 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._presence = None self._service_profile = None self._total_memory = None + self._user_label = None self._uuid = None self._adapters = None + self._bios_units = None self._bmc = None self._board = None self._chassis_id = None self._equipment_chassis = None + self._equipment_io_expanders = None self._generic_inventory_holders = None self._locator_led = None self._registered_device = None + self._scaled_mode = None self._slot_id = None + self._storage_enclosures = None self._top_system = None if account_moid is not None: @@ -198,6 +219,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -214,6 +237,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.vendor = vendor if admin_power_state is not None: self.admin_power_state = admin_power_state + if asset_tag is not None: + self.asset_tag = asset_tag if available_memory is not None: self.available_memory = available_memory if fault_summary is not None: @@ -250,10 +275,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.service_profile = service_profile if total_memory is not None: self.total_memory = total_memory + if user_label is not None: + self.user_label = user_label if uuid is not None: self.uuid = uuid if adapters is not None: self.adapters = adapters + if bios_units is not None: + self.bios_units = bios_units if bmc is not None: self.bmc = bmc if board is not None: @@ -262,14 +291,20 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.chassis_id = chassis_id if equipment_chassis is not None: self.equipment_chassis = equipment_chassis + if equipment_io_expanders is not None: + self.equipment_io_expanders = equipment_io_expanders if generic_inventory_holders is not None: self.generic_inventory_holders = generic_inventory_holders if locator_led is not None: self.locator_led = locator_led if registered_device is not None: self.registered_device = registered_device + if scaled_mode is not None: + self.scaled_mode = scaled_mode if slot_id is not None: self.slot_id = slot_id + if storage_enclosures is not None: + self.storage_enclosures = storage_enclosures if top_system is not None: self.top_system = top_system @@ -303,7 +338,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ComputeBlade. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -314,7 +349,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ComputeBlade. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -441,7 +476,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ComputeBlade. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -452,7 +487,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ComputeBlade. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -461,7 +496,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this ComputeBlade. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this ComputeBlade. :rtype: list[MoTag] @@ -472,7 +507,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this ComputeBlade. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this ComputeBlade. :type: list[MoTag] @@ -480,6 +515,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this ComputeBlade. + The versioning info for this managed object + + :return: The version_context of this ComputeBlade. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this ComputeBlade. + The versioning info for this managed object + + :param version_context: The version_context of this ComputeBlade. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -648,6 +706,27 @@ def admin_power_state(self, admin_power_state): self._admin_power_state = admin_power_state + @property + def asset_tag(self): + """ + Gets the asset_tag of this ComputeBlade. + + :return: The asset_tag of this ComputeBlade. + :rtype: str + """ + return self._asset_tag + + @asset_tag.setter + def asset_tag(self, asset_tag): + """ + Sets the asset_tag of this ComputeBlade. + + :param asset_tag: The asset_tag of this ComputeBlade. + :type: str + """ + + self._asset_tag = asset_tag + @property def available_memory(self): """ @@ -1026,6 +1105,27 @@ def total_memory(self, total_memory): self._total_memory = total_memory + @property + def user_label(self): + """ + Gets the user_label of this ComputeBlade. + + :return: The user_label of this ComputeBlade. + :rtype: str + """ + return self._user_label + + @user_label.setter + def user_label(self, user_label): + """ + Sets the user_label of this ComputeBlade. + + :param user_label: The user_label of this ComputeBlade. + :type: str + """ + + self._user_label = user_label + @property def uuid(self): """ @@ -1053,7 +1153,7 @@ def adapters(self): Gets the adapters of this ComputeBlade. :return: The adapters of this ComputeBlade. - :rtype: list[MoMoRef] + :rtype: list[AdapterUnitRef] """ return self._adapters @@ -1063,18 +1163,39 @@ def adapters(self, adapters): Sets the adapters of this ComputeBlade. :param adapters: The adapters of this ComputeBlade. - :type: list[MoMoRef] + :type: list[AdapterUnitRef] """ self._adapters = adapters + @property + def bios_units(self): + """ + Gets the bios_units of this ComputeBlade. + + :return: The bios_units of this ComputeBlade. + :rtype: list[BiosUnitRef] + """ + return self._bios_units + + @bios_units.setter + def bios_units(self, bios_units): + """ + Sets the bios_units of this ComputeBlade. + + :param bios_units: The bios_units of this ComputeBlade. + :type: list[BiosUnitRef] + """ + + self._bios_units = bios_units + @property def bmc(self): """ Gets the bmc of this ComputeBlade. :return: The bmc of this ComputeBlade. - :rtype: MoMoRef + :rtype: ManagementControllerRef """ return self._bmc @@ -1084,7 +1205,7 @@ def bmc(self, bmc): Sets the bmc of this ComputeBlade. :param bmc: The bmc of this ComputeBlade. - :type: MoMoRef + :type: ManagementControllerRef """ self._bmc = bmc @@ -1095,7 +1216,7 @@ def board(self): Gets the board of this ComputeBlade. :return: The board of this ComputeBlade. - :rtype: MoMoRef + :rtype: ComputeBoardRef """ return self._board @@ -1105,7 +1226,7 @@ def board(self, board): Sets the board of this ComputeBlade. :param board: The board of this ComputeBlade. - :type: MoMoRef + :type: ComputeBoardRef """ self._board = board @@ -1137,7 +1258,7 @@ def equipment_chassis(self): Gets the equipment_chassis of this ComputeBlade. :return: The equipment_chassis of this ComputeBlade. - :rtype: MoMoRef + :rtype: EquipmentChassisRef """ return self._equipment_chassis @@ -1147,18 +1268,39 @@ def equipment_chassis(self, equipment_chassis): Sets the equipment_chassis of this ComputeBlade. :param equipment_chassis: The equipment_chassis of this ComputeBlade. - :type: MoMoRef + :type: EquipmentChassisRef """ self._equipment_chassis = equipment_chassis + @property + def equipment_io_expanders(self): + """ + Gets the equipment_io_expanders of this ComputeBlade. + + :return: The equipment_io_expanders of this ComputeBlade. + :rtype: list[EquipmentIoExpanderRef] + """ + return self._equipment_io_expanders + + @equipment_io_expanders.setter + def equipment_io_expanders(self, equipment_io_expanders): + """ + Sets the equipment_io_expanders of this ComputeBlade. + + :param equipment_io_expanders: The equipment_io_expanders of this ComputeBlade. + :type: list[EquipmentIoExpanderRef] + """ + + self._equipment_io_expanders = equipment_io_expanders + @property def generic_inventory_holders(self): """ Gets the generic_inventory_holders of this ComputeBlade. :return: The generic_inventory_holders of this ComputeBlade. - :rtype: list[MoMoRef] + :rtype: list[InventoryGenericInventoryHolderRef] """ return self._generic_inventory_holders @@ -1168,7 +1310,7 @@ def generic_inventory_holders(self, generic_inventory_holders): Sets the generic_inventory_holders of this ComputeBlade. :param generic_inventory_holders: The generic_inventory_holders of this ComputeBlade. - :type: list[MoMoRef] + :type: list[InventoryGenericInventoryHolderRef] """ self._generic_inventory_holders = generic_inventory_holders @@ -1179,7 +1321,7 @@ def locator_led(self): Gets the locator_led of this ComputeBlade. :return: The locator_led of this ComputeBlade. - :rtype: MoMoRef + :rtype: EquipmentLocatorLedRef """ return self._locator_led @@ -1189,7 +1331,7 @@ def locator_led(self, locator_led): Sets the locator_led of this ComputeBlade. :param locator_led: The locator_led of this ComputeBlade. - :type: MoMoRef + :type: EquipmentLocatorLedRef """ self._locator_led = locator_led @@ -1200,7 +1342,7 @@ def registered_device(self): Gets the registered_device of this ComputeBlade. :return: The registered_device of this ComputeBlade. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -1210,11 +1352,32 @@ def registered_device(self, registered_device): Sets the registered_device of this ComputeBlade. :param registered_device: The registered_device of this ComputeBlade. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device + @property + def scaled_mode(self): + """ + Gets the scaled_mode of this ComputeBlade. + + :return: The scaled_mode of this ComputeBlade. + :rtype: str + """ + return self._scaled_mode + + @scaled_mode.setter + def scaled_mode(self, scaled_mode): + """ + Sets the scaled_mode of this ComputeBlade. + + :param scaled_mode: The scaled_mode of this ComputeBlade. + :type: str + """ + + self._scaled_mode = scaled_mode + @property def slot_id(self): """ @@ -1236,13 +1399,34 @@ def slot_id(self, slot_id): self._slot_id = slot_id + @property + def storage_enclosures(self): + """ + Gets the storage_enclosures of this ComputeBlade. + + :return: The storage_enclosures of this ComputeBlade. + :rtype: list[StorageEnclosureRef] + """ + return self._storage_enclosures + + @storage_enclosures.setter + def storage_enclosures(self, storage_enclosures): + """ + Sets the storage_enclosures of this ComputeBlade. + + :param storage_enclosures: The storage_enclosures of this ComputeBlade. + :type: list[StorageEnclosureRef] + """ + + self._storage_enclosures = storage_enclosures + @property def top_system(self): """ Gets the top_system of this ComputeBlade. :return: The top_system of this ComputeBlade. - :rtype: MoMoRef + :rtype: TopSystemRef """ return self._top_system @@ -1252,7 +1436,7 @@ def top_system(self, top_system): Sets the top_system of this ComputeBlade. :param top_system: The top_system of this ComputeBlade. - :type: MoMoRef + :type: TopSystemRef """ self._top_system = top_system diff --git a/intersight/models/compute_blade_list.py b/intersight/models/compute_blade_list.py index 92a2db33..a4b382f4 100644 --- a/intersight/models/compute_blade_list.py +++ b/intersight/models/compute_blade_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/compute_blade_ref.py b/intersight/models/compute_blade_ref.py new file mode 100644 index 00000000..ecf33a1a --- /dev/null +++ b/intersight/models/compute_blade_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputeBladeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputeBladeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputeBladeRef. + + :return: The moid of this ComputeBladeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputeBladeRef. + + :param moid: The moid of this ComputeBladeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputeBladeRef. + + :return: The object_type of this ComputeBladeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputeBladeRef. + + :param object_type: The object_type of this ComputeBladeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputeBladeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_board.py b/intersight/models/compute_board.py index f4965805..fc1a9f91 100644 --- a/intersight/models/compute_board.py +++ b/intersight/models/compute_board.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class ComputeBoard(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -48,19 +49,20 @@ class ComputeBoard(object): 'serial': 'str', 'vendor': 'str', 'board_id': 'int', - 'compute_blade': 'MoMoRef', - 'compute_rack_unit': 'MoMoRef', + 'compute_blade': 'ComputeBladeRef', + 'compute_rack_unit': 'ComputeRackUnitRef', 'cpu_type_controller': 'str', - 'graphics_cards': 'list[MoMoRef]', - 'memory_arrays': 'list[MoMoRef]', + 'equipment_tpms': 'list[EquipmentTpmRef]', + 'graphics_cards': 'list[GraphicsCardRef]', + 'memory_arrays': 'list[MemoryArrayRef]', 'oper_power_state': 'str', 'presence': 'str', - 'processors': 'list[MoMoRef]', - 'registered_device': 'MoMoRef', - 'security_units': 'list[MoMoRef]', - 'storage_controllers': 'list[MoMoRef]', - 'storage_flex_flash_controllers': 'list[MoMoRef]', - 'storage_flex_util_controllers': 'list[MoMoRef]' + 'processors': 'list[ProcessorUnitRef]', + 'registered_device': 'AssetDeviceRegistrationRef', + 'security_units': 'list[SecurityUnitRef]', + 'storage_controllers': 'list[StorageControllerRef]', + 'storage_flex_flash_controllers': 'list[StorageFlexFlashControllerRef]', + 'storage_flex_util_controllers': 'list[StorageFlexUtilControllerRef]' } attribute_map = { @@ -73,6 +75,7 @@ class ComputeBoard(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -84,6 +87,7 @@ class ComputeBoard(object): 'compute_blade': 'ComputeBlade', 'compute_rack_unit': 'ComputeRackUnit', 'cpu_type_controller': 'CpuTypeController', + 'equipment_tpms': 'EquipmentTpms', 'graphics_cards': 'GraphicsCards', 'memory_arrays': 'MemoryArrays', 'oper_power_state': 'OperPowerState', @@ -96,7 +100,7 @@ class ComputeBoard(object): 'storage_flex_util_controllers': 'StorageFlexUtilControllers' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, board_id=None, compute_blade=None, compute_rack_unit=None, cpu_type_controller=None, graphics_cards=None, memory_arrays=None, oper_power_state=None, presence=None, processors=None, registered_device=None, security_units=None, storage_controllers=None, storage_flex_flash_controllers=None, storage_flex_util_controllers=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, board_id=None, compute_blade=None, compute_rack_unit=None, cpu_type_controller=None, equipment_tpms=None, graphics_cards=None, memory_arrays=None, oper_power_state=None, presence=None, processors=None, registered_device=None, security_units=None, storage_controllers=None, storage_flex_flash_controllers=None, storage_flex_util_controllers=None): """ ComputeBoard - a model defined in Swagger """ @@ -110,6 +114,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -121,6 +126,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._compute_blade = None self._compute_rack_unit = None self._cpu_type_controller = None + self._equipment_tpms = None self._graphics_cards = None self._memory_arrays = None self._oper_power_state = None @@ -150,6 +156,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -172,6 +180,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.compute_rack_unit = compute_rack_unit if cpu_type_controller is not None: self.cpu_type_controller = cpu_type_controller + if equipment_tpms is not None: + self.equipment_tpms = equipment_tpms if graphics_cards is not None: self.graphics_cards = graphics_cards if memory_arrays is not None: @@ -223,7 +233,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ComputeBoard. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -234,7 +244,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ComputeBoard. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -361,7 +371,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ComputeBoard. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -372,7 +382,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ComputeBoard. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -381,7 +391,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this ComputeBoard. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this ComputeBoard. :rtype: list[MoTag] @@ -392,7 +402,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this ComputeBoard. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this ComputeBoard. :type: list[MoTag] @@ -400,6 +410,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this ComputeBoard. + The versioning info for this managed object + + :return: The version_context of this ComputeBoard. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this ComputeBoard. + The versioning info for this managed object + + :param version_context: The version_context of this ComputeBoard. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -574,7 +607,7 @@ def compute_blade(self): Gets the compute_blade of this ComputeBoard. :return: The compute_blade of this ComputeBoard. - :rtype: MoMoRef + :rtype: ComputeBladeRef """ return self._compute_blade @@ -584,7 +617,7 @@ def compute_blade(self, compute_blade): Sets the compute_blade of this ComputeBoard. :param compute_blade: The compute_blade of this ComputeBoard. - :type: MoMoRef + :type: ComputeBladeRef """ self._compute_blade = compute_blade @@ -595,7 +628,7 @@ def compute_rack_unit(self): Gets the compute_rack_unit of this ComputeBoard. :return: The compute_rack_unit of this ComputeBoard. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._compute_rack_unit @@ -605,7 +638,7 @@ def compute_rack_unit(self, compute_rack_unit): Sets the compute_rack_unit of this ComputeBoard. :param compute_rack_unit: The compute_rack_unit of this ComputeBoard. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._compute_rack_unit = compute_rack_unit @@ -631,13 +664,34 @@ def cpu_type_controller(self, cpu_type_controller): self._cpu_type_controller = cpu_type_controller + @property + def equipment_tpms(self): + """ + Gets the equipment_tpms of this ComputeBoard. + + :return: The equipment_tpms of this ComputeBoard. + :rtype: list[EquipmentTpmRef] + """ + return self._equipment_tpms + + @equipment_tpms.setter + def equipment_tpms(self, equipment_tpms): + """ + Sets the equipment_tpms of this ComputeBoard. + + :param equipment_tpms: The equipment_tpms of this ComputeBoard. + :type: list[EquipmentTpmRef] + """ + + self._equipment_tpms = equipment_tpms + @property def graphics_cards(self): """ Gets the graphics_cards of this ComputeBoard. :return: The graphics_cards of this ComputeBoard. - :rtype: list[MoMoRef] + :rtype: list[GraphicsCardRef] """ return self._graphics_cards @@ -647,7 +701,7 @@ def graphics_cards(self, graphics_cards): Sets the graphics_cards of this ComputeBoard. :param graphics_cards: The graphics_cards of this ComputeBoard. - :type: list[MoMoRef] + :type: list[GraphicsCardRef] """ self._graphics_cards = graphics_cards @@ -658,7 +712,7 @@ def memory_arrays(self): Gets the memory_arrays of this ComputeBoard. :return: The memory_arrays of this ComputeBoard. - :rtype: list[MoMoRef] + :rtype: list[MemoryArrayRef] """ return self._memory_arrays @@ -668,7 +722,7 @@ def memory_arrays(self, memory_arrays): Sets the memory_arrays of this ComputeBoard. :param memory_arrays: The memory_arrays of this ComputeBoard. - :type: list[MoMoRef] + :type: list[MemoryArrayRef] """ self._memory_arrays = memory_arrays @@ -721,7 +775,7 @@ def processors(self): Gets the processors of this ComputeBoard. :return: The processors of this ComputeBoard. - :rtype: list[MoMoRef] + :rtype: list[ProcessorUnitRef] """ return self._processors @@ -731,7 +785,7 @@ def processors(self, processors): Sets the processors of this ComputeBoard. :param processors: The processors of this ComputeBoard. - :type: list[MoMoRef] + :type: list[ProcessorUnitRef] """ self._processors = processors @@ -742,7 +796,7 @@ def registered_device(self): Gets the registered_device of this ComputeBoard. :return: The registered_device of this ComputeBoard. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -752,7 +806,7 @@ def registered_device(self, registered_device): Sets the registered_device of this ComputeBoard. :param registered_device: The registered_device of this ComputeBoard. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -763,7 +817,7 @@ def security_units(self): Gets the security_units of this ComputeBoard. :return: The security_units of this ComputeBoard. - :rtype: list[MoMoRef] + :rtype: list[SecurityUnitRef] """ return self._security_units @@ -773,7 +827,7 @@ def security_units(self, security_units): Sets the security_units of this ComputeBoard. :param security_units: The security_units of this ComputeBoard. - :type: list[MoMoRef] + :type: list[SecurityUnitRef] """ self._security_units = security_units @@ -784,7 +838,7 @@ def storage_controllers(self): Gets the storage_controllers of this ComputeBoard. :return: The storage_controllers of this ComputeBoard. - :rtype: list[MoMoRef] + :rtype: list[StorageControllerRef] """ return self._storage_controllers @@ -794,7 +848,7 @@ def storage_controllers(self, storage_controllers): Sets the storage_controllers of this ComputeBoard. :param storage_controllers: The storage_controllers of this ComputeBoard. - :type: list[MoMoRef] + :type: list[StorageControllerRef] """ self._storage_controllers = storage_controllers @@ -805,7 +859,7 @@ def storage_flex_flash_controllers(self): Gets the storage_flex_flash_controllers of this ComputeBoard. :return: The storage_flex_flash_controllers of this ComputeBoard. - :rtype: list[MoMoRef] + :rtype: list[StorageFlexFlashControllerRef] """ return self._storage_flex_flash_controllers @@ -815,7 +869,7 @@ def storage_flex_flash_controllers(self, storage_flex_flash_controllers): Sets the storage_flex_flash_controllers of this ComputeBoard. :param storage_flex_flash_controllers: The storage_flex_flash_controllers of this ComputeBoard. - :type: list[MoMoRef] + :type: list[StorageFlexFlashControllerRef] """ self._storage_flex_flash_controllers = storage_flex_flash_controllers @@ -826,7 +880,7 @@ def storage_flex_util_controllers(self): Gets the storage_flex_util_controllers of this ComputeBoard. :return: The storage_flex_util_controllers of this ComputeBoard. - :rtype: list[MoMoRef] + :rtype: list[StorageFlexUtilControllerRef] """ return self._storage_flex_util_controllers @@ -836,7 +890,7 @@ def storage_flex_util_controllers(self, storage_flex_util_controllers): Sets the storage_flex_util_controllers of this ComputeBoard. :param storage_flex_util_controllers: The storage_flex_util_controllers of this ComputeBoard. - :type: list[MoMoRef] + :type: list[StorageFlexUtilControllerRef] """ self._storage_flex_util_controllers = storage_flex_util_controllers diff --git a/intersight/models/compute_board_list.py b/intersight/models/compute_board_list.py index 5c2af8fe..f7dcc2fc 100644 --- a/intersight/models/compute_board_list.py +++ b/intersight/models/compute_board_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/compute_board_ref.py b/intersight/models/compute_board_ref.py new file mode 100644 index 00000000..d5be8300 --- /dev/null +++ b/intersight/models/compute_board_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputeBoardRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputeBoardRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputeBoardRef. + + :return: The moid of this ComputeBoardRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputeBoardRef. + + :param moid: The moid of this ComputeBoardRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputeBoardRef. + + :return: The object_type of this ComputeBoardRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputeBoardRef. + + :param object_type: The object_type of this ComputeBoardRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputeBoardRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_ip_address.py b/intersight/models/compute_ip_address.py index 46ab85ca..83c573ad 100644 --- a/intersight/models/compute_ip_address.py +++ b/intersight/models/compute_ip_address.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/compute_ip_address_ref.py b/intersight/models/compute_ip_address_ref.py new file mode 100644 index 00000000..21093db0 --- /dev/null +++ b/intersight/models/compute_ip_address_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputeIpAddressRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputeIpAddressRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputeIpAddressRef. + + :return: The moid of this ComputeIpAddressRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputeIpAddressRef. + + :param moid: The moid of this ComputeIpAddressRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputeIpAddressRef. + + :return: The object_type of this ComputeIpAddressRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputeIpAddressRef. + + :param object_type: The object_type of this ComputeIpAddressRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputeIpAddressRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_locator_led_operation_task_ref.py b/intersight/models/compute_locator_led_operation_task_ref.py new file mode 100644 index 00000000..4302fe95 --- /dev/null +++ b/intersight/models/compute_locator_led_operation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputeLocatorLedOperationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputeLocatorLedOperationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputeLocatorLedOperationTaskRef. + + :return: The moid of this ComputeLocatorLedOperationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputeLocatorLedOperationTaskRef. + + :param moid: The moid of this ComputeLocatorLedOperationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputeLocatorLedOperationTaskRef. + + :return: The object_type of this ComputeLocatorLedOperationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputeLocatorLedOperationTaskRef. + + :param object_type: The object_type of this ComputeLocatorLedOperationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputeLocatorLedOperationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_operation_result_handler_ref.py b/intersight/models/compute_operation_result_handler_ref.py new file mode 100644 index 00000000..62eb0fdd --- /dev/null +++ b/intersight/models/compute_operation_result_handler_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputeOperationResultHandlerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputeOperationResultHandlerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputeOperationResultHandlerRef. + + :return: The moid of this ComputeOperationResultHandlerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputeOperationResultHandlerRef. + + :param moid: The moid of this ComputeOperationResultHandlerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputeOperationResultHandlerRef. + + :return: The object_type of this ComputeOperationResultHandlerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputeOperationResultHandlerRef. + + :param object_type: The object_type of this ComputeOperationResultHandlerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputeOperationResultHandlerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_physical.py b/intersight/models/compute_physical.py index 43dfef2d..f98f4457 100644 --- a/intersight/models/compute_physical.py +++ b/intersight/models/compute_physical.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class ComputePhysical(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -48,6 +49,7 @@ class ComputePhysical(object): 'serial': 'str', 'vendor': 'str', 'admin_power_state': 'str', + 'asset_tag': 'str', 'available_memory': 'int', 'fault_summary': 'int', 'kvm_ip_addresses': 'list[ComputeIpAddress]', @@ -66,6 +68,7 @@ class ComputePhysical(object): 'presence': 'str', 'service_profile': 'str', 'total_memory': 'int', + 'user_label': 'str', 'uuid': 'str' } @@ -79,6 +82,7 @@ class ComputePhysical(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -87,6 +91,7 @@ class ComputePhysical(object): 'serial': 'Serial', 'vendor': 'Vendor', 'admin_power_state': 'AdminPowerState', + 'asset_tag': 'AssetTag', 'available_memory': 'AvailableMemory', 'fault_summary': 'FaultSummary', 'kvm_ip_addresses': 'KvmIpAddresses', @@ -105,10 +110,11 @@ class ComputePhysical(object): 'presence': 'Presence', 'service_profile': 'ServiceProfile', 'total_memory': 'TotalMemory', + 'user_label': 'UserLabel', 'uuid': 'Uuid' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, admin_power_state=None, available_memory=None, fault_summary=None, kvm_ip_addresses=None, memory_speed=None, num_adaptors=None, num_cpu_cores=None, num_cpu_cores_enabled=None, num_cpus=None, num_eth_host_interfaces=None, num_fc_host_interfaces=None, num_threads=None, oper_power_state=None, oper_state=None, operability=None, platform_type=None, presence=None, service_profile=None, total_memory=None, uuid=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, admin_power_state=None, asset_tag=None, available_memory=None, fault_summary=None, kvm_ip_addresses=None, memory_speed=None, num_adaptors=None, num_cpu_cores=None, num_cpu_cores_enabled=None, num_cpus=None, num_eth_host_interfaces=None, num_fc_host_interfaces=None, num_threads=None, oper_power_state=None, oper_state=None, operability=None, platform_type=None, presence=None, service_profile=None, total_memory=None, user_label=None, uuid=None): """ ComputePhysical - a model defined in Swagger """ @@ -122,6 +128,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -130,6 +137,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._serial = None self._vendor = None self._admin_power_state = None + self._asset_tag = None self._available_memory = None self._fault_summary = None self._kvm_ip_addresses = None @@ -148,6 +156,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._presence = None self._service_profile = None self._total_memory = None + self._user_label = None self._uuid = None if account_moid is not None: @@ -168,6 +177,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -184,6 +195,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.vendor = vendor if admin_power_state is not None: self.admin_power_state = admin_power_state + if asset_tag is not None: + self.asset_tag = asset_tag if available_memory is not None: self.available_memory = available_memory if fault_summary is not None: @@ -220,6 +233,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.service_profile = service_profile if total_memory is not None: self.total_memory = total_memory + if user_label is not None: + self.user_label = user_label if uuid is not None: self.uuid = uuid @@ -253,7 +268,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ComputePhysical. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -264,7 +279,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ComputePhysical. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -391,7 +406,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ComputePhysical. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -402,7 +417,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ComputePhysical. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -411,7 +426,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this ComputePhysical. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this ComputePhysical. :rtype: list[MoTag] @@ -422,7 +437,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this ComputePhysical. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this ComputePhysical. :type: list[MoTag] @@ -430,6 +445,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this ComputePhysical. + The versioning info for this managed object + + :return: The version_context of this ComputePhysical. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this ComputePhysical. + The versioning info for this managed object + + :param version_context: The version_context of this ComputePhysical. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -598,6 +636,27 @@ def admin_power_state(self, admin_power_state): self._admin_power_state = admin_power_state + @property + def asset_tag(self): + """ + Gets the asset_tag of this ComputePhysical. + + :return: The asset_tag of this ComputePhysical. + :rtype: str + """ + return self._asset_tag + + @asset_tag.setter + def asset_tag(self, asset_tag): + """ + Sets the asset_tag of this ComputePhysical. + + :param asset_tag: The asset_tag of this ComputePhysical. + :type: str + """ + + self._asset_tag = asset_tag + @property def available_memory(self): """ @@ -976,6 +1035,27 @@ def total_memory(self, total_memory): self._total_memory = total_memory + @property + def user_label(self): + """ + Gets the user_label of this ComputePhysical. + + :return: The user_label of this ComputePhysical. + :rtype: str + """ + return self._user_label + + @user_label.setter + def user_label(self, user_label): + """ + Sets the user_label of this ComputePhysical. + + :param user_label: The user_label of this ComputePhysical. + :type: str + """ + + self._user_label = user_label + @property def uuid(self): """ diff --git a/intersight/models/compute_physical_ref.py b/intersight/models/compute_physical_ref.py new file mode 100644 index 00000000..1fff85d1 --- /dev/null +++ b/intersight/models/compute_physical_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputePhysicalRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputePhysicalRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputePhysicalRef. + + :return: The moid of this ComputePhysicalRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputePhysicalRef. + + :param moid: The moid of this ComputePhysicalRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputePhysicalRef. + + :return: The object_type of this ComputePhysicalRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputePhysicalRef. + + :param object_type: The object_type of this ComputePhysicalRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputePhysicalRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_physical_summary.py b/intersight/models/compute_physical_summary.py index 59bec8c9..e1576d9b 100644 --- a/intersight/models/compute_physical_summary.py +++ b/intersight/models/compute_physical_summary.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,17 @@ class ComputePhysicalSummary(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'admin_power_state': 'str', + 'asset_tag': 'str', 'available_memory': 'int', 'chassis_id': 'str', 'cpu_capacity': 'float', @@ -51,6 +53,7 @@ class ComputePhysicalSummary(object): 'ipv4_address': 'str', 'kvm_ip_addresses': 'list[ComputeIpAddress]', 'memory_speed': 'str', + 'mgmt_ip_address': 'str', 'model': 'str', 'name': 'str', 'num_adaptors': 'int', @@ -65,15 +68,17 @@ class ComputePhysicalSummary(object): 'operability': 'str', 'platform_type': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'revision': 'str', 'rn': 'str', + 'scaled_mode': 'str', 'serial': 'str', 'server_id': 'int', 'service_profile': 'str', 'slot_id': 'int', 'source_object_type': 'str', 'total_memory': 'int', + 'user_label': 'str', 'uuid': 'str', 'vendor': 'str' } @@ -88,7 +93,9 @@ class ComputePhysicalSummary(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'admin_power_state': 'AdminPowerState', + 'asset_tag': 'AssetTag', 'available_memory': 'AvailableMemory', 'chassis_id': 'ChassisId', 'cpu_capacity': 'CpuCapacity', @@ -99,6 +106,7 @@ class ComputePhysicalSummary(object): 'ipv4_address': 'Ipv4Address', 'kvm_ip_addresses': 'KvmIpAddresses', 'memory_speed': 'MemorySpeed', + 'mgmt_ip_address': 'MgmtIpAddress', 'model': 'Model', 'name': 'Name', 'num_adaptors': 'NumAdaptors', @@ -116,17 +124,19 @@ class ComputePhysicalSummary(object): 'registered_device': 'RegisteredDevice', 'revision': 'Revision', 'rn': 'Rn', + 'scaled_mode': 'ScaledMode', 'serial': 'Serial', 'server_id': 'ServerId', 'service_profile': 'ServiceProfile', 'slot_id': 'SlotId', 'source_object_type': 'SourceObjectType', 'total_memory': 'TotalMemory', + 'user_label': 'UserLabel', 'uuid': 'Uuid', 'vendor': 'Vendor' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, admin_power_state=None, available_memory=None, chassis_id=None, cpu_capacity=None, device_mo_id=None, dn=None, fault_summary=None, firmware=None, ipv4_address=None, kvm_ip_addresses=None, memory_speed=None, model=None, name=None, num_adaptors=None, num_cpu_cores=None, num_cpu_cores_enabled=None, num_cpus=None, num_eth_host_interfaces=None, num_fc_host_interfaces=None, num_threads=None, oper_power_state=None, oper_state=None, operability=None, platform_type=None, presence=None, registered_device=None, revision=None, rn=None, serial=None, server_id=None, service_profile=None, slot_id=None, source_object_type=None, total_memory=None, uuid=None, vendor=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, admin_power_state=None, asset_tag=None, available_memory=None, chassis_id=None, cpu_capacity=None, device_mo_id=None, dn=None, fault_summary=None, firmware=None, ipv4_address=None, kvm_ip_addresses=None, memory_speed=None, mgmt_ip_address=None, model=None, name=None, num_adaptors=None, num_cpu_cores=None, num_cpu_cores_enabled=None, num_cpus=None, num_eth_host_interfaces=None, num_fc_host_interfaces=None, num_threads=None, oper_power_state=None, oper_state=None, operability=None, platform_type=None, presence=None, registered_device=None, revision=None, rn=None, scaled_mode=None, serial=None, server_id=None, service_profile=None, slot_id=None, source_object_type=None, total_memory=None, user_label=None, uuid=None, vendor=None): """ ComputePhysicalSummary - a model defined in Swagger """ @@ -140,7 +150,9 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._admin_power_state = None + self._asset_tag = None self._available_memory = None self._chassis_id = None self._cpu_capacity = None @@ -151,6 +163,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._ipv4_address = None self._kvm_ip_addresses = None self._memory_speed = None + self._mgmt_ip_address = None self._model = None self._name = None self._num_adaptors = None @@ -168,12 +181,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._registered_device = None self._revision = None self._rn = None + self._scaled_mode = None self._serial = None self._server_id = None self._service_profile = None self._slot_id = None self._source_object_type = None self._total_memory = None + self._user_label = None self._uuid = None self._vendor = None @@ -195,8 +210,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if admin_power_state is not None: self.admin_power_state = admin_power_state + if asset_tag is not None: + self.asset_tag = asset_tag if available_memory is not None: self.available_memory = available_memory if chassis_id is not None: @@ -217,6 +236,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.kvm_ip_addresses = kvm_ip_addresses if memory_speed is not None: self.memory_speed = memory_speed + if mgmt_ip_address is not None: + self.mgmt_ip_address = mgmt_ip_address if model is not None: self.model = model if name is not None: @@ -251,6 +272,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.revision = revision if rn is not None: self.rn = rn + if scaled_mode is not None: + self.scaled_mode = scaled_mode if serial is not None: self.serial = serial if server_id is not None: @@ -263,6 +286,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.source_object_type = source_object_type if total_memory is not None: self.total_memory = total_memory + if user_label is not None: + self.user_label = user_label if uuid is not None: self.uuid = uuid if vendor is not None: @@ -298,7 +323,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ComputePhysicalSummary. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -309,7 +334,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ComputePhysicalSummary. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -436,7 +461,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ComputePhysicalSummary. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -447,7 +472,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ComputePhysicalSummary. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -456,7 +481,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this ComputePhysicalSummary. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this ComputePhysicalSummary. :rtype: list[MoTag] @@ -467,7 +492,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this ComputePhysicalSummary. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this ComputePhysicalSummary. :type: list[MoTag] @@ -475,6 +500,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this ComputePhysicalSummary. + The versioning info for this managed object + + :return: The version_context of this ComputePhysicalSummary. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this ComputePhysicalSummary. + The versioning info for this managed object + + :param version_context: The version_context of this ComputePhysicalSummary. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def admin_power_state(self): """ @@ -496,6 +544,27 @@ def admin_power_state(self, admin_power_state): self._admin_power_state = admin_power_state + @property + def asset_tag(self): + """ + Gets the asset_tag of this ComputePhysicalSummary. + + :return: The asset_tag of this ComputePhysicalSummary. + :rtype: str + """ + return self._asset_tag + + @asset_tag.setter + def asset_tag(self, asset_tag): + """ + Sets the asset_tag of this ComputePhysicalSummary. + + :param asset_tag: The asset_tag of this ComputePhysicalSummary. + :type: str + """ + + self._asset_tag = asset_tag + @property def available_memory(self): """ @@ -712,6 +781,29 @@ def memory_speed(self, memory_speed): self._memory_speed = memory_speed + @property + def mgmt_ip_address(self): + """ + Gets the mgmt_ip_address of this ComputePhysicalSummary. + The IP address of the manangement IP of the UCSFI or CIMC + + :return: The mgmt_ip_address of this ComputePhysicalSummary. + :rtype: str + """ + return self._mgmt_ip_address + + @mgmt_ip_address.setter + def mgmt_ip_address(self, mgmt_ip_address): + """ + Sets the mgmt_ip_address of this ComputePhysicalSummary. + The IP address of the manangement IP of the UCSFI or CIMC + + :param mgmt_ip_address: The mgmt_ip_address of this ComputePhysicalSummary. + :type: str + """ + + self._mgmt_ip_address = mgmt_ip_address + @property def model(self): """ @@ -1014,7 +1106,7 @@ def registered_device(self): Gets the registered_device of this ComputePhysicalSummary. :return: The registered_device of this ComputePhysicalSummary. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -1024,7 +1116,7 @@ def registered_device(self, registered_device): Sets the registered_device of this ComputePhysicalSummary. :param registered_device: The registered_device of this ComputePhysicalSummary. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -1071,6 +1163,27 @@ def rn(self, rn): self._rn = rn + @property + def scaled_mode(self): + """ + Gets the scaled_mode of this ComputePhysicalSummary. + + :return: The scaled_mode of this ComputePhysicalSummary. + :rtype: str + """ + return self._scaled_mode + + @scaled_mode.setter + def scaled_mode(self, scaled_mode): + """ + Sets the scaled_mode of this ComputePhysicalSummary. + + :param scaled_mode: The scaled_mode of this ComputePhysicalSummary. + :type: str + """ + + self._scaled_mode = scaled_mode + @property def serial(self): """ @@ -1199,6 +1312,27 @@ def total_memory(self, total_memory): self._total_memory = total_memory + @property + def user_label(self): + """ + Gets the user_label of this ComputePhysicalSummary. + + :return: The user_label of this ComputePhysicalSummary. + :rtype: str + """ + return self._user_label + + @user_label.setter + def user_label(self, user_label): + """ + Sets the user_label of this ComputePhysicalSummary. + + :param user_label: The user_label of this ComputePhysicalSummary. + :type: str + """ + + self._user_label = user_label + @property def uuid(self): """ diff --git a/intersight/models/compute_physical_summary_list.py b/intersight/models/compute_physical_summary_list.py index 00613a78..a2c9bb91 100644 --- a/intersight/models/compute_physical_summary_list.py +++ b/intersight/models/compute_physical_summary_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/compute_physical_summary_ref.py b/intersight/models/compute_physical_summary_ref.py new file mode 100644 index 00000000..7391b028 --- /dev/null +++ b/intersight/models/compute_physical_summary_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputePhysicalSummaryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputePhysicalSummaryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputePhysicalSummaryRef. + + :return: The moid of this ComputePhysicalSummaryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputePhysicalSummaryRef. + + :param moid: The moid of this ComputePhysicalSummaryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputePhysicalSummaryRef. + + :return: The object_type of this ComputePhysicalSummaryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputePhysicalSummaryRef. + + :param object_type: The object_type of this ComputePhysicalSummaryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputePhysicalSummaryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_rack_unit.py b/intersight/models/compute_rack_unit.py index f672983f..267584a8 100644 --- a/intersight/models/compute_rack_unit.py +++ b/intersight/models/compute_rack_unit.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class ComputeRackUnit(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -48,6 +49,7 @@ class ComputeRackUnit(object): 'serial': 'str', 'vendor': 'str', 'admin_power_state': 'str', + 'asset_tag': 'str', 'available_memory': 'int', 'fault_summary': 'int', 'kvm_ip_addresses': 'list[ComputeIpAddress]', @@ -66,19 +68,23 @@ class ComputeRackUnit(object): 'presence': 'str', 'service_profile': 'str', 'total_memory': 'int', + 'user_label': 'str', 'uuid': 'str', - 'adapters': 'list[MoMoRef]', - 'biosunits': 'list[MoMoRef]', - 'bmc': 'MoMoRef', - 'board': 'MoMoRef', - 'fanmodules': 'list[MoMoRef]', - 'generic_inventory_holders': 'list[MoMoRef]', - 'locator_led': 'MoMoRef', - 'psus': 'list[MoMoRef]', - 'registered_device': 'MoMoRef', - 'sas_expanders': 'list[MoMoRef]', + 'adapters': 'list[AdapterUnitRef]', + 'biosunits': 'list[BiosUnitRef]', + 'bmc': 'ManagementControllerRef', + 'board': 'ComputeBoardRef', + 'fanmodules': 'list[EquipmentFanModuleRef]', + 'generic_inventory_holders': 'list[InventoryGenericInventoryHolderRef]', + 'locator_led': 'EquipmentLocatorLedRef', + 'pci_devices': 'list[PciDeviceRef]', + 'psus': 'list[EquipmentPsuRef]', + 'rack_enclosure_slot': 'EquipmentRackEnclosureSlotRef', + 'registered_device': 'AssetDeviceRegistrationRef', + 'sas_expanders': 'list[StorageSasExpanderRef]', 'server_id': 'int', - 'top_system': 'MoMoRef' + 'storage_enclosures': 'list[StorageEnclosureRef]', + 'top_system': 'TopSystemRef' } attribute_map = { @@ -91,6 +97,7 @@ class ComputeRackUnit(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -99,6 +106,7 @@ class ComputeRackUnit(object): 'serial': 'Serial', 'vendor': 'Vendor', 'admin_power_state': 'AdminPowerState', + 'asset_tag': 'AssetTag', 'available_memory': 'AvailableMemory', 'fault_summary': 'FaultSummary', 'kvm_ip_addresses': 'KvmIpAddresses', @@ -117,6 +125,7 @@ class ComputeRackUnit(object): 'presence': 'Presence', 'service_profile': 'ServiceProfile', 'total_memory': 'TotalMemory', + 'user_label': 'UserLabel', 'uuid': 'Uuid', 'adapters': 'Adapters', 'biosunits': 'Biosunits', @@ -125,14 +134,17 @@ class ComputeRackUnit(object): 'fanmodules': 'Fanmodules', 'generic_inventory_holders': 'GenericInventoryHolders', 'locator_led': 'LocatorLed', + 'pci_devices': 'PciDevices', 'psus': 'Psus', + 'rack_enclosure_slot': 'RackEnclosureSlot', 'registered_device': 'RegisteredDevice', 'sas_expanders': 'SasExpanders', 'server_id': 'ServerId', + 'storage_enclosures': 'StorageEnclosures', 'top_system': 'TopSystem' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, admin_power_state=None, available_memory=None, fault_summary=None, kvm_ip_addresses=None, memory_speed=None, num_adaptors=None, num_cpu_cores=None, num_cpu_cores_enabled=None, num_cpus=None, num_eth_host_interfaces=None, num_fc_host_interfaces=None, num_threads=None, oper_power_state=None, oper_state=None, operability=None, platform_type=None, presence=None, service_profile=None, total_memory=None, uuid=None, adapters=None, biosunits=None, bmc=None, board=None, fanmodules=None, generic_inventory_holders=None, locator_led=None, psus=None, registered_device=None, sas_expanders=None, server_id=None, top_system=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, admin_power_state=None, asset_tag=None, available_memory=None, fault_summary=None, kvm_ip_addresses=None, memory_speed=None, num_adaptors=None, num_cpu_cores=None, num_cpu_cores_enabled=None, num_cpus=None, num_eth_host_interfaces=None, num_fc_host_interfaces=None, num_threads=None, oper_power_state=None, oper_state=None, operability=None, platform_type=None, presence=None, service_profile=None, total_memory=None, user_label=None, uuid=None, adapters=None, biosunits=None, bmc=None, board=None, fanmodules=None, generic_inventory_holders=None, locator_led=None, pci_devices=None, psus=None, rack_enclosure_slot=None, registered_device=None, sas_expanders=None, server_id=None, storage_enclosures=None, top_system=None): """ ComputeRackUnit - a model defined in Swagger """ @@ -146,6 +158,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -154,6 +167,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._serial = None self._vendor = None self._admin_power_state = None + self._asset_tag = None self._available_memory = None self._fault_summary = None self._kvm_ip_addresses = None @@ -172,6 +186,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._presence = None self._service_profile = None self._total_memory = None + self._user_label = None self._uuid = None self._adapters = None self._biosunits = None @@ -180,10 +195,13 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._fanmodules = None self._generic_inventory_holders = None self._locator_led = None + self._pci_devices = None self._psus = None + self._rack_enclosure_slot = None self._registered_device = None self._sas_expanders = None self._server_id = None + self._storage_enclosures = None self._top_system = None if account_moid is not None: @@ -204,6 +222,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -220,6 +240,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.vendor = vendor if admin_power_state is not None: self.admin_power_state = admin_power_state + if asset_tag is not None: + self.asset_tag = asset_tag if available_memory is not None: self.available_memory = available_memory if fault_summary is not None: @@ -256,6 +278,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.service_profile = service_profile if total_memory is not None: self.total_memory = total_memory + if user_label is not None: + self.user_label = user_label if uuid is not None: self.uuid = uuid if adapters is not None: @@ -272,14 +296,20 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.generic_inventory_holders = generic_inventory_holders if locator_led is not None: self.locator_led = locator_led + if pci_devices is not None: + self.pci_devices = pci_devices if psus is not None: self.psus = psus + if rack_enclosure_slot is not None: + self.rack_enclosure_slot = rack_enclosure_slot if registered_device is not None: self.registered_device = registered_device if sas_expanders is not None: self.sas_expanders = sas_expanders if server_id is not None: self.server_id = server_id + if storage_enclosures is not None: + self.storage_enclosures = storage_enclosures if top_system is not None: self.top_system = top_system @@ -313,7 +343,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ComputeRackUnit. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -324,7 +354,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ComputeRackUnit. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -451,7 +481,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ComputeRackUnit. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -462,7 +492,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ComputeRackUnit. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -471,7 +501,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this ComputeRackUnit. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this ComputeRackUnit. :rtype: list[MoTag] @@ -482,7 +512,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this ComputeRackUnit. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this ComputeRackUnit. :type: list[MoTag] @@ -490,6 +520,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this ComputeRackUnit. + The versioning info for this managed object + + :return: The version_context of this ComputeRackUnit. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this ComputeRackUnit. + The versioning info for this managed object + + :param version_context: The version_context of this ComputeRackUnit. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -658,6 +711,27 @@ def admin_power_state(self, admin_power_state): self._admin_power_state = admin_power_state + @property + def asset_tag(self): + """ + Gets the asset_tag of this ComputeRackUnit. + + :return: The asset_tag of this ComputeRackUnit. + :rtype: str + """ + return self._asset_tag + + @asset_tag.setter + def asset_tag(self, asset_tag): + """ + Sets the asset_tag of this ComputeRackUnit. + + :param asset_tag: The asset_tag of this ComputeRackUnit. + :type: str + """ + + self._asset_tag = asset_tag + @property def available_memory(self): """ @@ -1036,6 +1110,27 @@ def total_memory(self, total_memory): self._total_memory = total_memory + @property + def user_label(self): + """ + Gets the user_label of this ComputeRackUnit. + + :return: The user_label of this ComputeRackUnit. + :rtype: str + """ + return self._user_label + + @user_label.setter + def user_label(self, user_label): + """ + Sets the user_label of this ComputeRackUnit. + + :param user_label: The user_label of this ComputeRackUnit. + :type: str + """ + + self._user_label = user_label + @property def uuid(self): """ @@ -1063,7 +1158,7 @@ def adapters(self): Gets the adapters of this ComputeRackUnit. :return: The adapters of this ComputeRackUnit. - :rtype: list[MoMoRef] + :rtype: list[AdapterUnitRef] """ return self._adapters @@ -1073,7 +1168,7 @@ def adapters(self, adapters): Sets the adapters of this ComputeRackUnit. :param adapters: The adapters of this ComputeRackUnit. - :type: list[MoMoRef] + :type: list[AdapterUnitRef] """ self._adapters = adapters @@ -1084,7 +1179,7 @@ def biosunits(self): Gets the biosunits of this ComputeRackUnit. :return: The biosunits of this ComputeRackUnit. - :rtype: list[MoMoRef] + :rtype: list[BiosUnitRef] """ return self._biosunits @@ -1094,7 +1189,7 @@ def biosunits(self, biosunits): Sets the biosunits of this ComputeRackUnit. :param biosunits: The biosunits of this ComputeRackUnit. - :type: list[MoMoRef] + :type: list[BiosUnitRef] """ self._biosunits = biosunits @@ -1105,7 +1200,7 @@ def bmc(self): Gets the bmc of this ComputeRackUnit. :return: The bmc of this ComputeRackUnit. - :rtype: MoMoRef + :rtype: ManagementControllerRef """ return self._bmc @@ -1115,7 +1210,7 @@ def bmc(self, bmc): Sets the bmc of this ComputeRackUnit. :param bmc: The bmc of this ComputeRackUnit. - :type: MoMoRef + :type: ManagementControllerRef """ self._bmc = bmc @@ -1126,7 +1221,7 @@ def board(self): Gets the board of this ComputeRackUnit. :return: The board of this ComputeRackUnit. - :rtype: MoMoRef + :rtype: ComputeBoardRef """ return self._board @@ -1136,7 +1231,7 @@ def board(self, board): Sets the board of this ComputeRackUnit. :param board: The board of this ComputeRackUnit. - :type: MoMoRef + :type: ComputeBoardRef """ self._board = board @@ -1147,7 +1242,7 @@ def fanmodules(self): Gets the fanmodules of this ComputeRackUnit. :return: The fanmodules of this ComputeRackUnit. - :rtype: list[MoMoRef] + :rtype: list[EquipmentFanModuleRef] """ return self._fanmodules @@ -1157,7 +1252,7 @@ def fanmodules(self, fanmodules): Sets the fanmodules of this ComputeRackUnit. :param fanmodules: The fanmodules of this ComputeRackUnit. - :type: list[MoMoRef] + :type: list[EquipmentFanModuleRef] """ self._fanmodules = fanmodules @@ -1168,7 +1263,7 @@ def generic_inventory_holders(self): Gets the generic_inventory_holders of this ComputeRackUnit. :return: The generic_inventory_holders of this ComputeRackUnit. - :rtype: list[MoMoRef] + :rtype: list[InventoryGenericInventoryHolderRef] """ return self._generic_inventory_holders @@ -1178,7 +1273,7 @@ def generic_inventory_holders(self, generic_inventory_holders): Sets the generic_inventory_holders of this ComputeRackUnit. :param generic_inventory_holders: The generic_inventory_holders of this ComputeRackUnit. - :type: list[MoMoRef] + :type: list[InventoryGenericInventoryHolderRef] """ self._generic_inventory_holders = generic_inventory_holders @@ -1189,7 +1284,7 @@ def locator_led(self): Gets the locator_led of this ComputeRackUnit. :return: The locator_led of this ComputeRackUnit. - :rtype: MoMoRef + :rtype: EquipmentLocatorLedRef """ return self._locator_led @@ -1199,18 +1294,39 @@ def locator_led(self, locator_led): Sets the locator_led of this ComputeRackUnit. :param locator_led: The locator_led of this ComputeRackUnit. - :type: MoMoRef + :type: EquipmentLocatorLedRef """ self._locator_led = locator_led + @property + def pci_devices(self): + """ + Gets the pci_devices of this ComputeRackUnit. + + :return: The pci_devices of this ComputeRackUnit. + :rtype: list[PciDeviceRef] + """ + return self._pci_devices + + @pci_devices.setter + def pci_devices(self, pci_devices): + """ + Sets the pci_devices of this ComputeRackUnit. + + :param pci_devices: The pci_devices of this ComputeRackUnit. + :type: list[PciDeviceRef] + """ + + self._pci_devices = pci_devices + @property def psus(self): """ Gets the psus of this ComputeRackUnit. :return: The psus of this ComputeRackUnit. - :rtype: list[MoMoRef] + :rtype: list[EquipmentPsuRef] """ return self._psus @@ -1220,18 +1336,39 @@ def psus(self, psus): Sets the psus of this ComputeRackUnit. :param psus: The psus of this ComputeRackUnit. - :type: list[MoMoRef] + :type: list[EquipmentPsuRef] """ self._psus = psus + @property + def rack_enclosure_slot(self): + """ + Gets the rack_enclosure_slot of this ComputeRackUnit. + + :return: The rack_enclosure_slot of this ComputeRackUnit. + :rtype: EquipmentRackEnclosureSlotRef + """ + return self._rack_enclosure_slot + + @rack_enclosure_slot.setter + def rack_enclosure_slot(self, rack_enclosure_slot): + """ + Sets the rack_enclosure_slot of this ComputeRackUnit. + + :param rack_enclosure_slot: The rack_enclosure_slot of this ComputeRackUnit. + :type: EquipmentRackEnclosureSlotRef + """ + + self._rack_enclosure_slot = rack_enclosure_slot + @property def registered_device(self): """ Gets the registered_device of this ComputeRackUnit. :return: The registered_device of this ComputeRackUnit. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -1241,7 +1378,7 @@ def registered_device(self, registered_device): Sets the registered_device of this ComputeRackUnit. :param registered_device: The registered_device of this ComputeRackUnit. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -1252,7 +1389,7 @@ def sas_expanders(self): Gets the sas_expanders of this ComputeRackUnit. :return: The sas_expanders of this ComputeRackUnit. - :rtype: list[MoMoRef] + :rtype: list[StorageSasExpanderRef] """ return self._sas_expanders @@ -1262,7 +1399,7 @@ def sas_expanders(self, sas_expanders): Sets the sas_expanders of this ComputeRackUnit. :param sas_expanders: The sas_expanders of this ComputeRackUnit. - :type: list[MoMoRef] + :type: list[StorageSasExpanderRef] """ self._sas_expanders = sas_expanders @@ -1288,13 +1425,34 @@ def server_id(self, server_id): self._server_id = server_id + @property + def storage_enclosures(self): + """ + Gets the storage_enclosures of this ComputeRackUnit. + + :return: The storage_enclosures of this ComputeRackUnit. + :rtype: list[StorageEnclosureRef] + """ + return self._storage_enclosures + + @storage_enclosures.setter + def storage_enclosures(self, storage_enclosures): + """ + Sets the storage_enclosures of this ComputeRackUnit. + + :param storage_enclosures: The storage_enclosures of this ComputeRackUnit. + :type: list[StorageEnclosureRef] + """ + + self._storage_enclosures = storage_enclosures + @property def top_system(self): """ Gets the top_system of this ComputeRackUnit. :return: The top_system of this ComputeRackUnit. - :rtype: MoMoRef + :rtype: TopSystemRef """ return self._top_system @@ -1304,7 +1462,7 @@ def top_system(self, top_system): Sets the top_system of this ComputeRackUnit. :param top_system: The top_system of this ComputeRackUnit. - :type: MoMoRef + :type: TopSystemRef """ self._top_system = top_system diff --git a/intersight/models/compute_rack_unit_list.py b/intersight/models/compute_rack_unit_list.py index 212eec27..c3bb6fb7 100644 --- a/intersight/models/compute_rack_unit_list.py +++ b/intersight/models/compute_rack_unit_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/compute_rack_unit_ref.py b/intersight/models/compute_rack_unit_ref.py new file mode 100644 index 00000000..61c112db --- /dev/null +++ b/intersight/models/compute_rack_unit_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputeRackUnitRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputeRackUnitRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputeRackUnitRef. + + :return: The moid of this ComputeRackUnitRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputeRackUnitRef. + + :param moid: The moid of this ComputeRackUnitRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputeRackUnitRef. + + :return: The object_type of this ComputeRackUnitRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputeRackUnitRef. + + :param object_type: The object_type of this ComputeRackUnitRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputeRackUnitRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_server_config.py b/intersight/models/compute_server_config.py index 72ca5a00..27e7f9a7 100644 --- a/intersight/models/compute_server_config.py +++ b/intersight/models/compute_server_config.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/compute_server_config_ref.py b/intersight/models/compute_server_config_ref.py new file mode 100644 index 00000000..1bce23c2 --- /dev/null +++ b/intersight/models/compute_server_config_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputeServerConfigRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputeServerConfigRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputeServerConfigRef. + + :return: The moid of this ComputeServerConfigRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputeServerConfigRef. + + :param moid: The moid of this ComputeServerConfigRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputeServerConfigRef. + + :return: The object_type of this ComputeServerConfigRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputeServerConfigRef. + + :param object_type: The object_type of this ComputeServerConfigRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputeServerConfigRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_server_operation_task_ref.py b/intersight/models/compute_server_operation_task_ref.py new file mode 100644 index 00000000..e8930217 --- /dev/null +++ b/intersight/models/compute_server_operation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputeServerOperationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputeServerOperationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputeServerOperationTaskRef. + + :return: The moid of this ComputeServerOperationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputeServerOperationTaskRef. + + :param moid: The moid of this ComputeServerOperationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputeServerOperationTaskRef. + + :return: The object_type of this ComputeServerOperationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputeServerOperationTaskRef. + + :param object_type: The object_type of this ComputeServerOperationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputeServerOperationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/compute_server_setting.py b/intersight/models/compute_server_setting.py index 5f83c510..38b03b0c 100644 --- a/intersight/models/compute_server_setting.py +++ b/intersight/models/compute_server_setting.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,23 +32,24 @@ class ComputeServerSetting(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', 'admin_locator_led_state': 'str', 'admin_power_state': 'str', 'config_state': 'str', - 'locator_led': 'MoMoRef', - 'registered_device': 'MoMoRef', - 'server': 'MoMoRef', + 'locator_led': 'EquipmentLocatorLedRef', + 'registered_device': 'AssetDeviceRegistrationRef', + 'server': 'ComputeRackUnitRef', 'server_config': 'ComputeServerConfig' } @@ -62,6 +63,7 @@ class ComputeServerSetting(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -74,7 +76,7 @@ class ComputeServerSetting(object): 'server_config': 'ServerConfig' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, admin_locator_led_state='None', admin_power_state='Policy', config_state='Applied', locator_led=None, registered_device=None, server=None, server_config=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, admin_locator_led_state='None', admin_power_state='Policy', config_state='Applied', locator_led=None, registered_device=None, server=None, server_config=None): """ ComputeServerSetting - a model defined in Swagger """ @@ -88,6 +90,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -117,6 +120,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -168,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ComputeServerSetting. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -179,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ComputeServerSetting. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -306,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ComputeServerSetting. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -317,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ComputeServerSetting. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -326,7 +331,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this ComputeServerSetting. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this ComputeServerSetting. :rtype: list[MoTag] @@ -337,7 +342,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this ComputeServerSetting. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this ComputeServerSetting. :type: list[MoTag] @@ -345,6 +350,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this ComputeServerSetting. + The versioning info for this managed object + + :return: The version_context of this ComputeServerSetting. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this ComputeServerSetting. + The versioning info for this managed object + + :param version_context: The version_context of this ComputeServerSetting. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -428,7 +456,7 @@ def admin_locator_led_state(self, admin_locator_led_state): :param admin_locator_led_state: The admin_locator_led_state of this ComputeServerSetting. :type: str """ - allowed_values = ["None"] + allowed_values = ["None", "On", "Off"] if admin_locator_led_state not in allowed_values: raise ValueError( "Invalid value for `admin_locator_led_state` ({0}), must be one of {1}" @@ -502,7 +530,7 @@ def locator_led(self): This relation stores a reference to locator LED MO of this server :return: The locator_led of this ComputeServerSetting. - :rtype: MoMoRef + :rtype: EquipmentLocatorLedRef """ return self._locator_led @@ -513,7 +541,7 @@ def locator_led(self, locator_led): This relation stores a reference to locator LED MO of this server :param locator_led: The locator_led of this ComputeServerSetting. - :type: MoMoRef + :type: EquipmentLocatorLedRef """ self._locator_led = locator_led @@ -525,7 +553,7 @@ def registered_device(self): This relation stores the device end point from which this server was discovered :return: The registered_device of this ComputeServerSetting. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -536,7 +564,7 @@ def registered_device(self, registered_device): This relation stores the device end point from which this server was discovered :param registered_device: The registered_device of this ComputeServerSetting. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -547,7 +575,7 @@ def server(self): Gets the server of this ComputeServerSetting. :return: The server of this ComputeServerSetting. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._server @@ -557,7 +585,7 @@ def server(self, server): Sets the server of this ComputeServerSetting. :param server: The server of this ComputeServerSetting. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._server = server diff --git a/intersight/models/compute_server_setting_list.py b/intersight/models/compute_server_setting_list.py index b6d8fd9b..b58270eb 100644 --- a/intersight/models/compute_server_setting_list.py +++ b/intersight/models/compute_server_setting_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/compute_server_setting_ref.py b/intersight/models/compute_server_setting_ref.py new file mode 100644 index 00000000..2c369c91 --- /dev/null +++ b/intersight/models/compute_server_setting_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ComputeServerSettingRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ComputeServerSettingRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ComputeServerSettingRef. + + :return: The moid of this ComputeServerSettingRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ComputeServerSettingRef. + + :param moid: The moid of this ComputeServerSettingRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ComputeServerSettingRef. + + :return: The object_type of this ComputeServerSettingRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ComputeServerSettingRef. + + :param object_type: The object_type of this ComputeServerSettingRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ComputeServerSettingRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/cond_alarm.py b/intersight/models/cond_alarm.py index 3f63f374..f59b2fd2 100644 --- a/intersight/models/cond_alarm.py +++ b/intersight/models/cond_alarm.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class CondAlarm(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'affected_mo_id': 'str', 'affected_mo_type': 'str', 'affected_object': 'str', @@ -52,7 +53,7 @@ class CondAlarm(object): 'ms_affected_object': 'str', 'name': 'str', 'orig_severity': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'severity': 'str' } @@ -66,6 +67,7 @@ class CondAlarm(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'affected_mo_id': 'AffectedMoId', 'affected_mo_type': 'AffectedMoType', 'affected_object': 'AffectedObject', @@ -82,7 +84,7 @@ class CondAlarm(object): 'severity': 'Severity' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, affected_mo_id=None, affected_mo_type=None, affected_object=None, ancestor_mo_id=None, ancestor_mo_type=None, code=None, creation_time=None, description=None, last_transition_time=None, ms_affected_object=None, name=None, orig_severity=None, registered_device=None, severity=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, affected_mo_id=None, affected_mo_type=None, affected_object=None, ancestor_mo_id=None, ancestor_mo_type=None, code=None, creation_time=None, description=None, last_transition_time=None, ms_affected_object=None, name=None, orig_severity='None', registered_device=None, severity='None'): """ CondAlarm - a model defined in Swagger """ @@ -96,6 +98,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._affected_mo_id = None self._affected_mo_type = None self._affected_object = None @@ -129,6 +132,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if affected_mo_id is not None: self.affected_mo_id = affected_mo_id if affected_mo_type is not None: @@ -188,7 +193,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this CondAlarm. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -199,7 +204,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this CondAlarm. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -326,7 +331,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this CondAlarm. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -337,7 +342,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this CondAlarm. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -346,7 +351,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this CondAlarm. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this CondAlarm. :rtype: list[MoTag] @@ -357,7 +362,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this CondAlarm. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this CondAlarm. :type: list[MoTag] @@ -365,6 +370,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this CondAlarm. + The versioning info for this managed object + + :return: The version_context of this CondAlarm. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this CondAlarm. + The versioning info for this managed object + + :param version_context: The version_context of this CondAlarm. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def affected_mo_id(self): """ @@ -638,6 +666,12 @@ def orig_severity(self, orig_severity): :param orig_severity: The orig_severity of this CondAlarm. :type: str """ + allowed_values = ["None", "Info", "Critical", "Warning", "Cleared"] + if orig_severity not in allowed_values: + raise ValueError( + "Invalid value for `orig_severity` ({0}), must be one of {1}" + .format(orig_severity, allowed_values) + ) self._orig_severity = orig_severity @@ -648,7 +682,7 @@ def registered_device(self): Relationship to set accountMoid on Alarms. With \"onpeerdelete\" set to \"cascade\", Alarms get deleted when the associated registered device is deleted. :return: The registered_device of this CondAlarm. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -659,7 +693,7 @@ def registered_device(self, registered_device): Relationship to set accountMoid on Alarms. With \"onpeerdelete\" set to \"cascade\", Alarms get deleted when the associated registered device is deleted. :param registered_device: The registered_device of this CondAlarm. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -684,6 +718,12 @@ def severity(self, severity): :param severity: The severity of this CondAlarm. :type: str """ + allowed_values = ["None", "Info", "Critical", "Warning", "Cleared"] + if severity not in allowed_values: + raise ValueError( + "Invalid value for `severity` ({0}), must be one of {1}" + .format(severity, allowed_values) + ) self._severity = severity diff --git a/intersight/models/cond_alarm_list.py b/intersight/models/cond_alarm_list.py index 9ca95cd1..ff28a367 100644 --- a/intersight/models/cond_alarm_list.py +++ b/intersight/models/cond_alarm_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/cond_alarm_ref.py b/intersight/models/cond_alarm_ref.py new file mode 100644 index 00000000..c548d834 --- /dev/null +++ b/intersight/models/cond_alarm_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CondAlarmRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CondAlarmRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CondAlarmRef. + + :return: The moid of this CondAlarmRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CondAlarmRef. + + :param moid: The moid of this CondAlarmRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CondAlarmRef. + + :return: The object_type of this CondAlarmRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CondAlarmRef. + + :param object_type: The object_type of this CondAlarmRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CondAlarmRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/cond_hcl_status.py b/intersight/models/cond_hcl_status.py index 639f4172..5df2e395 100644 --- a/intersight/models/cond_hcl_status.py +++ b/intersight/models/cond_hcl_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,26 +32,29 @@ class CondHclStatus(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'details': 'list[MoMoRef]', + 'version_context': 'MoVersionContext', + 'details': 'list[CondHclStatusDetailRef]', + 'hcl_firmware_version': 'str', 'hcl_model': 'str', 'hcl_os_vendor': 'str', 'hcl_os_version': 'str', 'hcl_processor': 'str', + 'inv_firmware_version': 'str', 'inv_model': 'str', 'inv_os_vendor': 'str', 'inv_os_version': 'str', 'inv_processor': 'str', - 'managed_object': 'MoMoRef', + 'managed_object': 'InventoryBaseRef', 'reason': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'status': 'str' } @@ -65,11 +68,14 @@ class CondHclStatus(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'details': 'Details', + 'hcl_firmware_version': 'HclFirmwareVersion', 'hcl_model': 'HclModel', 'hcl_os_vendor': 'HclOsVendor', 'hcl_os_version': 'HclOsVersion', 'hcl_processor': 'HclProcessor', + 'inv_firmware_version': 'InvFirmwareVersion', 'inv_model': 'InvModel', 'inv_os_vendor': 'InvOsVendor', 'inv_os_version': 'InvOsVersion', @@ -80,7 +86,7 @@ class CondHclStatus(object): 'status': 'Status' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, details=None, hcl_model=None, hcl_os_vendor=None, hcl_os_version=None, hcl_processor=None, inv_model=None, inv_os_vendor=None, inv_os_version=None, inv_processor=None, managed_object=None, reason=None, registered_device=None, status=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, details=None, hcl_firmware_version=None, hcl_model=None, hcl_os_vendor=None, hcl_os_version=None, hcl_processor=None, inv_firmware_version=None, inv_model=None, inv_os_vendor=None, inv_os_version=None, inv_processor=None, managed_object=None, reason='Missing-Os-Info', registered_device=None, status='Incomplete'): """ CondHclStatus - a model defined in Swagger """ @@ -94,11 +100,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._details = None + self._hcl_firmware_version = None self._hcl_model = None self._hcl_os_vendor = None self._hcl_os_version = None self._hcl_processor = None + self._inv_firmware_version = None self._inv_model = None self._inv_os_vendor = None self._inv_os_version = None @@ -126,8 +135,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if details is not None: self.details = details + if hcl_firmware_version is not None: + self.hcl_firmware_version = hcl_firmware_version if hcl_model is not None: self.hcl_model = hcl_model if hcl_os_vendor is not None: @@ -136,6 +149,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.hcl_os_version = hcl_os_version if hcl_processor is not None: self.hcl_processor = hcl_processor + if inv_firmware_version is not None: + self.inv_firmware_version = inv_firmware_version if inv_model is not None: self.inv_model = inv_model if inv_os_vendor is not None: @@ -183,7 +198,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this CondHclStatus. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -194,7 +209,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this CondHclStatus. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -321,7 +336,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this CondHclStatus. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -332,7 +347,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this CondHclStatus. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -341,7 +356,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this CondHclStatus. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this CondHclStatus. :rtype: list[MoTag] @@ -352,7 +367,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this CondHclStatus. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this CondHclStatus. :type: list[MoTag] @@ -360,6 +375,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this CondHclStatus. + The versioning info for this managed object + + :return: The version_context of this CondHclStatus. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this CondHclStatus. + The versioning info for this managed object + + :param version_context: The version_context of this CondHclStatus. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def details(self): """ @@ -367,7 +405,7 @@ def details(self): a collection of all the HclStatusDetails :return: The details of this CondHclStatus. - :rtype: list[MoMoRef] + :rtype: list[CondHclStatusDetailRef] """ return self._details @@ -378,11 +416,34 @@ def details(self, details): a collection of all the HclStatusDetails :param details: The details of this CondHclStatus. - :type: list[MoMoRef] + :type: list[CondHclStatusDetailRef] """ self._details = details + @property + def hcl_firmware_version(self): + """ + Gets the hcl_firmware_version of this CondHclStatus. + the current CIMC version for the server normalized for querying HCL data + + :return: The hcl_firmware_version of this CondHclStatus. + :rtype: str + """ + return self._hcl_firmware_version + + @hcl_firmware_version.setter + def hcl_firmware_version(self, hcl_firmware_version): + """ + Sets the hcl_firmware_version of this CondHclStatus. + the current CIMC version for the server normalized for querying HCL data + + :param hcl_firmware_version: The hcl_firmware_version of this CondHclStatus. + :type: str + """ + + self._hcl_firmware_version = hcl_firmware_version + @property def hcl_model(self): """ @@ -475,6 +536,29 @@ def hcl_processor(self, hcl_processor): self._hcl_processor = hcl_processor + @property + def inv_firmware_version(self): + """ + Gets the inv_firmware_version of this CondHclStatus. + the current CIMC version for the server as received from inventory + + :return: The inv_firmware_version of this CondHclStatus. + :rtype: str + """ + return self._inv_firmware_version + + @inv_firmware_version.setter + def inv_firmware_version(self, inv_firmware_version): + """ + Sets the inv_firmware_version of this CondHclStatus. + the current CIMC version for the server as received from inventory + + :param inv_firmware_version: The inv_firmware_version of this CondHclStatus. + :type: str + """ + + self._inv_firmware_version = inv_firmware_version + @property def inv_model(self): """ @@ -574,7 +658,7 @@ def managed_object(self): specifies the managed object for which this HCLStatus applies :return: The managed_object of this CondHclStatus. - :rtype: MoMoRef + :rtype: InventoryBaseRef """ return self._managed_object @@ -585,7 +669,7 @@ def managed_object(self, managed_object): specifies the managed object for which this HCLStatus applies :param managed_object: The managed_object of this CondHclStatus. - :type: MoMoRef + :type: InventoryBaseRef """ self._managed_object = managed_object @@ -610,6 +694,12 @@ def reason(self, reason): :param reason: The reason of this CondHclStatus. :type: str """ + allowed_values = ["Missing-Os-Info", "Incompatible-Components", "Compatible"] + if reason not in allowed_values: + raise ValueError( + "Invalid value for `reason` ({0}), must be one of {1}" + .format(reason, allowed_values) + ) self._reason = reason @@ -620,7 +710,7 @@ def registered_device(self): Relationship to the registered device. We need this in order to correctly set permissions during device claim :return: The registered_device of this CondHclStatus. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -631,7 +721,7 @@ def registered_device(self, registered_device): Relationship to the registered device. We need this in order to correctly set permissions during device claim :param registered_device: The registered_device of this CondHclStatus. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -656,6 +746,12 @@ def status(self, status): :param status: The status of this CondHclStatus. :type: str """ + allowed_values = ["Incomplete", "Not-Found", "Validated"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) self._status = status diff --git a/intersight/models/cond_hcl_status_action.py b/intersight/models/cond_hcl_status_action.py deleted file mode 100644 index 96fde22d..00000000 --- a/intersight/models/cond_hcl_status_action.py +++ /dev/null @@ -1,599 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class CondHclStatusAction(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', - 'create_time': 'datetime', - 'mod_time': 'datetime', - 'moid': 'str', - 'object_type': 'str', - 'owners': 'list[str]', - 'parent': 'MoMoRef', - 'tags': 'list[MoTag]', - 'cimc_version': 'str', - 'component': 'MoMoRef', - 'description': 'str', - 'driver_name': 'str', - 'driver_version': 'str', - 'firmware_version': 'str', - 'hcl_status_detail': 'MoMoRef', - 'model': 'str', - 'type': 'str' - } - - attribute_map = { - 'account_moid': 'AccountMoid', - 'ancestors': 'Ancestors', - 'create_time': 'CreateTime', - 'mod_time': 'ModTime', - 'moid': 'Moid', - 'object_type': 'ObjectType', - 'owners': 'Owners', - 'parent': 'Parent', - 'tags': 'Tags', - 'cimc_version': 'CimcVersion', - 'component': 'Component', - 'description': 'Description', - 'driver_name': 'DriverName', - 'driver_version': 'DriverVersion', - 'firmware_version': 'FirmwareVersion', - 'hcl_status_detail': 'HclStatusDetail', - 'model': 'Model', - 'type': 'Type' - } - - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, cimc_version=None, component=None, description=None, driver_name=None, driver_version=None, firmware_version=None, hcl_status_detail=None, model=None, type=None): - """ - CondHclStatusAction - a model defined in Swagger - """ - - self._account_moid = None - self._ancestors = None - self._create_time = None - self._mod_time = None - self._moid = None - self._object_type = None - self._owners = None - self._parent = None - self._tags = None - self._cimc_version = None - self._component = None - self._description = None - self._driver_name = None - self._driver_version = None - self._firmware_version = None - self._hcl_status_detail = None - self._model = None - self._type = None - - if account_moid is not None: - self.account_moid = account_moid - if ancestors is not None: - self.ancestors = ancestors - if create_time is not None: - self.create_time = create_time - if mod_time is not None: - self.mod_time = mod_time - if moid is not None: - self.moid = moid - if object_type is not None: - self.object_type = object_type - if owners is not None: - self.owners = owners - if parent is not None: - self.parent = parent - if tags is not None: - self.tags = tags - if cimc_version is not None: - self.cimc_version = cimc_version - if component is not None: - self.component = component - if description is not None: - self.description = description - if driver_name is not None: - self.driver_name = driver_name - if driver_version is not None: - self.driver_version = driver_version - if firmware_version is not None: - self.firmware_version = firmware_version - if hcl_status_detail is not None: - self.hcl_status_detail = hcl_status_detail - if model is not None: - self.model = model - if type is not None: - self.type = type - - @property - def account_moid(self): - """ - Gets the account_moid of this CondHclStatusAction. - The Account ID for this managed object. - - :return: The account_moid of this CondHclStatusAction. - :rtype: str - """ - return self._account_moid - - @account_moid.setter - def account_moid(self, account_moid): - """ - Sets the account_moid of this CondHclStatusAction. - The Account ID for this managed object. - - :param account_moid: The account_moid of this CondHclStatusAction. - :type: str - """ - - self._account_moid = account_moid - - @property - def ancestors(self): - """ - Gets the ancestors of this CondHclStatusAction. - Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - - :return: The ancestors of this CondHclStatusAction. - :rtype: list[MoMoRef] - """ - return self._ancestors - - @ancestors.setter - def ancestors(self, ancestors): - """ - Sets the ancestors of this CondHclStatusAction. - Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - - :param ancestors: The ancestors of this CondHclStatusAction. - :type: list[MoMoRef] - """ - - self._ancestors = ancestors - - @property - def create_time(self): - """ - Gets the create_time of this CondHclStatusAction. - The time when this managed object was created. - - :return: The create_time of this CondHclStatusAction. - :rtype: datetime - """ - return self._create_time - - @create_time.setter - def create_time(self, create_time): - """ - Sets the create_time of this CondHclStatusAction. - The time when this managed object was created. - - :param create_time: The create_time of this CondHclStatusAction. - :type: datetime - """ - - self._create_time = create_time - - @property - def mod_time(self): - """ - Gets the mod_time of this CondHclStatusAction. - The time when this managed object was last modified. - - :return: The mod_time of this CondHclStatusAction. - :rtype: datetime - """ - return self._mod_time - - @mod_time.setter - def mod_time(self, mod_time): - """ - Sets the mod_time of this CondHclStatusAction. - The time when this managed object was last modified. - - :param mod_time: The mod_time of this CondHclStatusAction. - :type: datetime - """ - - self._mod_time = mod_time - - @property - def moid(self): - """ - Gets the moid of this CondHclStatusAction. - A unique identifier of this Managed Object instance. - - :return: The moid of this CondHclStatusAction. - :rtype: str - """ - return self._moid - - @moid.setter - def moid(self, moid): - """ - Sets the moid of this CondHclStatusAction. - A unique identifier of this Managed Object instance. - - :param moid: The moid of this CondHclStatusAction. - :type: str - """ - - self._moid = moid - - @property - def object_type(self): - """ - Gets the object_type of this CondHclStatusAction. - The fully-qualified type of this managed object, e.g. the class name. - - :return: The object_type of this CondHclStatusAction. - :rtype: str - """ - return self._object_type - - @object_type.setter - def object_type(self, object_type): - """ - Sets the object_type of this CondHclStatusAction. - The fully-qualified type of this managed object, e.g. the class name. - - :param object_type: The object_type of this CondHclStatusAction. - :type: str - """ - - self._object_type = object_type - - @property - def owners(self): - """ - Gets the owners of this CondHclStatusAction. - An array of owners which represent effective ownership of this object. - - :return: The owners of this CondHclStatusAction. - :rtype: list[str] - """ - return self._owners - - @owners.setter - def owners(self, owners): - """ - Sets the owners of this CondHclStatusAction. - An array of owners which represent effective ownership of this object. - - :param owners: The owners of this CondHclStatusAction. - :type: list[str] - """ - - self._owners = owners - - @property - def parent(self): - """ - Gets the parent of this CondHclStatusAction. - The direct ancestor of this managed object in the containment hierarchy. - - :return: The parent of this CondHclStatusAction. - :rtype: MoMoRef - """ - return self._parent - - @parent.setter - def parent(self, parent): - """ - Sets the parent of this CondHclStatusAction. - The direct ancestor of this managed object in the containment hierarchy. - - :param parent: The parent of this CondHclStatusAction. - :type: MoMoRef - """ - - self._parent = parent - - @property - def tags(self): - """ - Gets the tags of this CondHclStatusAction. - An array of tags, which allow to add key, value meta-data to managed objects. - - :return: The tags of this CondHclStatusAction. - :rtype: list[MoTag] - """ - return self._tags - - @tags.setter - def tags(self, tags): - """ - Sets the tags of this CondHclStatusAction. - An array of tags, which allow to add key, value meta-data to managed objects. - - :param tags: The tags of this CondHclStatusAction. - :type: list[MoTag] - """ - - self._tags = tags - - @property - def cimc_version(self): - """ - Gets the cimc_version of this CondHclStatusAction. - the recommended HCL cimcVersion version for the component. This could be the same version as the inventoried version, in this case the current cimc is already compliant and only the other non-compliant versions need to change - - :return: The cimc_version of this CondHclStatusAction. - :rtype: str - """ - return self._cimc_version - - @cimc_version.setter - def cimc_version(self, cimc_version): - """ - Sets the cimc_version of this CondHclStatusAction. - the recommended HCL cimcVersion version for the component. This could be the same version as the inventoried version, in this case the current cimc is already compliant and only the other non-compliant versions need to change - - :param cimc_version: The cimc_version of this CondHclStatusAction. - :type: str - """ - - self._cimc_version = cimc_version - - @property - def component(self): - """ - Gets the component of this CondHclStatusAction. - specifies the component associated with this HclStatusAction (adapter or storage controller) - - :return: The component of this CondHclStatusAction. - :rtype: MoMoRef - """ - return self._component - - @component.setter - def component(self, component): - """ - Sets the component of this CondHclStatusAction. - specifies the component associated with this HclStatusAction (adapter or storage controller) - - :param component: The component of this CondHclStatusAction. - :type: MoMoRef - """ - - self._component = component - - @property - def description(self): - """ - Gets the description of this CondHclStatusAction. - the description of the component action that could be performed to bring this component in a HCL validated state - - :return: The description of this CondHclStatusAction. - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """ - Sets the description of this CondHclStatusAction. - the description of the component action that could be performed to bring this component in a HCL validated state - - :param description: The description of this CondHclStatusAction. - :type: str - """ - - self._description = description - - @property - def driver_name(self): - """ - Gets the driver_name of this CondHclStatusAction. - the current driver name of the component we are validating as found in the HCL data - - :return: The driver_name of this CondHclStatusAction. - :rtype: str - """ - return self._driver_name - - @driver_name.setter - def driver_name(self, driver_name): - """ - Sets the driver_name of this CondHclStatusAction. - the current driver name of the component we are validating as found in the HCL data - - :param driver_name: The driver_name of this CondHclStatusAction. - :type: str - """ - - self._driver_name = driver_name - - @property - def driver_version(self): - """ - Gets the driver_version of this CondHclStatusAction. - the recommended HCL driver version for the component. This could be the same version as the inventoried version, in this case the current driver is already compliant and only the other non-compliant versions need to change - - :return: The driver_version of this CondHclStatusAction. - :rtype: str - """ - return self._driver_version - - @driver_version.setter - def driver_version(self, driver_version): - """ - Sets the driver_version of this CondHclStatusAction. - the recommended HCL driver version for the component. This could be the same version as the inventoried version, in this case the current driver is already compliant and only the other non-compliant versions need to change - - :param driver_version: The driver_version of this CondHclStatusAction. - :type: str - """ - - self._driver_version = driver_version - - @property - def firmware_version(self): - """ - Gets the firmware_version of this CondHclStatusAction. - the recommended HCL firmware version for the component. This could be the same version as the inventoried version, in this case the firmware is already compliant and only the other non-compliant versions need to change - - :return: The firmware_version of this CondHclStatusAction. - :rtype: str - """ - return self._firmware_version - - @firmware_version.setter - def firmware_version(self, firmware_version): - """ - Sets the firmware_version of this CondHclStatusAction. - the recommended HCL firmware version for the component. This could be the same version as the inventoried version, in this case the firmware is already compliant and only the other non-compliant versions need to change - - :param firmware_version: The firmware_version of this CondHclStatusAction. - :type: str - """ - - self._firmware_version = firmware_version - - @property - def hcl_status_detail(self): - """ - Gets the hcl_status_detail of this CondHclStatusAction. - - :return: The hcl_status_detail of this CondHclStatusAction. - :rtype: MoMoRef - """ - return self._hcl_status_detail - - @hcl_status_detail.setter - def hcl_status_detail(self, hcl_status_detail): - """ - Sets the hcl_status_detail of this CondHclStatusAction. - - :param hcl_status_detail: The hcl_status_detail of this CondHclStatusAction. - :type: MoMoRef - """ - - self._hcl_status_detail = hcl_status_detail - - @property - def model(self): - """ - Gets the model of this CondHclStatusAction. - The component model we are validating as received from inventory - - :return: The model of this CondHclStatusAction. - :rtype: str - """ - return self._model - - @model.setter - def model(self, model): - """ - Sets the model of this CondHclStatusAction. - The component model we are validating as received from inventory - - :param model: The model of this CondHclStatusAction. - :type: str - """ - - self._model = model - - @property - def type(self): - """ - Gets the type of this CondHclStatusAction. - the type of action required to achieve \"validated\" status for the HclStatusDetail. \"UPGRADE-FIRMWARE\" means a firmware update is required to the firmwareVersion listed here, \"UPGRADE-DRIVER\" means a driver update is required to the driverVersion listed here, \"UPGRADE-FIRMWARE-DRIVER\" means a firmware and driver update is required to the versions listed here, \"UPGRADE-CIMC\" means the current running CIMC version was not found in HCL data and this will likely require an upgrade of cimc, firmware and driver to the recommended versions shown here. - - :return: The type of this CondHclStatusAction. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this CondHclStatusAction. - the type of action required to achieve \"validated\" status for the HclStatusDetail. \"UPGRADE-FIRMWARE\" means a firmware update is required to the firmwareVersion listed here, \"UPGRADE-DRIVER\" means a driver update is required to the driverVersion listed here, \"UPGRADE-FIRMWARE-DRIVER\" means a firmware and driver update is required to the versions listed here, \"UPGRADE-CIMC\" means the current running CIMC version was not found in HCL data and this will likely require an upgrade of cimc, firmware and driver to the recommended versions shown here. - - :param type: The type of this CondHclStatusAction. - :type: str - """ - - self._type = type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, CondHclStatusAction): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/cond_hcl_status_detail.py b/intersight/models/cond_hcl_status_detail.py index adbc7483..7af3a072 100644 --- a/intersight/models/cond_hcl_status_detail.py +++ b/intersight/models/cond_hcl_status_detail.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,27 +32,27 @@ class CondHclStatusDetail(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'actions': 'list[MoMoRef]', - 'component': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'component': 'InventoryBaseRef', + 'hcl_cimc_version': 'str', 'hcl_driver_name': 'str', 'hcl_driver_version': 'str', 'hcl_firmware_version': 'str', 'hcl_model': 'str', - 'hcl_status': 'MoMoRef', - 'hcl_ucs_version': 'str', + 'hcl_status': 'CondHclStatusRef', + 'inv_cimc_version': 'str', 'inv_driver_name': 'str', 'inv_driver_version': 'str', 'inv_firmware_version': 'str', 'inv_model': 'str', - 'inv_ucs_version': 'str', 'reason': 'str', 'status': 'str' } @@ -67,24 +67,24 @@ class CondHclStatusDetail(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', - 'actions': 'Actions', + 'version_context': 'VersionContext', 'component': 'Component', + 'hcl_cimc_version': 'HclCimcVersion', 'hcl_driver_name': 'HclDriverName', 'hcl_driver_version': 'HclDriverVersion', 'hcl_firmware_version': 'HclFirmwareVersion', 'hcl_model': 'HclModel', 'hcl_status': 'HclStatus', - 'hcl_ucs_version': 'HclUcsVersion', + 'inv_cimc_version': 'InvCimcVersion', 'inv_driver_name': 'InvDriverName', 'inv_driver_version': 'InvDriverVersion', 'inv_firmware_version': 'InvFirmwareVersion', 'inv_model': 'InvModel', - 'inv_ucs_version': 'InvUcsVersion', 'reason': 'Reason', 'status': 'Status' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, actions=None, component=None, hcl_driver_name=None, hcl_driver_version=None, hcl_firmware_version=None, hcl_model=None, hcl_status=None, hcl_ucs_version=None, inv_driver_name=None, inv_driver_version=None, inv_firmware_version=None, inv_model=None, inv_ucs_version=None, reason=None, status=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, component=None, hcl_cimc_version=None, hcl_driver_name=None, hcl_driver_version=None, hcl_firmware_version=None, hcl_model=None, hcl_status=None, inv_cimc_version=None, inv_driver_name=None, inv_driver_version=None, inv_firmware_version=None, inv_model=None, reason='Missing-Os-Driver-Info', status='Incomplete'): """ CondHclStatusDetail - a model defined in Swagger """ @@ -98,19 +98,19 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None - self._actions = None + self._version_context = None self._component = None + self._hcl_cimc_version = None self._hcl_driver_name = None self._hcl_driver_version = None self._hcl_firmware_version = None self._hcl_model = None self._hcl_status = None - self._hcl_ucs_version = None + self._inv_cimc_version = None self._inv_driver_name = None self._inv_driver_version = None self._inv_firmware_version = None self._inv_model = None - self._inv_ucs_version = None self._reason = None self._status = None @@ -132,10 +132,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags - if actions is not None: - self.actions = actions + if version_context is not None: + self.version_context = version_context if component is not None: self.component = component + if hcl_cimc_version is not None: + self.hcl_cimc_version = hcl_cimc_version if hcl_driver_name is not None: self.hcl_driver_name = hcl_driver_name if hcl_driver_version is not None: @@ -146,8 +148,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.hcl_model = hcl_model if hcl_status is not None: self.hcl_status = hcl_status - if hcl_ucs_version is not None: - self.hcl_ucs_version = hcl_ucs_version + if inv_cimc_version is not None: + self.inv_cimc_version = inv_cimc_version if inv_driver_name is not None: self.inv_driver_name = inv_driver_name if inv_driver_version is not None: @@ -156,8 +158,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.inv_firmware_version = inv_firmware_version if inv_model is not None: self.inv_model = inv_model - if inv_ucs_version is not None: - self.inv_ucs_version = inv_ucs_version if reason is not None: self.reason = reason if status is not None: @@ -193,7 +193,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this CondHclStatusDetail. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -204,7 +204,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this CondHclStatusDetail. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -331,7 +331,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this CondHclStatusDetail. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -342,7 +342,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this CondHclStatusDetail. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -351,7 +351,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this CondHclStatusDetail. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this CondHclStatusDetail. :rtype: list[MoTag] @@ -362,7 +362,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this CondHclStatusDetail. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this CondHclStatusDetail. :type: list[MoTag] @@ -371,27 +371,27 @@ def tags(self, tags): self._tags = tags @property - def actions(self): + def version_context(self): """ - Gets the actions of this CondHclStatusDetail. - the HclStatusActions associated with this detail + Gets the version_context of this CondHclStatusDetail. + The versioning info for this managed object - :return: The actions of this CondHclStatusDetail. - :rtype: list[MoMoRef] + :return: The version_context of this CondHclStatusDetail. + :rtype: MoVersionContext """ - return self._actions + return self._version_context - @actions.setter - def actions(self, actions): + @version_context.setter + def version_context(self, version_context): """ - Sets the actions of this CondHclStatusDetail. - the HclStatusActions associated with this detail + Sets the version_context of this CondHclStatusDetail. + The versioning info for this managed object - :param actions: The actions of this CondHclStatusDetail. - :type: list[MoMoRef] + :param version_context: The version_context of this CondHclStatusDetail. + :type: MoVersionContext """ - self._actions = actions + self._version_context = version_context @property def component(self): @@ -400,7 +400,7 @@ def component(self): specifies the component associated to this status detail HclStatusDetail (adapter or storage controller) :return: The component of this CondHclStatusDetail. - :rtype: MoMoRef + :rtype: InventoryBaseRef """ return self._component @@ -411,11 +411,34 @@ def component(self, component): specifies the component associated to this status detail HclStatusDetail (adapter or storage controller) :param component: The component of this CondHclStatusDetail. - :type: MoMoRef + :type: InventoryBaseRef """ self._component = component + @property + def hcl_cimc_version(self): + """ + Gets the hcl_cimc_version of this CondHclStatusDetail. + the current CIMC version for the server normalized for querying HCL data + + :return: The hcl_cimc_version of this CondHclStatusDetail. + :rtype: str + """ + return self._hcl_cimc_version + + @hcl_cimc_version.setter + def hcl_cimc_version(self, hcl_cimc_version): + """ + Sets the hcl_cimc_version of this CondHclStatusDetail. + the current CIMC version for the server normalized for querying HCL data + + :param hcl_cimc_version: The hcl_cimc_version of this CondHclStatusDetail. + :type: str + """ + + self._hcl_cimc_version = hcl_cimc_version + @property def hcl_driver_name(self): """ @@ -514,7 +537,7 @@ def hcl_status(self): Gets the hcl_status of this CondHclStatusDetail. :return: The hcl_status of this CondHclStatusDetail. - :rtype: MoMoRef + :rtype: CondHclStatusRef """ return self._hcl_status @@ -524,33 +547,33 @@ def hcl_status(self, hcl_status): Sets the hcl_status of this CondHclStatusDetail. :param hcl_status: The hcl_status of this CondHclStatusDetail. - :type: MoMoRef + :type: CondHclStatusRef """ self._hcl_status = hcl_status @property - def hcl_ucs_version(self): + def inv_cimc_version(self): """ - Gets the hcl_ucs_version of this CondHclStatusDetail. - the current ucs version of the component model normalized for querying HCL data + Gets the inv_cimc_version of this CondHclStatusDetail. + the current CIMC version for the server as received from inventory - :return: The hcl_ucs_version of this CondHclStatusDetail. + :return: The inv_cimc_version of this CondHclStatusDetail. :rtype: str """ - return self._hcl_ucs_version + return self._inv_cimc_version - @hcl_ucs_version.setter - def hcl_ucs_version(self, hcl_ucs_version): + @inv_cimc_version.setter + def inv_cimc_version(self, inv_cimc_version): """ - Sets the hcl_ucs_version of this CondHclStatusDetail. - the current ucs version of the component model normalized for querying HCL data + Sets the inv_cimc_version of this CondHclStatusDetail. + the current CIMC version for the server as received from inventory - :param hcl_ucs_version: The hcl_ucs_version of this CondHclStatusDetail. + :param inv_cimc_version: The inv_cimc_version of this CondHclStatusDetail. :type: str """ - self._hcl_ucs_version = hcl_ucs_version + self._inv_cimc_version = inv_cimc_version @property def inv_driver_name(self): @@ -644,34 +667,11 @@ def inv_model(self, inv_model): self._inv_model = inv_model - @property - def inv_ucs_version(self): - """ - Gets the inv_ucs_version of this CondHclStatusDetail. - the current ucs version of the component model as received from inventory - - :return: The inv_ucs_version of this CondHclStatusDetail. - :rtype: str - """ - return self._inv_ucs_version - - @inv_ucs_version.setter - def inv_ucs_version(self, inv_ucs_version): - """ - Sets the inv_ucs_version of this CondHclStatusDetail. - the current ucs version of the component model as received from inventory - - :param inv_ucs_version: The inv_ucs_version of this CondHclStatusDetail. - :type: str - """ - - self._inv_ucs_version = inv_ucs_version - @property def reason(self): """ Gets the reason of this CondHclStatusDetail. - the reason for the status. The reason can be one of \"Incompatible-Server-Model\" - HCL validation has failed because the server model is not validated with this component \"Incompatible-Processor\" - HCL validation has failed because the processor is not validated with this component \"Incompatible-Os-Info\" - HCL validation has failed because the os vendor and version is not validated with this component \"Incompatible-Component-Model\" - HCL validation has failed because the component model is not validated \"Incompatible-Firmware-Driver\" - HCL validation has failed because the firmware version is not validated with the driver version \"Incompatible-Ucs-Version\" - HCL validation has failed because the UCS version is not validated with this component \"Missing-Os-Driver-Info\" - HCL validation was not performed because we are missing os driver information form device \"Compatible\" - this component's inventory data has \"Validated\" status with the HCL + the reason for the status. The reason can be one of \"Incompatible-Server-With-Component\" - HCL validation has failed because the server model is not validated with this component \"Incompatible-Processor\" - HCL validation has failed because the processor is not validated with this component \"Incompatible-Os-Info\" - HCL validation has failed because the os vendor and version is not validated with this component \"Incompatible-Component-Model\" - HCL validation has failed because the component model is not validated \"Incompatible-Firmware\" - HCL validation has failed because the firmware version is not validated \"Incompatible-Driver\" - HCL validation has failed because the driver version is not validated \"Incompatible-Firmware-Driver\" - HCL validation has failed because the firmware version and driver version is not validated \"Incompatible-Cimc-Version\" - HCL validation has failed because the CIMC version is not validated with this component \"Missing-Os-Driver-Info\" - HCL validation was not performed because we are missing os driver information form device \"Service-Unavailable\" - HCL data service is unavailable at the moment (try again later). This could be due to HCL data updating \"Service-Error\" - HCL data service is available but an error occured when making the request or parsing the response. \"Unrecognized-Protocol\" - HCL service does not recognize the given driver protocol for this component. HCL data may need to be updated \"Compatible\" - this component's inventory data has \"Validated\" status with the HCL :return: The reason of this CondHclStatusDetail. :rtype: str @@ -682,11 +682,17 @@ def reason(self): def reason(self, reason): """ Sets the reason of this CondHclStatusDetail. - the reason for the status. The reason can be one of \"Incompatible-Server-Model\" - HCL validation has failed because the server model is not validated with this component \"Incompatible-Processor\" - HCL validation has failed because the processor is not validated with this component \"Incompatible-Os-Info\" - HCL validation has failed because the os vendor and version is not validated with this component \"Incompatible-Component-Model\" - HCL validation has failed because the component model is not validated \"Incompatible-Firmware-Driver\" - HCL validation has failed because the firmware version is not validated with the driver version \"Incompatible-Ucs-Version\" - HCL validation has failed because the UCS version is not validated with this component \"Missing-Os-Driver-Info\" - HCL validation was not performed because we are missing os driver information form device \"Compatible\" - this component's inventory data has \"Validated\" status with the HCL + the reason for the status. The reason can be one of \"Incompatible-Server-With-Component\" - HCL validation has failed because the server model is not validated with this component \"Incompatible-Processor\" - HCL validation has failed because the processor is not validated with this component \"Incompatible-Os-Info\" - HCL validation has failed because the os vendor and version is not validated with this component \"Incompatible-Component-Model\" - HCL validation has failed because the component model is not validated \"Incompatible-Firmware\" - HCL validation has failed because the firmware version is not validated \"Incompatible-Driver\" - HCL validation has failed because the driver version is not validated \"Incompatible-Firmware-Driver\" - HCL validation has failed because the firmware version and driver version is not validated \"Incompatible-Cimc-Version\" - HCL validation has failed because the CIMC version is not validated with this component \"Missing-Os-Driver-Info\" - HCL validation was not performed because we are missing os driver information form device \"Service-Unavailable\" - HCL data service is unavailable at the moment (try again later). This could be due to HCL data updating \"Service-Error\" - HCL data service is available but an error occured when making the request or parsing the response. \"Unrecognized-Protocol\" - HCL service does not recognize the given driver protocol for this component. HCL data may need to be updated \"Compatible\" - this component's inventory data has \"Validated\" status with the HCL :param reason: The reason of this CondHclStatusDetail. :type: str """ + allowed_values = ["Missing-Os-Driver-Info", "Incompatible-Server-With-Component", "Incompatible-Processor", "Incompatible-Os-Info", "Incompatible-Component-Model", "Incompatible-Firmware", "Incompatible-Driver", "Incompatible-Firmware-Driver", "Incompatible-Cimc-Version", "Service-Unavailable", "Service-Error", "Unrecognized-Protocol", "Compatible"] + if reason not in allowed_values: + raise ValueError( + "Invalid value for `reason` ({0}), must be one of {1}" + .format(reason, allowed_values) + ) self._reason = reason @@ -710,6 +716,12 @@ def status(self, status): :param status: The status of this CondHclStatusDetail. :type: str """ + allowed_values = ["Incomplete", "Not-Found", "Validated"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) self._status = status diff --git a/intersight/models/cond_hcl_status_detail_list.py b/intersight/models/cond_hcl_status_detail_list.py index bb92ded3..54d299eb 100644 --- a/intersight/models/cond_hcl_status_detail_list.py +++ b/intersight/models/cond_hcl_status_detail_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/cond_hcl_status_detail_ref.py b/intersight/models/cond_hcl_status_detail_ref.py new file mode 100644 index 00000000..59d15645 --- /dev/null +++ b/intersight/models/cond_hcl_status_detail_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CondHclStatusDetailRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CondHclStatusDetailRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CondHclStatusDetailRef. + + :return: The moid of this CondHclStatusDetailRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CondHclStatusDetailRef. + + :param moid: The moid of this CondHclStatusDetailRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CondHclStatusDetailRef. + + :return: The object_type of this CondHclStatusDetailRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CondHclStatusDetailRef. + + :param object_type: The object_type of this CondHclStatusDetailRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CondHclStatusDetailRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/cond_hcl_status_job.py b/intersight/models/cond_hcl_status_job.py index 9ca46967..37be4d0b 100644 --- a/intersight/models/cond_hcl_status_job.py +++ b/intersight/models/cond_hcl_status_job.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,16 +32,17 @@ class CondHclStatusJob(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'managed_object': 'MoMoRef', - 'registered_device': 'MoMoRef' + 'version_context': 'MoVersionContext', + 'managed_object': 'InventoryBaseRef', + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -54,11 +55,12 @@ class CondHclStatusJob(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'managed_object': 'ManagedObject', 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, managed_object=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, managed_object=None, registered_device=None): """ CondHclStatusJob - a model defined in Swagger """ @@ -72,6 +74,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._managed_object = None self._registered_device = None @@ -93,6 +96,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if managed_object is not None: self.managed_object = managed_object if registered_device is not None: @@ -128,7 +133,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this CondHclStatusJob. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -139,7 +144,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this CondHclStatusJob. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -266,7 +271,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this CondHclStatusJob. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -277,7 +282,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this CondHclStatusJob. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -286,7 +291,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this CondHclStatusJob. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this CondHclStatusJob. :rtype: list[MoTag] @@ -297,7 +302,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this CondHclStatusJob. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this CondHclStatusJob. :type: list[MoTag] @@ -305,6 +310,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this CondHclStatusJob. + The versioning info for this managed object + + :return: The version_context of this CondHclStatusJob. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this CondHclStatusJob. + The versioning info for this managed object + + :param version_context: The version_context of this CondHclStatusJob. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def managed_object(self): """ @@ -312,7 +340,7 @@ def managed_object(self): specifies the managed object for which this HCLStatus applies :return: The managed_object of this CondHclStatusJob. - :rtype: MoMoRef + :rtype: InventoryBaseRef """ return self._managed_object @@ -323,7 +351,7 @@ def managed_object(self, managed_object): specifies the managed object for which this HCLStatus applies :param managed_object: The managed_object of this CondHclStatusJob. - :type: MoMoRef + :type: InventoryBaseRef """ self._managed_object = managed_object @@ -335,7 +363,7 @@ def registered_device(self): Relationship to set to the registered device associated with this job. We also need this to correctly inherit permissions. :return: The registered_device of this CondHclStatusJob. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -346,7 +374,7 @@ def registered_device(self, registered_device): Relationship to set to the registered device associated with this job. We also need this to correctly inherit permissions. :param registered_device: The registered_device of this CondHclStatusJob. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/cond_hcl_status_job_list.py b/intersight/models/cond_hcl_status_job_list.py index 9997cf1e..5a3eb4d5 100644 --- a/intersight/models/cond_hcl_status_job_list.py +++ b/intersight/models/cond_hcl_status_job_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/cond_hcl_status_job_ref.py b/intersight/models/cond_hcl_status_job_ref.py new file mode 100644 index 00000000..3d48b0c0 --- /dev/null +++ b/intersight/models/cond_hcl_status_job_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CondHclStatusJobRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CondHclStatusJobRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CondHclStatusJobRef. + + :return: The moid of this CondHclStatusJobRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CondHclStatusJobRef. + + :param moid: The moid of this CondHclStatusJobRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CondHclStatusJobRef. + + :return: The object_type of this CondHclStatusJobRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CondHclStatusJobRef. + + :param object_type: The object_type of this CondHclStatusJobRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CondHclStatusJobRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/cond_hcl_status_list.py b/intersight/models/cond_hcl_status_list.py index a015dfb2..930aa5d9 100644 --- a/intersight/models/cond_hcl_status_list.py +++ b/intersight/models/cond_hcl_status_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/cond_hcl_status_ref.py b/intersight/models/cond_hcl_status_ref.py new file mode 100644 index 00000000..435daeaa --- /dev/null +++ b/intersight/models/cond_hcl_status_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CondHclStatusRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CondHclStatusRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CondHclStatusRef. + + :return: The moid of this CondHclStatusRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CondHclStatusRef. + + :param moid: The moid of this CondHclStatusRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CondHclStatusRef. + + :return: The object_type of this CondHclStatusRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CondHclStatusRef. + + :param object_type: The object_type of this CondHclStatusRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CondHclStatusRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_auth_message.py b/intersight/models/connector_auth_message.py new file mode 100644 index 00000000..6a7a3a79 --- /dev/null +++ b/intersight/models/connector_auth_message.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorAuthMessage(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'remote_user_locale': 'str', + 'remote_user_name': 'str', + 'remote_user_roles': 'str', + 'remote_user_session_id': 'str' + } + + attribute_map = { + 'remote_user_locale': 'RemoteUserLocale', + 'remote_user_name': 'RemoteUserName', + 'remote_user_roles': 'RemoteUserRoles', + 'remote_user_session_id': 'RemoteUserSessionId' + } + + def __init__(self, remote_user_locale=None, remote_user_name=None, remote_user_roles=None, remote_user_session_id=None): + """ + ConnectorAuthMessage - a model defined in Swagger + """ + + self._remote_user_locale = None + self._remote_user_name = None + self._remote_user_roles = None + self._remote_user_session_id = None + + if remote_user_locale is not None: + self.remote_user_locale = remote_user_locale + if remote_user_name is not None: + self.remote_user_name = remote_user_name + if remote_user_roles is not None: + self.remote_user_roles = remote_user_roles + if remote_user_session_id is not None: + self.remote_user_session_id = remote_user_session_id + + @property + def remote_user_locale(self): + """ + Gets the remote_user_locale of this ConnectorAuthMessage. + The platform locale to assign user. A locale defines one or more organizations (domains) the user is allowed access, and access is limited to the organizations specified in the locale. + + :return: The remote_user_locale of this ConnectorAuthMessage. + :rtype: str + """ + return self._remote_user_locale + + @remote_user_locale.setter + def remote_user_locale(self, remote_user_locale): + """ + Sets the remote_user_locale of this ConnectorAuthMessage. + The platform locale to assign user. A locale defines one or more organizations (domains) the user is allowed access, and access is limited to the organizations specified in the locale. + + :param remote_user_locale: The remote_user_locale of this ConnectorAuthMessage. + :type: str + """ + + self._remote_user_locale = remote_user_locale + + @property + def remote_user_name(self): + """ + Gets the remote_user_name of this ConnectorAuthMessage. + User name passed to the platform for use in platform audit logs. + + :return: The remote_user_name of this ConnectorAuthMessage. + :rtype: str + """ + return self._remote_user_name + + @remote_user_name.setter + def remote_user_name(self, remote_user_name): + """ + Sets the remote_user_name of this ConnectorAuthMessage. + User name passed to the platform for use in platform audit logs. + + :param remote_user_name: The remote_user_name of this ConnectorAuthMessage. + :type: str + """ + + self._remote_user_name = remote_user_name + + @property + def remote_user_roles(self): + """ + Gets the remote_user_roles of this ConnectorAuthMessage. + List of roles to pass to the platform to validate the action against + + :return: The remote_user_roles of this ConnectorAuthMessage. + :rtype: str + """ + return self._remote_user_roles + + @remote_user_roles.setter + def remote_user_roles(self, remote_user_roles): + """ + Sets the remote_user_roles of this ConnectorAuthMessage. + List of roles to pass to the platform to validate the action against + + :param remote_user_roles: The remote_user_roles of this ConnectorAuthMessage. + :type: str + """ + + self._remote_user_roles = remote_user_roles + + @property + def remote_user_session_id(self): + """ + Gets the remote_user_session_id of this ConnectorAuthMessage. + Session Id passed to the platform for use in platforms auditing. + + :return: The remote_user_session_id of this ConnectorAuthMessage. + :rtype: str + """ + return self._remote_user_session_id + + @remote_user_session_id.setter + def remote_user_session_id(self, remote_user_session_id): + """ + Sets the remote_user_session_id of this ConnectorAuthMessage. + Session Id passed to the platform for use in platforms auditing. + + :param remote_user_session_id: The remote_user_session_id of this ConnectorAuthMessage. + :type: str + """ + + self._remote_user_session_id = remote_user_session_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorAuthMessage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_auth_message_ref.py b/intersight/models/connector_auth_message_ref.py new file mode 100644 index 00000000..576933d1 --- /dev/null +++ b/intersight/models/connector_auth_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorAuthMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorAuthMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorAuthMessageRef. + + :return: The moid of this ConnectorAuthMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorAuthMessageRef. + + :param moid: The moid of this ConnectorAuthMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorAuthMessageRef. + + :return: The object_type of this ConnectorAuthMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorAuthMessageRef. + + :param object_type: The object_type of this ConnectorAuthMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorAuthMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_close_stream_message.py b/intersight/models/connector_close_stream_message.py new file mode 100644 index 00000000..89afd8f8 --- /dev/null +++ b/intersight/models/connector_close_stream_message.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorCloseStreamMessage(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'stream_name': 'str' + } + + attribute_map = { + 'stream_name': 'StreamName' + } + + def __init__(self, stream_name=None): + """ + ConnectorCloseStreamMessage - a model defined in Swagger + """ + + self._stream_name = None + + if stream_name is not None: + self.stream_name = stream_name + + @property + def stream_name(self): + """ + Gets the stream_name of this ConnectorCloseStreamMessage. + The requested stream name. Stream names are unique per device endpoint. + + :return: The stream_name of this ConnectorCloseStreamMessage. + :rtype: str + """ + return self._stream_name + + @stream_name.setter + def stream_name(self, stream_name): + """ + Sets the stream_name of this ConnectorCloseStreamMessage. + The requested stream name. Stream names are unique per device endpoint. + + :param stream_name: The stream_name of this ConnectorCloseStreamMessage. + :type: str + """ + + self._stream_name = stream_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorCloseStreamMessage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_close_stream_message_ref.py b/intersight/models/connector_close_stream_message_ref.py new file mode 100644 index 00000000..f3e7b4c5 --- /dev/null +++ b/intersight/models/connector_close_stream_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorCloseStreamMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorCloseStreamMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorCloseStreamMessageRef. + + :return: The moid of this ConnectorCloseStreamMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorCloseStreamMessageRef. + + :param moid: The moid of this ConnectorCloseStreamMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorCloseStreamMessageRef. + + :return: The object_type of this ConnectorCloseStreamMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorCloseStreamMessageRef. + + :param object_type: The object_type of this ConnectorCloseStreamMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorCloseStreamMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_command_message_ref.py b/intersight/models/connector_command_message_ref.py new file mode 100644 index 00000000..d258577c --- /dev/null +++ b/intersight/models/connector_command_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorCommandMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorCommandMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorCommandMessageRef. + + :return: The moid of this ConnectorCommandMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorCommandMessageRef. + + :param moid: The moid of this ConnectorCommandMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorCommandMessageRef. + + :return: The object_type of this ConnectorCommandMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorCommandMessageRef. + + :param object_type: The object_type of this ConnectorCommandMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorCommandMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_control_message_ref.py b/intersight/models/connector_control_message_ref.py new file mode 100644 index 00000000..655e094b --- /dev/null +++ b/intersight/models/connector_control_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorControlMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorControlMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorControlMessageRef. + + :return: The moid of this ConnectorControlMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorControlMessageRef. + + :param moid: The moid of this ConnectorControlMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorControlMessageRef. + + :return: The object_type of this ConnectorControlMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorControlMessageRef. + + :param object_type: The object_type of this ConnectorControlMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorControlMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_event_channel_control_ref.py b/intersight/models/connector_event_channel_control_ref.py new file mode 100644 index 00000000..fdf7132b --- /dev/null +++ b/intersight/models/connector_event_channel_control_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorEventChannelControlRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorEventChannelControlRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorEventChannelControlRef. + + :return: The moid of this ConnectorEventChannelControlRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorEventChannelControlRef. + + :param moid: The moid of this ConnectorEventChannelControlRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorEventChannelControlRef. + + :return: The object_type of this ConnectorEventChannelControlRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorEventChannelControlRef. + + :param object_type: The object_type of this ConnectorEventChannelControlRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorEventChannelControlRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_event_ref.py b/intersight/models/connector_event_ref.py new file mode 100644 index 00000000..a72b3bb9 --- /dev/null +++ b/intersight/models/connector_event_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorEventRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorEventRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorEventRef. + + :return: The moid of this ConnectorEventRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorEventRef. + + :param moid: The moid of this ConnectorEventRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorEventRef. + + :return: The object_type of this ConnectorEventRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorEventRef. + + :param object_type: The object_type of this ConnectorEventRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorEventRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_fetch_stream_message.py b/intersight/models/connector_fetch_stream_message.py new file mode 100644 index 00000000..79dc2df7 --- /dev/null +++ b/intersight/models/connector_fetch_stream_message.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorFetchStreamMessage(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'stream_name': 'str', + 'sequences': 'list[int]' + } + + attribute_map = { + 'stream_name': 'StreamName', + 'sequences': 'Sequences' + } + + def __init__(self, stream_name=None, sequences=None): + """ + ConnectorFetchStreamMessage - a model defined in Swagger + """ + + self._stream_name = None + self._sequences = None + + if stream_name is not None: + self.stream_name = stream_name + if sequences is not None: + self.sequences = sequences + + @property + def stream_name(self): + """ + Gets the stream_name of this ConnectorFetchStreamMessage. + The requested stream name. Stream names are unique per device endpoint. + + :return: The stream_name of this ConnectorFetchStreamMessage. + :rtype: str + """ + return self._stream_name + + @stream_name.setter + def stream_name(self, stream_name): + """ + Sets the stream_name of this ConnectorFetchStreamMessage. + The requested stream name. Stream names are unique per device endpoint. + + :param stream_name: The stream_name of this ConnectorFetchStreamMessage. + :type: str + """ + + self._stream_name = stream_name + + @property + def sequences(self): + """ + Gets the sequences of this ConnectorFetchStreamMessage. + List of sequences to retrieve from the stream cache + + :return: The sequences of this ConnectorFetchStreamMessage. + :rtype: list[int] + """ + return self._sequences + + @sequences.setter + def sequences(self, sequences): + """ + Sets the sequences of this ConnectorFetchStreamMessage. + List of sequences to retrieve from the stream cache + + :param sequences: The sequences of this ConnectorFetchStreamMessage. + :type: list[int] + """ + + self._sequences = sequences + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorFetchStreamMessage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_fetch_stream_message_ref.py b/intersight/models/connector_fetch_stream_message_ref.py new file mode 100644 index 00000000..2e4329b8 --- /dev/null +++ b/intersight/models/connector_fetch_stream_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorFetchStreamMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorFetchStreamMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorFetchStreamMessageRef. + + :return: The moid of this ConnectorFetchStreamMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorFetchStreamMessageRef. + + :param moid: The moid of this ConnectorFetchStreamMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorFetchStreamMessageRef. + + :return: The object_type of this ConnectorFetchStreamMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorFetchStreamMessageRef. + + :param object_type: The object_type of this ConnectorFetchStreamMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorFetchStreamMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_job_async_response_ref.py b/intersight/models/connector_job_async_response_ref.py new file mode 100644 index 00000000..6bb4b850 --- /dev/null +++ b/intersight/models/connector_job_async_response_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorJobAsyncResponseRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorJobAsyncResponseRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorJobAsyncResponseRef. + + :return: The moid of this ConnectorJobAsyncResponseRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorJobAsyncResponseRef. + + :param moid: The moid of this ConnectorJobAsyncResponseRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorJobAsyncResponseRef. + + :return: The object_type of this ConnectorJobAsyncResponseRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorJobAsyncResponseRef. + + :param object_type: The object_type of this ConnectorJobAsyncResponseRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorJobAsyncResponseRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_job_message_ref.py b/intersight/models/connector_job_message_ref.py new file mode 100644 index 00000000..d303f2f9 --- /dev/null +++ b/intersight/models/connector_job_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorJobMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorJobMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorJobMessageRef. + + :return: The moid of this ConnectorJobMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorJobMessageRef. + + :param moid: The moid of this ConnectorJobMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorJobMessageRef. + + :return: The object_type of this ConnectorJobMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorJobMessageRef. + + :param object_type: The object_type of this ConnectorJobMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorJobMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_start_stream.py b/intersight/models/connector_start_stream.py new file mode 100644 index 00000000..0bb05407 --- /dev/null +++ b/intersight/models/connector_start_stream.py @@ -0,0 +1,321 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorStartStream(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'stream_name': 'str', + 'batch_size': 'int', + 'force_rebuild': 'bool', + 'input': 'str', + 'plugin_name': 'str', + 'poll_interval': 'int', + 'priority': 'int', + 'response_topic': 'str' + } + + attribute_map = { + 'stream_name': 'StreamName', + 'batch_size': 'BatchSize', + 'force_rebuild': 'ForceRebuild', + 'input': 'Input', + 'plugin_name': 'PluginName', + 'poll_interval': 'PollInterval', + 'priority': 'Priority', + 'response_topic': 'ResponseTopic' + } + + def __init__(self, stream_name=None, batch_size=None, force_rebuild=None, input=None, plugin_name=None, poll_interval=None, priority=None, response_topic=None): + """ + ConnectorStartStream - a model defined in Swagger + """ + + self._stream_name = None + self._batch_size = None + self._force_rebuild = None + self._input = None + self._plugin_name = None + self._poll_interval = None + self._priority = None + self._response_topic = None + + if stream_name is not None: + self.stream_name = stream_name + if batch_size is not None: + self.batch_size = batch_size + if force_rebuild is not None: + self.force_rebuild = force_rebuild + if input is not None: + self.input = input + if plugin_name is not None: + self.plugin_name = plugin_name + if poll_interval is not None: + self.poll_interval = poll_interval + if priority is not None: + self.priority = priority + if response_topic is not None: + self.response_topic = response_topic + + @property + def stream_name(self): + """ + Gets the stream_name of this ConnectorStartStream. + The requested stream name. Stream names are unique per device endpoint. + + :return: The stream_name of this ConnectorStartStream. + :rtype: str + """ + return self._stream_name + + @stream_name.setter + def stream_name(self, stream_name): + """ + Sets the stream_name of this ConnectorStartStream. + The requested stream name. Stream names are unique per device endpoint. + + :param stream_name: The stream_name of this ConnectorStartStream. + :type: str + """ + + self._stream_name = stream_name + + @property + def batch_size(self): + """ + Gets the batch_size of this ConnectorStartStream. + The number of outputs from a plugin to collect into a single message. Applicable only to streams that involve polling plugins and plugins which support emitting batchable data. Default value of zero indicates no batching. + + :return: The batch_size of this ConnectorStartStream. + :rtype: int + """ + return self._batch_size + + @batch_size.setter + def batch_size(self, batch_size): + """ + Sets the batch_size of this ConnectorStartStream. + The number of outputs from a plugin to collect into a single message. Applicable only to streams that involve polling plugins and plugins which support emitting batchable data. Default value of zero indicates no batching. + + :param batch_size: The batch_size of this ConnectorStartStream. + :type: int + """ + + self._batch_size = batch_size + + @property + def force_rebuild(self): + """ + Gets the force_rebuild of this ConnectorStartStream. + Flag to force a rebuild of an existing stream. To be used if a stream is unable to recover itself in response to dropped messages. + + :return: The force_rebuild of this ConnectorStartStream. + :rtype: bool + """ + return self._force_rebuild + + @force_rebuild.setter + def force_rebuild(self, force_rebuild): + """ + Sets the force_rebuild of this ConnectorStartStream. + Flag to force a rebuild of an existing stream. To be used if a stream is unable to recover itself in response to dropped messages. + + :param force_rebuild: The force_rebuild of this ConnectorStartStream. + :type: bool + """ + + self._force_rebuild = force_rebuild + + @property + def input(self): + """ + Gets the input of this ConnectorStartStream. + Input to the plugin to start the start the stream or collect stream messages. + + :return: The input of this ConnectorStartStream. + :rtype: str + """ + return self._input + + @input.setter + def input(self, input): + """ + Sets the input of this ConnectorStartStream. + Input to the plugin to start the start the stream or collect stream messages. + + :param input: The input of this ConnectorStartStream. + :type: str + """ + + self._input = input + + @property + def plugin_name(self): + """ + Gets the plugin_name of this ConnectorStartStream. + The plugin to run the stream on + + :return: The plugin_name of this ConnectorStartStream. + :rtype: str + """ + return self._plugin_name + + @plugin_name.setter + def plugin_name(self, plugin_name): + """ + Sets the plugin_name of this ConnectorStartStream. + The plugin to run the stream on + + :param plugin_name: The plugin_name of this ConnectorStartStream. + :type: str + """ + + self._plugin_name = plugin_name + + @property + def poll_interval(self): + """ + Gets the poll_interval of this ConnectorStartStream. + The desired interval to emit messages from this stream. The stream plugin will poll plugins at this interval to create a stream event. + + :return: The poll_interval of this ConnectorStartStream. + :rtype: int + """ + return self._poll_interval + + @poll_interval.setter + def poll_interval(self, poll_interval): + """ + Sets the poll_interval of this ConnectorStartStream. + The desired interval to emit messages from this stream. The stream plugin will poll plugins at this interval to create a stream event. + + :param poll_interval: The poll_interval of this ConnectorStartStream. + :type: int + """ + + self._poll_interval = poll_interval + + @property + def priority(self): + """ + Gets the priority of this ConnectorStartStream. + The priority level to apply to messages emitted by this stream + + :return: The priority of this ConnectorStartStream. + :rtype: int + """ + return self._priority + + @priority.setter + def priority(self, priority): + """ + Sets the priority of this ConnectorStartStream. + The priority level to apply to messages emitted by this stream + + :param priority: The priority of this ConnectorStartStream. + :type: int + """ + + self._priority = priority + + @property + def response_topic(self): + """ + Gets the response_topic of this ConnectorStartStream. + The topic for the device connector to publish messages to. + + :return: The response_topic of this ConnectorStartStream. + :rtype: str + """ + return self._response_topic + + @response_topic.setter + def response_topic(self, response_topic): + """ + Sets the response_topic of this ConnectorStartStream. + The topic for the device connector to publish messages to. + + :param response_topic: The response_topic of this ConnectorStartStream. + :type: str + """ + + self._response_topic = response_topic + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorStartStream): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_start_stream_ref.py b/intersight/models/connector_start_stream_ref.py new file mode 100644 index 00000000..9d768518 --- /dev/null +++ b/intersight/models/connector_start_stream_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorStartStreamRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorStartStreamRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorStartStreamRef. + + :return: The moid of this ConnectorStartStreamRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorStartStreamRef. + + :param moid: The moid of this ConnectorStartStreamRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorStartStreamRef. + + :return: The object_type of this ConnectorStartStreamRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorStartStreamRef. + + :param object_type: The object_type of this ConnectorStartStreamRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorStartStreamRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_stream_input.py b/intersight/models/connector_stream_input.py new file mode 100644 index 00000000..e29daaf5 --- /dev/null +++ b/intersight/models/connector_stream_input.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorStreamInput(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'stream_name': 'str', + 'input': 'str' + } + + attribute_map = { + 'stream_name': 'StreamName', + 'input': 'Input' + } + + def __init__(self, stream_name=None, input=None): + """ + ConnectorStreamInput - a model defined in Swagger + """ + + self._stream_name = None + self._input = None + + if stream_name is not None: + self.stream_name = stream_name + if input is not None: + self.input = input + + @property + def stream_name(self): + """ + Gets the stream_name of this ConnectorStreamInput. + The requested stream name. Stream names are unique per device endpoint. + + :return: The stream_name of this ConnectorStreamInput. + :rtype: str + """ + return self._stream_name + + @stream_name.setter + def stream_name(self, stream_name): + """ + Sets the stream_name of this ConnectorStreamInput. + The requested stream name. Stream names are unique per device endpoint. + + :param stream_name: The stream_name of this ConnectorStreamInput. + :type: str + """ + + self._stream_name = stream_name + + @property + def input(self): + """ + Gets the input of this ConnectorStreamInput. + The input to write to the stream plugin + + :return: The input of this ConnectorStreamInput. + :rtype: str + """ + return self._input + + @input.setter + def input(self, input): + """ + Sets the input of this ConnectorStreamInput. + The input to write to the stream plugin + + :param input: The input of this ConnectorStreamInput. + :type: str + """ + + self._input = input + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorStreamInput): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_stream_input_ref.py b/intersight/models/connector_stream_input_ref.py new file mode 100644 index 00000000..005ed8ab --- /dev/null +++ b/intersight/models/connector_stream_input_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorStreamInputRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorStreamInputRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorStreamInputRef. + + :return: The moid of this ConnectorStreamInputRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorStreamInputRef. + + :param moid: The moid of this ConnectorStreamInputRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorStreamInputRef. + + :return: The object_type of this ConnectorStreamInputRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorStreamInputRef. + + :param object_type: The object_type of this ConnectorStreamInputRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorStreamInputRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_stream_message.py b/intersight/models/connector_stream_message.py new file mode 100644 index 00000000..e2a2de44 --- /dev/null +++ b/intersight/models/connector_stream_message.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorStreamMessage(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'stream_name': 'str' + } + + attribute_map = { + 'stream_name': 'StreamName' + } + + def __init__(self, stream_name=None): + """ + ConnectorStreamMessage - a model defined in Swagger + """ + + self._stream_name = None + + if stream_name is not None: + self.stream_name = stream_name + + @property + def stream_name(self): + """ + Gets the stream_name of this ConnectorStreamMessage. + The requested stream name. Stream names are unique per device endpoint. + + :return: The stream_name of this ConnectorStreamMessage. + :rtype: str + """ + return self._stream_name + + @stream_name.setter + def stream_name(self, stream_name): + """ + Sets the stream_name of this ConnectorStreamMessage. + The requested stream name. Stream names are unique per device endpoint. + + :param stream_name: The stream_name of this ConnectorStreamMessage. + :type: str + """ + + self._stream_name = stream_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorStreamMessage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_stream_message_ref.py b/intersight/models/connector_stream_message_ref.py new file mode 100644 index 00000000..8513596e --- /dev/null +++ b/intersight/models/connector_stream_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorStreamMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorStreamMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorStreamMessageRef. + + :return: The moid of this ConnectorStreamMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorStreamMessageRef. + + :param moid: The moid of this ConnectorStreamMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorStreamMessageRef. + + :return: The object_type of this ConnectorStreamMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorStreamMessageRef. + + :param object_type: The object_type of this ConnectorStreamMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorStreamMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_stream_ref.py b/intersight/models/connector_stream_ref.py new file mode 100644 index 00000000..b51724e4 --- /dev/null +++ b/intersight/models/connector_stream_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorStreamRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorStreamRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorStreamRef. + + :return: The moid of this ConnectorStreamRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorStreamRef. + + :param moid: The moid of this ConnectorStreamRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorStreamRef. + + :return: The object_type of this ConnectorStreamRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorStreamRef. + + :param object_type: The object_type of this ConnectorStreamRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorStreamRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connector_xml_api_message_ref.py b/intersight/models/connector_xml_api_message_ref.py new file mode 100644 index 00000000..e68a7e8e --- /dev/null +++ b/intersight/models/connector_xml_api_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorXmlApiMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorXmlApiMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorXmlApiMessageRef. + + :return: The moid of this ConnectorXmlApiMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorXmlApiMessageRef. + + :param moid: The moid of this ConnectorXmlApiMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorXmlApiMessageRef. + + :return: The object_type of this ConnectorXmlApiMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorXmlApiMessageRef. + + :param object_type: The object_type of this ConnectorXmlApiMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorXmlApiMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_usb.py b/intersight/models/connectorpack_connector_pack_summary.py similarity index 51% rename from intersight/models/boot_usb.py rename to intersight/models/connectorpack_connector_pack_summary.py index d28fbaf0..a2100511 100644 --- a/intersight/models/boot_usb.py +++ b/intersight/models/connectorpack_connector_pack_summary.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class BootUsb(object): +class ConnectorpackConnectorPackSummary(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,63 +31,63 @@ class BootUsb(object): and the value is json key in definition. """ swagger_types = { - 'enabled': 'bool', + 'downloaded_version': 'str', 'name': 'str', - 'subtype': 'str' + 'version': 'str' } attribute_map = { - 'enabled': 'Enabled', + 'downloaded_version': 'DownloadedVersion', 'name': 'Name', - 'subtype': 'Subtype' + 'version': 'Version' } - def __init__(self, enabled=None, name=None, subtype='None'): + def __init__(self, downloaded_version=None, name=None, version=None): """ - BootUsb - a model defined in Swagger + ConnectorpackConnectorPackSummary - a model defined in Swagger """ - self._enabled = None + self._downloaded_version = None self._name = None - self._subtype = None + self._version = None - if enabled is not None: - self.enabled = enabled + if downloaded_version is not None: + self.downloaded_version = downloaded_version if name is not None: self.name = name - if subtype is not None: - self.subtype = subtype + if version is not None: + self.version = version @property - def enabled(self): + def downloaded_version(self): """ - Gets the enabled of this BootUsb. - Specifies if the boot device is enabled or disabled. + Gets the downloaded_version of this ConnectorpackConnectorPackSummary. + Downloaded version of connector pack image in UCS Director - :return: The enabled of this BootUsb. - :rtype: bool + :return: The downloaded_version of this ConnectorpackConnectorPackSummary. + :rtype: str """ - return self._enabled + return self._downloaded_version - @enabled.setter - def enabled(self, enabled): + @downloaded_version.setter + def downloaded_version(self, downloaded_version): """ - Sets the enabled of this BootUsb. - Specifies if the boot device is enabled or disabled. + Sets the downloaded_version of this ConnectorpackConnectorPackSummary. + Downloaded version of connector pack image in UCS Director - :param enabled: The enabled of this BootUsb. - :type: bool + :param downloaded_version: The downloaded_version of this ConnectorpackConnectorPackSummary. + :type: str """ - self._enabled = enabled + self._downloaded_version = downloaded_version @property def name(self): """ - Gets the name of this BootUsb. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. + Gets the name of this ConnectorpackConnectorPackSummary. + Name of connector pack running in UCS Director - :return: The name of this BootUsb. + :return: The name of this ConnectorpackConnectorPackSummary. :rtype: str """ return self._name @@ -95,43 +95,37 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this BootUsb. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. + Sets the name of this ConnectorpackConnectorPackSummary. + Name of connector pack running in UCS Director - :param name: The name of this BootUsb. + :param name: The name of this ConnectorpackConnectorPackSummary. :type: str """ self._name = name @property - def subtype(self): + def version(self): """ - Gets the subtype of this BootUsb. - Specifies the subtype for the selected device type. + Gets the version of this ConnectorpackConnectorPackSummary. + Running connector pack version in UCS Director - :return: The subtype of this BootUsb. + :return: The version of this ConnectorpackConnectorPackSummary. :rtype: str """ - return self._subtype + return self._version - @subtype.setter - def subtype(self, subtype): + @version.setter + def version(self, version): """ - Sets the subtype of this BootUsb. - Specifies the subtype for the selected device type. + Sets the version of this ConnectorpackConnectorPackSummary. + Running connector pack version in UCS Director - :param subtype: The subtype of this BootUsb. + :param version: The version of this ConnectorpackConnectorPackSummary. :type: str """ - allowed_values = ["None", "usb-cd", "usb-fdd", "usb-hdd"] - if subtype not in allowed_values: - raise ValueError( - "Invalid value for `subtype` ({0}), must be one of {1}" - .format(subtype, allowed_values) - ) - self._subtype = subtype + self._version = version def to_dict(self): """ @@ -175,7 +169,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, BootUsb): + if not isinstance(other, ConnectorpackConnectorPackSummary): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/connectorpack_connector_pack_summary_ref.py b/intersight/models/connectorpack_connector_pack_summary_ref.py new file mode 100644 index 00000000..799590d0 --- /dev/null +++ b/intersight/models/connectorpack_connector_pack_summary_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorpackConnectorPackSummaryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorpackConnectorPackSummaryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorpackConnectorPackSummaryRef. + + :return: The moid of this ConnectorpackConnectorPackSummaryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorpackConnectorPackSummaryRef. + + :param moid: The moid of this ConnectorpackConnectorPackSummaryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorpackConnectorPackSummaryRef. + + :return: The object_type of this ConnectorpackConnectorPackSummaryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorpackConnectorPackSummaryRef. + + :param object_type: The object_type of this ConnectorpackConnectorPackSummaryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorpackConnectorPackSummaryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/connectorpack_upgrade_ref.py b/intersight/models/connectorpack_upgrade_ref.py new file mode 100644 index 00000000..72cab7b3 --- /dev/null +++ b/intersight/models/connectorpack_upgrade_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ConnectorpackUpgradeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ConnectorpackUpgradeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ConnectorpackUpgradeRef. + + :return: The moid of this ConnectorpackUpgradeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ConnectorpackUpgradeRef. + + :param moid: The moid of this ConnectorpackUpgradeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ConnectorpackUpgradeRef. + + :return: The object_type of this ConnectorpackUpgradeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ConnectorpackUpgradeRef. + + :param object_type: The object_type of this ConnectorpackUpgradeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ConnectorpackUpgradeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/crypt_account_key_ref.py b/intersight/models/crypt_account_key_ref.py new file mode 100644 index 00000000..54575110 --- /dev/null +++ b/intersight/models/crypt_account_key_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CryptAccountKeyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CryptAccountKeyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CryptAccountKeyRef. + + :return: The moid of this CryptAccountKeyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CryptAccountKeyRef. + + :param moid: The moid of this CryptAccountKeyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CryptAccountKeyRef. + + :return: The object_type of this CryptAccountKeyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CryptAccountKeyRef. + + :param object_type: The object_type of this CryptAccountKeyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CryptAccountKeyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/crypt_decrypt_ref.py b/intersight/models/crypt_decrypt_ref.py new file mode 100644 index 00000000..718117a0 --- /dev/null +++ b/intersight/models/crypt_decrypt_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CryptDecryptRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CryptDecryptRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CryptDecryptRef. + + :return: The moid of this CryptDecryptRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CryptDecryptRef. + + :param moid: The moid of this CryptDecryptRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CryptDecryptRef. + + :return: The object_type of this CryptDecryptRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CryptDecryptRef. + + :param object_type: The object_type of this CryptDecryptRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CryptDecryptRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/crypt_encrypt_ref.py b/intersight/models/crypt_encrypt_ref.py new file mode 100644 index 00000000..85967601 --- /dev/null +++ b/intersight/models/crypt_encrypt_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CryptEncryptRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CryptEncryptRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CryptEncryptRef. + + :return: The moid of this CryptEncryptRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CryptEncryptRef. + + :param moid: The moid of this CryptEncryptRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CryptEncryptRef. + + :return: The object_type of this CryptEncryptRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CryptEncryptRef. + + :param object_type: The object_type of this CryptEncryptRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CryptEncryptRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/crypt_encryption_key_ref.py b/intersight/models/crypt_encryption_key_ref.py new file mode 100644 index 00000000..e3b092c0 --- /dev/null +++ b/intersight/models/crypt_encryption_key_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CryptEncryptionKeyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CryptEncryptionKeyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CryptEncryptionKeyRef. + + :return: The moid of this CryptEncryptionKeyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CryptEncryptionKeyRef. + + :param moid: The moid of this CryptEncryptionKeyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CryptEncryptionKeyRef. + + :return: The object_type of this CryptEncryptionKeyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CryptEncryptionKeyRef. + + :param object_type: The object_type of this CryptEncryptionKeyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CryptEncryptionKeyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/crypt_encryption_token.py b/intersight/models/crypt_encryption_token.py index bf45858a..e765d723 100644 --- a/intersight/models/crypt_encryption_token.py +++ b/intersight/models/crypt_encryption_token.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,16 +32,18 @@ class CryptEncryptionToken(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account_key': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'account_key': 'CryptAccountKeyRef', 'session_id': 'str', + 'session_type': 'int', 'token': 'str', 'token_accessor': 'str', 'wrapped': 'bool' @@ -57,14 +59,16 @@ class CryptEncryptionToken(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account_key': 'AccountKey', 'session_id': 'SessionId', + 'session_type': 'SessionType', 'token': 'Token', 'token_accessor': 'TokenAccessor', 'wrapped': 'Wrapped' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account_key=None, session_id=None, token=None, token_accessor=None, wrapped=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account_key=None, session_id=None, session_type=None, token=None, token_accessor=None, wrapped=None): """ CryptEncryptionToken - a model defined in Swagger """ @@ -78,8 +82,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account_key = None self._session_id = None + self._session_type = None self._token = None self._token_accessor = None self._wrapped = None @@ -102,10 +108,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account_key is not None: self.account_key = account_key if session_id is not None: self.session_id = session_id + if session_type is not None: + self.session_type = session_type if token is not None: self.token = token if token_accessor is not None: @@ -143,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this CryptEncryptionToken. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -154,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this CryptEncryptionToken. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -281,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this CryptEncryptionToken. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -292,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this CryptEncryptionToken. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -301,7 +311,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this CryptEncryptionToken. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this CryptEncryptionToken. :rtype: list[MoTag] @@ -312,7 +322,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this CryptEncryptionToken. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this CryptEncryptionToken. :type: list[MoTag] @@ -320,13 +330,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this CryptEncryptionToken. + The versioning info for this managed object + + :return: The version_context of this CryptEncryptionToken. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this CryptEncryptionToken. + The versioning info for this managed object + + :param version_context: The version_context of this CryptEncryptionToken. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def account_key(self): """ Gets the account_key of this CryptEncryptionToken. :return: The account_key of this CryptEncryptionToken. - :rtype: MoMoRef + :rtype: CryptAccountKeyRef """ return self._account_key @@ -336,7 +369,7 @@ def account_key(self, account_key): Sets the account_key of this CryptEncryptionToken. :param account_key: The account_key of this CryptEncryptionToken. - :type: MoMoRef + :type: CryptAccountKeyRef """ self._account_key = account_key @@ -364,6 +397,29 @@ def session_id(self, session_id): self._session_id = session_id + @property + def session_type(self): + """ + Gets the session_type of this CryptEncryptionToken. + The Session Type indicates the type of session the encryption token is created for. Tokens are created for Web, ApiKeys, Workflow, etc + + :return: The session_type of this CryptEncryptionToken. + :rtype: int + """ + return self._session_type + + @session_type.setter + def session_type(self, session_type): + """ + Sets the session_type of this CryptEncryptionToken. + The Session Type indicates the type of session the encryption token is created for. Tokens are created for Web, ApiKeys, Workflow, etc + + :param session_type: The session_type of this CryptEncryptionToken. + :type: int + """ + + self._session_type = session_type + @property def token(self): """ diff --git a/intersight/models/crypt_encryption_token_list.py b/intersight/models/crypt_encryption_token_list.py index d38ba65f..9037bff5 100644 --- a/intersight/models/crypt_encryption_token_list.py +++ b/intersight/models/crypt_encryption_token_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/crypt_encryption_token_ref.py b/intersight/models/crypt_encryption_token_ref.py new file mode 100644 index 00000000..989850c3 --- /dev/null +++ b/intersight/models/crypt_encryption_token_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CryptEncryptionTokenRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CryptEncryptionTokenRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CryptEncryptionTokenRef. + + :return: The moid of this CryptEncryptionTokenRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CryptEncryptionTokenRef. + + :param moid: The moid of this CryptEncryptionTokenRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CryptEncryptionTokenRef. + + :return: The object_type of this CryptEncryptionTokenRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CryptEncryptionTokenRef. + + :param object_type: The object_type of this CryptEncryptionTokenRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CryptEncryptionTokenRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/cvd_deployment_task.py b/intersight/models/cvd_deployment_task.py new file mode 100644 index 00000000..608804b8 --- /dev/null +++ b/intersight/models/cvd_deployment_task.py @@ -0,0 +1,489 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CvdDeploymentTask(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'input_data': 'object', + 'organization': 'IamAccountRef', + 'result': 'object', + 'template': 'CvdTemplateRef' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'input_data': 'InputData', + 'organization': 'Organization', + 'result': 'Result', + 'template': 'Template' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, input_data=None, organization=None, result=None, template=None): + """ + CvdDeploymentTask - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._input_data = None + self._organization = None + self._result = None + self._template = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if input_data is not None: + self.input_data = input_data + if organization is not None: + self.organization = organization + if result is not None: + self.result = result + if template is not None: + self.template = template + + @property + def account_moid(self): + """ + Gets the account_moid of this CvdDeploymentTask. + The Account ID for this managed object. + + :return: The account_moid of this CvdDeploymentTask. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this CvdDeploymentTask. + The Account ID for this managed object. + + :param account_moid: The account_moid of this CvdDeploymentTask. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this CvdDeploymentTask. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this CvdDeploymentTask. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this CvdDeploymentTask. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this CvdDeploymentTask. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this CvdDeploymentTask. + The time when this managed object was created. + + :return: The create_time of this CvdDeploymentTask. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this CvdDeploymentTask. + The time when this managed object was created. + + :param create_time: The create_time of this CvdDeploymentTask. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this CvdDeploymentTask. + The time when this managed object was last modified. + + :return: The mod_time of this CvdDeploymentTask. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this CvdDeploymentTask. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this CvdDeploymentTask. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this CvdDeploymentTask. + A unique identifier of this Managed Object instance. + + :return: The moid of this CvdDeploymentTask. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CvdDeploymentTask. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this CvdDeploymentTask. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CvdDeploymentTask. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this CvdDeploymentTask. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CvdDeploymentTask. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this CvdDeploymentTask. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this CvdDeploymentTask. + An array of owners which represent effective ownership of this object. + + :return: The owners of this CvdDeploymentTask. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this CvdDeploymentTask. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this CvdDeploymentTask. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this CvdDeploymentTask. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this CvdDeploymentTask. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this CvdDeploymentTask. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this CvdDeploymentTask. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this CvdDeploymentTask. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this CvdDeploymentTask. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this CvdDeploymentTask. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this CvdDeploymentTask. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this CvdDeploymentTask. + The versioning info for this managed object + + :return: The version_context of this CvdDeploymentTask. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this CvdDeploymentTask. + The versioning info for this managed object + + :param version_context: The version_context of this CvdDeploymentTask. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def input_data(self): + """ + Gets the input_data of this CvdDeploymentTask. + Input data set to be provided to the deployment workflow + + :return: The input_data of this CvdDeploymentTask. + :rtype: object + """ + return self._input_data + + @input_data.setter + def input_data(self, input_data): + """ + Sets the input_data of this CvdDeploymentTask. + Input data set to be provided to the deployment workflow + + :param input_data: The input_data of this CvdDeploymentTask. + :type: object + """ + + self._input_data = input_data + + @property + def organization(self): + """ + Gets the organization of this CvdDeploymentTask. + Organization + + :return: The organization of this CvdDeploymentTask. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this CvdDeploymentTask. + Organization + + :param organization: The organization of this CvdDeploymentTask. + :type: IamAccountRef + """ + + self._organization = organization + + @property + def result(self): + """ + Gets the result of this CvdDeploymentTask. + Result of the deployment operation + + :return: The result of this CvdDeploymentTask. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """ + Sets the result of this CvdDeploymentTask. + Result of the deployment operation + + :param result: The result of this CvdDeploymentTask. + :type: object + """ + + self._result = result + + @property + def template(self): + """ + Gets the template of this CvdDeploymentTask. + eCVD instance for which the deployment task is being run + + :return: The template of this CvdDeploymentTask. + :rtype: CvdTemplateRef + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this CvdDeploymentTask. + eCVD instance for which the deployment task is being run + + :param template: The template of this CvdDeploymentTask. + :type: CvdTemplateRef + """ + + self._template = template + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CvdDeploymentTask): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/cvd_deployment_task_list.py b/intersight/models/cvd_deployment_task_list.py new file mode 100644 index 00000000..dfb02e94 --- /dev/null +++ b/intersight/models/cvd_deployment_task_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CvdDeploymentTaskList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[CvdDeploymentTask]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + CvdDeploymentTaskList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this CvdDeploymentTaskList. + The number of cvdDeploymentTasks matching your request in total for all pages. + + :return: The count of this CvdDeploymentTaskList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this CvdDeploymentTaskList. + The number of cvdDeploymentTasks matching your request in total for all pages. + + :param count: The count of this CvdDeploymentTaskList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this CvdDeploymentTaskList. + The array of cvdDeploymentTasks matching your request. + + :return: The results of this CvdDeploymentTaskList. + :rtype: list[CvdDeploymentTask] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this CvdDeploymentTaskList. + The array of cvdDeploymentTasks matching your request. + + :param results: The results of this CvdDeploymentTaskList. + :type: list[CvdDeploymentTask] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CvdDeploymentTaskList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/cvd_deployment_task_ref.py b/intersight/models/cvd_deployment_task_ref.py new file mode 100644 index 00000000..e5451e08 --- /dev/null +++ b/intersight/models/cvd_deployment_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CvdDeploymentTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CvdDeploymentTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CvdDeploymentTaskRef. + + :return: The moid of this CvdDeploymentTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CvdDeploymentTaskRef. + + :param moid: The moid of this CvdDeploymentTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CvdDeploymentTaskRef. + + :return: The object_type of this CvdDeploymentTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CvdDeploymentTaskRef. + + :param object_type: The object_type of this CvdDeploymentTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CvdDeploymentTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/cvd_input_meta.py b/intersight/models/cvd_input_meta.py new file mode 100644 index 00000000..6de232bd --- /dev/null +++ b/intersight/models/cvd_input_meta.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CvdInputMeta(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'field_filter': 'str', + 'field_label': 'str', + 'field_name': 'str', + 'field_value': 'str' + } + + attribute_map = { + 'field_filter': 'FieldFilter', + 'field_label': 'FieldLabel', + 'field_name': 'FieldName', + 'field_value': 'FieldValue' + } + + def __init__(self, field_filter=None, field_label=None, field_name=None, field_value=None): + """ + CvdInputMeta - a model defined in Swagger + """ + + self._field_filter = None + self._field_label = None + self._field_name = None + self._field_value = None + + if field_filter is not None: + self.field_filter = field_filter + if field_label is not None: + self.field_label = field_label + if field_name is not None: + self.field_name = field_name + if field_value is not None: + self.field_value = field_value + + @property + def field_filter(self): + """ + Gets the field_filter of this CvdInputMeta. + Input field filter(REST API path with filter which will return the list of applicable values for this field) + + :return: The field_filter of this CvdInputMeta. + :rtype: str + """ + return self._field_filter + + @field_filter.setter + def field_filter(self, field_filter): + """ + Sets the field_filter of this CvdInputMeta. + Input field filter(REST API path with filter which will return the list of applicable values for this field) + + :param field_filter: The field_filter of this CvdInputMeta. + :type: str + """ + + self._field_filter = field_filter + + @property + def field_label(self): + """ + Gets the field_label of this CvdInputMeta. + Input field label(for GUI use) + + :return: The field_label of this CvdInputMeta. + :rtype: str + """ + return self._field_label + + @field_label.setter + def field_label(self, field_label): + """ + Sets the field_label of this CvdInputMeta. + Input field label(for GUI use) + + :param field_label: The field_label of this CvdInputMeta. + :type: str + """ + + self._field_label = field_label + + @property + def field_name(self): + """ + Gets the field_name of this CvdInputMeta. + Input field name + + :return: The field_name of this CvdInputMeta. + :rtype: str + """ + return self._field_name + + @field_name.setter + def field_name(self, field_name): + """ + Sets the field_name of this CvdInputMeta. + Input field name + + :param field_name: The field_name of this CvdInputMeta. + :type: str + """ + + self._field_name = field_name + + @property + def field_value(self): + """ + Gets the field_value of this CvdInputMeta. + Input field value + + :return: The field_value of this CvdInputMeta. + :rtype: str + """ + return self._field_value + + @field_value.setter + def field_value(self, field_value): + """ + Sets the field_value of this CvdInputMeta. + Input field value + + :param field_value: The field_value of this CvdInputMeta. + :type: str + """ + + self._field_value = field_value + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CvdInputMeta): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/cvd_input_meta_ref.py b/intersight/models/cvd_input_meta_ref.py new file mode 100644 index 00000000..cda6c1a6 --- /dev/null +++ b/intersight/models/cvd_input_meta_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CvdInputMetaRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CvdInputMetaRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CvdInputMetaRef. + + :return: The moid of this CvdInputMetaRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CvdInputMetaRef. + + :param moid: The moid of this CvdInputMetaRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CvdInputMetaRef. + + :return: The object_type of this CvdInputMetaRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CvdInputMetaRef. + + :param object_type: The object_type of this CvdInputMetaRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CvdInputMetaRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/cvd_template.py b/intersight/models/cvd_template.py new file mode 100644 index 00000000..d67a95de --- /dev/null +++ b/intersight/models/cvd_template.py @@ -0,0 +1,601 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CvdTemplate(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'deployer': 'str', + 'deployer_input': 'list[CvdInputMeta]', + 'description': 'list[str]', + 'name': 'str', + 'upload_location': 'str', + 'validator': 'str', + 'validator_input': 'list[CvdInputMeta]', + 'version': 'int' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'deployer': 'Deployer', + 'deployer_input': 'DeployerInput', + 'description': 'Description', + 'name': 'Name', + 'upload_location': 'UploadLocation', + 'validator': 'Validator', + 'validator_input': 'ValidatorInput', + 'version': 'Version' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, deployer=None, deployer_input=None, description=None, name=None, upload_location=None, validator=None, validator_input=None, version=None): + """ + CvdTemplate - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._deployer = None + self._deployer_input = None + self._description = None + self._name = None + self._upload_location = None + self._validator = None + self._validator_input = None + self._version = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if deployer is not None: + self.deployer = deployer + if deployer_input is not None: + self.deployer_input = deployer_input + if description is not None: + self.description = description + if name is not None: + self.name = name + if upload_location is not None: + self.upload_location = upload_location + if validator is not None: + self.validator = validator + if validator_input is not None: + self.validator_input = validator_input + if version is not None: + self.version = version + + @property + def account_moid(self): + """ + Gets the account_moid of this CvdTemplate. + The Account ID for this managed object. + + :return: The account_moid of this CvdTemplate. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this CvdTemplate. + The Account ID for this managed object. + + :param account_moid: The account_moid of this CvdTemplate. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this CvdTemplate. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this CvdTemplate. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this CvdTemplate. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this CvdTemplate. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this CvdTemplate. + The time when this managed object was created. + + :return: The create_time of this CvdTemplate. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this CvdTemplate. + The time when this managed object was created. + + :param create_time: The create_time of this CvdTemplate. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this CvdTemplate. + The time when this managed object was last modified. + + :return: The mod_time of this CvdTemplate. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this CvdTemplate. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this CvdTemplate. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this CvdTemplate. + A unique identifier of this Managed Object instance. + + :return: The moid of this CvdTemplate. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CvdTemplate. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this CvdTemplate. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CvdTemplate. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this CvdTemplate. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CvdTemplate. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this CvdTemplate. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this CvdTemplate. + An array of owners which represent effective ownership of this object. + + :return: The owners of this CvdTemplate. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this CvdTemplate. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this CvdTemplate. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this CvdTemplate. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this CvdTemplate. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this CvdTemplate. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this CvdTemplate. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this CvdTemplate. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this CvdTemplate. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this CvdTemplate. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this CvdTemplate. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this CvdTemplate. + The versioning info for this managed object + + :return: The version_context of this CvdTemplate. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this CvdTemplate. + The versioning info for this managed object + + :param version_context: The version_context of this CvdTemplate. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def deployer(self): + """ + Gets the deployer of this CvdTemplate. + URL pointing to the S3 location of the workflow JSON which performs the deployment task for this CVD + + :return: The deployer of this CvdTemplate. + :rtype: str + """ + return self._deployer + + @deployer.setter + def deployer(self, deployer): + """ + Sets the deployer of this CvdTemplate. + URL pointing to the S3 location of the workflow JSON which performs the deployment task for this CVD + + :param deployer: The deployer of this CvdTemplate. + :type: str + """ + + self._deployer = deployer + + @property + def deployer_input(self): + """ + Gets the deployer_input of this CvdTemplate. + A collection of input name-value pairs + + :return: The deployer_input of this CvdTemplate. + :rtype: list[CvdInputMeta] + """ + return self._deployer_input + + @deployer_input.setter + def deployer_input(self, deployer_input): + """ + Sets the deployer_input of this CvdTemplate. + A collection of input name-value pairs + + :param deployer_input: The deployer_input of this CvdTemplate. + :type: list[CvdInputMeta] + """ + + self._deployer_input = deployer_input + + @property + def description(self): + """ + Gets the description of this CvdTemplate. + A short description for the CVD + + :return: The description of this CvdTemplate. + :rtype: list[str] + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this CvdTemplate. + A short description for the CVD + + :param description: The description of this CvdTemplate. + :type: list[str] + """ + + self._description = description + + @property + def name(self): + """ + Gets the name of this CvdTemplate. + Unique name identifier for the CVD + + :return: The name of this CvdTemplate. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this CvdTemplate. + Unique name identifier for the CVD + + :param name: The name of this CvdTemplate. + :type: str + """ + + self._name = name + + @property + def upload_location(self): + """ + Gets the upload_location of this CvdTemplate. + S3 directory location where the CVD definition has been uploaded + + :return: The upload_location of this CvdTemplate. + :rtype: str + """ + return self._upload_location + + @upload_location.setter + def upload_location(self, upload_location): + """ + Sets the upload_location of this CvdTemplate. + S3 directory location where the CVD definition has been uploaded + + :param upload_location: The upload_location of this CvdTemplate. + :type: str + """ + + self._upload_location = upload_location + + @property + def validator(self): + """ + Gets the validator of this CvdTemplate. + URL pointing to the S3 location of the workflow JSON which performs the validation task for this CVD + + :return: The validator of this CvdTemplate. + :rtype: str + """ + return self._validator + + @validator.setter + def validator(self, validator): + """ + Sets the validator of this CvdTemplate. + URL pointing to the S3 location of the workflow JSON which performs the validation task for this CVD + + :param validator: The validator of this CvdTemplate. + :type: str + """ + + self._validator = validator + + @property + def validator_input(self): + """ + Gets the validator_input of this CvdTemplate. + A collection of input name-value pairs + + :return: The validator_input of this CvdTemplate. + :rtype: list[CvdInputMeta] + """ + return self._validator_input + + @validator_input.setter + def validator_input(self, validator_input): + """ + Sets the validator_input of this CvdTemplate. + A collection of input name-value pairs + + :param validator_input: The validator_input of this CvdTemplate. + :type: list[CvdInputMeta] + """ + + self._validator_input = validator_input + + @property + def version(self): + """ + Gets the version of this CvdTemplate. + The version or revision number of the CVD definition + + :return: The version of this CvdTemplate. + :rtype: int + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this CvdTemplate. + The version or revision number of the CVD definition + + :param version: The version of this CvdTemplate. + :type: int + """ + + self._version = version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CvdTemplate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/extsearch_import_list.py b/intersight/models/cvd_template_list.py similarity index 71% rename from intersight/models/extsearch_import_list.py rename to intersight/models/cvd_template_list.py index 986170f2..88cf8951 100644 --- a/intersight/models/extsearch_import_list.py +++ b/intersight/models/cvd_template_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class ExtsearchImportList(object): +class CvdTemplateList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class ExtsearchImportList(object): """ swagger_types = { 'count': 'int', - 'results': 'list[ExtsearchImport]' + 'results': 'list[CvdTemplate]' } attribute_map = { @@ -42,7 +42,7 @@ class ExtsearchImportList(object): def __init__(self, count=None, results=None): """ - ExtsearchImportList - a model defined in Swagger + CvdTemplateList - a model defined in Swagger """ self._count = None @@ -56,10 +56,10 @@ def __init__(self, count=None, results=None): @property def count(self): """ - Gets the count of this ExtsearchImportList. - The number of extsearchImports matching your request in total for all pages. + Gets the count of this CvdTemplateList. + The number of cvdTemplates matching your request in total for all pages. - :return: The count of this ExtsearchImportList. + :return: The count of this CvdTemplateList. :rtype: int """ return self._count @@ -67,10 +67,10 @@ def count(self): @count.setter def count(self, count): """ - Sets the count of this ExtsearchImportList. - The number of extsearchImports matching your request in total for all pages. + Sets the count of this CvdTemplateList. + The number of cvdTemplates matching your request in total for all pages. - :param count: The count of this ExtsearchImportList. + :param count: The count of this CvdTemplateList. :type: int """ @@ -79,22 +79,22 @@ def count(self, count): @property def results(self): """ - Gets the results of this ExtsearchImportList. - The array of extsearchImports matching your request. + Gets the results of this CvdTemplateList. + The array of cvdTemplates matching your request. - :return: The results of this ExtsearchImportList. - :rtype: list[ExtsearchImport] + :return: The results of this CvdTemplateList. + :rtype: list[CvdTemplate] """ return self._results @results.setter def results(self, results): """ - Sets the results of this ExtsearchImportList. - The array of extsearchImports matching your request. + Sets the results of this CvdTemplateList. + The array of cvdTemplates matching your request. - :param results: The results of this ExtsearchImportList. - :type: list[ExtsearchImport] + :param results: The results of this CvdTemplateList. + :type: list[CvdTemplate] """ self._results = results @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, ExtsearchImportList): + if not isinstance(other, CvdTemplateList): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/cvd_template_ref.py b/intersight/models/cvd_template_ref.py new file mode 100644 index 00000000..9ae9d7f4 --- /dev/null +++ b/intersight/models/cvd_template_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CvdTemplateRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CvdTemplateRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CvdTemplateRef. + + :return: The moid of this CvdTemplateRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CvdTemplateRef. + + :param moid: The moid of this CvdTemplateRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CvdTemplateRef. + + :return: The object_type of this CvdTemplateRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CvdTemplateRef. + + :param object_type: The object_type of this CvdTemplateRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CvdTemplateRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/cvd_validation_task.py b/intersight/models/cvd_validation_task.py new file mode 100644 index 00000000..4fa3a983 --- /dev/null +++ b/intersight/models/cvd_validation_task.py @@ -0,0 +1,489 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CvdValidationTask(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'input_data': 'object', + 'organization': 'IamAccountRef', + 'result': 'object', + 'template': 'CvdTemplateRef' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'input_data': 'InputData', + 'organization': 'Organization', + 'result': 'Result', + 'template': 'Template' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, input_data=None, organization=None, result=None, template=None): + """ + CvdValidationTask - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._input_data = None + self._organization = None + self._result = None + self._template = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if input_data is not None: + self.input_data = input_data + if organization is not None: + self.organization = organization + if result is not None: + self.result = result + if template is not None: + self.template = template + + @property + def account_moid(self): + """ + Gets the account_moid of this CvdValidationTask. + The Account ID for this managed object. + + :return: The account_moid of this CvdValidationTask. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this CvdValidationTask. + The Account ID for this managed object. + + :param account_moid: The account_moid of this CvdValidationTask. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this CvdValidationTask. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this CvdValidationTask. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this CvdValidationTask. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this CvdValidationTask. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this CvdValidationTask. + The time when this managed object was created. + + :return: The create_time of this CvdValidationTask. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this CvdValidationTask. + The time when this managed object was created. + + :param create_time: The create_time of this CvdValidationTask. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this CvdValidationTask. + The time when this managed object was last modified. + + :return: The mod_time of this CvdValidationTask. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this CvdValidationTask. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this CvdValidationTask. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this CvdValidationTask. + A unique identifier of this Managed Object instance. + + :return: The moid of this CvdValidationTask. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CvdValidationTask. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this CvdValidationTask. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CvdValidationTask. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this CvdValidationTask. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CvdValidationTask. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this CvdValidationTask. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this CvdValidationTask. + An array of owners which represent effective ownership of this object. + + :return: The owners of this CvdValidationTask. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this CvdValidationTask. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this CvdValidationTask. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this CvdValidationTask. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this CvdValidationTask. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this CvdValidationTask. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this CvdValidationTask. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this CvdValidationTask. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this CvdValidationTask. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this CvdValidationTask. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this CvdValidationTask. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this CvdValidationTask. + The versioning info for this managed object + + :return: The version_context of this CvdValidationTask. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this CvdValidationTask. + The versioning info for this managed object + + :param version_context: The version_context of this CvdValidationTask. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def input_data(self): + """ + Gets the input_data of this CvdValidationTask. + Input data set to be provided to the validation workflow + + :return: The input_data of this CvdValidationTask. + :rtype: object + """ + return self._input_data + + @input_data.setter + def input_data(self, input_data): + """ + Sets the input_data of this CvdValidationTask. + Input data set to be provided to the validation workflow + + :param input_data: The input_data of this CvdValidationTask. + :type: object + """ + + self._input_data = input_data + + @property + def organization(self): + """ + Gets the organization of this CvdValidationTask. + Organization + + :return: The organization of this CvdValidationTask. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this CvdValidationTask. + Organization + + :param organization: The organization of this CvdValidationTask. + :type: IamAccountRef + """ + + self._organization = organization + + @property + def result(self): + """ + Gets the result of this CvdValidationTask. + Result of the validation operation + + :return: The result of this CvdValidationTask. + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """ + Sets the result of this CvdValidationTask. + Result of the validation operation + + :param result: The result of this CvdValidationTask. + :type: object + """ + + self._result = result + + @property + def template(self): + """ + Gets the template of this CvdValidationTask. + eCVD instance for which the validation task is being run + + :return: The template of this CvdValidationTask. + :rtype: CvdTemplateRef + """ + return self._template + + @template.setter + def template(self, template): + """ + Sets the template of this CvdValidationTask. + eCVD instance for which the validation task is being run + + :param template: The template of this CvdValidationTask. + :type: CvdTemplateRef + """ + + self._template = template + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CvdValidationTask): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/cvd_validation_task_list.py b/intersight/models/cvd_validation_task_list.py new file mode 100644 index 00000000..55d8ef11 --- /dev/null +++ b/intersight/models/cvd_validation_task_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CvdValidationTaskList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[CvdValidationTask]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + CvdValidationTaskList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this CvdValidationTaskList. + The number of cvdValidationTasks matching your request in total for all pages. + + :return: The count of this CvdValidationTaskList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this CvdValidationTaskList. + The number of cvdValidationTasks matching your request in total for all pages. + + :param count: The count of this CvdValidationTaskList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this CvdValidationTaskList. + The array of cvdValidationTasks matching your request. + + :return: The results of this CvdValidationTaskList. + :rtype: list[CvdValidationTask] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this CvdValidationTaskList. + The array of cvdValidationTasks matching your request. + + :param results: The results of this CvdValidationTaskList. + :type: list[CvdValidationTask] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CvdValidationTaskList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/cvd_validation_task_ref.py b/intersight/models/cvd_validation_task_ref.py new file mode 100644 index 00000000..6995df09 --- /dev/null +++ b/intersight/models/cvd_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class CvdValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + CvdValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this CvdValidationTaskRef. + + :return: The moid of this CvdValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this CvdValidationTaskRef. + + :param moid: The moid of this CvdValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this CvdValidationTaskRef. + + :return: The object_type of this CvdValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this CvdValidationTaskRef. + + :param object_type: The object_type of this CvdValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, CvdValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/deviceconnector_deploy_task_ref.py b/intersight/models/deviceconnector_deploy_task_ref.py new file mode 100644 index 00000000..96f72b6c --- /dev/null +++ b/intersight/models/deviceconnector_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DeviceconnectorDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + DeviceconnectorDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this DeviceconnectorDeployTaskRef. + + :return: The moid of this DeviceconnectorDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this DeviceconnectorDeployTaskRef. + + :param moid: The moid of this DeviceconnectorDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this DeviceconnectorDeployTaskRef. + + :return: The object_type of this DeviceconnectorDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this DeviceconnectorDeployTaskRef. + + :param object_type: The object_type of this DeviceconnectorDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DeviceconnectorDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/deviceconnector_policy.py b/intersight/models/deviceconnector_policy.py new file mode 100644 index 00000000..afc1a7bd --- /dev/null +++ b/intersight/models/deviceconnector_policy.py @@ -0,0 +1,517 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DeviceconnectorPolicy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'description': 'str', + 'name': 'str', + 'lockout_enabled': 'bool', + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'description': 'Description', + 'name': 'Name', + 'lockout_enabled': 'LockoutEnabled', + 'organization': 'Organization', + 'profiles': 'Profiles' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, lockout_enabled=None, organization=None, profiles=None): + """ + DeviceconnectorPolicy - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._description = None + self._name = None + self._lockout_enabled = None + self._organization = None + self._profiles = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if description is not None: + self.description = description + if name is not None: + self.name = name + if lockout_enabled is not None: + self.lockout_enabled = lockout_enabled + if organization is not None: + self.organization = organization + if profiles is not None: + self.profiles = profiles + + @property + def account_moid(self): + """ + Gets the account_moid of this DeviceconnectorPolicy. + The Account ID for this managed object. + + :return: The account_moid of this DeviceconnectorPolicy. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this DeviceconnectorPolicy. + The Account ID for this managed object. + + :param account_moid: The account_moid of this DeviceconnectorPolicy. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this DeviceconnectorPolicy. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this DeviceconnectorPolicy. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this DeviceconnectorPolicy. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this DeviceconnectorPolicy. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this DeviceconnectorPolicy. + The time when this managed object was created. + + :return: The create_time of this DeviceconnectorPolicy. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this DeviceconnectorPolicy. + The time when this managed object was created. + + :param create_time: The create_time of this DeviceconnectorPolicy. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this DeviceconnectorPolicy. + The time when this managed object was last modified. + + :return: The mod_time of this DeviceconnectorPolicy. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this DeviceconnectorPolicy. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this DeviceconnectorPolicy. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this DeviceconnectorPolicy. + A unique identifier of this Managed Object instance. + + :return: The moid of this DeviceconnectorPolicy. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this DeviceconnectorPolicy. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this DeviceconnectorPolicy. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this DeviceconnectorPolicy. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this DeviceconnectorPolicy. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this DeviceconnectorPolicy. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this DeviceconnectorPolicy. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this DeviceconnectorPolicy. + An array of owners which represent effective ownership of this object. + + :return: The owners of this DeviceconnectorPolicy. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this DeviceconnectorPolicy. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this DeviceconnectorPolicy. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this DeviceconnectorPolicy. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this DeviceconnectorPolicy. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this DeviceconnectorPolicy. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this DeviceconnectorPolicy. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this DeviceconnectorPolicy. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this DeviceconnectorPolicy. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this DeviceconnectorPolicy. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this DeviceconnectorPolicy. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this DeviceconnectorPolicy. + The versioning info for this managed object + + :return: The version_context of this DeviceconnectorPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this DeviceconnectorPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this DeviceconnectorPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def description(self): + """ + Gets the description of this DeviceconnectorPolicy. + Description of the policy. + + :return: The description of this DeviceconnectorPolicy. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this DeviceconnectorPolicy. + Description of the policy. + + :param description: The description of this DeviceconnectorPolicy. + :type: str + """ + + self._description = description + + @property + def name(self): + """ + Gets the name of this DeviceconnectorPolicy. + Name of the policy. + + :return: The name of this DeviceconnectorPolicy. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this DeviceconnectorPolicy. + Name of the policy. + + :param name: The name of this DeviceconnectorPolicy. + :type: str + """ + + self._name = name + + @property + def lockout_enabled(self): + """ + Gets the lockout_enabled of this DeviceconnectorPolicy. + Enables configuration lockout on the endpoint + + :return: The lockout_enabled of this DeviceconnectorPolicy. + :rtype: bool + """ + return self._lockout_enabled + + @lockout_enabled.setter + def lockout_enabled(self, lockout_enabled): + """ + Sets the lockout_enabled of this DeviceconnectorPolicy. + Enables configuration lockout on the endpoint + + :param lockout_enabled: The lockout_enabled of this DeviceconnectorPolicy. + :type: bool + """ + + self._lockout_enabled = lockout_enabled + + @property + def organization(self): + """ + Gets the organization of this DeviceconnectorPolicy. + Organization + + :return: The organization of this DeviceconnectorPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this DeviceconnectorPolicy. + Organization + + :param organization: The organization of this DeviceconnectorPolicy. + :type: IamAccountRef + """ + + self._organization = organization + + @property + def profiles(self): + """ + Gets the profiles of this DeviceconnectorPolicy. + Relationship to the profile object + + :return: The profiles of this DeviceconnectorPolicy. + :rtype: list[PolicyAbstractConfigProfileRef] + """ + return self._profiles + + @profiles.setter + def profiles(self, profiles): + """ + Sets the profiles of this DeviceconnectorPolicy. + Relationship to the profile object + + :param profiles: The profiles of this DeviceconnectorPolicy. + :type: list[PolicyAbstractConfigProfileRef] + """ + + self._profiles = profiles + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DeviceconnectorPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/deviceconnector_policy_list.py b/intersight/models/deviceconnector_policy_list.py new file mode 100644 index 00000000..e33b1bdf --- /dev/null +++ b/intersight/models/deviceconnector_policy_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DeviceconnectorPolicyList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[DeviceconnectorPolicy]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + DeviceconnectorPolicyList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this DeviceconnectorPolicyList. + The number of deviceconnectorPolicies matching your request in total for all pages. + + :return: The count of this DeviceconnectorPolicyList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this DeviceconnectorPolicyList. + The number of deviceconnectorPolicies matching your request in total for all pages. + + :param count: The count of this DeviceconnectorPolicyList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this DeviceconnectorPolicyList. + The array of deviceconnectorPolicies matching your request. + + :return: The results of this DeviceconnectorPolicyList. + :rtype: list[DeviceconnectorPolicy] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this DeviceconnectorPolicyList. + The array of deviceconnectorPolicies matching your request. + + :param results: The results of this DeviceconnectorPolicyList. + :type: list[DeviceconnectorPolicy] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DeviceconnectorPolicyList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/deviceconnector_policy_ref.py b/intersight/models/deviceconnector_policy_ref.py new file mode 100644 index 00000000..cd55bea9 --- /dev/null +++ b/intersight/models/deviceconnector_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DeviceconnectorPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + DeviceconnectorPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this DeviceconnectorPolicyRef. + + :return: The moid of this DeviceconnectorPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this DeviceconnectorPolicyRef. + + :param moid: The moid of this DeviceconnectorPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this DeviceconnectorPolicyRef. + + :return: The object_type of this DeviceconnectorPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this DeviceconnectorPolicyRef. + + :param object_type: The object_type of this DeviceconnectorPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DeviceconnectorPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/deviceconnector_validation_task_ref.py b/intersight/models/deviceconnector_validation_task_ref.py new file mode 100644 index 00000000..6a0437b4 --- /dev/null +++ b/intersight/models/deviceconnector_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DeviceconnectorValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + DeviceconnectorValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this DeviceconnectorValidationTaskRef. + + :return: The moid of this DeviceconnectorValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this DeviceconnectorValidationTaskRef. + + :param moid: The moid of this DeviceconnectorValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this DeviceconnectorValidationTaskRef. + + :return: The object_type of this DeviceconnectorValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this DeviceconnectorValidationTaskRef. + + :param object_type: The object_type of this DeviceconnectorValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DeviceconnectorValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/deviceinfo_serial_number_info.py b/intersight/models/deviceinfo_serial_number_info.py index 4bd8b7a8..1e48c2fa 100644 --- a/intersight/models/deviceinfo_serial_number_info.py +++ b/intersight/models/deviceinfo_serial_number_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class DeviceinfoSerialNumberInfo(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'covered_product_line_end_date': 'str', 'customer_address': 'str', 'customer_city': 'str', @@ -49,7 +50,7 @@ class DeviceinfoSerialNumberInfo(object): 'is_valid': 'bool', 'item_description': 'str', 'orderable_pid': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'serial_number': 'str', 'service_contract_number': 'str', 'service_line_descr': 'str', @@ -67,6 +68,7 @@ class DeviceinfoSerialNumberInfo(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'covered_product_line_end_date': 'CoveredProductLineEndDate', 'customer_address': 'CustomerAddress', 'customer_city': 'CustomerCity', @@ -84,7 +86,7 @@ class DeviceinfoSerialNumberInfo(object): 'warranty_type': 'WarrantyType' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, covered_product_line_end_date=None, customer_address=None, customer_city=None, customer_country=None, customer_name=None, customer_province=None, is_valid=None, item_description=None, orderable_pid=None, registered_device=None, serial_number=None, service_contract_number=None, service_line_descr=None, warranty_end_date=None, warranty_type=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, covered_product_line_end_date=None, customer_address=None, customer_city=None, customer_country=None, customer_name=None, customer_province=None, is_valid=None, item_description=None, orderable_pid=None, registered_device=None, serial_number=None, service_contract_number=None, service_line_descr=None, warranty_end_date=None, warranty_type=None): """ DeviceinfoSerialNumberInfo - a model defined in Swagger """ @@ -98,6 +100,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._covered_product_line_end_date = None self._customer_address = None self._customer_city = None @@ -132,6 +135,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if covered_product_line_end_date is not None: self.covered_product_line_end_date = covered_product_line_end_date if customer_address is not None: @@ -193,7 +198,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this DeviceinfoSerialNumberInfo. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -204,7 +209,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this DeviceinfoSerialNumberInfo. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -331,7 +336,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this DeviceinfoSerialNumberInfo. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -342,7 +347,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this DeviceinfoSerialNumberInfo. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -351,7 +356,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this DeviceinfoSerialNumberInfo. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this DeviceinfoSerialNumberInfo. :rtype: list[MoTag] @@ -362,7 +367,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this DeviceinfoSerialNumberInfo. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this DeviceinfoSerialNumberInfo. :type: list[MoTag] @@ -370,6 +375,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this DeviceinfoSerialNumberInfo. + The versioning info for this managed object + + :return: The version_context of this DeviceinfoSerialNumberInfo. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this DeviceinfoSerialNumberInfo. + The versioning info for this managed object + + :param version_context: The version_context of this DeviceinfoSerialNumberInfo. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def covered_product_line_end_date(self): """ @@ -565,7 +593,7 @@ def registered_device(self): Gets the registered_device of this DeviceinfoSerialNumberInfo. :return: The registered_device of this DeviceinfoSerialNumberInfo. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -575,7 +603,7 @@ def registered_device(self, registered_device): Sets the registered_device of this DeviceinfoSerialNumberInfo. :param registered_device: The registered_device of this DeviceinfoSerialNumberInfo. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/deviceinfo_serial_number_info_list.py b/intersight/models/deviceinfo_serial_number_info_list.py index fe100c12..9ea142ec 100644 --- a/intersight/models/deviceinfo_serial_number_info_list.py +++ b/intersight/models/deviceinfo_serial_number_info_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/deviceinfo_serial_number_info_ref.py b/intersight/models/deviceinfo_serial_number_info_ref.py new file mode 100644 index 00000000..45a2c0b1 --- /dev/null +++ b/intersight/models/deviceinfo_serial_number_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DeviceinfoSerialNumberInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + DeviceinfoSerialNumberInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this DeviceinfoSerialNumberInfoRef. + + :return: The moid of this DeviceinfoSerialNumberInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this DeviceinfoSerialNumberInfoRef. + + :param moid: The moid of this DeviceinfoSerialNumberInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this DeviceinfoSerialNumberInfoRef. + + :return: The object_type of this DeviceinfoSerialNumberInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this DeviceinfoSerialNumberInfoRef. + + :param object_type: The object_type of this DeviceinfoSerialNumberInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DeviceinfoSerialNumberInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_iterator_string.py b/intersight/models/devops_abstract_trigger_details.py similarity index 88% rename from intersight/models/hyperflex_iterator_string.py rename to intersight/models/devops_abstract_trigger_details.py index fa2483d0..a7cfb271 100644 --- a/intersight/models/hyperflex_iterator_string.py +++ b/intersight/models/devops_abstract_trigger_details.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class HyperflexIteratorString(object): +class DevopsAbstractTriggerDetails(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class HyperflexIteratorString(object): def __init__(self): """ - HyperflexIteratorString - a model defined in Swagger + DevopsAbstractTriggerDetails - a model defined in Swagger """ @@ -87,7 +87,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, HyperflexIteratorString): + if not isinstance(other, DevopsAbstractTriggerDetails): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/devops_abstract_trigger_details_ref.py b/intersight/models/devops_abstract_trigger_details_ref.py new file mode 100644 index 00000000..018e02c6 --- /dev/null +++ b/intersight/models/devops_abstract_trigger_details_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DevopsAbstractTriggerDetailsRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + DevopsAbstractTriggerDetailsRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this DevopsAbstractTriggerDetailsRef. + + :return: The moid of this DevopsAbstractTriggerDetailsRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this DevopsAbstractTriggerDetailsRef. + + :param moid: The moid of this DevopsAbstractTriggerDetailsRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this DevopsAbstractTriggerDetailsRef. + + :return: The object_type of this DevopsAbstractTriggerDetailsRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this DevopsAbstractTriggerDetailsRef. + + :param object_type: The object_type of this DevopsAbstractTriggerDetailsRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DevopsAbstractTriggerDetailsRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/devops_notification_trigger.py b/intersight/models/devops_notification_trigger.py new file mode 100644 index 00000000..b99bb263 --- /dev/null +++ b/intersight/models/devops_notification_trigger.py @@ -0,0 +1,305 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DevopsNotificationTrigger(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account': 'str', + 'domain_group': 'str', + 'mo_type': 'str', + 'modification_type': 'str', + 'moid': 'str', + 'security_context_subject': 'str', + 'security_context_type': 'str' + } + + attribute_map = { + 'account': 'Account', + 'domain_group': 'DomainGroup', + 'mo_type': 'MoType', + 'modification_type': 'ModificationType', + 'moid': 'Moid', + 'security_context_subject': 'SecurityContextSubject', + 'security_context_type': 'SecurityContextType' + } + + def __init__(self, account=None, domain_group=None, mo_type=None, modification_type='Update', moid=None, security_context_subject=None, security_context_type='AccountContext'): + """ + DevopsNotificationTrigger - a model defined in Swagger + """ + + self._account = None + self._domain_group = None + self._mo_type = None + self._modification_type = None + self._moid = None + self._security_context_subject = None + self._security_context_type = None + + if account is not None: + self.account = account + if domain_group is not None: + self.domain_group = domain_group + if mo_type is not None: + self.mo_type = mo_type + if modification_type is not None: + self.modification_type = modification_type + if moid is not None: + self.moid = moid + if security_context_subject is not None: + self.security_context_subject = security_context_subject + if security_context_type is not None: + self.security_context_type = security_context_type + + @property + def account(self): + """ + Gets the account of this DevopsNotificationTrigger. + The Moid of the Account to which the MO identified by the 'moid' field belonged. This field is mandatory when modificationType is Delete and is ignored for other values of modificationType. + + :return: The account of this DevopsNotificationTrigger. + :rtype: str + """ + return self._account + + @account.setter + def account(self, account): + """ + Sets the account of this DevopsNotificationTrigger. + The Moid of the Account to which the MO identified by the 'moid' field belonged. This field is mandatory when modificationType is Delete and is ignored for other values of modificationType. + + :param account: The account of this DevopsNotificationTrigger. + :type: str + """ + + self._account = account + + @property + def domain_group(self): + """ + Gets the domain_group of this DevopsNotificationTrigger. + The Moid of the DomainGroup to which the MO identified by the 'moid' field belonged. This field is mandatory when modificationType is Delete and is ignored for other values of modificationType. + + :return: The domain_group of this DevopsNotificationTrigger. + :rtype: str + """ + return self._domain_group + + @domain_group.setter + def domain_group(self, domain_group): + """ + Sets the domain_group of this DevopsNotificationTrigger. + The Moid of the DomainGroup to which the MO identified by the 'moid' field belonged. This field is mandatory when modificationType is Delete and is ignored for other values of modificationType. + + :param domain_group: The domain_group of this DevopsNotificationTrigger. + :type: str + """ + + self._domain_group = domain_group + + @property + def mo_type(self): + """ + Gets the mo_type of this DevopsNotificationTrigger. + The type of the MO such as iam.Account. + + :return: The mo_type of this DevopsNotificationTrigger. + :rtype: str + """ + return self._mo_type + + @mo_type.setter + def mo_type(self, mo_type): + """ + Sets the mo_type of this DevopsNotificationTrigger. + The type of the MO such as iam.Account. + + :param mo_type: The mo_type of this DevopsNotificationTrigger. + :type: str + """ + + self._mo_type = mo_type + + @property + def modification_type(self): + """ + Gets the modification_type of this DevopsNotificationTrigger. + Indicates the type of change notification. + + :return: The modification_type of this DevopsNotificationTrigger. + :rtype: str + """ + return self._modification_type + + @modification_type.setter + def modification_type(self, modification_type): + """ + Sets the modification_type of this DevopsNotificationTrigger. + Indicates the type of change notification. + + :param modification_type: The modification_type of this DevopsNotificationTrigger. + :type: str + """ + allowed_values = ["Update", "Create", "Read", "Delete"] + if modification_type not in allowed_values: + raise ValueError( + "Invalid value for `modification_type` ({0}), must be one of {1}" + .format(modification_type, allowed_values) + ) + + self._modification_type = modification_type + + @property + def moid(self): + """ + Gets the moid of this DevopsNotificationTrigger. + The Moid of the MO. + + :return: The moid of this DevopsNotificationTrigger. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this DevopsNotificationTrigger. + The Moid of the MO. + + :param moid: The moid of this DevopsNotificationTrigger. + :type: str + """ + + self._moid = moid + + @property + def security_context_subject(self): + """ + Gets the security_context_subject of this DevopsNotificationTrigger. + A securityContextSubject must be specified when the securityContextType is AccountContext or DeviceContext. The field is the Moid of the respective iam.Account of asset.DeviceRegistration. + + :return: The security_context_subject of this DevopsNotificationTrigger. + :rtype: str + """ + return self._security_context_subject + + @security_context_subject.setter + def security_context_subject(self, security_context_subject): + """ + Sets the security_context_subject of this DevopsNotificationTrigger. + A securityContextSubject must be specified when the securityContextType is AccountContext or DeviceContext. The field is the Moid of the respective iam.Account of asset.DeviceRegistration. + + :param security_context_subject: The security_context_subject of this DevopsNotificationTrigger. + :type: str + """ + + self._security_context_subject = security_context_subject + + @property + def security_context_type(self): + """ + Gets the security_context_type of this DevopsNotificationTrigger. + In some scenarios it is necessary for change notifications to be processed in SystemContext. For example, when a device is claimed or unclaimed the notification must execute in SystemContext in order to move MOs related to the device between accounts. + + :return: The security_context_type of this DevopsNotificationTrigger. + :rtype: str + """ + return self._security_context_type + + @security_context_type.setter + def security_context_type(self, security_context_type): + """ + Sets the security_context_type of this DevopsNotificationTrigger. + In some scenarios it is necessary for change notifications to be processed in SystemContext. For example, when a device is claimed or unclaimed the notification must execute in SystemContext in order to move MOs related to the device between accounts. + + :param security_context_type: The security_context_type of this DevopsNotificationTrigger. + :type: str + """ + allowed_values = ["AccountContext", "SystemContext", "DeviceContext"] + if security_context_type not in allowed_values: + raise ValueError( + "Invalid value for `security_context_type` ({0}), must be one of {1}" + .format(security_context_type, allowed_values) + ) + + self._security_context_type = security_context_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DevopsNotificationTrigger): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/devops_notification_trigger_ref.py b/intersight/models/devops_notification_trigger_ref.py new file mode 100644 index 00000000..f47dd7f3 --- /dev/null +++ b/intersight/models/devops_notification_trigger_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DevopsNotificationTriggerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + DevopsNotificationTriggerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this DevopsNotificationTriggerRef. + + :return: The moid of this DevopsNotificationTriggerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this DevopsNotificationTriggerRef. + + :param moid: The moid of this DevopsNotificationTriggerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this DevopsNotificationTriggerRef. + + :return: The object_type of this DevopsNotificationTriggerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this DevopsNotificationTriggerRef. + + :param object_type: The object_type of this DevopsNotificationTriggerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DevopsNotificationTriggerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/devops_trigger_ref.py b/intersight/models/devops_trigger_ref.py new file mode 100644 index 00000000..55b06328 --- /dev/null +++ b/intersight/models/devops_trigger_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class DevopsTriggerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + DevopsTriggerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this DevopsTriggerRef. + + :return: The moid of this DevopsTriggerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this DevopsTriggerRef. + + :param moid: The moid of this DevopsTriggerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this DevopsTriggerRef. + + :return: The object_type of this DevopsTriggerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this DevopsTriggerRef. + + :param object_type: The object_type of this DevopsTriggerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, DevopsTriggerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/epansible_runner_ref.py b/intersight/models/epansible_runner_ref.py new file mode 100644 index 00000000..566e48b6 --- /dev/null +++ b/intersight/models/epansible_runner_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EpansibleRunnerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EpansibleRunnerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EpansibleRunnerRef. + + :return: The moid of this EpansibleRunnerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EpansibleRunnerRef. + + :param moid: The moid of this EpansibleRunnerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EpansibleRunnerRef. + + :return: The object_type of this EpansibleRunnerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EpansibleRunnerRef. + + :param object_type: The object_type of this EpansibleRunnerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EpansibleRunnerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_base.py b/intersight/models/equipment_base.py index ea735e66..01442f63 100644 --- a/intersight/models/equipment_base.py +++ b/intersight/models/equipment_base.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class EquipmentBase(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -59,6 +60,7 @@ class EquipmentBase(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -68,7 +70,7 @@ class EquipmentBase(object): 'vendor': 'Vendor' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None): """ EquipmentBase - a model defined in Swagger """ @@ -82,6 +84,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -108,6 +111,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -153,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentBase. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentBase. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentBase. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentBase. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -311,7 +316,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this EquipmentBase. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this EquipmentBase. :rtype: list[MoTag] @@ -322,7 +327,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this EquipmentBase. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this EquipmentBase. :type: list[MoTag] @@ -330,6 +335,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this EquipmentBase. + The versioning info for this managed object + + :return: The version_context of this EquipmentBase. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this EquipmentBase. + The versioning info for this managed object + + :param version_context: The version_context of this EquipmentBase. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ diff --git a/intersight/models/equipment_base_ref.py b/intersight/models/equipment_base_ref.py new file mode 100644 index 00000000..0758100d --- /dev/null +++ b/intersight/models/equipment_base_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentBaseRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentBaseRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentBaseRef. + + :return: The moid of this EquipmentBaseRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentBaseRef. + + :param moid: The moid of this EquipmentBaseRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentBaseRef. + + :return: The object_type of this EquipmentBaseRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentBaseRef. + + :param object_type: The object_type of this EquipmentBaseRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentBaseRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_chassis.py b/intersight/models/equipment_chassis.py index e76b9cd9..7914629e 100644 --- a/intersight/models/equipment_chassis.py +++ b/intersight/models/equipment_chassis.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class EquipmentChassis(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -47,14 +48,15 @@ class EquipmentChassis(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'blades': 'list[MoMoRef]', - 'fanmodules': 'list[MoMoRef]', - 'ioms': 'list[MoMoRef]', + 'blades': 'list[ComputeBladeRef]', + 'fanmodules': 'list[EquipmentFanModuleRef]', + 'ioms': 'list[EquipmentIoCardRef]', 'oper_state': 'str', - 'psus': 'list[MoMoRef]', - 'registered_device': 'MoMoRef', - 'sasexpanders': 'list[MoMoRef]', - 'siocs': 'list[MoMoRef]' + 'psus': 'list[EquipmentPsuRef]', + 'registered_device': 'AssetDeviceRegistrationRef', + 'sasexpanders': 'list[StorageSasExpanderRef]', + 'siocs': 'list[EquipmentSystemIoControllerRef]', + 'storage_enclosures': 'list[StorageEnclosureRef]' } attribute_map = { @@ -67,6 +69,7 @@ class EquipmentChassis(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -81,10 +84,11 @@ class EquipmentChassis(object): 'psus': 'Psus', 'registered_device': 'RegisteredDevice', 'sasexpanders': 'Sasexpanders', - 'siocs': 'Siocs' + 'siocs': 'Siocs', + 'storage_enclosures': 'StorageEnclosures' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, blades=None, fanmodules=None, ioms=None, oper_state=None, psus=None, registered_device=None, sasexpanders=None, siocs=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, blades=None, fanmodules=None, ioms=None, oper_state=None, psus=None, registered_device=None, sasexpanders=None, siocs=None, storage_enclosures=None): """ EquipmentChassis - a model defined in Swagger """ @@ -98,6 +102,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -113,6 +118,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._registered_device = None self._sasexpanders = None self._siocs = None + self._storage_enclosures = None if account_moid is not None: self.account_moid = account_moid @@ -132,6 +138,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -162,6 +170,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.sasexpanders = sasexpanders if siocs is not None: self.siocs = siocs + if storage_enclosures is not None: + self.storage_enclosures = storage_enclosures @property def account_moid(self): @@ -193,7 +203,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentChassis. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -204,7 +214,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentChassis. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -331,7 +341,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentChassis. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -342,7 +352,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentChassis. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -351,7 +361,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this EquipmentChassis. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this EquipmentChassis. :rtype: list[MoTag] @@ -362,7 +372,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this EquipmentChassis. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this EquipmentChassis. :type: list[MoTag] @@ -370,6 +380,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this EquipmentChassis. + The versioning info for this managed object + + :return: The version_context of this EquipmentChassis. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this EquipmentChassis. + The versioning info for this managed object + + :param version_context: The version_context of this EquipmentChassis. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -523,7 +556,7 @@ def blades(self): Gets the blades of this EquipmentChassis. :return: The blades of this EquipmentChassis. - :rtype: list[MoMoRef] + :rtype: list[ComputeBladeRef] """ return self._blades @@ -533,7 +566,7 @@ def blades(self, blades): Sets the blades of this EquipmentChassis. :param blades: The blades of this EquipmentChassis. - :type: list[MoMoRef] + :type: list[ComputeBladeRef] """ self._blades = blades @@ -544,7 +577,7 @@ def fanmodules(self): Gets the fanmodules of this EquipmentChassis. :return: The fanmodules of this EquipmentChassis. - :rtype: list[MoMoRef] + :rtype: list[EquipmentFanModuleRef] """ return self._fanmodules @@ -554,7 +587,7 @@ def fanmodules(self, fanmodules): Sets the fanmodules of this EquipmentChassis. :param fanmodules: The fanmodules of this EquipmentChassis. - :type: list[MoMoRef] + :type: list[EquipmentFanModuleRef] """ self._fanmodules = fanmodules @@ -565,7 +598,7 @@ def ioms(self): Gets the ioms of this EquipmentChassis. :return: The ioms of this EquipmentChassis. - :rtype: list[MoMoRef] + :rtype: list[EquipmentIoCardRef] """ return self._ioms @@ -575,7 +608,7 @@ def ioms(self, ioms): Sets the ioms of this EquipmentChassis. :param ioms: The ioms of this EquipmentChassis. - :type: list[MoMoRef] + :type: list[EquipmentIoCardRef] """ self._ioms = ioms @@ -607,7 +640,7 @@ def psus(self): Gets the psus of this EquipmentChassis. :return: The psus of this EquipmentChassis. - :rtype: list[MoMoRef] + :rtype: list[EquipmentPsuRef] """ return self._psus @@ -617,7 +650,7 @@ def psus(self, psus): Sets the psus of this EquipmentChassis. :param psus: The psus of this EquipmentChassis. - :type: list[MoMoRef] + :type: list[EquipmentPsuRef] """ self._psus = psus @@ -628,7 +661,7 @@ def registered_device(self): Gets the registered_device of this EquipmentChassis. :return: The registered_device of this EquipmentChassis. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -638,7 +671,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentChassis. :param registered_device: The registered_device of this EquipmentChassis. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -649,7 +682,7 @@ def sasexpanders(self): Gets the sasexpanders of this EquipmentChassis. :return: The sasexpanders of this EquipmentChassis. - :rtype: list[MoMoRef] + :rtype: list[StorageSasExpanderRef] """ return self._sasexpanders @@ -659,7 +692,7 @@ def sasexpanders(self, sasexpanders): Sets the sasexpanders of this EquipmentChassis. :param sasexpanders: The sasexpanders of this EquipmentChassis. - :type: list[MoMoRef] + :type: list[StorageSasExpanderRef] """ self._sasexpanders = sasexpanders @@ -670,7 +703,7 @@ def siocs(self): Gets the siocs of this EquipmentChassis. :return: The siocs of this EquipmentChassis. - :rtype: list[MoMoRef] + :rtype: list[EquipmentSystemIoControllerRef] """ return self._siocs @@ -680,11 +713,32 @@ def siocs(self, siocs): Sets the siocs of this EquipmentChassis. :param siocs: The siocs of this EquipmentChassis. - :type: list[MoMoRef] + :type: list[EquipmentSystemIoControllerRef] """ self._siocs = siocs + @property + def storage_enclosures(self): + """ + Gets the storage_enclosures of this EquipmentChassis. + + :return: The storage_enclosures of this EquipmentChassis. + :rtype: list[StorageEnclosureRef] + """ + return self._storage_enclosures + + @storage_enclosures.setter + def storage_enclosures(self, storage_enclosures): + """ + Sets the storage_enclosures of this EquipmentChassis. + + :param storage_enclosures: The storage_enclosures of this EquipmentChassis. + :type: list[StorageEnclosureRef] + """ + + self._storage_enclosures = storage_enclosures + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/equipment_chassis_list.py b/intersight/models/equipment_chassis_list.py index 08bfa252..7feced8a 100644 --- a/intersight/models/equipment_chassis_list.py +++ b/intersight/models/equipment_chassis_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_chassis_ref.py b/intersight/models/equipment_chassis_ref.py new file mode 100644 index 00000000..70711742 --- /dev/null +++ b/intersight/models/equipment_chassis_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentChassisRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentChassisRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentChassisRef. + + :return: The moid of this EquipmentChassisRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentChassisRef. + + :param moid: The moid of this EquipmentChassisRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentChassisRef. + + :return: The object_type of this EquipmentChassisRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentChassisRef. + + :param object_type: The object_type of this EquipmentChassisRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentChassisRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_device_summary.py b/intersight/models/equipment_device_summary.py index b3a3858d..a21e14e8 100644 --- a/intersight/models/equipment_device_summary.py +++ b/intersight/models/equipment_device_summary.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,18 @@ class EquipmentDeviceSummary(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'dn': 'str', 'model': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'serial': 'str', 'source_object_type': 'str' } @@ -57,6 +58,7 @@ class EquipmentDeviceSummary(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'dn': 'Dn', 'model': 'Model', 'registered_device': 'RegisteredDevice', @@ -64,7 +66,7 @@ class EquipmentDeviceSummary(object): 'source_object_type': 'SourceObjectType' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, dn=None, model=None, registered_device=None, serial=None, source_object_type=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, dn=None, model=None, registered_device=None, serial=None, source_object_type=None): """ EquipmentDeviceSummary - a model defined in Swagger """ @@ -78,6 +80,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._dn = None self._model = None self._registered_device = None @@ -102,6 +105,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if dn is not None: self.dn = dn if model is not None: @@ -143,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentDeviceSummary. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -154,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentDeviceSummary. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -281,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentDeviceSummary. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -292,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentDeviceSummary. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -301,7 +306,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this EquipmentDeviceSummary. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this EquipmentDeviceSummary. :rtype: list[MoTag] @@ -312,7 +317,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this EquipmentDeviceSummary. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this EquipmentDeviceSummary. :type: list[MoTag] @@ -320,6 +325,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this EquipmentDeviceSummary. + The versioning info for this managed object + + :return: The version_context of this EquipmentDeviceSummary. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this EquipmentDeviceSummary. + The versioning info for this managed object + + :param version_context: The version_context of this EquipmentDeviceSummary. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def dn(self): """ @@ -372,7 +400,7 @@ def registered_device(self): Gets the registered_device of this EquipmentDeviceSummary. :return: The registered_device of this EquipmentDeviceSummary. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -382,7 +410,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentDeviceSummary. :param registered_device: The registered_device of this EquipmentDeviceSummary. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/equipment_device_summary_list.py b/intersight/models/equipment_device_summary_list.py index 0a261936..a95546a6 100644 --- a/intersight/models/equipment_device_summary_list.py +++ b/intersight/models/equipment_device_summary_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_device_summary_ref.py b/intersight/models/equipment_device_summary_ref.py new file mode 100644 index 00000000..2d08f5ee --- /dev/null +++ b/intersight/models/equipment_device_summary_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentDeviceSummaryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentDeviceSummaryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentDeviceSummaryRef. + + :return: The moid of this EquipmentDeviceSummaryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentDeviceSummaryRef. + + :param moid: The moid of this EquipmentDeviceSummaryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentDeviceSummaryRef. + + :return: The object_type of this EquipmentDeviceSummaryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentDeviceSummaryRef. + + :param object_type: The object_type of this EquipmentDeviceSummaryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentDeviceSummaryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_fan.py b/intersight/models/equipment_fan.py index 8b9a883f..597efc47 100644 --- a/intersight/models/equipment_fan.py +++ b/intersight/models/equipment_fan.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class EquipmentFan(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -47,10 +48,10 @@ class EquipmentFan(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'equipment_fan_module': 'MoMoRef', + 'equipment_fan_module': 'EquipmentFanModuleRef', 'oper_state': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -63,6 +64,7 @@ class EquipmentFan(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -76,7 +78,7 @@ class EquipmentFan(object): 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, equipment_fan_module=None, oper_state=None, presence=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, equipment_fan_module=None, oper_state=None, presence=None, registered_device=None): """ EquipmentFan - a model defined in Swagger """ @@ -90,6 +92,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -120,6 +123,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -173,7 +178,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentFan. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -184,7 +189,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentFan. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -311,7 +316,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentFan. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -322,7 +327,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentFan. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -331,7 +336,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this EquipmentFan. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this EquipmentFan. :rtype: list[MoTag] @@ -342,7 +347,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this EquipmentFan. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this EquipmentFan. :type: list[MoTag] @@ -350,6 +355,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this EquipmentFan. + The versioning info for this managed object + + :return: The version_context of this EquipmentFan. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this EquipmentFan. + The versioning info for this managed object + + :param version_context: The version_context of this EquipmentFan. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -503,7 +531,7 @@ def equipment_fan_module(self): Gets the equipment_fan_module of this EquipmentFan. :return: The equipment_fan_module of this EquipmentFan. - :rtype: MoMoRef + :rtype: EquipmentFanModuleRef """ return self._equipment_fan_module @@ -513,7 +541,7 @@ def equipment_fan_module(self, equipment_fan_module): Sets the equipment_fan_module of this EquipmentFan. :param equipment_fan_module: The equipment_fan_module of this EquipmentFan. - :type: MoMoRef + :type: EquipmentFanModuleRef """ self._equipment_fan_module = equipment_fan_module @@ -566,7 +594,7 @@ def registered_device(self): Gets the registered_device of this EquipmentFan. :return: The registered_device of this EquipmentFan. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -576,7 +604,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentFan. :param registered_device: The registered_device of this EquipmentFan. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/equipment_fan_list.py b/intersight/models/equipment_fan_list.py index e800abc0..4fb6dc67 100644 --- a/intersight/models/equipment_fan_list.py +++ b/intersight/models/equipment_fan_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_fan_module.py b/intersight/models/equipment_fan_module.py index 1a1f0cb9..c0ea3aef 100644 --- a/intersight/models/equipment_fan_module.py +++ b/intersight/models/equipment_fan_module.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class EquipmentFanModule(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -47,13 +48,14 @@ class EquipmentFanModule(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'compute_rack_unit': 'MoMoRef', - 'equipment_chassis': 'MoMoRef', - 'fans': 'list[MoMoRef]', - 'network_element': 'MoMoRef', + 'compute_rack_unit': 'ComputeRackUnitRef', + 'equipment_chassis': 'EquipmentChassisRef', + 'equipment_rack_enclosure': 'EquipmentRackEnclosureRef', + 'fans': 'list[EquipmentFanRef]', + 'network_element': 'NetworkElementRef', 'oper_state': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -66,6 +68,7 @@ class EquipmentFanModule(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -75,6 +78,7 @@ class EquipmentFanModule(object): 'vendor': 'Vendor', 'compute_rack_unit': 'ComputeRackUnit', 'equipment_chassis': 'EquipmentChassis', + 'equipment_rack_enclosure': 'EquipmentRackEnclosure', 'fans': 'Fans', 'network_element': 'NetworkElement', 'oper_state': 'OperState', @@ -82,7 +86,7 @@ class EquipmentFanModule(object): 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_rack_unit=None, equipment_chassis=None, fans=None, network_element=None, oper_state=None, presence=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_rack_unit=None, equipment_chassis=None, equipment_rack_enclosure=None, fans=None, network_element=None, oper_state=None, presence=None, registered_device=None): """ EquipmentFanModule - a model defined in Swagger """ @@ -96,6 +100,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -105,6 +110,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._vendor = None self._compute_rack_unit = None self._equipment_chassis = None + self._equipment_rack_enclosure = None self._fans = None self._network_element = None self._oper_state = None @@ -129,6 +135,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -147,6 +155,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.compute_rack_unit = compute_rack_unit if equipment_chassis is not None: self.equipment_chassis = equipment_chassis + if equipment_rack_enclosure is not None: + self.equipment_rack_enclosure = equipment_rack_enclosure if fans is not None: self.fans = fans if network_element is not None: @@ -188,7 +198,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentFanModule. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -199,7 +209,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentFanModule. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -326,7 +336,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentFanModule. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -337,7 +347,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentFanModule. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -346,7 +356,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this EquipmentFanModule. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this EquipmentFanModule. :rtype: list[MoTag] @@ -357,7 +367,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this EquipmentFanModule. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this EquipmentFanModule. :type: list[MoTag] @@ -365,6 +375,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this EquipmentFanModule. + The versioning info for this managed object + + :return: The version_context of this EquipmentFanModule. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this EquipmentFanModule. + The versioning info for this managed object + + :param version_context: The version_context of this EquipmentFanModule. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -518,7 +551,7 @@ def compute_rack_unit(self): Gets the compute_rack_unit of this EquipmentFanModule. :return: The compute_rack_unit of this EquipmentFanModule. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._compute_rack_unit @@ -528,7 +561,7 @@ def compute_rack_unit(self, compute_rack_unit): Sets the compute_rack_unit of this EquipmentFanModule. :param compute_rack_unit: The compute_rack_unit of this EquipmentFanModule. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._compute_rack_unit = compute_rack_unit @@ -539,7 +572,7 @@ def equipment_chassis(self): Gets the equipment_chassis of this EquipmentFanModule. :return: The equipment_chassis of this EquipmentFanModule. - :rtype: MoMoRef + :rtype: EquipmentChassisRef """ return self._equipment_chassis @@ -549,18 +582,39 @@ def equipment_chassis(self, equipment_chassis): Sets the equipment_chassis of this EquipmentFanModule. :param equipment_chassis: The equipment_chassis of this EquipmentFanModule. - :type: MoMoRef + :type: EquipmentChassisRef """ self._equipment_chassis = equipment_chassis + @property + def equipment_rack_enclosure(self): + """ + Gets the equipment_rack_enclosure of this EquipmentFanModule. + + :return: The equipment_rack_enclosure of this EquipmentFanModule. + :rtype: EquipmentRackEnclosureRef + """ + return self._equipment_rack_enclosure + + @equipment_rack_enclosure.setter + def equipment_rack_enclosure(self, equipment_rack_enclosure): + """ + Sets the equipment_rack_enclosure of this EquipmentFanModule. + + :param equipment_rack_enclosure: The equipment_rack_enclosure of this EquipmentFanModule. + :type: EquipmentRackEnclosureRef + """ + + self._equipment_rack_enclosure = equipment_rack_enclosure + @property def fans(self): """ Gets the fans of this EquipmentFanModule. :return: The fans of this EquipmentFanModule. - :rtype: list[MoMoRef] + :rtype: list[EquipmentFanRef] """ return self._fans @@ -570,7 +624,7 @@ def fans(self, fans): Sets the fans of this EquipmentFanModule. :param fans: The fans of this EquipmentFanModule. - :type: list[MoMoRef] + :type: list[EquipmentFanRef] """ self._fans = fans @@ -581,7 +635,7 @@ def network_element(self): Gets the network_element of this EquipmentFanModule. :return: The network_element of this EquipmentFanModule. - :rtype: MoMoRef + :rtype: NetworkElementRef """ return self._network_element @@ -591,7 +645,7 @@ def network_element(self, network_element): Sets the network_element of this EquipmentFanModule. :param network_element: The network_element of this EquipmentFanModule. - :type: MoMoRef + :type: NetworkElementRef """ self._network_element = network_element @@ -644,7 +698,7 @@ def registered_device(self): Gets the registered_device of this EquipmentFanModule. :return: The registered_device of this EquipmentFanModule. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -654,7 +708,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentFanModule. :param registered_device: The registered_device of this EquipmentFanModule. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/equipment_fan_module_list.py b/intersight/models/equipment_fan_module_list.py index 44ddb7e5..b5e63371 100644 --- a/intersight/models/equipment_fan_module_list.py +++ b/intersight/models/equipment_fan_module_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_fan_module_ref.py b/intersight/models/equipment_fan_module_ref.py new file mode 100644 index 00000000..278fcc7f --- /dev/null +++ b/intersight/models/equipment_fan_module_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentFanModuleRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentFanModuleRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentFanModuleRef. + + :return: The moid of this EquipmentFanModuleRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentFanModuleRef. + + :param moid: The moid of this EquipmentFanModuleRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentFanModuleRef. + + :return: The object_type of this EquipmentFanModuleRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentFanModuleRef. + + :param object_type: The object_type of this EquipmentFanModuleRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentFanModuleRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_fan_ref.py b/intersight/models/equipment_fan_ref.py new file mode 100644 index 00000000..6082f158 --- /dev/null +++ b/intersight/models/equipment_fan_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentFanRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentFanRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentFanRef. + + :return: The moid of this EquipmentFanRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentFanRef. + + :param moid: The moid of this EquipmentFanRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentFanRef. + + :return: The object_type of this EquipmentFanRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentFanRef. + + :param object_type: The object_type of this EquipmentFanRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentFanRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_fex.py b/intersight/models/equipment_fex.py index 7a0b0dc7..3042f850 100644 --- a/intersight/models/equipment_fex.py +++ b/intersight/models/equipment_fex.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class EquipmentFex(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -48,7 +49,7 @@ class EquipmentFex(object): 'serial': 'str', 'vendor': 'str', 'oper_state': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -61,6 +62,7 @@ class EquipmentFex(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -72,7 +74,7 @@ class EquipmentFex(object): 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, oper_state=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, oper_state=None, registered_device=None): """ EquipmentFex - a model defined in Swagger """ @@ -86,6 +88,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -114,6 +117,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -163,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentFex. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentFex. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentFex. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentFex. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -321,7 +326,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this EquipmentFex. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this EquipmentFex. :rtype: list[MoTag] @@ -332,7 +337,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this EquipmentFex. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this EquipmentFex. :type: list[MoTag] @@ -340,6 +345,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this EquipmentFex. + The versioning info for this managed object + + :return: The version_context of this EquipmentFex. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this EquipmentFex. + The versioning info for this managed object + + :param version_context: The version_context of this EquipmentFex. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -514,7 +542,7 @@ def registered_device(self): Gets the registered_device of this EquipmentFex. :return: The registered_device of this EquipmentFex. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -524,7 +552,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentFex. :param registered_device: The registered_device of this EquipmentFex. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/equipment_fex_list.py b/intersight/models/equipment_fex_list.py index fb597024..95302377 100644 --- a/intersight/models/equipment_fex_list.py +++ b/intersight/models/equipment_fex_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_fex_ref.py b/intersight/models/equipment_fex_ref.py new file mode 100644 index 00000000..33979552 --- /dev/null +++ b/intersight/models/equipment_fex_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentFexRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentFexRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentFexRef. + + :return: The moid of this EquipmentFexRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentFexRef. + + :param moid: The moid of this EquipmentFexRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentFexRef. + + :return: The object_type of this EquipmentFexRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentFexRef. + + :param object_type: The object_type of this EquipmentFexRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentFexRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_io_card.py b/intersight/models/equipment_io_card.py index 81c59f66..5bd9824a 100644 --- a/intersight/models/equipment_io_card.py +++ b/intersight/models/equipment_io_card.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class EquipmentIoCard(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -47,9 +48,9 @@ class EquipmentIoCard(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'equipment_chassis': 'MoMoRef', + 'equipment_chassis': 'EquipmentChassisRef', 'oper_state': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -62,6 +63,7 @@ class EquipmentIoCard(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -74,7 +76,7 @@ class EquipmentIoCard(object): 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, equipment_chassis=None, oper_state=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, equipment_chassis=None, oper_state=None, registered_device=None): """ EquipmentIoCard - a model defined in Swagger """ @@ -88,6 +90,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -117,6 +120,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -168,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentIoCard. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -179,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentIoCard. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -306,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentIoCard. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -317,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentIoCard. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -326,7 +331,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this EquipmentIoCard. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this EquipmentIoCard. :rtype: list[MoTag] @@ -337,7 +342,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this EquipmentIoCard. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this EquipmentIoCard. :type: list[MoTag] @@ -345,6 +350,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this EquipmentIoCard. + The versioning info for this managed object + + :return: The version_context of this EquipmentIoCard. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this EquipmentIoCard. + The versioning info for this managed object + + :param version_context: The version_context of this EquipmentIoCard. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -498,7 +526,7 @@ def equipment_chassis(self): Gets the equipment_chassis of this EquipmentIoCard. :return: The equipment_chassis of this EquipmentIoCard. - :rtype: MoMoRef + :rtype: EquipmentChassisRef """ return self._equipment_chassis @@ -508,7 +536,7 @@ def equipment_chassis(self, equipment_chassis): Sets the equipment_chassis of this EquipmentIoCard. :param equipment_chassis: The equipment_chassis of this EquipmentIoCard. - :type: MoMoRef + :type: EquipmentChassisRef """ self._equipment_chassis = equipment_chassis @@ -540,7 +568,7 @@ def registered_device(self): Gets the registered_device of this EquipmentIoCard. :return: The registered_device of this EquipmentIoCard. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -550,7 +578,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentIoCard. :param registered_device: The registered_device of this EquipmentIoCard. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/equipment_io_card_list.py b/intersight/models/equipment_io_card_list.py index 284bb36c..8f8ff61f 100644 --- a/intersight/models/equipment_io_card_list.py +++ b/intersight/models/equipment_io_card_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_io_card_ref.py b/intersight/models/equipment_io_card_ref.py new file mode 100644 index 00000000..470d5bf0 --- /dev/null +++ b/intersight/models/equipment_io_card_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentIoCardRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentIoCardRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentIoCardRef. + + :return: The moid of this EquipmentIoCardRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentIoCardRef. + + :param moid: The moid of this EquipmentIoCardRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentIoCardRef. + + :return: The object_type of this EquipmentIoCardRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentIoCardRef. + + :param object_type: The object_type of this EquipmentIoCardRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentIoCardRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_io_expander.py b/intersight/models/equipment_io_expander.py new file mode 100644 index 00000000..ae17e070 --- /dev/null +++ b/intersight/models/equipment_io_expander.py @@ -0,0 +1,663 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentIoExpander(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'device_mo_id': 'str', + 'dn': 'str', + 'rn': 'str', + 'model': 'str', + 'revision': 'str', + 'serial': 'str', + 'vendor': 'str', + 'compute_blade': 'ComputeBladeRef', + 'oper_state': 'str', + 'presence': 'str', + 'registered_device': 'AssetDeviceRegistrationRef' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'device_mo_id': 'DeviceMoId', + 'dn': 'Dn', + 'rn': 'Rn', + 'model': 'Model', + 'revision': 'Revision', + 'serial': 'Serial', + 'vendor': 'Vendor', + 'compute_blade': 'ComputeBlade', + 'oper_state': 'OperState', + 'presence': 'Presence', + 'registered_device': 'RegisteredDevice' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_blade=None, oper_state=None, presence=None, registered_device=None): + """ + EquipmentIoExpander - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._device_mo_id = None + self._dn = None + self._rn = None + self._model = None + self._revision = None + self._serial = None + self._vendor = None + self._compute_blade = None + self._oper_state = None + self._presence = None + self._registered_device = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if device_mo_id is not None: + self.device_mo_id = device_mo_id + if dn is not None: + self.dn = dn + if rn is not None: + self.rn = rn + if model is not None: + self.model = model + if revision is not None: + self.revision = revision + if serial is not None: + self.serial = serial + if vendor is not None: + self.vendor = vendor + if compute_blade is not None: + self.compute_blade = compute_blade + if oper_state is not None: + self.oper_state = oper_state + if presence is not None: + self.presence = presence + if registered_device is not None: + self.registered_device = registered_device + + @property + def account_moid(self): + """ + Gets the account_moid of this EquipmentIoExpander. + The Account ID for this managed object. + + :return: The account_moid of this EquipmentIoExpander. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this EquipmentIoExpander. + The Account ID for this managed object. + + :param account_moid: The account_moid of this EquipmentIoExpander. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this EquipmentIoExpander. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this EquipmentIoExpander. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this EquipmentIoExpander. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this EquipmentIoExpander. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this EquipmentIoExpander. + The time when this managed object was created. + + :return: The create_time of this EquipmentIoExpander. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this EquipmentIoExpander. + The time when this managed object was created. + + :param create_time: The create_time of this EquipmentIoExpander. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this EquipmentIoExpander. + The time when this managed object was last modified. + + :return: The mod_time of this EquipmentIoExpander. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this EquipmentIoExpander. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this EquipmentIoExpander. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this EquipmentIoExpander. + A unique identifier of this Managed Object instance. + + :return: The moid of this EquipmentIoExpander. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentIoExpander. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this EquipmentIoExpander. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentIoExpander. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this EquipmentIoExpander. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentIoExpander. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this EquipmentIoExpander. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this EquipmentIoExpander. + An array of owners which represent effective ownership of this object. + + :return: The owners of this EquipmentIoExpander. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this EquipmentIoExpander. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this EquipmentIoExpander. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this EquipmentIoExpander. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this EquipmentIoExpander. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this EquipmentIoExpander. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this EquipmentIoExpander. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this EquipmentIoExpander. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this EquipmentIoExpander. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this EquipmentIoExpander. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this EquipmentIoExpander. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this EquipmentIoExpander. + The versioning info for this managed object + + :return: The version_context of this EquipmentIoExpander. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this EquipmentIoExpander. + The versioning info for this managed object + + :param version_context: The version_context of this EquipmentIoExpander. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def device_mo_id(self): + """ + Gets the device_mo_id of this EquipmentIoExpander. + + :return: The device_mo_id of this EquipmentIoExpander. + :rtype: str + """ + return self._device_mo_id + + @device_mo_id.setter + def device_mo_id(self, device_mo_id): + """ + Sets the device_mo_id of this EquipmentIoExpander. + + :param device_mo_id: The device_mo_id of this EquipmentIoExpander. + :type: str + """ + + self._device_mo_id = device_mo_id + + @property + def dn(self): + """ + Gets the dn of this EquipmentIoExpander. + + :return: The dn of this EquipmentIoExpander. + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """ + Sets the dn of this EquipmentIoExpander. + + :param dn: The dn of this EquipmentIoExpander. + :type: str + """ + + self._dn = dn + + @property + def rn(self): + """ + Gets the rn of this EquipmentIoExpander. + + :return: The rn of this EquipmentIoExpander. + :rtype: str + """ + return self._rn + + @rn.setter + def rn(self, rn): + """ + Sets the rn of this EquipmentIoExpander. + + :param rn: The rn of this EquipmentIoExpander. + :type: str + """ + + self._rn = rn + + @property + def model(self): + """ + Gets the model of this EquipmentIoExpander. + + :return: The model of this EquipmentIoExpander. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this EquipmentIoExpander. + + :param model: The model of this EquipmentIoExpander. + :type: str + """ + + self._model = model + + @property + def revision(self): + """ + Gets the revision of this EquipmentIoExpander. + + :return: The revision of this EquipmentIoExpander. + :rtype: str + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this EquipmentIoExpander. + + :param revision: The revision of this EquipmentIoExpander. + :type: str + """ + + self._revision = revision + + @property + def serial(self): + """ + Gets the serial of this EquipmentIoExpander. + + :return: The serial of this EquipmentIoExpander. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this EquipmentIoExpander. + + :param serial: The serial of this EquipmentIoExpander. + :type: str + """ + + self._serial = serial + + @property + def vendor(self): + """ + Gets the vendor of this EquipmentIoExpander. + + :return: The vendor of this EquipmentIoExpander. + :rtype: str + """ + return self._vendor + + @vendor.setter + def vendor(self, vendor): + """ + Sets the vendor of this EquipmentIoExpander. + + :param vendor: The vendor of this EquipmentIoExpander. + :type: str + """ + + self._vendor = vendor + + @property + def compute_blade(self): + """ + Gets the compute_blade of this EquipmentIoExpander. + + :return: The compute_blade of this EquipmentIoExpander. + :rtype: ComputeBladeRef + """ + return self._compute_blade + + @compute_blade.setter + def compute_blade(self, compute_blade): + """ + Sets the compute_blade of this EquipmentIoExpander. + + :param compute_blade: The compute_blade of this EquipmentIoExpander. + :type: ComputeBladeRef + """ + + self._compute_blade = compute_blade + + @property + def oper_state(self): + """ + Gets the oper_state of this EquipmentIoExpander. + + :return: The oper_state of this EquipmentIoExpander. + :rtype: str + """ + return self._oper_state + + @oper_state.setter + def oper_state(self, oper_state): + """ + Sets the oper_state of this EquipmentIoExpander. + + :param oper_state: The oper_state of this EquipmentIoExpander. + :type: str + """ + + self._oper_state = oper_state + + @property + def presence(self): + """ + Gets the presence of this EquipmentIoExpander. + + :return: The presence of this EquipmentIoExpander. + :rtype: str + """ + return self._presence + + @presence.setter + def presence(self, presence): + """ + Sets the presence of this EquipmentIoExpander. + + :param presence: The presence of this EquipmentIoExpander. + :type: str + """ + + self._presence = presence + + @property + def registered_device(self): + """ + Gets the registered_device of this EquipmentIoExpander. + + :return: The registered_device of this EquipmentIoExpander. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this EquipmentIoExpander. + + :param registered_device: The registered_device of this EquipmentIoExpander. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentIoExpander): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/cond_hcl_status_action_list.py b/intersight/models/equipment_io_expander_list.py similarity index 71% rename from intersight/models/cond_hcl_status_action_list.py rename to intersight/models/equipment_io_expander_list.py index f7ac9f2e..6ab67f05 100644 --- a/intersight/models/cond_hcl_status_action_list.py +++ b/intersight/models/equipment_io_expander_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class CondHclStatusActionList(object): +class EquipmentIoExpanderList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class CondHclStatusActionList(object): """ swagger_types = { 'count': 'int', - 'results': 'list[CondHclStatusAction]' + 'results': 'list[EquipmentIoExpander]' } attribute_map = { @@ -42,7 +42,7 @@ class CondHclStatusActionList(object): def __init__(self, count=None, results=None): """ - CondHclStatusActionList - a model defined in Swagger + EquipmentIoExpanderList - a model defined in Swagger """ self._count = None @@ -56,10 +56,10 @@ def __init__(self, count=None, results=None): @property def count(self): """ - Gets the count of this CondHclStatusActionList. - The number of condHclStatusActions matching your request in total for all pages. + Gets the count of this EquipmentIoExpanderList. + The number of equipmentIoExpanders matching your request in total for all pages. - :return: The count of this CondHclStatusActionList. + :return: The count of this EquipmentIoExpanderList. :rtype: int """ return self._count @@ -67,10 +67,10 @@ def count(self): @count.setter def count(self, count): """ - Sets the count of this CondHclStatusActionList. - The number of condHclStatusActions matching your request in total for all pages. + Sets the count of this EquipmentIoExpanderList. + The number of equipmentIoExpanders matching your request in total for all pages. - :param count: The count of this CondHclStatusActionList. + :param count: The count of this EquipmentIoExpanderList. :type: int """ @@ -79,22 +79,22 @@ def count(self, count): @property def results(self): """ - Gets the results of this CondHclStatusActionList. - The array of condHclStatusActions matching your request. + Gets the results of this EquipmentIoExpanderList. + The array of equipmentIoExpanders matching your request. - :return: The results of this CondHclStatusActionList. - :rtype: list[CondHclStatusAction] + :return: The results of this EquipmentIoExpanderList. + :rtype: list[EquipmentIoExpander] """ return self._results @results.setter def results(self, results): """ - Sets the results of this CondHclStatusActionList. - The array of condHclStatusActions matching your request. + Sets the results of this EquipmentIoExpanderList. + The array of equipmentIoExpanders matching your request. - :param results: The results of this CondHclStatusActionList. - :type: list[CondHclStatusAction] + :param results: The results of this EquipmentIoExpanderList. + :type: list[EquipmentIoExpander] """ self._results = results @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, CondHclStatusActionList): + if not isinstance(other, EquipmentIoExpanderList): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/equipment_io_expander_ref.py b/intersight/models/equipment_io_expander_ref.py new file mode 100644 index 00000000..0849763f --- /dev/null +++ b/intersight/models/equipment_io_expander_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentIoExpanderRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentIoExpanderRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentIoExpanderRef. + + :return: The moid of this EquipmentIoExpanderRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentIoExpanderRef. + + :param moid: The moid of this EquipmentIoExpanderRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentIoExpanderRef. + + :return: The object_type of this EquipmentIoExpanderRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentIoExpanderRef. + + :param object_type: The object_type of this EquipmentIoExpanderRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentIoExpanderRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_locator_led.py b/intersight/models/equipment_locator_led.py index a3955003..45ae80fd 100644 --- a/intersight/models/equipment_locator_led.py +++ b/intersight/models/equipment_locator_led.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,23 +32,24 @@ class EquipmentLocatorLed(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', 'color': 'str', - 'compute_blade': 'MoMoRef', - 'compute_rack_unit': 'MoMoRef', + 'compute_blade': 'ComputeBladeRef', + 'compute_rack_unit': 'ComputeRackUnitRef', 'oper_state': 'str', - 'registered_device': 'MoMoRef', - 'storage_physical_disk': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef', + 'storage_physical_disk': 'StoragePhysicalDiskRef' } attribute_map = { @@ -61,6 +62,7 @@ class EquipmentLocatorLed(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -72,7 +74,7 @@ class EquipmentLocatorLed(object): 'storage_physical_disk': 'StoragePhysicalDisk' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, color=None, compute_blade=None, compute_rack_unit=None, oper_state=None, registered_device=None, storage_physical_disk=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, color=None, compute_blade=None, compute_rack_unit=None, oper_state=None, registered_device=None, storage_physical_disk=None): """ EquipmentLocatorLed - a model defined in Swagger """ @@ -86,6 +88,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -114,6 +117,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -163,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentLocatorLed. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentLocatorLed. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentLocatorLed. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentLocatorLed. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -321,7 +326,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this EquipmentLocatorLed. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this EquipmentLocatorLed. :rtype: list[MoTag] @@ -332,7 +337,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this EquipmentLocatorLed. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this EquipmentLocatorLed. :type: list[MoTag] @@ -340,6 +345,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this EquipmentLocatorLed. + The versioning info for this managed object + + :return: The version_context of this EquipmentLocatorLed. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this EquipmentLocatorLed. + The versioning info for this managed object + + :param version_context: The version_context of this EquipmentLocatorLed. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -430,7 +458,7 @@ def compute_blade(self): Gets the compute_blade of this EquipmentLocatorLed. :return: The compute_blade of this EquipmentLocatorLed. - :rtype: MoMoRef + :rtype: ComputeBladeRef """ return self._compute_blade @@ -440,7 +468,7 @@ def compute_blade(self, compute_blade): Sets the compute_blade of this EquipmentLocatorLed. :param compute_blade: The compute_blade of this EquipmentLocatorLed. - :type: MoMoRef + :type: ComputeBladeRef """ self._compute_blade = compute_blade @@ -451,7 +479,7 @@ def compute_rack_unit(self): Gets the compute_rack_unit of this EquipmentLocatorLed. :return: The compute_rack_unit of this EquipmentLocatorLed. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._compute_rack_unit @@ -461,7 +489,7 @@ def compute_rack_unit(self, compute_rack_unit): Sets the compute_rack_unit of this EquipmentLocatorLed. :param compute_rack_unit: The compute_rack_unit of this EquipmentLocatorLed. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._compute_rack_unit = compute_rack_unit @@ -493,7 +521,7 @@ def registered_device(self): Gets the registered_device of this EquipmentLocatorLed. :return: The registered_device of this EquipmentLocatorLed. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -503,7 +531,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentLocatorLed. :param registered_device: The registered_device of this EquipmentLocatorLed. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -514,7 +542,7 @@ def storage_physical_disk(self): Gets the storage_physical_disk of this EquipmentLocatorLed. :return: The storage_physical_disk of this EquipmentLocatorLed. - :rtype: MoMoRef + :rtype: StoragePhysicalDiskRef """ return self._storage_physical_disk @@ -524,7 +552,7 @@ def storage_physical_disk(self, storage_physical_disk): Sets the storage_physical_disk of this EquipmentLocatorLed. :param storage_physical_disk: The storage_physical_disk of this EquipmentLocatorLed. - :type: MoMoRef + :type: StoragePhysicalDiskRef """ self._storage_physical_disk = storage_physical_disk diff --git a/intersight/models/equipment_locator_led_list.py b/intersight/models/equipment_locator_led_list.py index 42d4323e..62392fad 100644 --- a/intersight/models/equipment_locator_led_list.py +++ b/intersight/models/equipment_locator_led_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_locator_led_ref.py b/intersight/models/equipment_locator_led_ref.py new file mode 100644 index 00000000..8d4162bf --- /dev/null +++ b/intersight/models/equipment_locator_led_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentLocatorLedRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentLocatorLedRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentLocatorLedRef. + + :return: The moid of this EquipmentLocatorLedRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentLocatorLedRef. + + :param moid: The moid of this EquipmentLocatorLedRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentLocatorLedRef. + + :return: The object_type of this EquipmentLocatorLedRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentLocatorLedRef. + + :param object_type: The object_type of this EquipmentLocatorLedRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentLocatorLedRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_psu.py b/intersight/models/equipment_psu.py index cdac62c3..6a9dc5e2 100644 --- a/intersight/models/equipment_psu.py +++ b/intersight/models/equipment_psu.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class EquipmentPsu(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -47,12 +48,14 @@ class EquipmentPsu(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'compute_rack_unit': 'MoMoRef', - 'equipment_chassis': 'MoMoRef', - 'network_element': 'MoMoRef', + 'compute_rack_unit': 'ComputeRackUnitRef', + 'equipment_chassis': 'EquipmentChassisRef', + 'equipment_rack_enclosure': 'EquipmentRackEnclosureRef', + 'network_element': 'NetworkElementRef', 'oper_state': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef' + 'psu_id': 'int', + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -65,6 +68,7 @@ class EquipmentPsu(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -74,13 +78,15 @@ class EquipmentPsu(object): 'vendor': 'Vendor', 'compute_rack_unit': 'ComputeRackUnit', 'equipment_chassis': 'EquipmentChassis', + 'equipment_rack_enclosure': 'EquipmentRackEnclosure', 'network_element': 'NetworkElement', 'oper_state': 'OperState', 'presence': 'Presence', + 'psu_id': 'PsuId', 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_rack_unit=None, equipment_chassis=None, network_element=None, oper_state=None, presence=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_rack_unit=None, equipment_chassis=None, equipment_rack_enclosure=None, network_element=None, oper_state=None, presence=None, psu_id=None, registered_device=None): """ EquipmentPsu - a model defined in Swagger """ @@ -94,6 +100,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -103,9 +110,11 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._vendor = None self._compute_rack_unit = None self._equipment_chassis = None + self._equipment_rack_enclosure = None self._network_element = None self._oper_state = None self._presence = None + self._psu_id = None self._registered_device = None if account_moid is not None: @@ -126,6 +135,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -144,12 +155,16 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.compute_rack_unit = compute_rack_unit if equipment_chassis is not None: self.equipment_chassis = equipment_chassis + if equipment_rack_enclosure is not None: + self.equipment_rack_enclosure = equipment_rack_enclosure if network_element is not None: self.network_element = network_element if oper_state is not None: self.oper_state = oper_state if presence is not None: self.presence = presence + if psu_id is not None: + self.psu_id = psu_id if registered_device is not None: self.registered_device = registered_device @@ -183,7 +198,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentPsu. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -194,7 +209,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentPsu. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -321,7 +336,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentPsu. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -332,7 +347,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentPsu. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -341,7 +356,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this EquipmentPsu. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this EquipmentPsu. :rtype: list[MoTag] @@ -352,7 +367,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this EquipmentPsu. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this EquipmentPsu. :type: list[MoTag] @@ -360,6 +375,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this EquipmentPsu. + The versioning info for this managed object + + :return: The version_context of this EquipmentPsu. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this EquipmentPsu. + The versioning info for this managed object + + :param version_context: The version_context of this EquipmentPsu. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -513,7 +551,7 @@ def compute_rack_unit(self): Gets the compute_rack_unit of this EquipmentPsu. :return: The compute_rack_unit of this EquipmentPsu. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._compute_rack_unit @@ -523,7 +561,7 @@ def compute_rack_unit(self, compute_rack_unit): Sets the compute_rack_unit of this EquipmentPsu. :param compute_rack_unit: The compute_rack_unit of this EquipmentPsu. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._compute_rack_unit = compute_rack_unit @@ -534,7 +572,7 @@ def equipment_chassis(self): Gets the equipment_chassis of this EquipmentPsu. :return: The equipment_chassis of this EquipmentPsu. - :rtype: MoMoRef + :rtype: EquipmentChassisRef """ return self._equipment_chassis @@ -544,18 +582,39 @@ def equipment_chassis(self, equipment_chassis): Sets the equipment_chassis of this EquipmentPsu. :param equipment_chassis: The equipment_chassis of this EquipmentPsu. - :type: MoMoRef + :type: EquipmentChassisRef """ self._equipment_chassis = equipment_chassis + @property + def equipment_rack_enclosure(self): + """ + Gets the equipment_rack_enclosure of this EquipmentPsu. + + :return: The equipment_rack_enclosure of this EquipmentPsu. + :rtype: EquipmentRackEnclosureRef + """ + return self._equipment_rack_enclosure + + @equipment_rack_enclosure.setter + def equipment_rack_enclosure(self, equipment_rack_enclosure): + """ + Sets the equipment_rack_enclosure of this EquipmentPsu. + + :param equipment_rack_enclosure: The equipment_rack_enclosure of this EquipmentPsu. + :type: EquipmentRackEnclosureRef + """ + + self._equipment_rack_enclosure = equipment_rack_enclosure + @property def network_element(self): """ Gets the network_element of this EquipmentPsu. :return: The network_element of this EquipmentPsu. - :rtype: MoMoRef + :rtype: NetworkElementRef """ return self._network_element @@ -565,7 +624,7 @@ def network_element(self, network_element): Sets the network_element of this EquipmentPsu. :param network_element: The network_element of this EquipmentPsu. - :type: MoMoRef + :type: NetworkElementRef """ self._network_element = network_element @@ -612,13 +671,34 @@ def presence(self, presence): self._presence = presence + @property + def psu_id(self): + """ + Gets the psu_id of this EquipmentPsu. + + :return: The psu_id of this EquipmentPsu. + :rtype: int + """ + return self._psu_id + + @psu_id.setter + def psu_id(self, psu_id): + """ + Sets the psu_id of this EquipmentPsu. + + :param psu_id: The psu_id of this EquipmentPsu. + :type: int + """ + + self._psu_id = psu_id + @property def registered_device(self): """ Gets the registered_device of this EquipmentPsu. :return: The registered_device of this EquipmentPsu. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -628,7 +708,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentPsu. :param registered_device: The registered_device of this EquipmentPsu. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/equipment_psu_list.py b/intersight/models/equipment_psu_list.py index bb2ee3b5..20591082 100644 --- a/intersight/models/equipment_psu_list.py +++ b/intersight/models/equipment_psu_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_psu_ref.py b/intersight/models/equipment_psu_ref.py new file mode 100644 index 00000000..b7e1f972 --- /dev/null +++ b/intersight/models/equipment_psu_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentPsuRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentPsuRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentPsuRef. + + :return: The moid of this EquipmentPsuRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentPsuRef. + + :param moid: The moid of this EquipmentPsuRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentPsuRef. + + :return: The object_type of this EquipmentPsuRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentPsuRef. + + :param object_type: The object_type of this EquipmentPsuRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentPsuRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_rack_enclosure.py b/intersight/models/equipment_rack_enclosure.py new file mode 100644 index 00000000..ad5fb4d7 --- /dev/null +++ b/intersight/models/equipment_rack_enclosure.py @@ -0,0 +1,689 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentRackEnclosure(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'device_mo_id': 'str', + 'dn': 'str', + 'rn': 'str', + 'model': 'str', + 'revision': 'str', + 'serial': 'str', + 'vendor': 'str', + 'enclosure_id': 'int', + 'fanmodules': 'list[EquipmentFanModuleRef]', + 'psus': 'list[EquipmentPsuRef]', + 'registered_device': 'AssetDeviceRegistrationRef', + 'slots': 'list[EquipmentRackEnclosureSlotRef]' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'device_mo_id': 'DeviceMoId', + 'dn': 'Dn', + 'rn': 'Rn', + 'model': 'Model', + 'revision': 'Revision', + 'serial': 'Serial', + 'vendor': 'Vendor', + 'enclosure_id': 'EnclosureId', + 'fanmodules': 'Fanmodules', + 'psus': 'Psus', + 'registered_device': 'RegisteredDevice', + 'slots': 'Slots' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, enclosure_id=None, fanmodules=None, psus=None, registered_device=None, slots=None): + """ + EquipmentRackEnclosure - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._device_mo_id = None + self._dn = None + self._rn = None + self._model = None + self._revision = None + self._serial = None + self._vendor = None + self._enclosure_id = None + self._fanmodules = None + self._psus = None + self._registered_device = None + self._slots = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if device_mo_id is not None: + self.device_mo_id = device_mo_id + if dn is not None: + self.dn = dn + if rn is not None: + self.rn = rn + if model is not None: + self.model = model + if revision is not None: + self.revision = revision + if serial is not None: + self.serial = serial + if vendor is not None: + self.vendor = vendor + if enclosure_id is not None: + self.enclosure_id = enclosure_id + if fanmodules is not None: + self.fanmodules = fanmodules + if psus is not None: + self.psus = psus + if registered_device is not None: + self.registered_device = registered_device + if slots is not None: + self.slots = slots + + @property + def account_moid(self): + """ + Gets the account_moid of this EquipmentRackEnclosure. + The Account ID for this managed object. + + :return: The account_moid of this EquipmentRackEnclosure. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this EquipmentRackEnclosure. + The Account ID for this managed object. + + :param account_moid: The account_moid of this EquipmentRackEnclosure. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this EquipmentRackEnclosure. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this EquipmentRackEnclosure. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this EquipmentRackEnclosure. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this EquipmentRackEnclosure. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this EquipmentRackEnclosure. + The time when this managed object was created. + + :return: The create_time of this EquipmentRackEnclosure. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this EquipmentRackEnclosure. + The time when this managed object was created. + + :param create_time: The create_time of this EquipmentRackEnclosure. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this EquipmentRackEnclosure. + The time when this managed object was last modified. + + :return: The mod_time of this EquipmentRackEnclosure. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this EquipmentRackEnclosure. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this EquipmentRackEnclosure. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this EquipmentRackEnclosure. + A unique identifier of this Managed Object instance. + + :return: The moid of this EquipmentRackEnclosure. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentRackEnclosure. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this EquipmentRackEnclosure. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentRackEnclosure. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this EquipmentRackEnclosure. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentRackEnclosure. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this EquipmentRackEnclosure. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this EquipmentRackEnclosure. + An array of owners which represent effective ownership of this object. + + :return: The owners of this EquipmentRackEnclosure. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this EquipmentRackEnclosure. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this EquipmentRackEnclosure. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this EquipmentRackEnclosure. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this EquipmentRackEnclosure. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this EquipmentRackEnclosure. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this EquipmentRackEnclosure. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this EquipmentRackEnclosure. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this EquipmentRackEnclosure. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this EquipmentRackEnclosure. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this EquipmentRackEnclosure. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this EquipmentRackEnclosure. + The versioning info for this managed object + + :return: The version_context of this EquipmentRackEnclosure. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this EquipmentRackEnclosure. + The versioning info for this managed object + + :param version_context: The version_context of this EquipmentRackEnclosure. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def device_mo_id(self): + """ + Gets the device_mo_id of this EquipmentRackEnclosure. + + :return: The device_mo_id of this EquipmentRackEnclosure. + :rtype: str + """ + return self._device_mo_id + + @device_mo_id.setter + def device_mo_id(self, device_mo_id): + """ + Sets the device_mo_id of this EquipmentRackEnclosure. + + :param device_mo_id: The device_mo_id of this EquipmentRackEnclosure. + :type: str + """ + + self._device_mo_id = device_mo_id + + @property + def dn(self): + """ + Gets the dn of this EquipmentRackEnclosure. + + :return: The dn of this EquipmentRackEnclosure. + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """ + Sets the dn of this EquipmentRackEnclosure. + + :param dn: The dn of this EquipmentRackEnclosure. + :type: str + """ + + self._dn = dn + + @property + def rn(self): + """ + Gets the rn of this EquipmentRackEnclosure. + + :return: The rn of this EquipmentRackEnclosure. + :rtype: str + """ + return self._rn + + @rn.setter + def rn(self, rn): + """ + Sets the rn of this EquipmentRackEnclosure. + + :param rn: The rn of this EquipmentRackEnclosure. + :type: str + """ + + self._rn = rn + + @property + def model(self): + """ + Gets the model of this EquipmentRackEnclosure. + + :return: The model of this EquipmentRackEnclosure. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this EquipmentRackEnclosure. + + :param model: The model of this EquipmentRackEnclosure. + :type: str + """ + + self._model = model + + @property + def revision(self): + """ + Gets the revision of this EquipmentRackEnclosure. + + :return: The revision of this EquipmentRackEnclosure. + :rtype: str + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this EquipmentRackEnclosure. + + :param revision: The revision of this EquipmentRackEnclosure. + :type: str + """ + + self._revision = revision + + @property + def serial(self): + """ + Gets the serial of this EquipmentRackEnclosure. + + :return: The serial of this EquipmentRackEnclosure. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this EquipmentRackEnclosure. + + :param serial: The serial of this EquipmentRackEnclosure. + :type: str + """ + + self._serial = serial + + @property + def vendor(self): + """ + Gets the vendor of this EquipmentRackEnclosure. + + :return: The vendor of this EquipmentRackEnclosure. + :rtype: str + """ + return self._vendor + + @vendor.setter + def vendor(self, vendor): + """ + Sets the vendor of this EquipmentRackEnclosure. + + :param vendor: The vendor of this EquipmentRackEnclosure. + :type: str + """ + + self._vendor = vendor + + @property + def enclosure_id(self): + """ + Gets the enclosure_id of this EquipmentRackEnclosure. + + :return: The enclosure_id of this EquipmentRackEnclosure. + :rtype: int + """ + return self._enclosure_id + + @enclosure_id.setter + def enclosure_id(self, enclosure_id): + """ + Sets the enclosure_id of this EquipmentRackEnclosure. + + :param enclosure_id: The enclosure_id of this EquipmentRackEnclosure. + :type: int + """ + + self._enclosure_id = enclosure_id + + @property + def fanmodules(self): + """ + Gets the fanmodules of this EquipmentRackEnclosure. + + :return: The fanmodules of this EquipmentRackEnclosure. + :rtype: list[EquipmentFanModuleRef] + """ + return self._fanmodules + + @fanmodules.setter + def fanmodules(self, fanmodules): + """ + Sets the fanmodules of this EquipmentRackEnclosure. + + :param fanmodules: The fanmodules of this EquipmentRackEnclosure. + :type: list[EquipmentFanModuleRef] + """ + + self._fanmodules = fanmodules + + @property + def psus(self): + """ + Gets the psus of this EquipmentRackEnclosure. + + :return: The psus of this EquipmentRackEnclosure. + :rtype: list[EquipmentPsuRef] + """ + return self._psus + + @psus.setter + def psus(self, psus): + """ + Sets the psus of this EquipmentRackEnclosure. + + :param psus: The psus of this EquipmentRackEnclosure. + :type: list[EquipmentPsuRef] + """ + + self._psus = psus + + @property + def registered_device(self): + """ + Gets the registered_device of this EquipmentRackEnclosure. + + :return: The registered_device of this EquipmentRackEnclosure. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this EquipmentRackEnclosure. + + :param registered_device: The registered_device of this EquipmentRackEnclosure. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + @property + def slots(self): + """ + Gets the slots of this EquipmentRackEnclosure. + + :return: The slots of this EquipmentRackEnclosure. + :rtype: list[EquipmentRackEnclosureSlotRef] + """ + return self._slots + + @slots.setter + def slots(self, slots): + """ + Sets the slots of this EquipmentRackEnclosure. + + :param slots: The slots of this EquipmentRackEnclosure. + :type: list[EquipmentRackEnclosureSlotRef] + """ + + self._slots = slots + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentRackEnclosure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_rack_enclosure_list.py b/intersight/models/equipment_rack_enclosure_list.py new file mode 100644 index 00000000..c72b878e --- /dev/null +++ b/intersight/models/equipment_rack_enclosure_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentRackEnclosureList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[EquipmentRackEnclosure]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + EquipmentRackEnclosureList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this EquipmentRackEnclosureList. + The number of equipmentRackEnclosures matching your request in total for all pages. + + :return: The count of this EquipmentRackEnclosureList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this EquipmentRackEnclosureList. + The number of equipmentRackEnclosures matching your request in total for all pages. + + :param count: The count of this EquipmentRackEnclosureList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this EquipmentRackEnclosureList. + The array of equipmentRackEnclosures matching your request. + + :return: The results of this EquipmentRackEnclosureList. + :rtype: list[EquipmentRackEnclosure] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this EquipmentRackEnclosureList. + The array of equipmentRackEnclosures matching your request. + + :param results: The results of this EquipmentRackEnclosureList. + :type: list[EquipmentRackEnclosure] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentRackEnclosureList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_rack_enclosure_ref.py b/intersight/models/equipment_rack_enclosure_ref.py new file mode 100644 index 00000000..98d81879 --- /dev/null +++ b/intersight/models/equipment_rack_enclosure_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentRackEnclosureRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentRackEnclosureRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentRackEnclosureRef. + + :return: The moid of this EquipmentRackEnclosureRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentRackEnclosureRef. + + :param moid: The moid of this EquipmentRackEnclosureRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentRackEnclosureRef. + + :return: The object_type of this EquipmentRackEnclosureRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentRackEnclosureRef. + + :param object_type: The object_type of this EquipmentRackEnclosureRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentRackEnclosureRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_rack_enclosure_slot.py b/intersight/models/equipment_rack_enclosure_slot.py new file mode 100644 index 00000000..3aab5b23 --- /dev/null +++ b/intersight/models/equipment_rack_enclosure_slot.py @@ -0,0 +1,689 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentRackEnclosureSlot(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'device_mo_id': 'str', + 'dn': 'str', + 'rn': 'str', + 'model': 'str', + 'revision': 'str', + 'serial': 'str', + 'vendor': 'str', + 'equipment_rack_enclosure': 'EquipmentRackEnclosureRef', + 'rack_id': 'int', + 'rack_unit': 'ComputeRackUnitRef', + 'rack_unit_dn': 'str', + 'registered_device': 'AssetDeviceRegistrationRef' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'device_mo_id': 'DeviceMoId', + 'dn': 'Dn', + 'rn': 'Rn', + 'model': 'Model', + 'revision': 'Revision', + 'serial': 'Serial', + 'vendor': 'Vendor', + 'equipment_rack_enclosure': 'EquipmentRackEnclosure', + 'rack_id': 'RackId', + 'rack_unit': 'RackUnit', + 'rack_unit_dn': 'RackUnitDn', + 'registered_device': 'RegisteredDevice' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, equipment_rack_enclosure=None, rack_id=None, rack_unit=None, rack_unit_dn=None, registered_device=None): + """ + EquipmentRackEnclosureSlot - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._device_mo_id = None + self._dn = None + self._rn = None + self._model = None + self._revision = None + self._serial = None + self._vendor = None + self._equipment_rack_enclosure = None + self._rack_id = None + self._rack_unit = None + self._rack_unit_dn = None + self._registered_device = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if device_mo_id is not None: + self.device_mo_id = device_mo_id + if dn is not None: + self.dn = dn + if rn is not None: + self.rn = rn + if model is not None: + self.model = model + if revision is not None: + self.revision = revision + if serial is not None: + self.serial = serial + if vendor is not None: + self.vendor = vendor + if equipment_rack_enclosure is not None: + self.equipment_rack_enclosure = equipment_rack_enclosure + if rack_id is not None: + self.rack_id = rack_id + if rack_unit is not None: + self.rack_unit = rack_unit + if rack_unit_dn is not None: + self.rack_unit_dn = rack_unit_dn + if registered_device is not None: + self.registered_device = registered_device + + @property + def account_moid(self): + """ + Gets the account_moid of this EquipmentRackEnclosureSlot. + The Account ID for this managed object. + + :return: The account_moid of this EquipmentRackEnclosureSlot. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this EquipmentRackEnclosureSlot. + The Account ID for this managed object. + + :param account_moid: The account_moid of this EquipmentRackEnclosureSlot. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this EquipmentRackEnclosureSlot. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this EquipmentRackEnclosureSlot. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this EquipmentRackEnclosureSlot. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this EquipmentRackEnclosureSlot. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this EquipmentRackEnclosureSlot. + The time when this managed object was created. + + :return: The create_time of this EquipmentRackEnclosureSlot. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this EquipmentRackEnclosureSlot. + The time when this managed object was created. + + :param create_time: The create_time of this EquipmentRackEnclosureSlot. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this EquipmentRackEnclosureSlot. + The time when this managed object was last modified. + + :return: The mod_time of this EquipmentRackEnclosureSlot. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this EquipmentRackEnclosureSlot. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this EquipmentRackEnclosureSlot. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this EquipmentRackEnclosureSlot. + A unique identifier of this Managed Object instance. + + :return: The moid of this EquipmentRackEnclosureSlot. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentRackEnclosureSlot. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this EquipmentRackEnclosureSlot. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentRackEnclosureSlot. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this EquipmentRackEnclosureSlot. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentRackEnclosureSlot. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this EquipmentRackEnclosureSlot. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this EquipmentRackEnclosureSlot. + An array of owners which represent effective ownership of this object. + + :return: The owners of this EquipmentRackEnclosureSlot. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this EquipmentRackEnclosureSlot. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this EquipmentRackEnclosureSlot. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this EquipmentRackEnclosureSlot. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this EquipmentRackEnclosureSlot. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this EquipmentRackEnclosureSlot. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this EquipmentRackEnclosureSlot. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this EquipmentRackEnclosureSlot. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this EquipmentRackEnclosureSlot. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this EquipmentRackEnclosureSlot. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this EquipmentRackEnclosureSlot. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this EquipmentRackEnclosureSlot. + The versioning info for this managed object + + :return: The version_context of this EquipmentRackEnclosureSlot. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this EquipmentRackEnclosureSlot. + The versioning info for this managed object + + :param version_context: The version_context of this EquipmentRackEnclosureSlot. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def device_mo_id(self): + """ + Gets the device_mo_id of this EquipmentRackEnclosureSlot. + + :return: The device_mo_id of this EquipmentRackEnclosureSlot. + :rtype: str + """ + return self._device_mo_id + + @device_mo_id.setter + def device_mo_id(self, device_mo_id): + """ + Sets the device_mo_id of this EquipmentRackEnclosureSlot. + + :param device_mo_id: The device_mo_id of this EquipmentRackEnclosureSlot. + :type: str + """ + + self._device_mo_id = device_mo_id + + @property + def dn(self): + """ + Gets the dn of this EquipmentRackEnclosureSlot. + + :return: The dn of this EquipmentRackEnclosureSlot. + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """ + Sets the dn of this EquipmentRackEnclosureSlot. + + :param dn: The dn of this EquipmentRackEnclosureSlot. + :type: str + """ + + self._dn = dn + + @property + def rn(self): + """ + Gets the rn of this EquipmentRackEnclosureSlot. + + :return: The rn of this EquipmentRackEnclosureSlot. + :rtype: str + """ + return self._rn + + @rn.setter + def rn(self, rn): + """ + Sets the rn of this EquipmentRackEnclosureSlot. + + :param rn: The rn of this EquipmentRackEnclosureSlot. + :type: str + """ + + self._rn = rn + + @property + def model(self): + """ + Gets the model of this EquipmentRackEnclosureSlot. + + :return: The model of this EquipmentRackEnclosureSlot. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this EquipmentRackEnclosureSlot. + + :param model: The model of this EquipmentRackEnclosureSlot. + :type: str + """ + + self._model = model + + @property + def revision(self): + """ + Gets the revision of this EquipmentRackEnclosureSlot. + + :return: The revision of this EquipmentRackEnclosureSlot. + :rtype: str + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this EquipmentRackEnclosureSlot. + + :param revision: The revision of this EquipmentRackEnclosureSlot. + :type: str + """ + + self._revision = revision + + @property + def serial(self): + """ + Gets the serial of this EquipmentRackEnclosureSlot. + + :return: The serial of this EquipmentRackEnclosureSlot. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this EquipmentRackEnclosureSlot. + + :param serial: The serial of this EquipmentRackEnclosureSlot. + :type: str + """ + + self._serial = serial + + @property + def vendor(self): + """ + Gets the vendor of this EquipmentRackEnclosureSlot. + + :return: The vendor of this EquipmentRackEnclosureSlot. + :rtype: str + """ + return self._vendor + + @vendor.setter + def vendor(self, vendor): + """ + Sets the vendor of this EquipmentRackEnclosureSlot. + + :param vendor: The vendor of this EquipmentRackEnclosureSlot. + :type: str + """ + + self._vendor = vendor + + @property + def equipment_rack_enclosure(self): + """ + Gets the equipment_rack_enclosure of this EquipmentRackEnclosureSlot. + + :return: The equipment_rack_enclosure of this EquipmentRackEnclosureSlot. + :rtype: EquipmentRackEnclosureRef + """ + return self._equipment_rack_enclosure + + @equipment_rack_enclosure.setter + def equipment_rack_enclosure(self, equipment_rack_enclosure): + """ + Sets the equipment_rack_enclosure of this EquipmentRackEnclosureSlot. + + :param equipment_rack_enclosure: The equipment_rack_enclosure of this EquipmentRackEnclosureSlot. + :type: EquipmentRackEnclosureRef + """ + + self._equipment_rack_enclosure = equipment_rack_enclosure + + @property + def rack_id(self): + """ + Gets the rack_id of this EquipmentRackEnclosureSlot. + + :return: The rack_id of this EquipmentRackEnclosureSlot. + :rtype: int + """ + return self._rack_id + + @rack_id.setter + def rack_id(self, rack_id): + """ + Sets the rack_id of this EquipmentRackEnclosureSlot. + + :param rack_id: The rack_id of this EquipmentRackEnclosureSlot. + :type: int + """ + + self._rack_id = rack_id + + @property + def rack_unit(self): + """ + Gets the rack_unit of this EquipmentRackEnclosureSlot. + + :return: The rack_unit of this EquipmentRackEnclosureSlot. + :rtype: ComputeRackUnitRef + """ + return self._rack_unit + + @rack_unit.setter + def rack_unit(self, rack_unit): + """ + Sets the rack_unit of this EquipmentRackEnclosureSlot. + + :param rack_unit: The rack_unit of this EquipmentRackEnclosureSlot. + :type: ComputeRackUnitRef + """ + + self._rack_unit = rack_unit + + @property + def rack_unit_dn(self): + """ + Gets the rack_unit_dn of this EquipmentRackEnclosureSlot. + + :return: The rack_unit_dn of this EquipmentRackEnclosureSlot. + :rtype: str + """ + return self._rack_unit_dn + + @rack_unit_dn.setter + def rack_unit_dn(self, rack_unit_dn): + """ + Sets the rack_unit_dn of this EquipmentRackEnclosureSlot. + + :param rack_unit_dn: The rack_unit_dn of this EquipmentRackEnclosureSlot. + :type: str + """ + + self._rack_unit_dn = rack_unit_dn + + @property + def registered_device(self): + """ + Gets the registered_device of this EquipmentRackEnclosureSlot. + + :return: The registered_device of this EquipmentRackEnclosureSlot. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this EquipmentRackEnclosureSlot. + + :param registered_device: The registered_device of this EquipmentRackEnclosureSlot. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentRackEnclosureSlot): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_rack_enclosure_slot_list.py b/intersight/models/equipment_rack_enclosure_slot_list.py new file mode 100644 index 00000000..9b8b171d --- /dev/null +++ b/intersight/models/equipment_rack_enclosure_slot_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentRackEnclosureSlotList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[EquipmentRackEnclosureSlot]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + EquipmentRackEnclosureSlotList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this EquipmentRackEnclosureSlotList. + The number of equipmentRackEnclosureSlots matching your request in total for all pages. + + :return: The count of this EquipmentRackEnclosureSlotList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this EquipmentRackEnclosureSlotList. + The number of equipmentRackEnclosureSlots matching your request in total for all pages. + + :param count: The count of this EquipmentRackEnclosureSlotList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this EquipmentRackEnclosureSlotList. + The array of equipmentRackEnclosureSlots matching your request. + + :return: The results of this EquipmentRackEnclosureSlotList. + :rtype: list[EquipmentRackEnclosureSlot] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this EquipmentRackEnclosureSlotList. + The array of equipmentRackEnclosureSlots matching your request. + + :param results: The results of this EquipmentRackEnclosureSlotList. + :type: list[EquipmentRackEnclosureSlot] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentRackEnclosureSlotList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_rack_enclosure_slot_ref.py b/intersight/models/equipment_rack_enclosure_slot_ref.py new file mode 100644 index 00000000..5343d3e8 --- /dev/null +++ b/intersight/models/equipment_rack_enclosure_slot_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentRackEnclosureSlotRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentRackEnclosureSlotRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentRackEnclosureSlotRef. + + :return: The moid of this EquipmentRackEnclosureSlotRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentRackEnclosureSlotRef. + + :param moid: The moid of this EquipmentRackEnclosureSlotRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentRackEnclosureSlotRef. + + :return: The object_type of this EquipmentRackEnclosureSlotRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentRackEnclosureSlotRef. + + :param object_type: The object_type of this EquipmentRackEnclosureSlotRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentRackEnclosureSlotRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_switch_card.py b/intersight/models/equipment_switch_card.py index 6af62696..374d44fc 100644 --- a/intersight/models/equipment_switch_card.py +++ b/intersight/models/equipment_switch_card.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class EquipmentSwitchCard(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -48,11 +49,11 @@ class EquipmentSwitchCard(object): 'serial': 'str', 'vendor': 'str', 'description': 'str', - 'network_element': 'MoMoRef', + 'network_element': 'NetworkElementRef', 'num_ports': 'int', - 'port_groups': 'list[MoMoRef]', + 'port_groups': 'list[PortGroupRef]', 'presence': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'slot_id': 'int', 'state': 'str' } @@ -67,6 +68,7 @@ class EquipmentSwitchCard(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -84,7 +86,7 @@ class EquipmentSwitchCard(object): 'state': 'State' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, description=None, network_element=None, num_ports=None, port_groups=None, presence=None, registered_device=None, slot_id=None, state=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, description=None, network_element=None, num_ports=None, port_groups=None, presence=None, registered_device=None, slot_id=None, state=None): """ EquipmentSwitchCard - a model defined in Swagger """ @@ -98,6 +100,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -132,6 +135,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -193,7 +198,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentSwitchCard. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -204,7 +209,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentSwitchCard. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -331,7 +336,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentSwitchCard. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -342,7 +347,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentSwitchCard. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -351,7 +356,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this EquipmentSwitchCard. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this EquipmentSwitchCard. :rtype: list[MoTag] @@ -362,7 +367,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this EquipmentSwitchCard. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this EquipmentSwitchCard. :type: list[MoTag] @@ -370,6 +375,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this EquipmentSwitchCard. + The versioning info for this managed object + + :return: The version_context of this EquipmentSwitchCard. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this EquipmentSwitchCard. + The versioning info for this managed object + + :param version_context: The version_context of this EquipmentSwitchCard. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -544,7 +572,7 @@ def network_element(self): Gets the network_element of this EquipmentSwitchCard. :return: The network_element of this EquipmentSwitchCard. - :rtype: MoMoRef + :rtype: NetworkElementRef """ return self._network_element @@ -554,7 +582,7 @@ def network_element(self, network_element): Sets the network_element of this EquipmentSwitchCard. :param network_element: The network_element of this EquipmentSwitchCard. - :type: MoMoRef + :type: NetworkElementRef """ self._network_element = network_element @@ -586,7 +614,7 @@ def port_groups(self): Gets the port_groups of this EquipmentSwitchCard. :return: The port_groups of this EquipmentSwitchCard. - :rtype: list[MoMoRef] + :rtype: list[PortGroupRef] """ return self._port_groups @@ -596,7 +624,7 @@ def port_groups(self, port_groups): Sets the port_groups of this EquipmentSwitchCard. :param port_groups: The port_groups of this EquipmentSwitchCard. - :type: list[MoMoRef] + :type: list[PortGroupRef] """ self._port_groups = port_groups @@ -628,7 +656,7 @@ def registered_device(self): Gets the registered_device of this EquipmentSwitchCard. :return: The registered_device of this EquipmentSwitchCard. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -638,7 +666,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentSwitchCard. :param registered_device: The registered_device of this EquipmentSwitchCard. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/equipment_switch_card_list.py b/intersight/models/equipment_switch_card_list.py index c336a387..797e41c7 100644 --- a/intersight/models/equipment_switch_card_list.py +++ b/intersight/models/equipment_switch_card_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_switch_card_ref.py b/intersight/models/equipment_switch_card_ref.py new file mode 100644 index 00000000..08b7a141 --- /dev/null +++ b/intersight/models/equipment_switch_card_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentSwitchCardRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentSwitchCardRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentSwitchCardRef. + + :return: The moid of this EquipmentSwitchCardRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentSwitchCardRef. + + :param moid: The moid of this EquipmentSwitchCardRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentSwitchCardRef. + + :return: The object_type of this EquipmentSwitchCardRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentSwitchCardRef. + + :param object_type: The object_type of this EquipmentSwitchCardRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentSwitchCardRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_system_io_controller.py b/intersight/models/equipment_system_io_controller.py index a10d9394..43e0d486 100644 --- a/intersight/models/equipment_system_io_controller.py +++ b/intersight/models/equipment_system_io_controller.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class EquipmentSystemIoController(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -47,9 +48,9 @@ class EquipmentSystemIoController(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'equipment_chassis': 'MoMoRef', + 'equipment_chassis': 'EquipmentChassisRef', 'oper_state': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -62,6 +63,7 @@ class EquipmentSystemIoController(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -74,7 +76,7 @@ class EquipmentSystemIoController(object): 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, equipment_chassis=None, oper_state=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, equipment_chassis=None, oper_state=None, registered_device=None): """ EquipmentSystemIoController - a model defined in Swagger """ @@ -88,6 +90,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -117,6 +120,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -168,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EquipmentSystemIoController. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -179,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EquipmentSystemIoController. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -306,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EquipmentSystemIoController. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -317,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EquipmentSystemIoController. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -326,7 +331,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this EquipmentSystemIoController. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this EquipmentSystemIoController. :rtype: list[MoTag] @@ -337,7 +342,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this EquipmentSystemIoController. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this EquipmentSystemIoController. :type: list[MoTag] @@ -345,6 +350,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this EquipmentSystemIoController. + The versioning info for this managed object + + :return: The version_context of this EquipmentSystemIoController. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this EquipmentSystemIoController. + The versioning info for this managed object + + :param version_context: The version_context of this EquipmentSystemIoController. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -498,7 +526,7 @@ def equipment_chassis(self): Gets the equipment_chassis of this EquipmentSystemIoController. :return: The equipment_chassis of this EquipmentSystemIoController. - :rtype: MoMoRef + :rtype: EquipmentChassisRef """ return self._equipment_chassis @@ -508,7 +536,7 @@ def equipment_chassis(self, equipment_chassis): Sets the equipment_chassis of this EquipmentSystemIoController. :param equipment_chassis: The equipment_chassis of this EquipmentSystemIoController. - :type: MoMoRef + :type: EquipmentChassisRef """ self._equipment_chassis = equipment_chassis @@ -540,7 +568,7 @@ def registered_device(self): Gets the registered_device of this EquipmentSystemIoController. :return: The registered_device of this EquipmentSystemIoController. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -550,7 +578,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EquipmentSystemIoController. :param registered_device: The registered_device of this EquipmentSystemIoController. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/equipment_system_io_controller_list.py b/intersight/models/equipment_system_io_controller_list.py index b56972e3..869c47d9 100644 --- a/intersight/models/equipment_system_io_controller_list.py +++ b/intersight/models/equipment_system_io_controller_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/equipment_system_io_controller_ref.py b/intersight/models/equipment_system_io_controller_ref.py new file mode 100644 index 00000000..522e701e --- /dev/null +++ b/intersight/models/equipment_system_io_controller_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentSystemIoControllerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentSystemIoControllerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentSystemIoControllerRef. + + :return: The moid of this EquipmentSystemIoControllerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentSystemIoControllerRef. + + :param moid: The moid of this EquipmentSystemIoControllerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentSystemIoControllerRef. + + :return: The object_type of this EquipmentSystemIoControllerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentSystemIoControllerRef. + + :param object_type: The object_type of this EquipmentSystemIoControllerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentSystemIoControllerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_tpm.py b/intersight/models/equipment_tpm.py new file mode 100644 index 00000000..c189d1f2 --- /dev/null +++ b/intersight/models/equipment_tpm.py @@ -0,0 +1,767 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentTpm(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'device_mo_id': 'str', + 'dn': 'str', + 'rn': 'str', + 'model': 'str', + 'revision': 'str', + 'serial': 'str', + 'vendor': 'str', + 'activation_status': 'str', + 'admin_state': 'str', + 'compute_board': 'ComputeBoardRef', + 'ownership': 'str', + 'presence': 'str', + 'registered_device': 'AssetDeviceRegistrationRef', + 'tpm_id': 'int', + 'version': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'device_mo_id': 'DeviceMoId', + 'dn': 'Dn', + 'rn': 'Rn', + 'model': 'Model', + 'revision': 'Revision', + 'serial': 'Serial', + 'vendor': 'Vendor', + 'activation_status': 'ActivationStatus', + 'admin_state': 'AdminState', + 'compute_board': 'ComputeBoard', + 'ownership': 'Ownership', + 'presence': 'Presence', + 'registered_device': 'RegisteredDevice', + 'tpm_id': 'TpmId', + 'version': 'Version' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, activation_status=None, admin_state=None, compute_board=None, ownership=None, presence=None, registered_device=None, tpm_id=None, version=None): + """ + EquipmentTpm - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._device_mo_id = None + self._dn = None + self._rn = None + self._model = None + self._revision = None + self._serial = None + self._vendor = None + self._activation_status = None + self._admin_state = None + self._compute_board = None + self._ownership = None + self._presence = None + self._registered_device = None + self._tpm_id = None + self._version = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if device_mo_id is not None: + self.device_mo_id = device_mo_id + if dn is not None: + self.dn = dn + if rn is not None: + self.rn = rn + if model is not None: + self.model = model + if revision is not None: + self.revision = revision + if serial is not None: + self.serial = serial + if vendor is not None: + self.vendor = vendor + if activation_status is not None: + self.activation_status = activation_status + if admin_state is not None: + self.admin_state = admin_state + if compute_board is not None: + self.compute_board = compute_board + if ownership is not None: + self.ownership = ownership + if presence is not None: + self.presence = presence + if registered_device is not None: + self.registered_device = registered_device + if tpm_id is not None: + self.tpm_id = tpm_id + if version is not None: + self.version = version + + @property + def account_moid(self): + """ + Gets the account_moid of this EquipmentTpm. + The Account ID for this managed object. + + :return: The account_moid of this EquipmentTpm. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this EquipmentTpm. + The Account ID for this managed object. + + :param account_moid: The account_moid of this EquipmentTpm. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this EquipmentTpm. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this EquipmentTpm. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this EquipmentTpm. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this EquipmentTpm. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this EquipmentTpm. + The time when this managed object was created. + + :return: The create_time of this EquipmentTpm. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this EquipmentTpm. + The time when this managed object was created. + + :param create_time: The create_time of this EquipmentTpm. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this EquipmentTpm. + The time when this managed object was last modified. + + :return: The mod_time of this EquipmentTpm. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this EquipmentTpm. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this EquipmentTpm. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this EquipmentTpm. + A unique identifier of this Managed Object instance. + + :return: The moid of this EquipmentTpm. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentTpm. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this EquipmentTpm. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentTpm. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this EquipmentTpm. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentTpm. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this EquipmentTpm. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this EquipmentTpm. + An array of owners which represent effective ownership of this object. + + :return: The owners of this EquipmentTpm. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this EquipmentTpm. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this EquipmentTpm. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this EquipmentTpm. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this EquipmentTpm. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this EquipmentTpm. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this EquipmentTpm. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this EquipmentTpm. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this EquipmentTpm. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this EquipmentTpm. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this EquipmentTpm. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this EquipmentTpm. + The versioning info for this managed object + + :return: The version_context of this EquipmentTpm. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this EquipmentTpm. + The versioning info for this managed object + + :param version_context: The version_context of this EquipmentTpm. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def device_mo_id(self): + """ + Gets the device_mo_id of this EquipmentTpm. + + :return: The device_mo_id of this EquipmentTpm. + :rtype: str + """ + return self._device_mo_id + + @device_mo_id.setter + def device_mo_id(self, device_mo_id): + """ + Sets the device_mo_id of this EquipmentTpm. + + :param device_mo_id: The device_mo_id of this EquipmentTpm. + :type: str + """ + + self._device_mo_id = device_mo_id + + @property + def dn(self): + """ + Gets the dn of this EquipmentTpm. + + :return: The dn of this EquipmentTpm. + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """ + Sets the dn of this EquipmentTpm. + + :param dn: The dn of this EquipmentTpm. + :type: str + """ + + self._dn = dn + + @property + def rn(self): + """ + Gets the rn of this EquipmentTpm. + + :return: The rn of this EquipmentTpm. + :rtype: str + """ + return self._rn + + @rn.setter + def rn(self, rn): + """ + Sets the rn of this EquipmentTpm. + + :param rn: The rn of this EquipmentTpm. + :type: str + """ + + self._rn = rn + + @property + def model(self): + """ + Gets the model of this EquipmentTpm. + + :return: The model of this EquipmentTpm. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this EquipmentTpm. + + :param model: The model of this EquipmentTpm. + :type: str + """ + + self._model = model + + @property + def revision(self): + """ + Gets the revision of this EquipmentTpm. + + :return: The revision of this EquipmentTpm. + :rtype: str + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this EquipmentTpm. + + :param revision: The revision of this EquipmentTpm. + :type: str + """ + + self._revision = revision + + @property + def serial(self): + """ + Gets the serial of this EquipmentTpm. + + :return: The serial of this EquipmentTpm. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this EquipmentTpm. + + :param serial: The serial of this EquipmentTpm. + :type: str + """ + + self._serial = serial + + @property + def vendor(self): + """ + Gets the vendor of this EquipmentTpm. + + :return: The vendor of this EquipmentTpm. + :rtype: str + """ + return self._vendor + + @vendor.setter + def vendor(self, vendor): + """ + Sets the vendor of this EquipmentTpm. + + :param vendor: The vendor of this EquipmentTpm. + :type: str + """ + + self._vendor = vendor + + @property + def activation_status(self): + """ + Gets the activation_status of this EquipmentTpm. + + :return: The activation_status of this EquipmentTpm. + :rtype: str + """ + return self._activation_status + + @activation_status.setter + def activation_status(self, activation_status): + """ + Sets the activation_status of this EquipmentTpm. + + :param activation_status: The activation_status of this EquipmentTpm. + :type: str + """ + + self._activation_status = activation_status + + @property + def admin_state(self): + """ + Gets the admin_state of this EquipmentTpm. + + :return: The admin_state of this EquipmentTpm. + :rtype: str + """ + return self._admin_state + + @admin_state.setter + def admin_state(self, admin_state): + """ + Sets the admin_state of this EquipmentTpm. + + :param admin_state: The admin_state of this EquipmentTpm. + :type: str + """ + + self._admin_state = admin_state + + @property + def compute_board(self): + """ + Gets the compute_board of this EquipmentTpm. + + :return: The compute_board of this EquipmentTpm. + :rtype: ComputeBoardRef + """ + return self._compute_board + + @compute_board.setter + def compute_board(self, compute_board): + """ + Sets the compute_board of this EquipmentTpm. + + :param compute_board: The compute_board of this EquipmentTpm. + :type: ComputeBoardRef + """ + + self._compute_board = compute_board + + @property + def ownership(self): + """ + Gets the ownership of this EquipmentTpm. + + :return: The ownership of this EquipmentTpm. + :rtype: str + """ + return self._ownership + + @ownership.setter + def ownership(self, ownership): + """ + Sets the ownership of this EquipmentTpm. + + :param ownership: The ownership of this EquipmentTpm. + :type: str + """ + + self._ownership = ownership + + @property + def presence(self): + """ + Gets the presence of this EquipmentTpm. + + :return: The presence of this EquipmentTpm. + :rtype: str + """ + return self._presence + + @presence.setter + def presence(self, presence): + """ + Sets the presence of this EquipmentTpm. + + :param presence: The presence of this EquipmentTpm. + :type: str + """ + + self._presence = presence + + @property + def registered_device(self): + """ + Gets the registered_device of this EquipmentTpm. + + :return: The registered_device of this EquipmentTpm. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this EquipmentTpm. + + :param registered_device: The registered_device of this EquipmentTpm. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + @property + def tpm_id(self): + """ + Gets the tpm_id of this EquipmentTpm. + + :return: The tpm_id of this EquipmentTpm. + :rtype: int + """ + return self._tpm_id + + @tpm_id.setter + def tpm_id(self, tpm_id): + """ + Sets the tpm_id of this EquipmentTpm. + + :param tpm_id: The tpm_id of this EquipmentTpm. + :type: int + """ + + self._tpm_id = tpm_id + + @property + def version(self): + """ + Gets the version of this EquipmentTpm. + + :return: The version of this EquipmentTpm. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this EquipmentTpm. + + :param version: The version of this EquipmentTpm. + :type: str + """ + + self._version = version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentTpm): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_tpm_list.py b/intersight/models/equipment_tpm_list.py new file mode 100644 index 00000000..acda5c9d --- /dev/null +++ b/intersight/models/equipment_tpm_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentTpmList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[EquipmentTpm]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + EquipmentTpmList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this EquipmentTpmList. + The number of equipmentTpms matching your request in total for all pages. + + :return: The count of this EquipmentTpmList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this EquipmentTpmList. + The number of equipmentTpms matching your request in total for all pages. + + :param count: The count of this EquipmentTpmList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this EquipmentTpmList. + The array of equipmentTpms matching your request. + + :return: The results of this EquipmentTpmList. + :rtype: list[EquipmentTpm] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this EquipmentTpmList. + The array of equipmentTpms matching your request. + + :param results: The results of this EquipmentTpmList. + :type: list[EquipmentTpm] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentTpmList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/equipment_tpm_ref.py b/intersight/models/equipment_tpm_ref.py new file mode 100644 index 00000000..fcc939d0 --- /dev/null +++ b/intersight/models/equipment_tpm_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EquipmentTpmRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EquipmentTpmRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EquipmentTpmRef. + + :return: The moid of this EquipmentTpmRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EquipmentTpmRef. + + :param moid: The moid of this EquipmentTpmRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EquipmentTpmRef. + + :return: The object_type of this EquipmentTpmRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EquipmentTpmRef. + + :param object_type: The object_type of this EquipmentTpmRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EquipmentTpmRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/error.py b/intersight/models/error.py index 004f57d0..702abcb1 100644 --- a/intersight/models/error.py +++ b/intersight/models/error.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,25 +31,58 @@ class Error(object): and the value is json key in definition. """ swagger_types = { + 'cause': 'Error', 'code': 'int', - 'message': 'str' + 'message': 'str', + 'message_id': 'str' } attribute_map = { + 'cause': 'cause', 'code': 'code', - 'message': 'message' + 'message': 'message', + 'message_id': 'messageId' } - def __init__(self, code=None, message=None): + def __init__(self, cause=None, code=None, message=None, message_id=None): """ Error - a model defined in Swagger """ + self._cause = None self._code = None self._message = None + self._message_id = None + if cause is not None: + self.cause = cause self.code = code self.message = message + if message_id is not None: + self.message_id = message_id + + @property + def cause(self): + """ + Gets the cause of this Error. + The cause of this error + + :return: The cause of this Error. + :rtype: Error + """ + return self._cause + + @cause.setter + def cause(self, cause): + """ + Sets the cause of this Error. + The cause of this error + + :param cause: The cause of this Error. + :type: Error + """ + + self._cause = cause @property def code(self): @@ -97,6 +130,29 @@ def message(self, message): self._message = message + @property + def message_id(self): + """ + Gets the message_id of this Error. + A language-independent identifier of the specific error. + + :return: The message_id of this Error. + :rtype: str + """ + return self._message_id + + @message_id.setter + def message_id(self, message_id): + """ + Sets the message_id of this Error. + A language-independent identifier of the specific error. + + :param message_id: The message_id of this Error. + :type: str + """ + + self._message_id = message_id + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/ether_physical_port.py b/intersight/models/ether_physical_port.py index 0e85b972..5190c46d 100644 --- a/intersight/models/ether_physical_port.py +++ b/intersight/models/ether_physical_port.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,23 +32,24 @@ class EtherPhysicalPort(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', 'oper_state': 'str', 'role': 'str', 'mac_address': 'str', - 'port_group': 'MoMoRef', - 'port_sub_group': 'MoMoRef', - 'registered_device': 'MoMoRef', + 'port_group': 'PortGroupRef', + 'port_sub_group': 'PortSubGroupRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'transceiver_type': 'str' } @@ -62,6 +63,7 @@ class EtherPhysicalPort(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -74,7 +76,7 @@ class EtherPhysicalPort(object): 'transceiver_type': 'TransceiverType' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, oper_state=None, role=None, mac_address=None, port_group=None, port_sub_group=None, registered_device=None, transceiver_type=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, oper_state=None, role=None, mac_address=None, port_group=None, port_sub_group=None, registered_device=None, transceiver_type=None): """ EtherPhysicalPort - a model defined in Swagger """ @@ -88,6 +90,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -117,6 +120,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -168,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this EtherPhysicalPort. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -179,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this EtherPhysicalPort. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -306,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this EtherPhysicalPort. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -317,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this EtherPhysicalPort. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -326,7 +331,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this EtherPhysicalPort. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this EtherPhysicalPort. :rtype: list[MoTag] @@ -337,7 +342,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this EtherPhysicalPort. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this EtherPhysicalPort. :type: list[MoTag] @@ -345,6 +350,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this EtherPhysicalPort. + The versioning info for this managed object + + :return: The version_context of this EtherPhysicalPort. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this EtherPhysicalPort. + The versioning info for this managed object + + :param version_context: The version_context of this EtherPhysicalPort. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -477,7 +505,7 @@ def port_group(self): Gets the port_group of this EtherPhysicalPort. :return: The port_group of this EtherPhysicalPort. - :rtype: MoMoRef + :rtype: PortGroupRef """ return self._port_group @@ -487,7 +515,7 @@ def port_group(self, port_group): Sets the port_group of this EtherPhysicalPort. :param port_group: The port_group of this EtherPhysicalPort. - :type: MoMoRef + :type: PortGroupRef """ self._port_group = port_group @@ -498,7 +526,7 @@ def port_sub_group(self): Gets the port_sub_group of this EtherPhysicalPort. :return: The port_sub_group of this EtherPhysicalPort. - :rtype: MoMoRef + :rtype: PortSubGroupRef """ return self._port_sub_group @@ -508,7 +536,7 @@ def port_sub_group(self, port_sub_group): Sets the port_sub_group of this EtherPhysicalPort. :param port_sub_group: The port_sub_group of this EtherPhysicalPort. - :type: MoMoRef + :type: PortSubGroupRef """ self._port_sub_group = port_sub_group @@ -519,7 +547,7 @@ def registered_device(self): Gets the registered_device of this EtherPhysicalPort. :return: The registered_device of this EtherPhysicalPort. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -529,7 +557,7 @@ def registered_device(self, registered_device): Sets the registered_device of this EtherPhysicalPort. :param registered_device: The registered_device of this EtherPhysicalPort. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/ether_physical_port_list.py b/intersight/models/ether_physical_port_list.py index 9ced4ca6..ae67a700 100644 --- a/intersight/models/ether_physical_port_list.py +++ b/intersight/models/ether_physical_port_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/ether_physical_port_ref.py b/intersight/models/ether_physical_port_ref.py new file mode 100644 index 00000000..5ea3371e --- /dev/null +++ b/intersight/models/ether_physical_port_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class EtherPhysicalPortRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + EtherPhysicalPortRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this EtherPhysicalPortRef. + + :return: The moid of this EtherPhysicalPortRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this EtherPhysicalPortRef. + + :param moid: The moid of this EtherPhysicalPortRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this EtherPhysicalPortRef. + + :return: The object_type of this EtherPhysicalPortRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this EtherPhysicalPortRef. + + :param object_type: The object_type of this EtherPhysicalPortRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, EtherPhysicalPortRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/extsearch_app_config_ref.py b/intersight/models/extsearch_app_config_ref.py new file mode 100644 index 00000000..81d7fc36 --- /dev/null +++ b/intersight/models/extsearch_app_config_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ExtsearchAppConfigRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ExtsearchAppConfigRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ExtsearchAppConfigRef. + + :return: The moid of this ExtsearchAppConfigRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ExtsearchAppConfigRef. + + :param moid: The moid of this ExtsearchAppConfigRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ExtsearchAppConfigRef. + + :return: The object_type of this ExtsearchAppConfigRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ExtsearchAppConfigRef. + + :param object_type: The object_type of this ExtsearchAppConfigRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ExtsearchAppConfigRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/extsearch_import_ref.py b/intersight/models/extsearch_import_ref.py new file mode 100644 index 00000000..95cb2f5b --- /dev/null +++ b/intersight/models/extsearch_import_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ExtsearchImportRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ExtsearchImportRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ExtsearchImportRef. + + :return: The moid of this ExtsearchImportRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ExtsearchImportRef. + + :param moid: The moid of this ExtsearchImportRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ExtsearchImportRef. + + :return: The object_type of this ExtsearchImportRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ExtsearchImportRef. + + :param object_type: The object_type of this ExtsearchImportRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ExtsearchImportRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/fault_instance.py b/intersight/models/fault_instance.py index eea07fae..8b6f66df 100644 --- a/intersight/models/fault_instance.py +++ b/intersight/models/fault_instance.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class FaultInstance(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -56,7 +57,7 @@ class FaultInstance(object): 'num_occurrences': 'int', 'original_severity': 'str', 'previous_severity': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'rule': 'str', 'severity': 'str' } @@ -71,6 +72,7 @@ class FaultInstance(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -92,7 +94,7 @@ class FaultInstance(object): 'severity': 'Severity' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, acknowledged=None, affected_dn=None, affected_mo_id=None, affected_mo_type=None, ancestor_mo_id=None, ancestor_mo_type=None, code=None, creation_time=None, description=None, last_transition_time=None, num_occurrences=None, original_severity=None, previous_severity=None, registered_device=None, rule=None, severity=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, acknowledged=None, affected_dn=None, affected_mo_id=None, affected_mo_type=None, ancestor_mo_id=None, ancestor_mo_type=None, code=None, creation_time=None, description=None, last_transition_time=None, num_occurrences=None, original_severity=None, previous_severity=None, registered_device=None, rule=None, severity=None): """ FaultInstance - a model defined in Swagger """ @@ -106,6 +108,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -144,6 +147,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -213,7 +218,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this FaultInstance. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -224,7 +229,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this FaultInstance. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -351,7 +356,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this FaultInstance. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -362,7 +367,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this FaultInstance. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -371,7 +376,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this FaultInstance. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this FaultInstance. :rtype: list[MoTag] @@ -382,7 +387,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this FaultInstance. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this FaultInstance. :type: list[MoTag] @@ -390,6 +395,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this FaultInstance. + The versioning info for this managed object + + :return: The version_context of this FaultInstance. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this FaultInstance. + The versioning info for this managed object + + :param version_context: The version_context of this FaultInstance. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -732,7 +760,7 @@ def registered_device(self): Gets the registered_device of this FaultInstance. :return: The registered_device of this FaultInstance. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -742,7 +770,7 @@ def registered_device(self, registered_device): Sets the registered_device of this FaultInstance. :param registered_device: The registered_device of this FaultInstance. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/fault_instance_list.py b/intersight/models/fault_instance_list.py index 46c12df9..8d762e2b 100644 --- a/intersight/models/fault_instance_list.py +++ b/intersight/models/fault_instance_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/fault_instance_ref.py b/intersight/models/fault_instance_ref.py new file mode 100644 index 00000000..359d4b1f --- /dev/null +++ b/intersight/models/fault_instance_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FaultInstanceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FaultInstanceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FaultInstanceRef. + + :return: The moid of this FaultInstanceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FaultInstanceRef. + + :param moid: The moid of this FaultInstanceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FaultInstanceRef. + + :return: The object_type of this FaultInstanceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FaultInstanceRef. + + :param object_type: The object_type of this FaultInstanceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FaultInstanceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/fc_physical_port.py b/intersight/models/fc_physical_port.py index 74b00702..3c128c03 100644 --- a/intersight/models/fc_physical_port.py +++ b/intersight/models/fc_physical_port.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,22 @@ class FcPhysicalPort(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', 'oper_state': 'str', 'role': 'str', - 'port_group': 'MoMoRef', - 'registered_device': 'MoMoRef', + 'port_group': 'PortGroupRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'transceiver_type': 'str', 'wwn': 'str' } @@ -61,6 +62,7 @@ class FcPhysicalPort(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -72,7 +74,7 @@ class FcPhysicalPort(object): 'wwn': 'Wwn' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, oper_state=None, role=None, port_group=None, registered_device=None, transceiver_type=None, wwn=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, oper_state=None, role=None, port_group=None, registered_device=None, transceiver_type=None, wwn=None): """ FcPhysicalPort - a model defined in Swagger """ @@ -86,6 +88,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -114,6 +117,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -163,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this FcPhysicalPort. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this FcPhysicalPort. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this FcPhysicalPort. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this FcPhysicalPort. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -321,7 +326,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this FcPhysicalPort. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this FcPhysicalPort. :rtype: list[MoTag] @@ -332,7 +337,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this FcPhysicalPort. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this FcPhysicalPort. :type: list[MoTag] @@ -340,6 +345,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this FcPhysicalPort. + The versioning info for this managed object + + :return: The version_context of this FcPhysicalPort. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this FcPhysicalPort. + The versioning info for this managed object + + :param version_context: The version_context of this FcPhysicalPort. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -451,7 +479,7 @@ def port_group(self): Gets the port_group of this FcPhysicalPort. :return: The port_group of this FcPhysicalPort. - :rtype: MoMoRef + :rtype: PortGroupRef """ return self._port_group @@ -461,7 +489,7 @@ def port_group(self, port_group): Sets the port_group of this FcPhysicalPort. :param port_group: The port_group of this FcPhysicalPort. - :type: MoMoRef + :type: PortGroupRef """ self._port_group = port_group @@ -472,7 +500,7 @@ def registered_device(self): Gets the registered_device of this FcPhysicalPort. :return: The registered_device of this FcPhysicalPort. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -482,7 +510,7 @@ def registered_device(self, registered_device): Sets the registered_device of this FcPhysicalPort. :param registered_device: The registered_device of this FcPhysicalPort. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/fc_physical_port_list.py b/intersight/models/fc_physical_port_list.py index a138547f..2ad8ef99 100644 --- a/intersight/models/fc_physical_port_list.py +++ b/intersight/models/fc_physical_port_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/fc_physical_port_ref.py b/intersight/models/fc_physical_port_ref.py new file mode 100644 index 00000000..27164f8b --- /dev/null +++ b/intersight/models/fc_physical_port_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FcPhysicalPortRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FcPhysicalPortRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FcPhysicalPortRef. + + :return: The moid of this FcPhysicalPortRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FcPhysicalPortRef. + + :param moid: The moid of this FcPhysicalPortRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FcPhysicalPortRef. + + :return: The object_type of this FcPhysicalPortRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FcPhysicalPortRef. + + :param object_type: The object_type of this FcPhysicalPortRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FcPhysicalPortRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/feedback_feedback_data.py b/intersight/models/feedback_feedback_data.py new file mode 100644 index 00000000..58cf9336 --- /dev/null +++ b/intersight/models/feedback_feedback_data.py @@ -0,0 +1,277 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FeedbackFeedbackData(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'comment': 'str', + 'email': 'str', + 'evaluation': 'str', + 'follow_up': 'bool', + 'trace_ids': 'object', + 'type': 'str' + } + + attribute_map = { + 'comment': 'Comment', + 'email': 'Email', + 'evaluation': 'Evaluation', + 'follow_up': 'FollowUp', + 'trace_ids': 'TraceIds', + 'type': 'Type' + } + + def __init__(self, comment=None, email=None, evaluation='Excellent', follow_up=None, trace_ids=None, type='Evaluation'): + """ + FeedbackFeedbackData - a model defined in Swagger + """ + + self._comment = None + self._email = None + self._evaluation = None + self._follow_up = None + self._trace_ids = None + self._type = None + + if comment is not None: + self.comment = comment + if email is not None: + self.email = email + if evaluation is not None: + self.evaluation = evaluation + if follow_up is not None: + self.follow_up = follow_up + if trace_ids is not None: + self.trace_ids = trace_ids + if type is not None: + self.type = type + + @property + def comment(self): + """ + Gets the comment of this FeedbackFeedbackData. + Text of the feedback + + :return: The comment of this FeedbackFeedbackData. + :rtype: str + """ + return self._comment + + @comment.setter + def comment(self, comment): + """ + Sets the comment of this FeedbackFeedbackData. + Text of the feedback + + :param comment: The comment of this FeedbackFeedbackData. + :type: str + """ + + self._comment = comment + + @property + def email(self): + """ + Gets the email of this FeedbackFeedbackData. + user email + + :return: The email of this FeedbackFeedbackData. + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """ + Sets the email of this FeedbackFeedbackData. + user email + + :param email: The email of this FeedbackFeedbackData. + :type: str + """ + + self._email = email + + @property + def evaluation(self): + """ + Gets the evaluation of this FeedbackFeedbackData. + evaluation type + + :return: The evaluation of this FeedbackFeedbackData. + :rtype: str + """ + return self._evaluation + + @evaluation.setter + def evaluation(self, evaluation): + """ + Sets the evaluation of this FeedbackFeedbackData. + evaluation type + + :param evaluation: The evaluation of this FeedbackFeedbackData. + :type: str + """ + allowed_values = ["Excellent", "Poor", "Fair", "Good"] + if evaluation not in allowed_values: + raise ValueError( + "Invalid value for `evaluation` ({0}), must be one of {1}" + .format(evaluation, allowed_values) + ) + + self._evaluation = evaluation + + @property + def follow_up(self): + """ + Gets the follow_up of this FeedbackFeedbackData. + if user open for follow-up or not + + :return: The follow_up of this FeedbackFeedbackData. + :rtype: bool + """ + return self._follow_up + + @follow_up.setter + def follow_up(self, follow_up): + """ + Sets the follow_up of this FeedbackFeedbackData. + if user open for follow-up or not + + :param follow_up: The follow_up of this FeedbackFeedbackData. + :type: bool + """ + + self._follow_up = follow_up + + @property + def trace_ids(self): + """ + Gets the trace_ids of this FeedbackFeedbackData. + Bunch of last traceId for reproducing user last activity + + :return: The trace_ids of this FeedbackFeedbackData. + :rtype: object + """ + return self._trace_ids + + @trace_ids.setter + def trace_ids(self, trace_ids): + """ + Sets the trace_ids of this FeedbackFeedbackData. + Bunch of last traceId for reproducing user last activity + + :param trace_ids: The trace_ids of this FeedbackFeedbackData. + :type: object + """ + + self._trace_ids = trace_ids + + @property + def type(self): + """ + Gets the type of this FeedbackFeedbackData. + Type from user + + :return: The type of this FeedbackFeedbackData. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this FeedbackFeedbackData. + Type from user + + :param type: The type of this FeedbackFeedbackData. + :type: str + """ + allowed_values = ["Evaluation", "Bug"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" + .format(type, allowed_values) + ) + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FeedbackFeedbackData): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/feedback_feedback_data_ref.py b/intersight/models/feedback_feedback_data_ref.py new file mode 100644 index 00000000..529da61d --- /dev/null +++ b/intersight/models/feedback_feedback_data_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FeedbackFeedbackDataRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FeedbackFeedbackDataRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FeedbackFeedbackDataRef. + + :return: The moid of this FeedbackFeedbackDataRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FeedbackFeedbackDataRef. + + :param moid: The moid of this FeedbackFeedbackDataRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FeedbackFeedbackDataRef. + + :return: The object_type of this FeedbackFeedbackDataRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FeedbackFeedbackDataRef. + + :param object_type: The object_type of this FeedbackFeedbackDataRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FeedbackFeedbackDataRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/feedback_feedback_post.py b/intersight/models/feedback_feedback_post.py new file mode 100644 index 00000000..adedab0a --- /dev/null +++ b/intersight/models/feedback_feedback_post.py @@ -0,0 +1,429 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FeedbackFeedbackPost(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', + 'feedback_data': 'FeedbackFeedbackData' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'account': 'Account', + 'feedback_data': 'FeedbackData' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, feedback_data=None): + """ + FeedbackFeedbackPost - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._account = None + self._feedback_data = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if account is not None: + self.account = account + if feedback_data is not None: + self.feedback_data = feedback_data + + @property + def account_moid(self): + """ + Gets the account_moid of this FeedbackFeedbackPost. + The Account ID for this managed object. + + :return: The account_moid of this FeedbackFeedbackPost. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this FeedbackFeedbackPost. + The Account ID for this managed object. + + :param account_moid: The account_moid of this FeedbackFeedbackPost. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this FeedbackFeedbackPost. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this FeedbackFeedbackPost. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this FeedbackFeedbackPost. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this FeedbackFeedbackPost. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this FeedbackFeedbackPost. + The time when this managed object was created. + + :return: The create_time of this FeedbackFeedbackPost. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this FeedbackFeedbackPost. + The time when this managed object was created. + + :param create_time: The create_time of this FeedbackFeedbackPost. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this FeedbackFeedbackPost. + The time when this managed object was last modified. + + :return: The mod_time of this FeedbackFeedbackPost. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this FeedbackFeedbackPost. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this FeedbackFeedbackPost. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this FeedbackFeedbackPost. + A unique identifier of this Managed Object instance. + + :return: The moid of this FeedbackFeedbackPost. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FeedbackFeedbackPost. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this FeedbackFeedbackPost. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FeedbackFeedbackPost. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this FeedbackFeedbackPost. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FeedbackFeedbackPost. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this FeedbackFeedbackPost. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this FeedbackFeedbackPost. + An array of owners which represent effective ownership of this object. + + :return: The owners of this FeedbackFeedbackPost. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this FeedbackFeedbackPost. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this FeedbackFeedbackPost. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this FeedbackFeedbackPost. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this FeedbackFeedbackPost. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this FeedbackFeedbackPost. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this FeedbackFeedbackPost. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this FeedbackFeedbackPost. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this FeedbackFeedbackPost. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this FeedbackFeedbackPost. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this FeedbackFeedbackPost. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this FeedbackFeedbackPost. + The versioning info for this managed object + + :return: The version_context of this FeedbackFeedbackPost. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this FeedbackFeedbackPost. + The versioning info for this managed object + + :param version_context: The version_context of this FeedbackFeedbackPost. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def account(self): + """ + Gets the account of this FeedbackFeedbackPost. + + :return: The account of this FeedbackFeedbackPost. + :rtype: IamAccountRef + """ + return self._account + + @account.setter + def account(self, account): + """ + Sets the account of this FeedbackFeedbackPost. + + :param account: The account of this FeedbackFeedbackPost. + :type: IamAccountRef + """ + + self._account = account + + @property + def feedback_data(self): + """ + Gets the feedback_data of this FeedbackFeedbackPost. + + :return: The feedback_data of this FeedbackFeedbackPost. + :rtype: FeedbackFeedbackData + """ + return self._feedback_data + + @feedback_data.setter + def feedback_data(self, feedback_data): + """ + Sets the feedback_data of this FeedbackFeedbackPost. + + :param feedback_data: The feedback_data of this FeedbackFeedbackPost. + :type: FeedbackFeedbackData + """ + + self._feedback_data = feedback_data + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FeedbackFeedbackPost): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/feedback_feedback_post_ref.py b/intersight/models/feedback_feedback_post_ref.py new file mode 100644 index 00000000..a66ead64 --- /dev/null +++ b/intersight/models/feedback_feedback_post_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FeedbackFeedbackPostRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FeedbackFeedbackPostRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FeedbackFeedbackPostRef. + + :return: The moid of this FeedbackFeedbackPostRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FeedbackFeedbackPostRef. + + :param moid: The moid of this FeedbackFeedbackPostRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FeedbackFeedbackPostRef. + + :return: The object_type of this FeedbackFeedbackPostRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FeedbackFeedbackPostRef. + + :param object_type: The object_type of this FeedbackFeedbackPostRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FeedbackFeedbackPostRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/feedback_feedback_ref.py b/intersight/models/feedback_feedback_ref.py new file mode 100644 index 00000000..113f0e90 --- /dev/null +++ b/intersight/models/feedback_feedback_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FeedbackFeedbackRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FeedbackFeedbackRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FeedbackFeedbackRef. + + :return: The moid of this FeedbackFeedbackRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FeedbackFeedbackRef. + + :param moid: The moid of this FeedbackFeedbackRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FeedbackFeedbackRef. + + :return: The object_type of this FeedbackFeedbackRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FeedbackFeedbackRef. + + :param object_type: The object_type of this FeedbackFeedbackRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FeedbackFeedbackRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/feedback_feedback_settings_ref.py b/intersight/models/feedback_feedback_settings_ref.py new file mode 100644 index 00000000..c852c259 --- /dev/null +++ b/intersight/models/feedback_feedback_settings_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FeedbackFeedbackSettingsRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FeedbackFeedbackSettingsRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FeedbackFeedbackSettingsRef. + + :return: The moid of this FeedbackFeedbackSettingsRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FeedbackFeedbackSettingsRef. + + :param moid: The moid of this FeedbackFeedbackSettingsRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FeedbackFeedbackSettingsRef. + + :return: The object_type of this FeedbackFeedbackSettingsRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FeedbackFeedbackSettingsRef. + + :param object_type: The object_type of this FeedbackFeedbackSettingsRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FeedbackFeedbackSettingsRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/feedback_history_item_ref.py b/intersight/models/feedback_history_item_ref.py new file mode 100644 index 00000000..f8f82d53 --- /dev/null +++ b/intersight/models/feedback_history_item_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FeedbackHistoryItemRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FeedbackHistoryItemRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FeedbackHistoryItemRef. + + :return: The moid of this FeedbackHistoryItemRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FeedbackHistoryItemRef. + + :param moid: The moid of this FeedbackHistoryItemRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FeedbackHistoryItemRef. + + :return: The object_type of this FeedbackHistoryItemRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FeedbackHistoryItemRef. + + :param object_type: The object_type of this FeedbackHistoryItemRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FeedbackHistoryItemRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_cifs_server.py b/intersight/models/firmware_cifs_server.py index f31ff428..8d784ed4 100644 --- a/intersight/models/firmware_cifs_server.py +++ b/intersight/models/firmware_cifs_server.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -67,7 +67,7 @@ def __init__(self, mount_options='none', remote_file=None, remote_ip=None, remot def mount_options(self): """ Gets the mount_options of this FirmwareCifsServer. - Mount options of this image in the nfs server + Mount option (Authentication Protocol) as configured on the CIFS Server. Example:ntlmv2. :return: The mount_options of this FirmwareCifsServer. :rtype: str @@ -78,7 +78,7 @@ def mount_options(self): def mount_options(self, mount_options): """ Sets the mount_options of this FirmwareCifsServer. - Mount options of this image in the nfs server + Mount option (Authentication Protocol) as configured on the CIFS Server. Example:ntlmv2. :param mount_options: The mount_options of this FirmwareCifsServer. :type: str @@ -96,7 +96,7 @@ def mount_options(self, mount_options): def remote_file(self): """ Gets the remote_file of this FirmwareCifsServer. - The filename of the image + Filename of the image in the remote share location. Example:ucs-c220m5-huu-3.1.2c.iso. :return: The remote_file of this FirmwareCifsServer. :rtype: str @@ -107,7 +107,7 @@ def remote_file(self): def remote_file(self, remote_file): """ Sets the remote_file of this FirmwareCifsServer. - The filename of the image + Filename of the image in the remote share location. Example:ucs-c220m5-huu-3.1.2c.iso. :param remote_file: The remote_file of this FirmwareCifsServer. :type: str @@ -119,7 +119,7 @@ def remote_file(self, remote_file): def remote_ip(self): """ Gets the remote_ip of this FirmwareCifsServer. - The IP of a host (in the network) that has the image download thta can be mounted in BMC + CIFS Server Hostname or IP Address. Example:cifs-server-hostname or 10.10.8.7. :return: The remote_ip of this FirmwareCifsServer. :rtype: str @@ -130,7 +130,7 @@ def remote_ip(self): def remote_ip(self, remote_ip): """ Sets the remote_ip of this FirmwareCifsServer. - The IP of a host (in the network) that has the image download thta can be mounted in BMC + CIFS Server Hostname or IP Address. Example:cifs-server-hostname or 10.10.8.7. :param remote_ip: The remote_ip of this FirmwareCifsServer. :type: str @@ -142,7 +142,7 @@ def remote_ip(self, remote_ip): def remote_share(self): """ Gets the remote_share of this FirmwareCifsServer. - The directory where the image is stored + Directory where the image is stored. Example:share/subfolder. :return: The remote_share of this FirmwareCifsServer. :rtype: str @@ -153,7 +153,7 @@ def remote_share(self): def remote_share(self, remote_share): """ Sets the remote_share of this FirmwareCifsServer. - The directory where the image is stored + Directory where the image is stored. Example:share/subfolder. :param remote_share: The remote_share of this FirmwareCifsServer. :type: str diff --git a/intersight/models/firmware_cifs_server_ref.py b/intersight/models/firmware_cifs_server_ref.py new file mode 100644 index 00000000..76496fa4 --- /dev/null +++ b/intersight/models/firmware_cifs_server_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareCifsServerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareCifsServerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareCifsServerRef. + + :return: The moid of this FirmwareCifsServerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareCifsServerRef. + + :param moid: The moid of this FirmwareCifsServerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareCifsServerRef. + + :return: The object_type of this FirmwareCifsServerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareCifsServerRef. + + :param object_type: The object_type of this FirmwareCifsServerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareCifsServerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_direct_download.py b/intersight/models/firmware_direct_download.py index 7ed13ef5..946c9d31 100644 --- a/intersight/models/firmware_direct_download.py +++ b/intersight/models/firmware_direct_download.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,28 +31,149 @@ class FirmwareDirectDownload(object): and the value is json key in definition. """ swagger_types = { - 'upgradeoption': 'str' + 'http_server': 'FirmwareHttpServer', + 'image_source': 'str', + 'is_password_set': 'bool', + 'password': 'str', + 'upgradeoption': 'str', + 'username': 'str' } attribute_map = { - 'upgradeoption': 'Upgradeoption' + 'http_server': 'HttpServer', + 'image_source': 'ImageSource', + 'is_password_set': 'IsPasswordSet', + 'password': 'Password', + 'upgradeoption': 'Upgradeoption', + 'username': 'Username' } - def __init__(self, upgradeoption='sd_upgrade_full'): + def __init__(self, http_server=None, image_source='cco', is_password_set=None, password=None, upgradeoption='sd_upgrade_mount_only', username=None): """ FirmwareDirectDownload - a model defined in Swagger """ + self._http_server = None + self._image_source = None + self._is_password_set = None + self._password = None self._upgradeoption = None + self._username = None + if http_server is not None: + self.http_server = http_server + if image_source is not None: + self.image_source = image_source + if is_password_set is not None: + self.is_password_set = is_password_set + if password is not None: + self.password = password if upgradeoption is not None: self.upgradeoption = upgradeoption + if username is not None: + self.username = username + + @property + def http_server(self): + """ + Gets the http_server of this FirmwareDirectDownload. + HTTP Server option when the image source is a local https server + + :return: The http_server of this FirmwareDirectDownload. + :rtype: FirmwareHttpServer + """ + return self._http_server + + @http_server.setter + def http_server(self, http_server): + """ + Sets the http_server of this FirmwareDirectDownload. + HTTP Server option when the image source is a local https server + + :param http_server: The http_server of this FirmwareDirectDownload. + :type: FirmwareHttpServer + """ + + self._http_server = http_server + + @property + def image_source(self): + """ + Gets the image_source of this FirmwareDirectDownload. + Source type referring the image to be downloaded from CCO or from a local https server + + :return: The image_source of this FirmwareDirectDownload. + :rtype: str + """ + return self._image_source + + @image_source.setter + def image_source(self, image_source): + """ + Sets the image_source of this FirmwareDirectDownload. + Source type referring the image to be downloaded from CCO or from a local https server + + :param image_source: The image_source of this FirmwareDirectDownload. + :type: str + """ + allowed_values = ["cco", "localHttp"] + if image_source not in allowed_values: + raise ValueError( + "Invalid value for `image_source` ({0}), must be one of {1}" + .format(image_source, allowed_values) + ) + + self._image_source = image_source + + @property + def is_password_set(self): + """ + Gets the is_password_set of this FirmwareDirectDownload. + + :return: The is_password_set of this FirmwareDirectDownload. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this FirmwareDirectDownload. + + :param is_password_set: The is_password_set of this FirmwareDirectDownload. + :type: bool + """ + + self._is_password_set = is_password_set + + @property + def password(self): + """ + Gets the password of this FirmwareDirectDownload. + Password as configured on the local https server + + :return: The password of this FirmwareDirectDownload. + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """ + Sets the password of this FirmwareDirectDownload. + Password as configured on the local https server + + :param password: The password of this FirmwareDirectDownload. + :type: str + """ + + self._password = password @property def upgradeoption(self): """ Gets the upgradeoption of this FirmwareDirectDownload. - Customer can download the image on the microsd of the server from Cisco.com and upgrade later or do the download, upgrade in a single window + Option to control the upgrade, e.g., sd_upgrade_mount_only - download the image into sd and upgrade wait for the server on-next boot :return: The upgradeoption of this FirmwareDirectDownload. :rtype: str @@ -63,12 +184,12 @@ def upgradeoption(self): def upgradeoption(self, upgradeoption): """ Sets the upgradeoption of this FirmwareDirectDownload. - Customer can download the image on the microsd of the server from Cisco.com and upgrade later or do the download, upgrade in a single window + Option to control the upgrade, e.g., sd_upgrade_mount_only - download the image into sd and upgrade wait for the server on-next boot :param upgradeoption: The upgradeoption of this FirmwareDirectDownload. :type: str """ - allowed_values = ["sd_upgrade_full", "sd_download_only", "sd_upgrade_only"] + allowed_values = ["sd_upgrade_mount_only", "sd_download_only", "sd_upgrade_only", "sd_upgrade_full"] if upgradeoption not in allowed_values: raise ValueError( "Invalid value for `upgradeoption` ({0}), must be one of {1}" @@ -77,6 +198,29 @@ def upgradeoption(self, upgradeoption): self._upgradeoption = upgradeoption + @property + def username(self): + """ + Gets the username of this FirmwareDirectDownload. + Username as configured on the local https server + + :return: The username of this FirmwareDirectDownload. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """ + Sets the username of this FirmwareDirectDownload. + Username as configured on the local https server + + :param username: The username of this FirmwareDirectDownload. + :type: str + """ + + self._username = username + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/firmware_direct_download_ref.py b/intersight/models/firmware_direct_download_ref.py new file mode 100644 index 00000000..d1dfdd27 --- /dev/null +++ b/intersight/models/firmware_direct_download_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareDirectDownloadRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareDirectDownloadRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareDirectDownloadRef. + + :return: The moid of this FirmwareDirectDownloadRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareDirectDownloadRef. + + :param moid: The moid of this FirmwareDirectDownloadRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareDirectDownloadRef. + + :return: The object_type of this FirmwareDirectDownloadRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareDirectDownloadRef. + + :param object_type: The object_type of this FirmwareDirectDownloadRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareDirectDownloadRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_distributable.py b/intersight/models/firmware_distributable.py index 92d0ef61..e487f2c0 100644 --- a/intersight/models/firmware_distributable.py +++ b/intersight/models/firmware_distributable.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class FirmwareDistributable(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'bundle_type': 'str', 'description': 'str', 'guid': 'str', @@ -47,9 +48,11 @@ class FirmwareDistributable(object): 'mdfid': 'str', 'model': 'str', 'name': 'str', + 'page_index': 'str', 'platform_type': 'str', 'release_date': 'str', 'size': 'str', + 'software_advisory_url': 'str', 'software_type_id': 'str', 'source': 'str', 'supported_models': 'list[str]', @@ -67,6 +70,7 @@ class FirmwareDistributable(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'bundle_type': 'BundleType', 'description': 'Description', 'guid': 'Guid', @@ -74,9 +78,11 @@ class FirmwareDistributable(object): 'mdfid': 'Mdfid', 'model': 'Model', 'name': 'Name', + 'page_index': 'PageIndex', 'platform_type': 'PlatformType', 'release_date': 'ReleaseDate', 'size': 'Size', + 'software_advisory_url': 'SoftwareAdvisoryUrl', 'software_type_id': 'SoftwareTypeId', 'source': 'Source', 'supported_models': 'SupportedModels', @@ -84,7 +90,7 @@ class FirmwareDistributable(object): 'version': 'Version' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, bundle_type=None, description=None, guid=None, md5sum=None, mdfid=None, model=None, name=None, platform_type=None, release_date=None, size=None, software_type_id=None, source='CCO', supported_models=None, vendor=None, version=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, bundle_type=None, description=None, guid=None, md5sum=None, mdfid=None, model=None, name=None, page_index=None, platform_type=None, release_date=None, size=None, software_advisory_url=None, software_type_id=None, source='CCO', supported_models=None, vendor=None, version=None): """ FirmwareDistributable - a model defined in Swagger """ @@ -98,6 +104,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._bundle_type = None self._description = None self._guid = None @@ -105,9 +112,11 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._mdfid = None self._model = None self._name = None + self._page_index = None self._platform_type = None self._release_date = None self._size = None + self._software_advisory_url = None self._software_type_id = None self._source = None self._supported_models = None @@ -132,6 +141,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if bundle_type is not None: self.bundle_type = bundle_type if description is not None: @@ -146,12 +157,16 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.model = model if name is not None: self.name = name + if page_index is not None: + self.page_index = page_index if platform_type is not None: self.platform_type = platform_type if release_date is not None: self.release_date = release_date if size is not None: self.size = size + if software_advisory_url is not None: + self.software_advisory_url = software_advisory_url if software_type_id is not None: self.software_type_id = software_type_id if source is not None: @@ -193,7 +208,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this FirmwareDistributable. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -204,7 +219,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this FirmwareDistributable. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -331,7 +346,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this FirmwareDistributable. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -342,7 +357,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this FirmwareDistributable. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -351,7 +366,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this FirmwareDistributable. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this FirmwareDistributable. :rtype: list[MoTag] @@ -362,7 +377,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this FirmwareDistributable. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this FirmwareDistributable. :type: list[MoTag] @@ -370,6 +385,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this FirmwareDistributable. + The versioning info for this managed object + + :return: The version_context of this FirmwareDistributable. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this FirmwareDistributable. + The versioning info for this managed object + + :param version_context: The version_context of this FirmwareDistributable. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def bundle_type(self): """ @@ -531,6 +569,29 @@ def name(self, name): self._name = name + @property + def page_index(self): + """ + Gets the page_index of this FirmwareDistributable. + Page number where firmware image is present in Cisco Software Repository + + :return: The page_index of this FirmwareDistributable. + :rtype: str + """ + return self._page_index + + @page_index.setter + def page_index(self, page_index): + """ + Sets the page_index of this FirmwareDistributable. + Page number where firmware image is present in Cisco Software Repository + + :param page_index: The page_index of this FirmwareDistributable. + :type: str + """ + + self._page_index = page_index + @property def platform_type(self): """ @@ -600,6 +661,29 @@ def size(self, size): self._size = size + @property + def software_advisory_url(self): + """ + Gets the software_advisory_url of this FirmwareDistributable. + Software Advisory for firmware image from Cisco software repository. Read and accept the software advisory before downloading the firmware image. + + :return: The software_advisory_url of this FirmwareDistributable. + :rtype: str + """ + return self._software_advisory_url + + @software_advisory_url.setter + def software_advisory_url(self, software_advisory_url): + """ + Sets the software_advisory_url of this FirmwareDistributable. + Software Advisory for firmware image from Cisco software repository. Read and accept the software advisory before downloading the firmware image. + + :param software_advisory_url: The software_advisory_url of this FirmwareDistributable. + :type: str + """ + + self._software_advisory_url = software_advisory_url + @property def software_type_id(self): """ diff --git a/intersight/models/firmware_distributable_list.py b/intersight/models/firmware_distributable_list.py index 764c980a..9c18be14 100644 --- a/intersight/models/firmware_distributable_list.py +++ b/intersight/models/firmware_distributable_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/firmware_distributable_ref.py b/intersight/models/firmware_distributable_ref.py new file mode 100644 index 00000000..94e940be --- /dev/null +++ b/intersight/models/firmware_distributable_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareDistributableRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareDistributableRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareDistributableRef. + + :return: The moid of this FirmwareDistributableRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareDistributableRef. + + :param moid: The moid of this FirmwareDistributableRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareDistributableRef. + + :return: The object_type of this FirmwareDistributableRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareDistributableRef. + + :param object_type: The object_type of this FirmwareDistributableRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareDistributableRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_download_spec_ref.py b/intersight/models/firmware_download_spec_ref.py new file mode 100644 index 00000000..c0fda429 --- /dev/null +++ b/intersight/models/firmware_download_spec_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareDownloadSpecRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareDownloadSpecRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareDownloadSpecRef. + + :return: The moid of this FirmwareDownloadSpecRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareDownloadSpecRef. + + :param moid: The moid of this FirmwareDownloadSpecRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareDownloadSpecRef. + + :return: The object_type of this FirmwareDownloadSpecRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareDownloadSpecRef. + + :param object_type: The object_type of this FirmwareDownloadSpecRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareDownloadSpecRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_eula.py b/intersight/models/firmware_eula.py index eef305e0..0d252871 100644 --- a/intersight/models/firmware_eula.py +++ b/intersight/models/firmware_eula.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,16 +32,17 @@ class FirmwareEula(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'accepted': 'bool', - 'account': 'MoMoRef', + 'account': 'IamAccountRef', 'content': 'str' } @@ -55,12 +56,13 @@ class FirmwareEula(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'accepted': 'Accepted', 'account': 'Account', 'content': 'Content' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, accepted=None, account=None, content=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, accepted=None, account=None, content=None): """ FirmwareEula - a model defined in Swagger """ @@ -74,6 +76,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._accepted = None self._account = None self._content = None @@ -96,6 +99,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if accepted is not None: self.accepted = accepted if account is not None: @@ -133,7 +138,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this FirmwareEula. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -144,7 +149,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this FirmwareEula. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -271,7 +276,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this FirmwareEula. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -282,7 +287,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this FirmwareEula. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -291,7 +296,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this FirmwareEula. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this FirmwareEula. :rtype: list[MoTag] @@ -302,7 +307,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this FirmwareEula. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this FirmwareEula. :type: list[MoTag] @@ -310,6 +315,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this FirmwareEula. + The versioning info for this managed object + + :return: The version_context of this FirmwareEula. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this FirmwareEula. + The versioning info for this managed object + + :param version_context: The version_context of this FirmwareEula. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def accepted(self): """ @@ -340,7 +368,7 @@ def account(self): Account relation :return: The account of this FirmwareEula. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -351,7 +379,7 @@ def account(self, account): Account relation :param account: The account of this FirmwareEula. - :type: MoMoRef + :type: IamAccountRef """ self._account = account diff --git a/intersight/models/firmware_eula_list.py b/intersight/models/firmware_eula_list.py index 5c81b5f9..9402d14b 100644 --- a/intersight/models/firmware_eula_list.py +++ b/intersight/models/firmware_eula_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/firmware_eula_ref.py b/intersight/models/firmware_eula_ref.py new file mode 100644 index 00000000..1c60cd3d --- /dev/null +++ b/intersight/models/firmware_eula_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareEulaRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareEulaRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareEulaRef. + + :return: The moid of this FirmwareEulaRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareEulaRef. + + :param moid: The moid of this FirmwareEulaRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareEulaRef. + + :return: The object_type of this FirmwareEulaRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareEulaRef. + + :param object_type: The object_type of this FirmwareEulaRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareEulaRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_http_server.py b/intersight/models/firmware_http_server.py index 55335a65..db76bd83 100644 --- a/intersight/models/firmware_http_server.py +++ b/intersight/models/firmware_http_server.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -57,7 +57,7 @@ def __init__(self, location_link=None, mount_options=None): def location_link(self): """ Gets the location_link of this FirmwareHttpServer. - An HTTP/HTTPS link for the image location + HTTP/HTTPS link to the image. Accepted formats http[s]://server-hostname/share/image or http[s]://serverip/share/image. :return: The location_link of this FirmwareHttpServer. :rtype: str @@ -68,7 +68,7 @@ def location_link(self): def location_link(self, location_link): """ Sets the location_link of this FirmwareHttpServer. - An HTTP/HTTPS link for the image location + HTTP/HTTPS link to the image. Accepted formats http[s]://server-hostname/share/image or http[s]://serverip/share/image. :param location_link: The location_link of this FirmwareHttpServer. :type: str @@ -80,7 +80,7 @@ def location_link(self, location_link): def mount_options(self): """ Gets the mount_options of this FirmwareHttpServer. - Mount options of this image in the http server + Mount option as configured on the HTTP server. Empty if nothing is configured. :return: The mount_options of this FirmwareHttpServer. :rtype: str @@ -91,7 +91,7 @@ def mount_options(self): def mount_options(self, mount_options): """ Sets the mount_options of this FirmwareHttpServer. - Mount options of this image in the http server + Mount option as configured on the HTTP server. Empty if nothing is configured. :param mount_options: The mount_options of this FirmwareHttpServer. :type: str diff --git a/intersight/models/firmware_http_server_ref.py b/intersight/models/firmware_http_server_ref.py new file mode 100644 index 00000000..b2efc32d --- /dev/null +++ b/intersight/models/firmware_http_server_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareHttpServerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareHttpServerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareHttpServerRef. + + :return: The moid of this FirmwareHttpServerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareHttpServerRef. + + :param moid: The moid of this FirmwareHttpServerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareHttpServerRef. + + :return: The object_type of this FirmwareHttpServerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareHttpServerRef. + + :param object_type: The object_type of this FirmwareHttpServerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareHttpServerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_network_share.py b/intersight/models/firmware_network_share.py index 15e5a32d..120590c5 100644 --- a/intersight/models/firmware_network_share.py +++ b/intersight/models/firmware_network_share.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -33,6 +33,7 @@ class FirmwareNetworkShare(object): swagger_types = { 'cifs_server': 'FirmwareCifsServer', 'http_server': 'FirmwareHttpServer', + 'is_password_set': 'bool', 'map_type': 'str', 'nfs_server': 'FirmwareNfsServer', 'password': 'str', @@ -43,6 +44,7 @@ class FirmwareNetworkShare(object): attribute_map = { 'cifs_server': 'CifsServer', 'http_server': 'HttpServer', + 'is_password_set': 'IsPasswordSet', 'map_type': 'MapType', 'nfs_server': 'NfsServer', 'password': 'Password', @@ -50,13 +52,14 @@ class FirmwareNetworkShare(object): 'username': 'Username' } - def __init__(self, cifs_server=None, http_server=None, map_type='nfs', nfs_server=None, password=None, upgradeoption='nw_upgrade_full', username=None): + def __init__(self, cifs_server=None, http_server=None, is_password_set=None, map_type='nfs', nfs_server=None, password=None, upgradeoption='nw_upgrade_full', username=None): """ FirmwareNetworkShare - a model defined in Swagger """ self._cifs_server = None self._http_server = None + self._is_password_set = None self._map_type = None self._nfs_server = None self._password = None @@ -67,6 +70,8 @@ def __init__(self, cifs_server=None, http_server=None, map_type='nfs', nfs_serve self.cifs_server = cifs_server if http_server is not None: self.http_server = http_server + if is_password_set is not None: + self.is_password_set = is_password_set if map_type is not None: self.map_type = map_type if nfs_server is not None: @@ -82,7 +87,7 @@ def __init__(self, cifs_server=None, http_server=None, map_type='nfs', nfs_serve def cifs_server(self): """ Gets the cifs_server of this FirmwareNetworkShare. - Cifs server access details that holds the image + CIFS file server option :return: The cifs_server of this FirmwareNetworkShare. :rtype: FirmwareCifsServer @@ -93,7 +98,7 @@ def cifs_server(self): def cifs_server(self, cifs_server): """ Sets the cifs_server of this FirmwareNetworkShare. - Cifs server access details that holds the image + CIFS file server option :param cifs_server: The cifs_server of this FirmwareNetworkShare. :type: FirmwareCifsServer @@ -105,7 +110,7 @@ def cifs_server(self, cifs_server): def http_server(self): """ Gets the http_server of this FirmwareNetworkShare. - Http server access details that holds the image + HTTP(for WWW) file server option :return: The http_server of this FirmwareNetworkShare. :rtype: FirmwareHttpServer @@ -116,7 +121,7 @@ def http_server(self): def http_server(self, http_server): """ Sets the http_server of this FirmwareNetworkShare. - Http server access details that holds the image + HTTP(for WWW) file server option :param http_server: The http_server of this FirmwareNetworkShare. :type: FirmwareHttpServer @@ -124,11 +129,32 @@ def http_server(self, http_server): self._http_server = http_server + @property + def is_password_set(self): + """ + Gets the is_password_set of this FirmwareNetworkShare. + + :return: The is_password_set of this FirmwareNetworkShare. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this FirmwareNetworkShare. + + :param is_password_set: The is_password_set of this FirmwareNetworkShare. + :type: bool + """ + + self._is_password_set = is_password_set + @property def map_type(self): """ Gets the map_type of this FirmwareNetworkShare. - User can have the image already downloaded in a local network in customer premises and initiate the upgrade via Intersight with that network-share information. The image can be in a different mount protocol like cifs,nfs and over http(www). Once this configured, Intersight will configure the mount point in BMC. + File server protocols like CIFS, NFS, WWW for HTTP(S) that hosts the image :return: The map_type of this FirmwareNetworkShare. :rtype: str @@ -139,7 +165,7 @@ def map_type(self): def map_type(self, map_type): """ Sets the map_type of this FirmwareNetworkShare. - User can have the image already downloaded in a local network in customer premises and initiate the upgrade via Intersight with that network-share information. The image can be in a different mount protocol like cifs,nfs and over http(www). Once this configured, Intersight will configure the mount point in BMC. + File server protocols like CIFS, NFS, WWW for HTTP(S) that hosts the image :param map_type: The map_type of this FirmwareNetworkShare. :type: str @@ -157,7 +183,7 @@ def map_type(self, map_type): def nfs_server(self): """ Gets the nfs_server of this FirmwareNetworkShare. - Nfs server accessdetails that holds the image + NFS file server option :return: The nfs_server of this FirmwareNetworkShare. :rtype: FirmwareNfsServer @@ -168,7 +194,7 @@ def nfs_server(self): def nfs_server(self, nfs_server): """ Sets the nfs_server of this FirmwareNetworkShare. - Nfs server accessdetails that holds the image + NFS file server option :param nfs_server: The nfs_server of this FirmwareNetworkShare. :type: FirmwareNfsServer @@ -180,7 +206,7 @@ def nfs_server(self, nfs_server): def password(self): """ Gets the password of this FirmwareNetworkShare. - Based on the mount configurations, credential is required by BMC to mount the image from the network + Password as configured on the file server :return: The password of this FirmwareNetworkShare. :rtype: str @@ -191,7 +217,7 @@ def password(self): def password(self, password): """ Sets the password of this FirmwareNetworkShare. - Based on the mount configurations, credential is required by BMC to mount the image from the network + Password as configured on the file server :param password: The password of this FirmwareNetworkShare. :type: str @@ -203,7 +229,7 @@ def password(self, password): def upgradeoption(self): """ Gets the upgradeoption of this FirmwareNetworkShare. - Customer can mount a locally downloaded image on the setup and upgrade later or do both the mount, upgrade in a single window + Option to control the upgrade, e.g., 1) nw_upgrade_mount_only - mount the image from a file server and run upgrade on-next server boot 2) nw_upgrade_full - mount the image and run upgrade immediately :return: The upgradeoption of this FirmwareNetworkShare. :rtype: str @@ -214,12 +240,12 @@ def upgradeoption(self): def upgradeoption(self, upgradeoption): """ Sets the upgradeoption of this FirmwareNetworkShare. - Customer can mount a locally downloaded image on the setup and upgrade later or do both the mount, upgrade in a single window + Option to control the upgrade, e.g., 1) nw_upgrade_mount_only - mount the image from a file server and run upgrade on-next server boot 2) nw_upgrade_full - mount the image and run upgrade immediately :param upgradeoption: The upgradeoption of this FirmwareNetworkShare. :type: str """ - allowed_values = ["nw_upgrade_full"] + allowed_values = ["nw_upgrade_full", "nw_upgrade_mount_only"] if upgradeoption not in allowed_values: raise ValueError( "Invalid value for `upgradeoption` ({0}), must be one of {1}" @@ -232,7 +258,7 @@ def upgradeoption(self, upgradeoption): def username(self): """ Gets the username of this FirmwareNetworkShare. - Based on the mount configurations, credential is required by BMC to mount the image from the network + Username as configured on the file server :return: The username of this FirmwareNetworkShare. :rtype: str @@ -243,7 +269,7 @@ def username(self): def username(self, username): """ Sets the username of this FirmwareNetworkShare. - Based on the mount configurations, credential is required by BMC to mount the image from the network + Username as configured on the file server :param username: The username of this FirmwareNetworkShare. :type: str diff --git a/intersight/models/firmware_network_share_ref.py b/intersight/models/firmware_network_share_ref.py new file mode 100644 index 00000000..a593a533 --- /dev/null +++ b/intersight/models/firmware_network_share_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareNetworkShareRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareNetworkShareRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareNetworkShareRef. + + :return: The moid of this FirmwareNetworkShareRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareNetworkShareRef. + + :param moid: The moid of this FirmwareNetworkShareRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareNetworkShareRef. + + :return: The object_type of this FirmwareNetworkShareRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareNetworkShareRef. + + :param object_type: The object_type of this FirmwareNetworkShareRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareNetworkShareRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_nfs_server.py b/intersight/models/firmware_nfs_server.py index 99a1cd27..8e744293 100644 --- a/intersight/models/firmware_nfs_server.py +++ b/intersight/models/firmware_nfs_server.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -67,7 +67,7 @@ def __init__(self, mount_options=None, remote_file=None, remote_ip=None, remote_ def mount_options(self): """ Gets the mount_options of this FirmwareNfsServer. - Mount options of this image in the nfs server + Mount option as configured on the NFS Server. Example:nolock. :return: The mount_options of this FirmwareNfsServer. :rtype: str @@ -78,7 +78,7 @@ def mount_options(self): def mount_options(self, mount_options): """ Sets the mount_options of this FirmwareNfsServer. - Mount options of this image in the nfs server + Mount option as configured on the NFS Server. Example:nolock. :param mount_options: The mount_options of this FirmwareNfsServer. :type: str @@ -90,7 +90,7 @@ def mount_options(self, mount_options): def remote_file(self): """ Gets the remote_file of this FirmwareNfsServer. - The filename of the image + Filename of the image in the remote share location. Example:ucs-c220m5-huu-3.1.2c.iso. :return: The remote_file of this FirmwareNfsServer. :rtype: str @@ -101,7 +101,7 @@ def remote_file(self): def remote_file(self, remote_file): """ Sets the remote_file of this FirmwareNfsServer. - The filename of the image + Filename of the image in the remote share location. Example:ucs-c220m5-huu-3.1.2c.iso. :param remote_file: The remote_file of this FirmwareNfsServer. :type: str @@ -113,7 +113,7 @@ def remote_file(self, remote_file): def remote_ip(self): """ Gets the remote_ip of this FirmwareNfsServer. - The IP of a host (in the network) that has the image download thta can be mounted in BMC + NFS Server Hostname or IP Address. Example:nfs-server-hostname or 10.10.8.7. :return: The remote_ip of this FirmwareNfsServer. :rtype: str @@ -124,7 +124,7 @@ def remote_ip(self): def remote_ip(self, remote_ip): """ Sets the remote_ip of this FirmwareNfsServer. - The IP of a host (in the network) that has the image download thta can be mounted in BMC + NFS Server Hostname or IP Address. Example:nfs-server-hostname or 10.10.8.7. :param remote_ip: The remote_ip of this FirmwareNfsServer. :type: str @@ -136,7 +136,7 @@ def remote_ip(self, remote_ip): def remote_share(self): """ Gets the remote_share of this FirmwareNfsServer. - The directory where the image is stored + Directory where the image is stored. Example:/share/subfolder. :return: The remote_share of this FirmwareNfsServer. :rtype: str @@ -147,7 +147,7 @@ def remote_share(self): def remote_share(self, remote_share): """ Sets the remote_share of this FirmwareNfsServer. - The directory where the image is stored + Directory where the image is stored. Example:/share/subfolder. :param remote_share: The remote_share of this FirmwareNfsServer. :type: str diff --git a/intersight/models/firmware_nfs_server_ref.py b/intersight/models/firmware_nfs_server_ref.py new file mode 100644 index 00000000..7e58a7b6 --- /dev/null +++ b/intersight/models/firmware_nfs_server_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareNfsServerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareNfsServerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareNfsServerRef. + + :return: The moid of this FirmwareNfsServerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareNfsServerRef. + + :param moid: The moid of this FirmwareNfsServerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareNfsServerRef. + + :return: The object_type of this FirmwareNfsServerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareNfsServerRef. + + :param object_type: The object_type of this FirmwareNfsServerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareNfsServerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_running_firmware.py b/intersight/models/firmware_running_firmware.py index bc3c0482..ab20463e 100644 --- a/intersight/models/firmware_running_firmware.py +++ b/intersight/models/firmware_running_firmware.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,24 +32,26 @@ class FirmwareRunningFirmware(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', - 'bios_unit': 'MoMoRef', + 'bios_unit': 'BiosUnitRef', 'component': 'str', - 'management_controller': 'MoMoRef', - 'network_elements': 'list[MoMoRef]', + 'management_controller': 'ManagementControllerRef', + 'network_elements': 'list[NetworkElementRef]', 'package_version': 'str', - 'registered_device': 'MoMoRef', - 'storage_controller': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', + 'storage_controller': 'StorageControllerRef', + 'storage_physical_disk': 'StoragePhysicalDiskRef', 'type': 'str', 'version': 'str' } @@ -64,6 +66,7 @@ class FirmwareRunningFirmware(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -74,11 +77,12 @@ class FirmwareRunningFirmware(object): 'package_version': 'PackageVersion', 'registered_device': 'RegisteredDevice', 'storage_controller': 'StorageController', + 'storage_physical_disk': 'StoragePhysicalDisk', 'type': 'Type', 'version': 'Version' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, bios_unit=None, component=None, management_controller=None, network_elements=None, package_version=None, registered_device=None, storage_controller=None, type=None, version=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, bios_unit=None, component=None, management_controller=None, network_elements=None, package_version=None, registered_device=None, storage_controller=None, storage_physical_disk=None, type=None, version=None): """ FirmwareRunningFirmware - a model defined in Swagger """ @@ -92,6 +96,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -102,6 +107,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._package_version = None self._registered_device = None self._storage_controller = None + self._storage_physical_disk = None self._type = None self._version = None @@ -123,6 +129,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -143,6 +151,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.registered_device = registered_device if storage_controller is not None: self.storage_controller = storage_controller + if storage_physical_disk is not None: + self.storage_physical_disk = storage_physical_disk if type is not None: self.type = type if version is not None: @@ -178,7 +188,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this FirmwareRunningFirmware. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -189,7 +199,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this FirmwareRunningFirmware. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -316,7 +326,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this FirmwareRunningFirmware. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -327,7 +337,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this FirmwareRunningFirmware. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -336,7 +346,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this FirmwareRunningFirmware. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this FirmwareRunningFirmware. :rtype: list[MoTag] @@ -347,7 +357,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this FirmwareRunningFirmware. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this FirmwareRunningFirmware. :type: list[MoTag] @@ -355,6 +365,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this FirmwareRunningFirmware. + The versioning info for this managed object + + :return: The version_context of this FirmwareRunningFirmware. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this FirmwareRunningFirmware. + The versioning info for this managed object + + :param version_context: The version_context of this FirmwareRunningFirmware. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -424,7 +457,7 @@ def bios_unit(self): Gets the bios_unit of this FirmwareRunningFirmware. :return: The bios_unit of this FirmwareRunningFirmware. - :rtype: MoMoRef + :rtype: BiosUnitRef """ return self._bios_unit @@ -434,7 +467,7 @@ def bios_unit(self, bios_unit): Sets the bios_unit of this FirmwareRunningFirmware. :param bios_unit: The bios_unit of this FirmwareRunningFirmware. - :type: MoMoRef + :type: BiosUnitRef """ self._bios_unit = bios_unit @@ -468,7 +501,7 @@ def management_controller(self): Gets the management_controller of this FirmwareRunningFirmware. :return: The management_controller of this FirmwareRunningFirmware. - :rtype: MoMoRef + :rtype: ManagementControllerRef """ return self._management_controller @@ -478,7 +511,7 @@ def management_controller(self, management_controller): Sets the management_controller of this FirmwareRunningFirmware. :param management_controller: The management_controller of this FirmwareRunningFirmware. - :type: MoMoRef + :type: ManagementControllerRef """ self._management_controller = management_controller @@ -489,7 +522,7 @@ def network_elements(self): Gets the network_elements of this FirmwareRunningFirmware. :return: The network_elements of this FirmwareRunningFirmware. - :rtype: list[MoMoRef] + :rtype: list[NetworkElementRef] """ return self._network_elements @@ -499,7 +532,7 @@ def network_elements(self, network_elements): Sets the network_elements of this FirmwareRunningFirmware. :param network_elements: The network_elements of this FirmwareRunningFirmware. - :type: list[MoMoRef] + :type: list[NetworkElementRef] """ self._network_elements = network_elements @@ -533,7 +566,7 @@ def registered_device(self): Gets the registered_device of this FirmwareRunningFirmware. :return: The registered_device of this FirmwareRunningFirmware. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -543,7 +576,7 @@ def registered_device(self, registered_device): Sets the registered_device of this FirmwareRunningFirmware. :param registered_device: The registered_device of this FirmwareRunningFirmware. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -554,7 +587,7 @@ def storage_controller(self): Gets the storage_controller of this FirmwareRunningFirmware. :return: The storage_controller of this FirmwareRunningFirmware. - :rtype: MoMoRef + :rtype: StorageControllerRef """ return self._storage_controller @@ -564,11 +597,32 @@ def storage_controller(self, storage_controller): Sets the storage_controller of this FirmwareRunningFirmware. :param storage_controller: The storage_controller of this FirmwareRunningFirmware. - :type: MoMoRef + :type: StorageControllerRef """ self._storage_controller = storage_controller + @property + def storage_physical_disk(self): + """ + Gets the storage_physical_disk of this FirmwareRunningFirmware. + + :return: The storage_physical_disk of this FirmwareRunningFirmware. + :rtype: StoragePhysicalDiskRef + """ + return self._storage_physical_disk + + @storage_physical_disk.setter + def storage_physical_disk(self, storage_physical_disk): + """ + Sets the storage_physical_disk of this FirmwareRunningFirmware. + + :param storage_physical_disk: The storage_physical_disk of this FirmwareRunningFirmware. + :type: StoragePhysicalDiskRef + """ + + self._storage_physical_disk = storage_physical_disk + @property def type(self): """ diff --git a/intersight/models/firmware_running_firmware_list.py b/intersight/models/firmware_running_firmware_list.py index af70d39c..484c2260 100644 --- a/intersight/models/firmware_running_firmware_list.py +++ b/intersight/models/firmware_running_firmware_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/firmware_running_firmware_ref.py b/intersight/models/firmware_running_firmware_ref.py new file mode 100644 index 00000000..5a7bb06a --- /dev/null +++ b/intersight/models/firmware_running_firmware_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareRunningFirmwareRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareRunningFirmwareRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareRunningFirmwareRef. + + :return: The moid of this FirmwareRunningFirmwareRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareRunningFirmwareRef. + + :param moid: The moid of this FirmwareRunningFirmwareRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareRunningFirmwareRef. + + :return: The object_type of this FirmwareRunningFirmwareRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareRunningFirmwareRef. + + :param object_type: The object_type of this FirmwareRunningFirmwareRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareRunningFirmwareRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_upgrade.py b/intersight/models/firmware_upgrade.py index 5df1eea2..a3044836 100644 --- a/intersight/models/firmware_upgrade.py +++ b/intersight/models/firmware_upgrade.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,21 @@ class FirmwareUpgrade(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'device': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'device': 'AssetDeviceRegistrationRef', 'direct_download': 'FirmwareDirectDownload', - 'distributable': 'MoMoRef', + 'distributable': 'FirmwareDistributableRef', 'network_share': 'FirmwareNetworkShare', - 'server': 'MoMoRef', - 'upgrade_status': 'MoMoRef', + 'server': 'ComputeRackUnitRef', + 'upgrade_status': 'FirmwareUpgradeStatusRef', 'upgrade_type': 'str' } @@ -59,6 +60,7 @@ class FirmwareUpgrade(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device': 'Device', 'direct_download': 'DirectDownload', 'distributable': 'Distributable', @@ -68,7 +70,7 @@ class FirmwareUpgrade(object): 'upgrade_type': 'UpgradeType' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device=None, direct_download=None, distributable=None, network_share=None, server=None, upgrade_status=None, upgrade_type='direct_upgrade'): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device=None, direct_download=None, distributable=None, network_share=None, server=None, upgrade_status=None, upgrade_type='direct_upgrade'): """ FirmwareUpgrade - a model defined in Swagger """ @@ -82,6 +84,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device = None self._direct_download = None self._distributable = None @@ -108,6 +111,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device is not None: self.device = device if direct_download is not None: @@ -153,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this FirmwareUpgrade. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this FirmwareUpgrade. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this FirmwareUpgrade. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this FirmwareUpgrade. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -311,7 +316,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this FirmwareUpgrade. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this FirmwareUpgrade. :rtype: list[MoTag] @@ -322,7 +327,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this FirmwareUpgrade. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this FirmwareUpgrade. :type: list[MoTag] @@ -330,13 +335,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this FirmwareUpgrade. + The versioning info for this managed object + + :return: The version_context of this FirmwareUpgrade. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this FirmwareUpgrade. + The versioning info for this managed object + + :param version_context: The version_context of this FirmwareUpgrade. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device(self): """ Gets the device of this FirmwareUpgrade. :return: The device of this FirmwareUpgrade. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._device @@ -346,7 +374,7 @@ def device(self, device): Sets the device of this FirmwareUpgrade. :param device: The device of this FirmwareUpgrade. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._device = device @@ -355,7 +383,7 @@ def device(self, device): def direct_download(self): """ Gets the direct_download of this FirmwareUpgrade. - Customer can upgrade the setup using the image directly from Cisco.com. + Direct download options in case the upgradeType is direct download based upgrade :return: The direct_download of this FirmwareUpgrade. :rtype: FirmwareDirectDownload @@ -366,7 +394,7 @@ def direct_download(self): def direct_download(self, direct_download): """ Sets the direct_download of this FirmwareUpgrade. - Customer can upgrade the setup using the image directly from Cisco.com. + Direct download options in case the upgradeType is direct download based upgrade :param direct_download: The direct_download of this FirmwareUpgrade. :type: FirmwareDirectDownload @@ -380,7 +408,7 @@ def distributable(self): Gets the distributable of this FirmwareUpgrade. :return: The distributable of this FirmwareUpgrade. - :rtype: MoMoRef + :rtype: FirmwareDistributableRef """ return self._distributable @@ -390,7 +418,7 @@ def distributable(self, distributable): Sets the distributable of this FirmwareUpgrade. :param distributable: The distributable of this FirmwareUpgrade. - :type: MoMoRef + :type: FirmwareDistributableRef """ self._distributable = distributable @@ -399,7 +427,7 @@ def distributable(self, distributable): def network_share(self): """ Gets the network_share of this FirmwareUpgrade. - Customer can upgrade the setup using the already downloaded image in customer's network. + Network share options in case of the upgradeType is network share based upgrade :return: The network_share of this FirmwareUpgrade. :rtype: FirmwareNetworkShare @@ -410,7 +438,7 @@ def network_share(self): def network_share(self, network_share): """ Sets the network_share of this FirmwareUpgrade. - Customer can upgrade the setup using the already downloaded image in customer's network. + Network share options in case of the upgradeType is network share based upgrade :param network_share: The network_share of this FirmwareUpgrade. :type: FirmwareNetworkShare @@ -424,7 +452,7 @@ def server(self): Gets the server of this FirmwareUpgrade. :return: The server of this FirmwareUpgrade. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._server @@ -434,7 +462,7 @@ def server(self, server): Sets the server of this FirmwareUpgrade. :param server: The server of this FirmwareUpgrade. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._server = server @@ -445,7 +473,7 @@ def upgrade_status(self): Gets the upgrade_status of this FirmwareUpgrade. :return: The upgrade_status of this FirmwareUpgrade. - :rtype: MoMoRef + :rtype: FirmwareUpgradeStatusRef """ return self._upgrade_status @@ -455,7 +483,7 @@ def upgrade_status(self, upgrade_status): Sets the upgrade_status of this FirmwareUpgrade. :param upgrade_status: The upgrade_status of this FirmwareUpgrade. - :type: MoMoRef + :type: FirmwareUpgradeStatusRef """ self._upgrade_status = upgrade_status @@ -464,7 +492,7 @@ def upgrade_status(self, upgrade_status): def upgrade_type(self): """ Gets the upgrade_type of this FirmwareUpgrade. - User can upgrade a server in two ways. Either can have the image locally in customer network itself and upgrade. Or can upgrade against the image directly from cisco.com. + Desired upgrade mode to choose either direct download based upgrade or network share upgrade :return: The upgrade_type of this FirmwareUpgrade. :rtype: str @@ -475,7 +503,7 @@ def upgrade_type(self): def upgrade_type(self, upgrade_type): """ Sets the upgrade_type of this FirmwareUpgrade. - User can upgrade a server in two ways. Either can have the image locally in customer network itself and upgrade. Or can upgrade against the image directly from cisco.com. + Desired upgrade mode to choose either direct download based upgrade or network share upgrade :param upgrade_type: The upgrade_type of this FirmwareUpgrade. :type: str diff --git a/intersight/models/firmware_upgrade_list.py b/intersight/models/firmware_upgrade_list.py index 4b048f95..0251d80f 100644 --- a/intersight/models/firmware_upgrade_list.py +++ b/intersight/models/firmware_upgrade_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/firmware_upgrade_ref.py b/intersight/models/firmware_upgrade_ref.py new file mode 100644 index 00000000..3c3d5faa --- /dev/null +++ b/intersight/models/firmware_upgrade_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareUpgradeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareUpgradeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareUpgradeRef. + + :return: The moid of this FirmwareUpgradeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareUpgradeRef. + + :param moid: The moid of this FirmwareUpgradeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareUpgradeRef. + + :return: The object_type of this FirmwareUpgradeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareUpgradeRef. + + :param object_type: The object_type of this FirmwareUpgradeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareUpgradeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmware_upgrade_status.py b/intersight/models/firmware_upgrade_status.py index ee73e19b..131f7e39 100644 --- a/intersight/models/firmware_upgrade_status.py +++ b/intersight/models/firmware_upgrade_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,22 +32,25 @@ class FirmwareUpgradeStatus(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'download_error': 'str', 'download_percentage': 'int', 'download_stage': 'str', 'download_status': 'str', + 'ep_power_status': 'str', 'overall_error': 'str', 'overall_percentage': 'int', 'overallstatus': 'str', - 'upgrade': 'MoMoRef' + 'pending_type': 'str', + 'upgrade': 'FirmwareUpgradeRef' } attribute_map = { @@ -60,17 +63,20 @@ class FirmwareUpgradeStatus(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'download_error': 'DownloadError', 'download_percentage': 'DownloadPercentage', 'download_stage': 'DownloadStage', 'download_status': 'DownloadStatus', + 'ep_power_status': 'EpPowerStatus', 'overall_error': 'OverallError', 'overall_percentage': 'OverallPercentage', 'overallstatus': 'Overallstatus', + 'pending_type': 'PendingType', 'upgrade': 'Upgrade' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, download_error=None, download_percentage=None, download_stage=None, download_status=None, overall_error=None, overall_percentage=None, overallstatus=None, upgrade=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, download_error=None, download_percentage=None, download_stage=None, download_status=None, ep_power_status='none', overall_error=None, overall_percentage=None, overallstatus='none', pending_type='none', upgrade=None): """ FirmwareUpgradeStatus - a model defined in Swagger """ @@ -84,13 +90,16 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._download_error = None self._download_percentage = None self._download_stage = None self._download_status = None + self._ep_power_status = None self._overall_error = None self._overall_percentage = None self._overallstatus = None + self._pending_type = None self._upgrade = None if account_moid is not None: @@ -111,6 +120,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if download_error is not None: self.download_error = download_error if download_percentage is not None: @@ -119,12 +130,16 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.download_stage = download_stage if download_status is not None: self.download_status = download_status + if ep_power_status is not None: + self.ep_power_status = ep_power_status if overall_error is not None: self.overall_error = overall_error if overall_percentage is not None: self.overall_percentage = overall_percentage if overallstatus is not None: self.overallstatus = overallstatus + if pending_type is not None: + self.pending_type = pending_type if upgrade is not None: self.upgrade = upgrade @@ -158,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this FirmwareUpgradeStatus. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this FirmwareUpgradeStatus. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this FirmwareUpgradeStatus. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this FirmwareUpgradeStatus. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -316,7 +331,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this FirmwareUpgradeStatus. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this FirmwareUpgradeStatus. :rtype: list[MoTag] @@ -327,7 +342,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this FirmwareUpgradeStatus. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this FirmwareUpgradeStatus. :type: list[MoTag] @@ -335,11 +350,34 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this FirmwareUpgradeStatus. + The versioning info for this managed object + + :return: The version_context of this FirmwareUpgradeStatus. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this FirmwareUpgradeStatus. + The versioning info for this managed object + + :param version_context: The version_context of this FirmwareUpgradeStatus. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def download_error(self): """ Gets the download_error of this FirmwareUpgradeStatus. - Download error describes about the nature of the failure that helps in fixing it further + Provides the download failure message :return: The download_error of this FirmwareUpgradeStatus. :rtype: str @@ -350,7 +388,7 @@ def download_error(self): def download_error(self, download_error): """ Sets the download_error of this FirmwareUpgradeStatus. - Download error describes about the nature of the failure that helps in fixing it further + Provides the download failure message :param download_error: The download_error of this FirmwareUpgradeStatus. :type: str @@ -362,7 +400,7 @@ def download_error(self, download_error): def download_percentage(self): """ Gets the download_percentage of this FirmwareUpgradeStatus. - The percentage of image has been downloaded from cisco.com to BMC + Provides the image downloaded percentage from image source :return: The download_percentage of this FirmwareUpgradeStatus. :rtype: int @@ -373,7 +411,7 @@ def download_percentage(self): def download_percentage(self, download_percentage): """ Sets the download_percentage of this FirmwareUpgradeStatus. - The percentage of image has been downloaded from cisco.com to BMC + Provides the image downloaded percentage from image source :param download_percentage: The download_percentage of this FirmwareUpgradeStatus. :type: int @@ -385,7 +423,7 @@ def download_percentage(self, download_percentage): def download_stage(self): """ Gets the download_stage of this FirmwareUpgradeStatus. - A download can have various stages like BEGIN, DOWNLOADING, FLASHING, etc., + Provides the latest download phase like downloading, flashing, downloaded :return: The download_stage of this FirmwareUpgradeStatus. :rtype: str @@ -396,7 +434,7 @@ def download_stage(self): def download_stage(self, download_stage): """ Sets the download_stage of this FirmwareUpgradeStatus. - A download can have various stages like BEGIN, DOWNLOADING, FLASHING, etc., + Provides the latest download phase like downloading, flashing, downloaded :param download_stage: The download_stage of this FirmwareUpgradeStatus. :type: str @@ -408,7 +446,7 @@ def download_stage(self, download_stage): def download_status(self): """ Gets the download_status of this FirmwareUpgradeStatus. - The status of the download like COMPLETED, FAILED or ERRORED. + Provides the download status like downloading, downloaded or failed :return: The download_status of this FirmwareUpgradeStatus. :rtype: str @@ -419,7 +457,7 @@ def download_status(self): def download_status(self, download_status): """ Sets the download_status of this FirmwareUpgradeStatus. - The status of the download like COMPLETED, FAILED or ERRORED. + Provides the download status like downloading, downloaded or failed :param download_status: The download_status of this FirmwareUpgradeStatus. :type: str @@ -427,11 +465,40 @@ def download_status(self, download_status): self._download_status = download_status + @property + def ep_power_status(self): + """ + Gets the ep_power_status of this FirmwareUpgradeStatus. + Provides the server power status at the end of upgrade + + :return: The ep_power_status of this FirmwareUpgradeStatus. + :rtype: str + """ + return self._ep_power_status + + @ep_power_status.setter + def ep_power_status(self, ep_power_status): + """ + Sets the ep_power_status of this FirmwareUpgradeStatus. + Provides the server power status at the end of upgrade + + :param ep_power_status: The ep_power_status of this FirmwareUpgradeStatus. + :type: str + """ + allowed_values = ["none", "powered on", "powered off"] + if ep_power_status not in allowed_values: + raise ValueError( + "Invalid value for `ep_power_status` ({0}), must be one of {1}" + .format(ep_power_status, allowed_values) + ) + + self._ep_power_status = ep_power_status + @property def overall_error(self): """ Gets the overall_error of this FirmwareUpgradeStatus. - Upgrade failure messages holds not only the download error but also the workflow recommended fix. + Provides the failure message when download or upgrade fails :return: The overall_error of this FirmwareUpgradeStatus. :rtype: str @@ -442,7 +509,7 @@ def overall_error(self): def overall_error(self, overall_error): """ Sets the overall_error of this FirmwareUpgradeStatus. - Upgrade failure messages holds not only the download error but also the workflow recommended fix. + Provides the failure message when download or upgrade fails :param overall_error: The overall_error of this FirmwareUpgradeStatus. :type: str @@ -454,7 +521,7 @@ def overall_error(self, overall_error): def overall_percentage(self): """ Gets the overall_percentage of this FirmwareUpgradeStatus. - This gives the overall percentage of the upgrade that is passed + Provides the overall percentage of the upgrade inclusive of download :return: The overall_percentage of this FirmwareUpgradeStatus. :rtype: int @@ -465,7 +532,7 @@ def overall_percentage(self): def overall_percentage(self, overall_percentage): """ Sets the overall_percentage of this FirmwareUpgradeStatus. - This gives the overall percentage of the upgrade that is passed + Provides the overall percentage of the upgrade inclusive of download :param overall_percentage: The overall_percentage of this FirmwareUpgradeStatus. :type: int @@ -477,7 +544,7 @@ def overall_percentage(self, overall_percentage): def overallstatus(self): """ Gets the overallstatus of this FirmwareUpgradeStatus. - An upgrade workflow typically will pass through the stages like download of image, flashing, updating, activating and reboot. This actually will hold the last value of stages + Provides the overall status, e.g., downloading, upgrading, successful, failure and pending-for-reboot :return: The overallstatus of this FirmwareUpgradeStatus. :rtype: str @@ -488,21 +555,56 @@ def overallstatus(self): def overallstatus(self, overallstatus): """ Sets the overallstatus of this FirmwareUpgradeStatus. - An upgrade workflow typically will pass through the stages like download of image, flashing, updating, activating and reboot. This actually will hold the last value of stages + Provides the overall status, e.g., downloading, upgrading, successful, failure and pending-for-reboot :param overallstatus: The overallstatus of this FirmwareUpgradeStatus. :type: str """ + allowed_values = ["none", "started", "download initiating", "download initiated", "downloading", "downloaded", "upgrade initiating", "upgrade initiated", "upgrading", "upgraded", "success", "failed", "pending"] + if overallstatus not in allowed_values: + raise ValueError( + "Invalid value for `overallstatus` ({0}), must be one of {1}" + .format(overallstatus, allowed_values) + ) self._overallstatus = overallstatus + @property + def pending_type(self): + """ + Gets the pending_type of this FirmwareUpgradeStatus. + Provides the current pending upgrade status for the on-next boot based upgrades + + :return: The pending_type of this FirmwareUpgradeStatus. + :rtype: str + """ + return self._pending_type + + @pending_type.setter + def pending_type(self, pending_type): + """ + Sets the pending_type of this FirmwareUpgradeStatus. + Provides the current pending upgrade status for the on-next boot based upgrades + + :param pending_type: The pending_type of this FirmwareUpgradeStatus. + :type: str + """ + allowed_values = ["none", "pending for next reboot"] + if pending_type not in allowed_values: + raise ValueError( + "Invalid value for `pending_type` ({0}), must be one of {1}" + .format(pending_type, allowed_values) + ) + + self._pending_type = pending_type + @property def upgrade(self): """ Gets the upgrade of this FirmwareUpgradeStatus. :return: The upgrade of this FirmwareUpgradeStatus. - :rtype: MoMoRef + :rtype: FirmwareUpgradeRef """ return self._upgrade @@ -512,7 +614,7 @@ def upgrade(self, upgrade): Sets the upgrade of this FirmwareUpgradeStatus. :param upgrade: The upgrade of this FirmwareUpgradeStatus. - :type: MoMoRef + :type: FirmwareUpgradeRef """ self._upgrade = upgrade diff --git a/intersight/models/firmware_upgrade_status_list.py b/intersight/models/firmware_upgrade_status_list.py index cd83e5b8..ae8fb376 100644 --- a/intersight/models/firmware_upgrade_status_list.py +++ b/intersight/models/firmware_upgrade_status_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/firmware_upgrade_status_ref.py b/intersight/models/firmware_upgrade_status_ref.py new file mode 100644 index 00000000..0c31e96b --- /dev/null +++ b/intersight/models/firmware_upgrade_status_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareUpgradeStatusRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareUpgradeStatusRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareUpgradeStatusRef. + + :return: The moid of this FirmwareUpgradeStatusRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareUpgradeStatusRef. + + :param moid: The moid of this FirmwareUpgradeStatusRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareUpgradeStatusRef. + + :return: The object_type of this FirmwareUpgradeStatusRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareUpgradeStatusRef. + + :param object_type: The object_type of this FirmwareUpgradeStatusRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareUpgradeStatusRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_nvme.py b/intersight/models/firmwareimc_cancel_pending_firmware_upgrade_ref.py similarity index 57% rename from intersight/models/boot_nvme.py rename to intersight/models/firmwareimc_cancel_pending_firmware_upgrade_ref.py index a17b7506..0cdea78c 100644 --- a/intersight/models/boot_nvme.py +++ b/intersight/models/firmwareimc_cancel_pending_firmware_upgrade_ref.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class BootNvme(object): +class FirmwareimcCancelPendingFirmwareUpgradeRef(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,73 +31,69 @@ class BootNvme(object): and the value is json key in definition. """ swagger_types = { - 'enabled': 'bool', - 'name': 'str' + 'moid': 'str', + 'object_type': 'str' } attribute_map = { - 'enabled': 'Enabled', - 'name': 'Name' + 'moid': 'Moid', + 'object_type': 'ObjectType' } - def __init__(self, enabled=None, name=None): + def __init__(self, moid=None, object_type=None): """ - BootNvme - a model defined in Swagger + FirmwareimcCancelPendingFirmwareUpgradeRef - a model defined in Swagger """ - self._enabled = None - self._name = None + self._moid = None + self._object_type = None - if enabled is not None: - self.enabled = enabled - if name is not None: - self.name = name + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type @property - def enabled(self): + def moid(self): """ - Gets the enabled of this BootNvme. - Specifies if the boot device is enabled or disabled. + Gets the moid of this FirmwareimcCancelPendingFirmwareUpgradeRef. - :return: The enabled of this BootNvme. - :rtype: bool + :return: The moid of this FirmwareimcCancelPendingFirmwareUpgradeRef. + :rtype: str """ - return self._enabled + return self._moid - @enabled.setter - def enabled(self, enabled): + @moid.setter + def moid(self, moid): """ - Sets the enabled of this BootNvme. - Specifies if the boot device is enabled or disabled. + Sets the moid of this FirmwareimcCancelPendingFirmwareUpgradeRef. - :param enabled: The enabled of this BootNvme. - :type: bool + :param moid: The moid of this FirmwareimcCancelPendingFirmwareUpgradeRef. + :type: str """ - self._enabled = enabled + self._moid = moid @property - def name(self): + def object_type(self): """ - Gets the name of this BootNvme. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. + Gets the object_type of this FirmwareimcCancelPendingFirmwareUpgradeRef. - :return: The name of this BootNvme. + :return: The object_type of this FirmwareimcCancelPendingFirmwareUpgradeRef. :rtype: str """ - return self._name + return self._object_type - @name.setter - def name(self, name): + @object_type.setter + def object_type(self, object_type): """ - Sets the name of this BootNvme. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. + Sets the object_type of this FirmwareimcCancelPendingFirmwareUpgradeRef. - :param name: The name of this BootNvme. + :param object_type: The object_type of this FirmwareimcCancelPendingFirmwareUpgradeRef. :type: str """ - self._name = name + self._object_type = object_type def to_dict(self): """ @@ -141,7 +137,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, BootNvme): + if not isinstance(other, FirmwareimcCancelPendingFirmwareUpgradeRef): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/firmwareimc_check_for_existing_upgrade_ref.py b/intersight/models/firmwareimc_check_for_existing_upgrade_ref.py new file mode 100644 index 00000000..da67943f --- /dev/null +++ b/intersight/models/firmwareimc_check_for_existing_upgrade_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareimcCheckForExistingUpgradeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareimcCheckForExistingUpgradeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareimcCheckForExistingUpgradeRef. + + :return: The moid of this FirmwareimcCheckForExistingUpgradeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareimcCheckForExistingUpgradeRef. + + :param moid: The moid of this FirmwareimcCheckForExistingUpgradeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareimcCheckForExistingUpgradeRef. + + :return: The object_type of this FirmwareimcCheckForExistingUpgradeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareimcCheckForExistingUpgradeRef. + + :param object_type: The object_type of this FirmwareimcCheckForExistingUpgradeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareimcCheckForExistingUpgradeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmwareimc_firmware_upgrade_result_handler_ref.py b/intersight/models/firmwareimc_firmware_upgrade_result_handler_ref.py new file mode 100644 index 00000000..f237b34b --- /dev/null +++ b/intersight/models/firmwareimc_firmware_upgrade_result_handler_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareimcFirmwareUpgradeResultHandlerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareimcFirmwareUpgradeResultHandlerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareimcFirmwareUpgradeResultHandlerRef. + + :return: The moid of this FirmwareimcFirmwareUpgradeResultHandlerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareimcFirmwareUpgradeResultHandlerRef. + + :param moid: The moid of this FirmwareimcFirmwareUpgradeResultHandlerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareimcFirmwareUpgradeResultHandlerRef. + + :return: The object_type of this FirmwareimcFirmwareUpgradeResultHandlerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareimcFirmwareUpgradeResultHandlerRef. + + :param object_type: The object_type of this FirmwareimcFirmwareUpgradeResultHandlerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareimcFirmwareUpgradeResultHandlerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmwareimc_huu_firmware_upgrade_ref.py b/intersight/models/firmwareimc_huu_firmware_upgrade_ref.py new file mode 100644 index 00000000..fe9005b5 --- /dev/null +++ b/intersight/models/firmwareimc_huu_firmware_upgrade_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareimcHuuFirmwareUpgradeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareimcHuuFirmwareUpgradeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareimcHuuFirmwareUpgradeRef. + + :return: The moid of this FirmwareimcHuuFirmwareUpgradeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareimcHuuFirmwareUpgradeRef. + + :param moid: The moid of this FirmwareimcHuuFirmwareUpgradeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareimcHuuFirmwareUpgradeRef. + + :return: The object_type of this FirmwareimcHuuFirmwareUpgradeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareimcHuuFirmwareUpgradeRef. + + :param object_type: The object_type of this FirmwareimcHuuFirmwareUpgradeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareimcHuuFirmwareUpgradeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmwareimc_initiate_download_ref.py b/intersight/models/firmwareimc_initiate_download_ref.py new file mode 100644 index 00000000..ef53d1b6 --- /dev/null +++ b/intersight/models/firmwareimc_initiate_download_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareimcInitiateDownloadRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareimcInitiateDownloadRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareimcInitiateDownloadRef. + + :return: The moid of this FirmwareimcInitiateDownloadRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareimcInitiateDownloadRef. + + :param moid: The moid of this FirmwareimcInitiateDownloadRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareimcInitiateDownloadRef. + + :return: The object_type of this FirmwareimcInitiateDownloadRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareimcInitiateDownloadRef. + + :param object_type: The object_type of this FirmwareimcInitiateDownloadRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareimcInitiateDownloadRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmwareimc_wait_for_download_ref.py b/intersight/models/firmwareimc_wait_for_download_ref.py new file mode 100644 index 00000000..79725c25 --- /dev/null +++ b/intersight/models/firmwareimc_wait_for_download_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareimcWaitForDownloadRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareimcWaitForDownloadRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareimcWaitForDownloadRef. + + :return: The moid of this FirmwareimcWaitForDownloadRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareimcWaitForDownloadRef. + + :param moid: The moid of this FirmwareimcWaitForDownloadRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareimcWaitForDownloadRef. + + :return: The object_type of this FirmwareimcWaitForDownloadRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareimcWaitForDownloadRef. + + :param object_type: The object_type of this FirmwareimcWaitForDownloadRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareimcWaitForDownloadRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/firmwareimc_wait_for_firmware_upgrade_ref.py b/intersight/models/firmwareimc_wait_for_firmware_upgrade_ref.py new file mode 100644 index 00000000..b9cc0946 --- /dev/null +++ b/intersight/models/firmwareimc_wait_for_firmware_upgrade_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class FirmwareimcWaitForFirmwareUpgradeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + FirmwareimcWaitForFirmwareUpgradeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this FirmwareimcWaitForFirmwareUpgradeRef. + + :return: The moid of this FirmwareimcWaitForFirmwareUpgradeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this FirmwareimcWaitForFirmwareUpgradeRef. + + :param moid: The moid of this FirmwareimcWaitForFirmwareUpgradeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this FirmwareimcWaitForFirmwareUpgradeRef. + + :return: The object_type of this FirmwareimcWaitForFirmwareUpgradeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this FirmwareimcWaitForFirmwareUpgradeRef. + + :param object_type: The object_type of this FirmwareimcWaitForFirmwareUpgradeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, FirmwareimcWaitForFirmwareUpgradeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/graphics_card.py b/intersight/models/graphics_card.py index c31195e3..040b2437 100644 --- a/intersight/models/graphics_card.py +++ b/intersight/models/graphics_card.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class GraphicsCard(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -48,17 +49,17 @@ class GraphicsCard(object): 'serial': 'str', 'vendor': 'str', 'card_id': 'int', - 'compute_board': 'MoMoRef', + 'compute_board': 'ComputeBoardRef', 'device_id': 'int', 'expander_slot': 'str', 'firmware_version': 'str', - 'graphics_controllers': 'list[MoMoRef]', + 'graphics_controllers': 'list[GraphicsControllerRef]', 'mode': 'str', 'oper_state': 'str', 'pci_addr': 'str', 'pci_addr_list': 'str', 'pci_slot': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -71,6 +72,7 @@ class GraphicsCard(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -92,7 +94,7 @@ class GraphicsCard(object): 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, card_id=None, compute_board=None, device_id=None, expander_slot=None, firmware_version=None, graphics_controllers=None, mode=None, oper_state=None, pci_addr=None, pci_addr_list=None, pci_slot=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, card_id=None, compute_board=None, device_id=None, expander_slot=None, firmware_version=None, graphics_controllers=None, mode=None, oper_state=None, pci_addr=None, pci_addr_list=None, pci_slot=None, registered_device=None): """ GraphicsCard - a model defined in Swagger """ @@ -106,6 +108,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -144,6 +147,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -213,7 +218,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this GraphicsCard. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -224,7 +229,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this GraphicsCard. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -351,7 +356,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this GraphicsCard. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -362,7 +367,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this GraphicsCard. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -371,7 +376,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this GraphicsCard. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this GraphicsCard. :rtype: list[MoTag] @@ -382,7 +387,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this GraphicsCard. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this GraphicsCard. :type: list[MoTag] @@ -390,6 +395,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this GraphicsCard. + The versioning info for this managed object + + :return: The version_context of this GraphicsCard. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this GraphicsCard. + The versioning info for this managed object + + :param version_context: The version_context of this GraphicsCard. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -564,7 +592,7 @@ def compute_board(self): Gets the compute_board of this GraphicsCard. :return: The compute_board of this GraphicsCard. - :rtype: MoMoRef + :rtype: ComputeBoardRef """ return self._compute_board @@ -574,7 +602,7 @@ def compute_board(self, compute_board): Sets the compute_board of this GraphicsCard. :param compute_board: The compute_board of this GraphicsCard. - :type: MoMoRef + :type: ComputeBoardRef """ self._compute_board = compute_board @@ -648,7 +676,7 @@ def graphics_controllers(self): Gets the graphics_controllers of this GraphicsCard. :return: The graphics_controllers of this GraphicsCard. - :rtype: list[MoMoRef] + :rtype: list[GraphicsControllerRef] """ return self._graphics_controllers @@ -658,7 +686,7 @@ def graphics_controllers(self, graphics_controllers): Sets the graphics_controllers of this GraphicsCard. :param graphics_controllers: The graphics_controllers of this GraphicsCard. - :type: list[MoMoRef] + :type: list[GraphicsControllerRef] """ self._graphics_controllers = graphics_controllers @@ -774,7 +802,7 @@ def registered_device(self): Gets the registered_device of this GraphicsCard. :return: The registered_device of this GraphicsCard. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -784,7 +812,7 @@ def registered_device(self, registered_device): Sets the registered_device of this GraphicsCard. :param registered_device: The registered_device of this GraphicsCard. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/graphics_card_list.py b/intersight/models/graphics_card_list.py index f6cb2922..69be5208 100644 --- a/intersight/models/graphics_card_list.py +++ b/intersight/models/graphics_card_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/graphics_card_ref.py b/intersight/models/graphics_card_ref.py new file mode 100644 index 00000000..15542505 --- /dev/null +++ b/intersight/models/graphics_card_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class GraphicsCardRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + GraphicsCardRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this GraphicsCardRef. + + :return: The moid of this GraphicsCardRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this GraphicsCardRef. + + :param moid: The moid of this GraphicsCardRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this GraphicsCardRef. + + :return: The object_type of this GraphicsCardRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this GraphicsCardRef. + + :param object_type: The object_type of this GraphicsCardRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, GraphicsCardRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/graphics_controller.py b/intersight/models/graphics_controller.py index 5fa89371..bd46ef2f 100644 --- a/intersight/models/graphics_controller.py +++ b/intersight/models/graphics_controller.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class GraphicsController(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -48,10 +49,10 @@ class GraphicsController(object): 'serial': 'str', 'vendor': 'str', 'controller_id': 'int', - 'graphics_card': 'MoMoRef', + 'graphics_card': 'GraphicsCardRef', 'pci_addr': 'str', 'pci_slot': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -64,6 +65,7 @@ class GraphicsController(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -78,7 +80,7 @@ class GraphicsController(object): 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, controller_id=None, graphics_card=None, pci_addr=None, pci_slot=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, controller_id=None, graphics_card=None, pci_addr=None, pci_slot=None, registered_device=None): """ GraphicsController - a model defined in Swagger """ @@ -92,6 +94,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -123,6 +126,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -178,7 +183,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this GraphicsController. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -189,7 +194,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this GraphicsController. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -316,7 +321,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this GraphicsController. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -327,7 +332,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this GraphicsController. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -336,7 +341,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this GraphicsController. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this GraphicsController. :rtype: list[MoTag] @@ -347,7 +352,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this GraphicsController. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this GraphicsController. :type: list[MoTag] @@ -355,6 +360,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this GraphicsController. + The versioning info for this managed object + + :return: The version_context of this GraphicsController. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this GraphicsController. + The versioning info for this managed object + + :param version_context: The version_context of this GraphicsController. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -529,7 +557,7 @@ def graphics_card(self): Gets the graphics_card of this GraphicsController. :return: The graphics_card of this GraphicsController. - :rtype: MoMoRef + :rtype: GraphicsCardRef """ return self._graphics_card @@ -539,7 +567,7 @@ def graphics_card(self, graphics_card): Sets the graphics_card of this GraphicsController. :param graphics_card: The graphics_card of this GraphicsController. - :type: MoMoRef + :type: GraphicsCardRef """ self._graphics_card = graphics_card @@ -592,7 +620,7 @@ def registered_device(self): Gets the registered_device of this GraphicsController. :return: The registered_device of this GraphicsController. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -602,7 +630,7 @@ def registered_device(self, registered_device): Sets the registered_device of this GraphicsController. :param registered_device: The registered_device of this GraphicsController. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/graphics_controller_list.py b/intersight/models/graphics_controller_list.py index 07ad6380..0456fd9c 100644 --- a/intersight/models/graphics_controller_list.py +++ b/intersight/models/graphics_controller_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/graphics_controller_ref.py b/intersight/models/graphics_controller_ref.py new file mode 100644 index 00000000..8f5453c5 --- /dev/null +++ b/intersight/models/graphics_controller_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class GraphicsControllerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + GraphicsControllerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this GraphicsControllerRef. + + :return: The moid of this GraphicsControllerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this GraphicsControllerRef. + + :param moid: The moid of this GraphicsControllerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this GraphicsControllerRef. + + :return: The object_type of this GraphicsControllerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this GraphicsControllerRef. + + :param object_type: The object_type of this GraphicsControllerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, GraphicsControllerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_compatibility_info.py b/intersight/models/hcl_compatibility_info.py deleted file mode 100644 index a86873e4..00000000 --- a/intersight/models/hcl_compatibility_info.py +++ /dev/null @@ -1,767 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class HclCompatibilityInfo(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', - 'create_time': 'datetime', - 'mod_time': 'datetime', - 'moid': 'str', - 'object_type': 'str', - 'owners': 'list[str]', - 'parent': 'MoMoRef', - 'tags': 'list[MoTag]', - 'adapter_bios': 'str', - 'driver_protocol': 'str', - 'driver_vendor': 'str', - 'driver_version': 'str', - 'firmware': 'str', - 'notes': 'list[MoMoRef]', - 'os_vendor': 'str', - 'os_version': 'str', - 'processor_name': 'str', - 'product_id': 'str', - 'product_model': 'str', - 'server_model': 'str', - 'server_pid': 'str', - 'ucs_version': 'str', - 'version_type': 'str' - } - - attribute_map = { - 'account_moid': 'AccountMoid', - 'ancestors': 'Ancestors', - 'create_time': 'CreateTime', - 'mod_time': 'ModTime', - 'moid': 'Moid', - 'object_type': 'ObjectType', - 'owners': 'Owners', - 'parent': 'Parent', - 'tags': 'Tags', - 'adapter_bios': 'AdapterBios', - 'driver_protocol': 'DriverProtocol', - 'driver_vendor': 'DriverVendor', - 'driver_version': 'DriverVersion', - 'firmware': 'Firmware', - 'notes': 'Notes', - 'os_vendor': 'OsVendor', - 'os_version': 'OsVersion', - 'processor_name': 'ProcessorName', - 'product_id': 'ProductId', - 'product_model': 'ProductModel', - 'server_model': 'ServerModel', - 'server_pid': 'ServerPid', - 'ucs_version': 'UcsVersion', - 'version_type': 'VersionType' - } - - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, adapter_bios=None, driver_protocol=None, driver_vendor=None, driver_version=None, firmware=None, notes=None, os_vendor=None, os_version=None, processor_name=None, product_id=None, product_model=None, server_model=None, server_pid=None, ucs_version=None, version_type=None): - """ - HclCompatibilityInfo - a model defined in Swagger - """ - - self._account_moid = None - self._ancestors = None - self._create_time = None - self._mod_time = None - self._moid = None - self._object_type = None - self._owners = None - self._parent = None - self._tags = None - self._adapter_bios = None - self._driver_protocol = None - self._driver_vendor = None - self._driver_version = None - self._firmware = None - self._notes = None - self._os_vendor = None - self._os_version = None - self._processor_name = None - self._product_id = None - self._product_model = None - self._server_model = None - self._server_pid = None - self._ucs_version = None - self._version_type = None - - if account_moid is not None: - self.account_moid = account_moid - if ancestors is not None: - self.ancestors = ancestors - if create_time is not None: - self.create_time = create_time - if mod_time is not None: - self.mod_time = mod_time - if moid is not None: - self.moid = moid - if object_type is not None: - self.object_type = object_type - if owners is not None: - self.owners = owners - if parent is not None: - self.parent = parent - if tags is not None: - self.tags = tags - if adapter_bios is not None: - self.adapter_bios = adapter_bios - if driver_protocol is not None: - self.driver_protocol = driver_protocol - if driver_vendor is not None: - self.driver_vendor = driver_vendor - if driver_version is not None: - self.driver_version = driver_version - if firmware is not None: - self.firmware = firmware - if notes is not None: - self.notes = notes - if os_vendor is not None: - self.os_vendor = os_vendor - if os_version is not None: - self.os_version = os_version - if processor_name is not None: - self.processor_name = processor_name - if product_id is not None: - self.product_id = product_id - if product_model is not None: - self.product_model = product_model - if server_model is not None: - self.server_model = server_model - if server_pid is not None: - self.server_pid = server_pid - if ucs_version is not None: - self.ucs_version = ucs_version - if version_type is not None: - self.version_type = version_type - - @property - def account_moid(self): - """ - Gets the account_moid of this HclCompatibilityInfo. - The Account ID for this managed object. - - :return: The account_moid of this HclCompatibilityInfo. - :rtype: str - """ - return self._account_moid - - @account_moid.setter - def account_moid(self, account_moid): - """ - Sets the account_moid of this HclCompatibilityInfo. - The Account ID for this managed object. - - :param account_moid: The account_moid of this HclCompatibilityInfo. - :type: str - """ - - self._account_moid = account_moid - - @property - def ancestors(self): - """ - Gets the ancestors of this HclCompatibilityInfo. - Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - - :return: The ancestors of this HclCompatibilityInfo. - :rtype: list[MoMoRef] - """ - return self._ancestors - - @ancestors.setter - def ancestors(self, ancestors): - """ - Sets the ancestors of this HclCompatibilityInfo. - Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - - :param ancestors: The ancestors of this HclCompatibilityInfo. - :type: list[MoMoRef] - """ - - self._ancestors = ancestors - - @property - def create_time(self): - """ - Gets the create_time of this HclCompatibilityInfo. - The time when this managed object was created. - - :return: The create_time of this HclCompatibilityInfo. - :rtype: datetime - """ - return self._create_time - - @create_time.setter - def create_time(self, create_time): - """ - Sets the create_time of this HclCompatibilityInfo. - The time when this managed object was created. - - :param create_time: The create_time of this HclCompatibilityInfo. - :type: datetime - """ - - self._create_time = create_time - - @property - def mod_time(self): - """ - Gets the mod_time of this HclCompatibilityInfo. - The time when this managed object was last modified. - - :return: The mod_time of this HclCompatibilityInfo. - :rtype: datetime - """ - return self._mod_time - - @mod_time.setter - def mod_time(self, mod_time): - """ - Sets the mod_time of this HclCompatibilityInfo. - The time when this managed object was last modified. - - :param mod_time: The mod_time of this HclCompatibilityInfo. - :type: datetime - """ - - self._mod_time = mod_time - - @property - def moid(self): - """ - Gets the moid of this HclCompatibilityInfo. - A unique identifier of this Managed Object instance. - - :return: The moid of this HclCompatibilityInfo. - :rtype: str - """ - return self._moid - - @moid.setter - def moid(self, moid): - """ - Sets the moid of this HclCompatibilityInfo. - A unique identifier of this Managed Object instance. - - :param moid: The moid of this HclCompatibilityInfo. - :type: str - """ - - self._moid = moid - - @property - def object_type(self): - """ - Gets the object_type of this HclCompatibilityInfo. - The fully-qualified type of this managed object, e.g. the class name. - - :return: The object_type of this HclCompatibilityInfo. - :rtype: str - """ - return self._object_type - - @object_type.setter - def object_type(self, object_type): - """ - Sets the object_type of this HclCompatibilityInfo. - The fully-qualified type of this managed object, e.g. the class name. - - :param object_type: The object_type of this HclCompatibilityInfo. - :type: str - """ - - self._object_type = object_type - - @property - def owners(self): - """ - Gets the owners of this HclCompatibilityInfo. - An array of owners which represent effective ownership of this object. - - :return: The owners of this HclCompatibilityInfo. - :rtype: list[str] - """ - return self._owners - - @owners.setter - def owners(self, owners): - """ - Sets the owners of this HclCompatibilityInfo. - An array of owners which represent effective ownership of this object. - - :param owners: The owners of this HclCompatibilityInfo. - :type: list[str] - """ - - self._owners = owners - - @property - def parent(self): - """ - Gets the parent of this HclCompatibilityInfo. - The direct ancestor of this managed object in the containment hierarchy. - - :return: The parent of this HclCompatibilityInfo. - :rtype: MoMoRef - """ - return self._parent - - @parent.setter - def parent(self, parent): - """ - Sets the parent of this HclCompatibilityInfo. - The direct ancestor of this managed object in the containment hierarchy. - - :param parent: The parent of this HclCompatibilityInfo. - :type: MoMoRef - """ - - self._parent = parent - - @property - def tags(self): - """ - Gets the tags of this HclCompatibilityInfo. - An array of tags, which allow to add key, value meta-data to managed objects. - - :return: The tags of this HclCompatibilityInfo. - :rtype: list[MoTag] - """ - return self._tags - - @tags.setter - def tags(self, tags): - """ - Sets the tags of this HclCompatibilityInfo. - An array of tags, which allow to add key, value meta-data to managed objects. - - :param tags: The tags of this HclCompatibilityInfo. - :type: list[MoTag] - """ - - self._tags = tags - - @property - def adapter_bios(self): - """ - Gets the adapter_bios of this HclCompatibilityInfo. - - :return: The adapter_bios of this HclCompatibilityInfo. - :rtype: str - """ - return self._adapter_bios - - @adapter_bios.setter - def adapter_bios(self, adapter_bios): - """ - Sets the adapter_bios of this HclCompatibilityInfo. - - :param adapter_bios: The adapter_bios of this HclCompatibilityInfo. - :type: str - """ - - self._adapter_bios = adapter_bios - - @property - def driver_protocol(self): - """ - Gets the driver_protocol of this HclCompatibilityInfo. - Protocol of the driver supported - - :return: The driver_protocol of this HclCompatibilityInfo. - :rtype: str - """ - return self._driver_protocol - - @driver_protocol.setter - def driver_protocol(self, driver_protocol): - """ - Sets the driver_protocol of this HclCompatibilityInfo. - Protocol of the driver supported - - :param driver_protocol: The driver_protocol of this HclCompatibilityInfo. - :type: str - """ - - self._driver_protocol = driver_protocol - - @property - def driver_vendor(self): - """ - Gets the driver_vendor of this HclCompatibilityInfo. - Vendor of the driver supported - - :return: The driver_vendor of this HclCompatibilityInfo. - :rtype: str - """ - return self._driver_vendor - - @driver_vendor.setter - def driver_vendor(self, driver_vendor): - """ - Sets the driver_vendor of this HclCompatibilityInfo. - Vendor of the driver supported - - :param driver_vendor: The driver_vendor of this HclCompatibilityInfo. - :type: str - """ - - self._driver_vendor = driver_vendor - - @property - def driver_version(self): - """ - Gets the driver_version of this HclCompatibilityInfo. - Version of the driver supported - - :return: The driver_version of this HclCompatibilityInfo. - :rtype: str - """ - return self._driver_version - - @driver_version.setter - def driver_version(self, driver_version): - """ - Sets the driver_version of this HclCompatibilityInfo. - Version of the driver supported - - :param driver_version: The driver_version of this HclCompatibilityInfo. - :type: str - """ - - self._driver_version = driver_version - - @property - def firmware(self): - """ - Gets the firmware of this HclCompatibilityInfo. - firmware version of the product/adapter supported - - :return: The firmware of this HclCompatibilityInfo. - :rtype: str - """ - return self._firmware - - @firmware.setter - def firmware(self, firmware): - """ - Sets the firmware of this HclCompatibilityInfo. - firmware version of the product/adapter supported - - :param firmware: The firmware of this HclCompatibilityInfo. - :type: str - """ - - self._firmware = firmware - - @property - def notes(self): - """ - Gets the notes of this HclCompatibilityInfo. - a relation to the notes collection - - :return: The notes of this HclCompatibilityInfo. - :rtype: list[MoMoRef] - """ - return self._notes - - @notes.setter - def notes(self, notes): - """ - Sets the notes of this HclCompatibilityInfo. - a relation to the notes collection - - :param notes: The notes of this HclCompatibilityInfo. - :type: list[MoMoRef] - """ - - self._notes = notes - - @property - def os_vendor(self): - """ - Gets the os_vendor of this HclCompatibilityInfo. - Vendor of the OS - - :return: The os_vendor of this HclCompatibilityInfo. - :rtype: str - """ - return self._os_vendor - - @os_vendor.setter - def os_vendor(self, os_vendor): - """ - Sets the os_vendor of this HclCompatibilityInfo. - Vendor of the OS - - :param os_vendor: The os_vendor of this HclCompatibilityInfo. - :type: str - """ - - self._os_vendor = os_vendor - - @property - def os_version(self): - """ - Gets the os_version of this HclCompatibilityInfo. - Version of the OS - - :return: The os_version of this HclCompatibilityInfo. - :rtype: str - """ - return self._os_version - - @os_version.setter - def os_version(self, os_version): - """ - Sets the os_version of this HclCompatibilityInfo. - Version of the OS - - :param os_version: The os_version of this HclCompatibilityInfo. - :type: str - """ - - self._os_version = os_version - - @property - def processor_name(self): - """ - Gets the processor_name of this HclCompatibilityInfo. - Name of the processor - - :return: The processor_name of this HclCompatibilityInfo. - :rtype: str - """ - return self._processor_name - - @processor_name.setter - def processor_name(self, processor_name): - """ - Sets the processor_name of this HclCompatibilityInfo. - Name of the processor - - :param processor_name: The processor_name of this HclCompatibilityInfo. - :type: str - """ - - self._processor_name = processor_name - - @property - def product_id(self): - """ - Gets the product_id of this HclCompatibilityInfo. - PID of the product/adapter - - :return: The product_id of this HclCompatibilityInfo. - :rtype: str - """ - return self._product_id - - @product_id.setter - def product_id(self, product_id): - """ - Sets the product_id of this HclCompatibilityInfo. - PID of the product/adapter - - :param product_id: The product_id of this HclCompatibilityInfo. - :type: str - """ - - self._product_id = product_id - - @property - def product_model(self): - """ - Gets the product_model of this HclCompatibilityInfo. - Model of the product/adapter - - :return: The product_model of this HclCompatibilityInfo. - :rtype: str - """ - return self._product_model - - @product_model.setter - def product_model(self, product_model): - """ - Sets the product_model of this HclCompatibilityInfo. - Model of the product/adapter - - :param product_model: The product_model of this HclCompatibilityInfo. - :type: str - """ - - self._product_model = product_model - - @property - def server_model(self): - """ - Gets the server_model of this HclCompatibilityInfo. - Server Model - - :return: The server_model of this HclCompatibilityInfo. - :rtype: str - """ - return self._server_model - - @server_model.setter - def server_model(self, server_model): - """ - Sets the server_model of this HclCompatibilityInfo. - Server Model - - :param server_model: The server_model of this HclCompatibilityInfo. - :type: str - """ - - self._server_model = server_model - - @property - def server_pid(self): - """ - Gets the server_pid of this HclCompatibilityInfo. - Server PID - - :return: The server_pid of this HclCompatibilityInfo. - :rtype: str - """ - return self._server_pid - - @server_pid.setter - def server_pid(self, server_pid): - """ - Sets the server_pid of this HclCompatibilityInfo. - Server PID - - :param server_pid: The server_pid of this HclCompatibilityInfo. - :type: str - """ - - self._server_pid = server_pid - - @property - def ucs_version(self): - """ - Gets the ucs_version of this HclCompatibilityInfo. - ucs version - - :return: The ucs_version of this HclCompatibilityInfo. - :rtype: str - """ - return self._ucs_version - - @ucs_version.setter - def ucs_version(self, ucs_version): - """ - Sets the ucs_version of this HclCompatibilityInfo. - ucs version - - :param ucs_version: The ucs_version of this HclCompatibilityInfo. - :type: str - """ - - self._ucs_version = ucs_version - - @property - def version_type(self): - """ - Gets the version_type of this HclCompatibilityInfo. - Type of the UCS version indicating whether it is a UCSM release vesion or a IMC release - - :return: The version_type of this HclCompatibilityInfo. - :rtype: str - """ - return self._version_type - - @version_type.setter - def version_type(self, version_type): - """ - Sets the version_type of this HclCompatibilityInfo. - Type of the UCS version indicating whether it is a UCSM release vesion or a IMC release - - :param version_type: The version_type of this HclCompatibilityInfo. - :type: str - """ - - self._version_type = version_type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, HclCompatibilityInfo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/hcl_compatibility_info_ref.py b/intersight/models/hcl_compatibility_info_ref.py new file mode 100644 index 00000000..8a66f72a --- /dev/null +++ b/intersight/models/hcl_compatibility_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclCompatibilityInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclCompatibilityInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclCompatibilityInfoRef. + + :return: The moid of this HclCompatibilityInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclCompatibilityInfoRef. + + :param moid: The moid of this HclCompatibilityInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclCompatibilityInfoRef. + + :return: The object_type of this HclCompatibilityInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclCompatibilityInfoRef. + + :param object_type: The object_type of this HclCompatibilityInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclCompatibilityInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_compatibility_status.py b/intersight/models/hcl_compatibility_status.py index 0f871a4e..a7223ecb 100644 --- a/intersight/models/hcl_compatibility_status.py +++ b/intersight/models/hcl_compatibility_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class HclCompatibilityStatus(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'profile_list': 'list[HclHardwareCompatibilityProfile]', 'request_type': 'str' } @@ -54,11 +55,12 @@ class HclCompatibilityStatus(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'profile_list': 'ProfileList', 'request_type': 'RequestType' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, profile_list=None, request_type='FillSupportedVersions'): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, profile_list=None, request_type='FillSupportedVersions'): """ HclCompatibilityStatus - a model defined in Swagger """ @@ -72,6 +74,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._profile_list = None self._request_type = None @@ -93,6 +96,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if profile_list is not None: self.profile_list = profile_list if request_type is not None: @@ -128,7 +133,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HclCompatibilityStatus. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -139,7 +144,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HclCompatibilityStatus. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -266,7 +271,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HclCompatibilityStatus. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -277,7 +282,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HclCompatibilityStatus. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -286,7 +291,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this HclCompatibilityStatus. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this HclCompatibilityStatus. :rtype: list[MoTag] @@ -297,7 +302,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this HclCompatibilityStatus. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this HclCompatibilityStatus. :type: list[MoTag] @@ -305,6 +310,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this HclCompatibilityStatus. + The versioning info for this managed object + + :return: The version_context of this HclCompatibilityStatus. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HclCompatibilityStatus. + The versioning info for this managed object + + :param version_context: The version_context of this HclCompatibilityStatus. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def profile_list(self): """ @@ -348,7 +376,7 @@ def request_type(self, request_type): :param request_type: The request_type of this HclCompatibilityStatus. :type: str """ - allowed_values = ["FillSupportedVersions", "CheckCompatibility"] + allowed_values = ["FillSupportedVersions", "CheckCompatibility", "GetRecommendedDrivers"] if request_type not in allowed_values: raise ValueError( "Invalid value for `request_type` ({0}), must be one of {1}" diff --git a/intersight/models/hcl_compatibility_status_ref.py b/intersight/models/hcl_compatibility_status_ref.py new file mode 100644 index 00000000..5f30e6f1 --- /dev/null +++ b/intersight/models/hcl_compatibility_status_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclCompatibilityStatusRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclCompatibilityStatusRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclCompatibilityStatusRef. + + :return: The moid of this HclCompatibilityStatusRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclCompatibilityStatusRef. + + :param moid: The moid of this HclCompatibilityStatusRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclCompatibilityStatusRef. + + :return: The object_type of this HclCompatibilityStatusRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclCompatibilityStatusRef. + + :param object_type: The object_type of this HclCompatibilityStatusRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclCompatibilityStatusRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_data_import_log.py b/intersight/models/hcl_data_import_log.py deleted file mode 100644 index fa77a59c..00000000 --- a/intersight/models/hcl_data_import_log.py +++ /dev/null @@ -1,579 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class HclDataImportLog(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', - 'create_time': 'datetime', - 'mod_time': 'datetime', - 'moid': 'str', - 'object_type': 'str', - 'owners': 'list[str]', - 'parent': 'MoMoRef', - 'tags': 'list[MoTag]', - 'catalog_name': 'str', - 'catalog_updated_date': 'str', - 'catalog_version': 'str', - 'check_sum': 'str', - 'file_create_date': 'str', - 'import_start_time': 'datetime', - 'import_state': 'str', - 'last_update_time': 'datetime' - } - - attribute_map = { - 'account_moid': 'AccountMoid', - 'ancestors': 'Ancestors', - 'create_time': 'CreateTime', - 'mod_time': 'ModTime', - 'moid': 'Moid', - 'object_type': 'ObjectType', - 'owners': 'Owners', - 'parent': 'Parent', - 'tags': 'Tags', - 'catalog_name': 'CatalogName', - 'catalog_updated_date': 'CatalogUpdatedDate', - 'catalog_version': 'CatalogVersion', - 'check_sum': 'CheckSum', - 'file_create_date': 'FileCreateDate', - 'import_start_time': 'ImportStartTime', - 'import_state': 'ImportState', - 'last_update_time': 'LastUpdateTime' - } - - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, catalog_name=None, catalog_updated_date=None, catalog_version=None, check_sum=None, file_create_date=None, import_start_time=None, import_state='None', last_update_time=None): - """ - HclDataImportLog - a model defined in Swagger - """ - - self._account_moid = None - self._ancestors = None - self._create_time = None - self._mod_time = None - self._moid = None - self._object_type = None - self._owners = None - self._parent = None - self._tags = None - self._catalog_name = None - self._catalog_updated_date = None - self._catalog_version = None - self._check_sum = None - self._file_create_date = None - self._import_start_time = None - self._import_state = None - self._last_update_time = None - - if account_moid is not None: - self.account_moid = account_moid - if ancestors is not None: - self.ancestors = ancestors - if create_time is not None: - self.create_time = create_time - if mod_time is not None: - self.mod_time = mod_time - if moid is not None: - self.moid = moid - if object_type is not None: - self.object_type = object_type - if owners is not None: - self.owners = owners - if parent is not None: - self.parent = parent - if tags is not None: - self.tags = tags - if catalog_name is not None: - self.catalog_name = catalog_name - if catalog_updated_date is not None: - self.catalog_updated_date = catalog_updated_date - if catalog_version is not None: - self.catalog_version = catalog_version - if check_sum is not None: - self.check_sum = check_sum - if file_create_date is not None: - self.file_create_date = file_create_date - if import_start_time is not None: - self.import_start_time = import_start_time - if import_state is not None: - self.import_state = import_state - if last_update_time is not None: - self.last_update_time = last_update_time - - @property - def account_moid(self): - """ - Gets the account_moid of this HclDataImportLog. - The Account ID for this managed object. - - :return: The account_moid of this HclDataImportLog. - :rtype: str - """ - return self._account_moid - - @account_moid.setter - def account_moid(self, account_moid): - """ - Sets the account_moid of this HclDataImportLog. - The Account ID for this managed object. - - :param account_moid: The account_moid of this HclDataImportLog. - :type: str - """ - - self._account_moid = account_moid - - @property - def ancestors(self): - """ - Gets the ancestors of this HclDataImportLog. - Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - - :return: The ancestors of this HclDataImportLog. - :rtype: list[MoMoRef] - """ - return self._ancestors - - @ancestors.setter - def ancestors(self, ancestors): - """ - Sets the ancestors of this HclDataImportLog. - Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - - :param ancestors: The ancestors of this HclDataImportLog. - :type: list[MoMoRef] - """ - - self._ancestors = ancestors - - @property - def create_time(self): - """ - Gets the create_time of this HclDataImportLog. - The time when this managed object was created. - - :return: The create_time of this HclDataImportLog. - :rtype: datetime - """ - return self._create_time - - @create_time.setter - def create_time(self, create_time): - """ - Sets the create_time of this HclDataImportLog. - The time when this managed object was created. - - :param create_time: The create_time of this HclDataImportLog. - :type: datetime - """ - - self._create_time = create_time - - @property - def mod_time(self): - """ - Gets the mod_time of this HclDataImportLog. - The time when this managed object was last modified. - - :return: The mod_time of this HclDataImportLog. - :rtype: datetime - """ - return self._mod_time - - @mod_time.setter - def mod_time(self, mod_time): - """ - Sets the mod_time of this HclDataImportLog. - The time when this managed object was last modified. - - :param mod_time: The mod_time of this HclDataImportLog. - :type: datetime - """ - - self._mod_time = mod_time - - @property - def moid(self): - """ - Gets the moid of this HclDataImportLog. - A unique identifier of this Managed Object instance. - - :return: The moid of this HclDataImportLog. - :rtype: str - """ - return self._moid - - @moid.setter - def moid(self, moid): - """ - Sets the moid of this HclDataImportLog. - A unique identifier of this Managed Object instance. - - :param moid: The moid of this HclDataImportLog. - :type: str - """ - - self._moid = moid - - @property - def object_type(self): - """ - Gets the object_type of this HclDataImportLog. - The fully-qualified type of this managed object, e.g. the class name. - - :return: The object_type of this HclDataImportLog. - :rtype: str - """ - return self._object_type - - @object_type.setter - def object_type(self, object_type): - """ - Sets the object_type of this HclDataImportLog. - The fully-qualified type of this managed object, e.g. the class name. - - :param object_type: The object_type of this HclDataImportLog. - :type: str - """ - - self._object_type = object_type - - @property - def owners(self): - """ - Gets the owners of this HclDataImportLog. - An array of owners which represent effective ownership of this object. - - :return: The owners of this HclDataImportLog. - :rtype: list[str] - """ - return self._owners - - @owners.setter - def owners(self, owners): - """ - Sets the owners of this HclDataImportLog. - An array of owners which represent effective ownership of this object. - - :param owners: The owners of this HclDataImportLog. - :type: list[str] - """ - - self._owners = owners - - @property - def parent(self): - """ - Gets the parent of this HclDataImportLog. - The direct ancestor of this managed object in the containment hierarchy. - - :return: The parent of this HclDataImportLog. - :rtype: MoMoRef - """ - return self._parent - - @parent.setter - def parent(self, parent): - """ - Sets the parent of this HclDataImportLog. - The direct ancestor of this managed object in the containment hierarchy. - - :param parent: The parent of this HclDataImportLog. - :type: MoMoRef - """ - - self._parent = parent - - @property - def tags(self): - """ - Gets the tags of this HclDataImportLog. - An array of tags, which allow to add key, value meta-data to managed objects. - - :return: The tags of this HclDataImportLog. - :rtype: list[MoTag] - """ - return self._tags - - @tags.setter - def tags(self, tags): - """ - Sets the tags of this HclDataImportLog. - An array of tags, which allow to add key, value meta-data to managed objects. - - :param tags: The tags of this HclDataImportLog. - :type: list[MoTag] - """ - - self._tags = tags - - @property - def catalog_name(self): - """ - Gets the catalog_name of this HclDataImportLog. - Name of the HCL Data File - - :return: The catalog_name of this HclDataImportLog. - :rtype: str - """ - return self._catalog_name - - @catalog_name.setter - def catalog_name(self, catalog_name): - """ - Sets the catalog_name of this HclDataImportLog. - Name of the HCL Data File - - :param catalog_name: The catalog_name of this HclDataImportLog. - :type: str - """ - - self._catalog_name = catalog_name - - @property - def catalog_updated_date(self): - """ - Gets the catalog_updated_date of this HclDataImportLog. - Date of the HCL Data update - - :return: The catalog_updated_date of this HclDataImportLog. - :rtype: str - """ - return self._catalog_updated_date - - @catalog_updated_date.setter - def catalog_updated_date(self, catalog_updated_date): - """ - Sets the catalog_updated_date of this HclDataImportLog. - Date of the HCL Data update - - :param catalog_updated_date: The catalog_updated_date of this HclDataImportLog. - :type: str - """ - - self._catalog_updated_date = catalog_updated_date - - @property - def catalog_version(self): - """ - Gets the catalog_version of this HclDataImportLog. - Version of the HCL Data - - :return: The catalog_version of this HclDataImportLog. - :rtype: str - """ - return self._catalog_version - - @catalog_version.setter - def catalog_version(self, catalog_version): - """ - Sets the catalog_version of this HclDataImportLog. - Version of the HCL Data - - :param catalog_version: The catalog_version of this HclDataImportLog. - :type: str - """ - - self._catalog_version = catalog_version - - @property - def check_sum(self): - """ - Gets the check_sum of this HclDataImportLog. - Checksum of the HCL Data file MD5 checksum - - :return: The check_sum of this HclDataImportLog. - :rtype: str - """ - return self._check_sum - - @check_sum.setter - def check_sum(self, check_sum): - """ - Sets the check_sum of this HclDataImportLog. - Checksum of the HCL Data file MD5 checksum - - :param check_sum: The check_sum of this HclDataImportLog. - :type: str - """ - - self._check_sum = check_sum - - @property - def file_create_date(self): - """ - Gets the file_create_date of this HclDataImportLog. - Date of the HCL Data file creation - - :return: The file_create_date of this HclDataImportLog. - :rtype: str - """ - return self._file_create_date - - @file_create_date.setter - def file_create_date(self, file_create_date): - """ - Sets the file_create_date of this HclDataImportLog. - Date of the HCL Data file creation - - :param file_create_date: The file_create_date of this HclDataImportLog. - :type: str - """ - - self._file_create_date = file_create_date - - @property - def import_start_time(self): - """ - Gets the import_start_time of this HclDataImportLog. - Timestamp of the data import process - - :return: The import_start_time of this HclDataImportLog. - :rtype: datetime - """ - return self._import_start_time - - @import_start_time.setter - def import_start_time(self, import_start_time): - """ - Sets the import_start_time of this HclDataImportLog. - Timestamp of the data import process - - :param import_start_time: The import_start_time of this HclDataImportLog. - :type: datetime - """ - - self._import_start_time = import_start_time - - @property - def import_state(self): - """ - Gets the import_state of this HclDataImportLog. - Status of the import process - - :return: The import_state of this HclDataImportLog. - :rtype: str - """ - return self._import_state - - @import_state.setter - def import_state(self, import_state): - """ - Sets the import_state of this HclDataImportLog. - Status of the import process - - :param import_state: The import_state of this HclDataImportLog. - :type: str - """ - allowed_values = ["None", "InProgress", "Success", "Started", "Failed"] - if import_state not in allowed_values: - raise ValueError( - "Invalid value for `import_state` ({0}), must be one of {1}" - .format(import_state, allowed_values) - ) - - self._import_state = import_state - - @property - def last_update_time(self): - """ - Gets the last_update_time of this HclDataImportLog. - Timestamp of the last sucessful commit - - :return: The last_update_time of this HclDataImportLog. - :rtype: datetime - """ - return self._last_update_time - - @last_update_time.setter - def last_update_time(self, last_update_time): - """ - Sets the last_update_time of this HclDataImportLog. - Timestamp of the last sucessful commit - - :param last_update_time: The last_update_time of this HclDataImportLog. - :type: datetime - """ - - self._last_update_time = last_update_time - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, HclDataImportLog): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/hcl_data_import_log_ref.py b/intersight/models/hcl_data_import_log_ref.py new file mode 100644 index 00000000..86eef49c --- /dev/null +++ b/intersight/models/hcl_data_import_log_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclDataImportLogRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclDataImportLogRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclDataImportLogRef. + + :return: The moid of this HclDataImportLogRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclDataImportLogRef. + + :param moid: The moid of this HclDataImportLogRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclDataImportLogRef. + + :return: The object_type of this HclDataImportLogRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclDataImportLogRef. + + :param object_type: The object_type of this HclDataImportLogRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclDataImportLogRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_san.py b/intersight/models/hcl_driver.py similarity index 51% rename from intersight/models/boot_san.py rename to intersight/models/hcl_driver.py index 88b2d1cb..6784926f 100644 --- a/intersight/models/boot_san.py +++ b/intersight/models/hcl_driver.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class BootSan(object): +class HclDriver(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,68 +31,68 @@ class BootSan(object): and the value is json key in definition. """ swagger_types = { - 'enabled': 'bool', + 'is_latest': 'bool', 'name': 'str', - 'lun': 'int', - 'slot': 'str' + 'supported_date': 'str', + 'version': 'str' } attribute_map = { - 'enabled': 'Enabled', + 'is_latest': 'IsLatest', 'name': 'Name', - 'lun': 'Lun', - 'slot': 'Slot' + 'supported_date': 'SupportedDate', + 'version': 'Version' } - def __init__(self, enabled=None, name=None, lun=None, slot=None): + def __init__(self, is_latest=None, name=None, supported_date=None, version=None): """ - BootSan - a model defined in Swagger + HclDriver - a model defined in Swagger """ - self._enabled = None + self._is_latest = None self._name = None - self._lun = None - self._slot = None + self._supported_date = None + self._version = None - if enabled is not None: - self.enabled = enabled + if is_latest is not None: + self.is_latest = is_latest if name is not None: self.name = name - if lun is not None: - self.lun = lun - if slot is not None: - self.slot = slot + if supported_date is not None: + self.supported_date = supported_date + if version is not None: + self.version = version @property - def enabled(self): + def is_latest(self): """ - Gets the enabled of this BootSan. - Specifies if the boot device is enabled or disabled. + Gets the is_latest of this HclDriver. + is the driver version latest - :return: The enabled of this BootSan. + :return: The is_latest of this HclDriver. :rtype: bool """ - return self._enabled + return self._is_latest - @enabled.setter - def enabled(self, enabled): + @is_latest.setter + def is_latest(self, is_latest): """ - Sets the enabled of this BootSan. - Specifies if the boot device is enabled or disabled. + Sets the is_latest of this HclDriver. + is the driver version latest - :param enabled: The enabled of this BootSan. + :param is_latest: The is_latest of this HclDriver. :type: bool """ - self._enabled = enabled + self._is_latest = is_latest @property def name(self): """ - Gets the name of this BootSan. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. + Gets the name of this HclDriver. + name of the driver as read by the OS - :return: The name of this BootSan. + :return: The name of this HclDriver. :rtype: str """ return self._name @@ -100,60 +100,60 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this BootSan. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. + Sets the name of this HclDriver. + name of the driver as read by the OS - :param name: The name of this BootSan. + :param name: The name of this HclDriver. :type: str """ self._name = name @property - def lun(self): + def supported_date(self): """ - Gets the lun of this BootSan. - Specifies the Logical Unit Number(LUN) of the device. + Gets the supported_date of this HclDriver. + date when the support was claimed - :return: The lun of this BootSan. - :rtype: int + :return: The supported_date of this HclDriver. + :rtype: str """ - return self._lun + return self._supported_date - @lun.setter - def lun(self, lun): + @supported_date.setter + def supported_date(self, supported_date): """ - Sets the lun of this BootSan. - Specifies the Logical Unit Number(LUN) of the device. + Sets the supported_date of this HclDriver. + date when the support was claimed - :param lun: The lun of this BootSan. - :type: int + :param supported_date: The supported_date of this HclDriver. + :type: str """ - self._lun = lun + self._supported_date = supported_date @property - def slot(self): + def version(self): """ - Gets the slot of this BootSan. - Specifies the slot id of the device. Supported values are (1 - 255, \"MLOM\") + Gets the version of this HclDriver. + version of the driver - :return: The slot of this BootSan. + :return: The version of this HclDriver. :rtype: str """ - return self._slot + return self._version - @slot.setter - def slot(self, slot): + @version.setter + def version(self, version): """ - Sets the slot of this BootSan. - Specifies the slot id of the device. Supported values are (1 - 255, \"MLOM\") + Sets the version of this HclDriver. + version of the driver - :param slot: The slot of this BootSan. + :param version: The version of this HclDriver. :type: str """ - self._slot = slot + self._version = version def to_dict(self): """ @@ -197,7 +197,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, BootSan): + if not isinstance(other, HclDriver): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/hcl_driver_image.py b/intersight/models/hcl_driver_image.py new file mode 100644 index 00000000..4d09f419 --- /dev/null +++ b/intersight/models/hcl_driver_image.py @@ -0,0 +1,467 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclDriverImage(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'driver_iso_url': 'str', + 'management_type': 'str', + 'server_pid': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'driver_iso_url': 'DriverIsoUrl', + 'management_type': 'ManagementType', + 'server_pid': 'ServerPid' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, driver_iso_url=None, management_type='UCSM', server_pid=None): + """ + HclDriverImage - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._driver_iso_url = None + self._management_type = None + self._server_pid = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if driver_iso_url is not None: + self.driver_iso_url = driver_iso_url + if management_type is not None: + self.management_type = management_type + if server_pid is not None: + self.server_pid = server_pid + + @property + def account_moid(self): + """ + Gets the account_moid of this HclDriverImage. + The Account ID for this managed object. + + :return: The account_moid of this HclDriverImage. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this HclDriverImage. + The Account ID for this managed object. + + :param account_moid: The account_moid of this HclDriverImage. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this HclDriverImage. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this HclDriverImage. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this HclDriverImage. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this HclDriverImage. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this HclDriverImage. + The time when this managed object was created. + + :return: The create_time of this HclDriverImage. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this HclDriverImage. + The time when this managed object was created. + + :param create_time: The create_time of this HclDriverImage. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this HclDriverImage. + The time when this managed object was last modified. + + :return: The mod_time of this HclDriverImage. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this HclDriverImage. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this HclDriverImage. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this HclDriverImage. + A unique identifier of this Managed Object instance. + + :return: The moid of this HclDriverImage. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclDriverImage. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this HclDriverImage. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclDriverImage. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this HclDriverImage. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclDriverImage. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this HclDriverImage. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this HclDriverImage. + An array of owners which represent effective ownership of this object. + + :return: The owners of this HclDriverImage. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this HclDriverImage. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this HclDriverImage. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this HclDriverImage. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this HclDriverImage. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this HclDriverImage. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this HclDriverImage. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this HclDriverImage. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this HclDriverImage. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this HclDriverImage. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this HclDriverImage. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this HclDriverImage. + The versioning info for this managed object + + :return: The version_context of this HclDriverImage. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HclDriverImage. + The versioning info for this managed object + + :param version_context: The version_context of this HclDriverImage. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def driver_iso_url(self): + """ + Gets the driver_iso_url of this HclDriverImage. + URL of the driver ISO + + :return: The driver_iso_url of this HclDriverImage. + :rtype: str + """ + return self._driver_iso_url + + @driver_iso_url.setter + def driver_iso_url(self, driver_iso_url): + """ + Sets the driver_iso_url of this HclDriverImage. + URL of the driver ISO + + :param driver_iso_url: The driver_iso_url of this HclDriverImage. + :type: str + """ + + self._driver_iso_url = driver_iso_url + + @property + def management_type(self): + """ + Gets the management_type of this HclDriverImage. + How the server is managed. It is managed by UCSM or as a stand alone server + + :return: The management_type of this HclDriverImage. + :rtype: str + """ + return self._management_type + + @management_type.setter + def management_type(self, management_type): + """ + Sets the management_type of this HclDriverImage. + How the server is managed. It is managed by UCSM or as a stand alone server + + :param management_type: The management_type of this HclDriverImage. + :type: str + """ + allowed_values = ["UCSM", "IMC"] + if management_type not in allowed_values: + raise ValueError( + "Invalid value for `management_type` ({0}), must be one of {1}" + .format(management_type, allowed_values) + ) + + self._management_type = management_type + + @property + def server_pid(self): + """ + Gets the server_pid of this HclDriverImage. + Server PID + + :return: The server_pid of this HclDriverImage. + :rtype: str + """ + return self._server_pid + + @server_pid.setter + def server_pid(self, server_pid): + """ + Sets the server_pid of this HclDriverImage. + Server PID + + :param server_pid: The server_pid of this HclDriverImage. + :type: str + """ + + self._server_pid = server_pid + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclDriverImage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_driver_image_list.py b/intersight/models/hcl_driver_image_list.py new file mode 100644 index 00000000..83e9f000 --- /dev/null +++ b/intersight/models/hcl_driver_image_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclDriverImageList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[HclDriverImage]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + HclDriverImageList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this HclDriverImageList. + The number of hclDriverImages matching your request in total for all pages. + + :return: The count of this HclDriverImageList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this HclDriverImageList. + The number of hclDriverImages matching your request in total for all pages. + + :param count: The count of this HclDriverImageList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this HclDriverImageList. + The array of hclDriverImages matching your request. + + :return: The results of this HclDriverImageList. + :rtype: list[HclDriverImage] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this HclDriverImageList. + The array of hclDriverImages matching your request. + + :param results: The results of this HclDriverImageList. + :type: list[HclDriverImage] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclDriverImageList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_driver_image_ref.py b/intersight/models/hcl_driver_image_ref.py new file mode 100644 index 00000000..71ac7cf1 --- /dev/null +++ b/intersight/models/hcl_driver_image_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclDriverImageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclDriverImageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclDriverImageRef. + + :return: The moid of this HclDriverImageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclDriverImageRef. + + :param moid: The moid of this HclDriverImageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclDriverImageRef. + + :return: The object_type of this HclDriverImageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclDriverImageRef. + + :param object_type: The object_type of this HclDriverImageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclDriverImageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_driver_ref.py b/intersight/models/hcl_driver_ref.py new file mode 100644 index 00000000..df8b41f6 --- /dev/null +++ b/intersight/models/hcl_driver_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclDriverRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclDriverRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclDriverRef. + + :return: The moid of this HclDriverRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclDriverRef. + + :param moid: The moid of this HclDriverRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclDriverRef. + + :return: The object_type of this HclDriverRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclDriverRef. + + :param object_type: The object_type of this HclDriverRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclDriverRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_firmware.py b/intersight/models/hcl_firmware.py index 1bb18d49..72272faa 100644 --- a/intersight/models/hcl_firmware.py +++ b/intersight/models/hcl_firmware.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -35,7 +35,8 @@ class HclFirmware(object): 'driver_version': 'str', 'error_code': 'str', 'firmware_version': 'str', - 'id': 'str' + 'id': 'str', + 'latest_driver': 'bool' } attribute_map = { @@ -43,10 +44,11 @@ class HclFirmware(object): 'driver_version': 'DriverVersion', 'error_code': 'ErrorCode', 'firmware_version': 'FirmwareVersion', - 'id': 'Id' + 'id': 'Id', + 'latest_driver': 'LatestDriver' } - def __init__(self, driver_name=None, driver_version=None, error_code='Success', firmware_version=None, id=None): + def __init__(self, driver_name=None, driver_version=None, error_code='Success', firmware_version=None, id=None, latest_driver=None): """ HclFirmware - a model defined in Swagger """ @@ -56,6 +58,7 @@ def __init__(self, driver_name=None, driver_version=None, error_code='Success', self._error_code = None self._firmware_version = None self._id = None + self._latest_driver = None if driver_name is not None: self.driver_name = driver_name @@ -67,6 +70,8 @@ def __init__(self, driver_name=None, driver_version=None, error_code='Success', self.firmware_version = firmware_version if id is not None: self.id = id + if latest_driver is not None: + self.latest_driver = latest_driver @property def driver_name(self): @@ -134,7 +139,7 @@ def error_code(self, error_code): :param error_code: The error_code of this HclFirmware. :type: str """ - allowed_values = ["Success", "Unknown", "InvalidUcsVersion", "UcsVersionServerOSCombinationNotSupported", "ProductNotSupported", "DriverNameNotSupported", "FirmwareNotSupported", "DriverVersionNotSupported", "FirmwareDriverVersionCombinationNotSupported", "FirmwareAndDriverNotSupported", "InternalError", "MarshallingError"] + allowed_values = ["Success", "Unknown", "UnknownServer", "InvalidUcsVersion", "ProcessorNotSupported", "OSNotSupported", "UCSVersionNotSupported", "UcsVersionServerOSCombinationNotSupported", "ProductUnknown", "ProductNotSupported", "DriverNameNotSupported", "FirmwareVersionNotSupported", "DriverVersionNotSupported", "FirmwareVersionDriverVersionCombinationNotSupported", "FirmwareVersionAndDriverVersionNotSupported", "FirmwareVersionAndDriverNameNotSupported", "InternalError", "MarshallingError"] if error_code not in allowed_values: raise ValueError( "Invalid value for `error_code` ({0}), must be one of {1}" @@ -187,6 +192,29 @@ def id(self, id): self._id = id + @property + def latest_driver(self): + """ + Gets the latest_driver of this HclFirmware. + True if the driver is latest recommended driver + + :return: The latest_driver of this HclFirmware. + :rtype: bool + """ + return self._latest_driver + + @latest_driver.setter + def latest_driver(self, latest_driver): + """ + Sets the latest_driver of this HclFirmware. + True if the driver is latest recommended driver + + :param latest_driver: The latest_driver of this HclFirmware. + :type: bool + """ + + self._latest_driver = latest_driver + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/hcl_firmware_ref.py b/intersight/models/hcl_firmware_ref.py new file mode 100644 index 00000000..27275f76 --- /dev/null +++ b/intersight/models/hcl_firmware_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclFirmwareRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclFirmwareRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclFirmwareRef. + + :return: The moid of this HclFirmwareRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclFirmwareRef. + + :param moid: The moid of this HclFirmwareRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclFirmwareRef. + + :return: The object_type of this HclFirmwareRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclFirmwareRef. + + :param object_type: The object_type of this HclFirmwareRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclFirmwareRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_hardware_compatibility_profile.py b/intersight/models/hcl_hardware_compatibility_profile.py index e2edb086..e65b8272 100644 --- a/intersight/models/hcl_hardware_compatibility_profile.py +++ b/intersight/models/hcl_hardware_compatibility_profile.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,6 +31,7 @@ class HclHardwareCompatibilityProfile(object): and the value is json key in definition. """ swagger_types = { + 'driver_iso_url': 'str', 'error_code': 'str', 'id': 'str', 'os_vendor': 'str', @@ -44,6 +45,7 @@ class HclHardwareCompatibilityProfile(object): } attribute_map = { + 'driver_iso_url': 'DriverIsoUrl', 'error_code': 'ErrorCode', 'id': 'Id', 'os_vendor': 'OsVendor', @@ -56,11 +58,12 @@ class HclHardwareCompatibilityProfile(object): 'version_type': 'VersionType' } - def __init__(self, error_code='Success', id=None, os_vendor=None, os_version=None, processor_model=None, products=None, server_model=None, server_revision=None, ucs_version=None, version_type=None): + def __init__(self, driver_iso_url=None, error_code='Success', id=None, os_vendor=None, os_version=None, processor_model=None, products=None, server_model=None, server_revision=None, ucs_version=None, version_type='UCSM'): """ HclHardwareCompatibilityProfile - a model defined in Swagger """ + self._driver_iso_url = None self._error_code = None self._id = None self._os_vendor = None @@ -72,6 +75,8 @@ def __init__(self, error_code='Success', id=None, os_vendor=None, os_version=Non self._ucs_version = None self._version_type = None + if driver_iso_url is not None: + self.driver_iso_url = driver_iso_url if error_code is not None: self.error_code = error_code if id is not None: @@ -93,6 +98,29 @@ def __init__(self, error_code='Success', id=None, os_vendor=None, os_version=Non if version_type is not None: self.version_type = version_type + @property + def driver_iso_url(self): + """ + Gets the driver_iso_url of this HclHardwareCompatibilityProfile. + Url for the driver iso for the server model + + :return: The driver_iso_url of this HclHardwareCompatibilityProfile. + :rtype: str + """ + return self._driver_iso_url + + @driver_iso_url.setter + def driver_iso_url(self, driver_iso_url): + """ + Sets the driver_iso_url of this HclHardwareCompatibilityProfile. + Url for the driver iso for the server model + + :param driver_iso_url: The driver_iso_url of this HclHardwareCompatibilityProfile. + :type: str + """ + + self._driver_iso_url = driver_iso_url + @property def error_code(self): """ @@ -113,7 +141,7 @@ def error_code(self, error_code): :param error_code: The error_code of this HclHardwareCompatibilityProfile. :type: str """ - allowed_values = ["Success", "Unknown", "InvalidUcsVersion", "UcsVersionServerOSCombinationNotSupported", "ProductNotSupported", "DriverNameNotSupported", "FirmwareNotSupported", "DriverVersionNotSupported", "FirmwareDriverVersionCombinationNotSupported", "FirmwareAndDriverNotSupported", "InternalError", "MarshallingError"] + allowed_values = ["Success", "Unknown", "UnknownServer", "InvalidUcsVersion", "ProcessorNotSupported", "OSNotSupported", "UCSVersionNotSupported", "UcsVersionServerOSCombinationNotSupported", "ProductUnknown", "ProductNotSupported", "DriverNameNotSupported", "FirmwareVersionNotSupported", "DriverVersionNotSupported", "FirmwareVersionDriverVersionCombinationNotSupported", "FirmwareVersionAndDriverVersionNotSupported", "FirmwareVersionAndDriverNameNotSupported", "InternalError", "MarshallingError"] if error_code not in allowed_values: raise ValueError( "Invalid value for `error_code` ({0}), must be one of {1}" @@ -324,6 +352,12 @@ def version_type(self, version_type): :param version_type: The version_type of this HclHardwareCompatibilityProfile. :type: str """ + allowed_values = ["UCSM", "IMC"] + if version_type not in allowed_values: + raise ValueError( + "Invalid value for `version_type` ({0}), must be one of {1}" + .format(version_type, allowed_values) + ) self._version_type = version_type diff --git a/intersight/models/hcl_hardware_compatibility_profile_ref.py b/intersight/models/hcl_hardware_compatibility_profile_ref.py new file mode 100644 index 00000000..fc4781d4 --- /dev/null +++ b/intersight/models/hcl_hardware_compatibility_profile_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclHardwareCompatibilityProfileRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclHardwareCompatibilityProfileRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclHardwareCompatibilityProfileRef. + + :return: The moid of this HclHardwareCompatibilityProfileRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclHardwareCompatibilityProfileRef. + + :param moid: The moid of this HclHardwareCompatibilityProfileRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclHardwareCompatibilityProfileRef. + + :return: The object_type of this HclHardwareCompatibilityProfileRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclHardwareCompatibilityProfileRef. + + :param object_type: The object_type of this HclHardwareCompatibilityProfileRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclHardwareCompatibilityProfileRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_note_ref.py b/intersight/models/hcl_note_ref.py new file mode 100644 index 00000000..c4eb1c5c --- /dev/null +++ b/intersight/models/hcl_note_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclNoteRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclNoteRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclNoteRef. + + :return: The moid of this HclNoteRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclNoteRef. + + :param moid: The moid of this HclNoteRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclNoteRef. + + :return: The object_type of this HclNoteRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclNoteRef. + + :param object_type: The object_type of this HclNoteRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclNoteRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_operating_system.py b/intersight/models/hcl_operating_system.py new file mode 100644 index 00000000..f6a0d6f8 --- /dev/null +++ b/intersight/models/hcl_operating_system.py @@ -0,0 +1,433 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclOperatingSystem(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'vendor': 'HclOperatingSystemVendorRef', + 'version': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'vendor': 'Vendor', + 'version': 'Version' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, vendor=None, version=None): + """ + HclOperatingSystem - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._vendor = None + self._version = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if vendor is not None: + self.vendor = vendor + if version is not None: + self.version = version + + @property + def account_moid(self): + """ + Gets the account_moid of this HclOperatingSystem. + The Account ID for this managed object. + + :return: The account_moid of this HclOperatingSystem. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this HclOperatingSystem. + The Account ID for this managed object. + + :param account_moid: The account_moid of this HclOperatingSystem. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this HclOperatingSystem. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this HclOperatingSystem. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this HclOperatingSystem. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this HclOperatingSystem. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this HclOperatingSystem. + The time when this managed object was created. + + :return: The create_time of this HclOperatingSystem. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this HclOperatingSystem. + The time when this managed object was created. + + :param create_time: The create_time of this HclOperatingSystem. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this HclOperatingSystem. + The time when this managed object was last modified. + + :return: The mod_time of this HclOperatingSystem. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this HclOperatingSystem. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this HclOperatingSystem. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this HclOperatingSystem. + A unique identifier of this Managed Object instance. + + :return: The moid of this HclOperatingSystem. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclOperatingSystem. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this HclOperatingSystem. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclOperatingSystem. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this HclOperatingSystem. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclOperatingSystem. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this HclOperatingSystem. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this HclOperatingSystem. + An array of owners which represent effective ownership of this object. + + :return: The owners of this HclOperatingSystem. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this HclOperatingSystem. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this HclOperatingSystem. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this HclOperatingSystem. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this HclOperatingSystem. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this HclOperatingSystem. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this HclOperatingSystem. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this HclOperatingSystem. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this HclOperatingSystem. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this HclOperatingSystem. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this HclOperatingSystem. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this HclOperatingSystem. + The versioning info for this managed object + + :return: The version_context of this HclOperatingSystem. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HclOperatingSystem. + The versioning info for this managed object + + :param version_context: The version_context of this HclOperatingSystem. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def vendor(self): + """ + Gets the vendor of this HclOperatingSystem. + a relation to the notes collection + + :return: The vendor of this HclOperatingSystem. + :rtype: HclOperatingSystemVendorRef + """ + return self._vendor + + @vendor.setter + def vendor(self, vendor): + """ + Sets the vendor of this HclOperatingSystem. + a relation to the notes collection + + :param vendor: The vendor of this HclOperatingSystem. + :type: HclOperatingSystemVendorRef + """ + + self._vendor = vendor + + @property + def version(self): + """ + Gets the version of this HclOperatingSystem. + Version of the Operating System + + :return: The version of this HclOperatingSystem. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this HclOperatingSystem. + Version of the Operating System + + :param version: The version of this HclOperatingSystem. + :type: str + """ + + self._version = version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclOperatingSystem): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_operating_system_list.py b/intersight/models/hcl_operating_system_list.py new file mode 100644 index 00000000..04d3b694 --- /dev/null +++ b/intersight/models/hcl_operating_system_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclOperatingSystemList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[HclOperatingSystem]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + HclOperatingSystemList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this HclOperatingSystemList. + The number of hclOperatingSystems matching your request in total for all pages. + + :return: The count of this HclOperatingSystemList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this HclOperatingSystemList. + The number of hclOperatingSystems matching your request in total for all pages. + + :param count: The count of this HclOperatingSystemList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this HclOperatingSystemList. + The array of hclOperatingSystems matching your request. + + :return: The results of this HclOperatingSystemList. + :rtype: list[HclOperatingSystem] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this HclOperatingSystemList. + The array of hclOperatingSystems matching your request. + + :param results: The results of this HclOperatingSystemList. + :type: list[HclOperatingSystem] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclOperatingSystemList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_operating_system_ref.py b/intersight/models/hcl_operating_system_ref.py new file mode 100644 index 00000000..f487b119 --- /dev/null +++ b/intersight/models/hcl_operating_system_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclOperatingSystemRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclOperatingSystemRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclOperatingSystemRef. + + :return: The moid of this HclOperatingSystemRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclOperatingSystemRef. + + :param moid: The moid of this HclOperatingSystemRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclOperatingSystemRef. + + :return: The object_type of this HclOperatingSystemRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclOperatingSystemRef. + + :param object_type: The object_type of this HclOperatingSystemRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclOperatingSystemRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/techsupportmanagement_download.py b/intersight/models/hcl_operating_system_vendor.py similarity index 61% rename from intersight/models/techsupportmanagement_download.py rename to intersight/models/hcl_operating_system_vendor.py index cc24e690..f6087e3c 100644 --- a/intersight/models/techsupportmanagement_download.py +++ b/intersight/models/hcl_operating_system_vendor.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class TechsupportmanagementDownload(object): +class HclOperatingSystemVendor(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,15 +32,16 @@ class TechsupportmanagementDownload(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'tech_support_status': 'MoMoRef' + 'version_context': 'MoVersionContext', + 'name': 'str' } attribute_map = { @@ -53,12 +54,13 @@ class TechsupportmanagementDownload(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', - 'tech_support_status': 'TechSupportStatus' + 'version_context': 'VersionContext', + 'name': 'Name' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, tech_support_status=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, name=None): """ - TechsupportmanagementDownload - a model defined in Swagger + HclOperatingSystemVendor - a model defined in Swagger """ self._account_moid = None @@ -70,7 +72,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None - self._tech_support_status = None + self._version_context = None + self._name = None if account_moid is not None: self.account_moid = account_moid @@ -90,16 +93,18 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags - if tech_support_status is not None: - self.tech_support_status = tech_support_status + if version_context is not None: + self.version_context = version_context + if name is not None: + self.name = name @property def account_moid(self): """ - Gets the account_moid of this TechsupportmanagementDownload. + Gets the account_moid of this HclOperatingSystemVendor. The Account ID for this managed object. - :return: The account_moid of this TechsupportmanagementDownload. + :return: The account_moid of this HclOperatingSystemVendor. :rtype: str """ return self._account_moid @@ -107,10 +112,10 @@ def account_moid(self): @account_moid.setter def account_moid(self, account_moid): """ - Sets the account_moid of this TechsupportmanagementDownload. + Sets the account_moid of this HclOperatingSystemVendor. The Account ID for this managed object. - :param account_moid: The account_moid of this TechsupportmanagementDownload. + :param account_moid: The account_moid of this HclOperatingSystemVendor. :type: str """ @@ -119,22 +124,22 @@ def account_moid(self, account_moid): @property def ancestors(self): """ - Gets the ancestors of this TechsupportmanagementDownload. + Gets the ancestors of this HclOperatingSystemVendor. Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - :return: The ancestors of this TechsupportmanagementDownload. - :rtype: list[MoMoRef] + :return: The ancestors of this HclOperatingSystemVendor. + :rtype: list[MoBaseMoRef] """ return self._ancestors @ancestors.setter def ancestors(self, ancestors): """ - Sets the ancestors of this TechsupportmanagementDownload. + Sets the ancestors of this HclOperatingSystemVendor. Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - :param ancestors: The ancestors of this TechsupportmanagementDownload. - :type: list[MoMoRef] + :param ancestors: The ancestors of this HclOperatingSystemVendor. + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -142,10 +147,10 @@ def ancestors(self, ancestors): @property def create_time(self): """ - Gets the create_time of this TechsupportmanagementDownload. + Gets the create_time of this HclOperatingSystemVendor. The time when this managed object was created. - :return: The create_time of this TechsupportmanagementDownload. + :return: The create_time of this HclOperatingSystemVendor. :rtype: datetime """ return self._create_time @@ -153,10 +158,10 @@ def create_time(self): @create_time.setter def create_time(self, create_time): """ - Sets the create_time of this TechsupportmanagementDownload. + Sets the create_time of this HclOperatingSystemVendor. The time when this managed object was created. - :param create_time: The create_time of this TechsupportmanagementDownload. + :param create_time: The create_time of this HclOperatingSystemVendor. :type: datetime """ @@ -165,10 +170,10 @@ def create_time(self, create_time): @property def mod_time(self): """ - Gets the mod_time of this TechsupportmanagementDownload. + Gets the mod_time of this HclOperatingSystemVendor. The time when this managed object was last modified. - :return: The mod_time of this TechsupportmanagementDownload. + :return: The mod_time of this HclOperatingSystemVendor. :rtype: datetime """ return self._mod_time @@ -176,10 +181,10 @@ def mod_time(self): @mod_time.setter def mod_time(self, mod_time): """ - Sets the mod_time of this TechsupportmanagementDownload. + Sets the mod_time of this HclOperatingSystemVendor. The time when this managed object was last modified. - :param mod_time: The mod_time of this TechsupportmanagementDownload. + :param mod_time: The mod_time of this HclOperatingSystemVendor. :type: datetime """ @@ -188,10 +193,10 @@ def mod_time(self, mod_time): @property def moid(self): """ - Gets the moid of this TechsupportmanagementDownload. + Gets the moid of this HclOperatingSystemVendor. A unique identifier of this Managed Object instance. - :return: The moid of this TechsupportmanagementDownload. + :return: The moid of this HclOperatingSystemVendor. :rtype: str """ return self._moid @@ -199,10 +204,10 @@ def moid(self): @moid.setter def moid(self, moid): """ - Sets the moid of this TechsupportmanagementDownload. + Sets the moid of this HclOperatingSystemVendor. A unique identifier of this Managed Object instance. - :param moid: The moid of this TechsupportmanagementDownload. + :param moid: The moid of this HclOperatingSystemVendor. :type: str """ @@ -211,10 +216,10 @@ def moid(self, moid): @property def object_type(self): """ - Gets the object_type of this TechsupportmanagementDownload. + Gets the object_type of this HclOperatingSystemVendor. The fully-qualified type of this managed object, e.g. the class name. - :return: The object_type of this TechsupportmanagementDownload. + :return: The object_type of this HclOperatingSystemVendor. :rtype: str """ return self._object_type @@ -222,10 +227,10 @@ def object_type(self): @object_type.setter def object_type(self, object_type): """ - Sets the object_type of this TechsupportmanagementDownload. + Sets the object_type of this HclOperatingSystemVendor. The fully-qualified type of this managed object, e.g. the class name. - :param object_type: The object_type of this TechsupportmanagementDownload. + :param object_type: The object_type of this HclOperatingSystemVendor. :type: str """ @@ -234,10 +239,10 @@ def object_type(self, object_type): @property def owners(self): """ - Gets the owners of this TechsupportmanagementDownload. + Gets the owners of this HclOperatingSystemVendor. An array of owners which represent effective ownership of this object. - :return: The owners of this TechsupportmanagementDownload. + :return: The owners of this HclOperatingSystemVendor. :rtype: list[str] """ return self._owners @@ -245,10 +250,10 @@ def owners(self): @owners.setter def owners(self, owners): """ - Sets the owners of this TechsupportmanagementDownload. + Sets the owners of this HclOperatingSystemVendor. An array of owners which represent effective ownership of this object. - :param owners: The owners of this TechsupportmanagementDownload. + :param owners: The owners of this HclOperatingSystemVendor. :type: list[str] """ @@ -257,22 +262,22 @@ def owners(self, owners): @property def parent(self): """ - Gets the parent of this TechsupportmanagementDownload. + Gets the parent of this HclOperatingSystemVendor. The direct ancestor of this managed object in the containment hierarchy. - :return: The parent of this TechsupportmanagementDownload. - :rtype: MoMoRef + :return: The parent of this HclOperatingSystemVendor. + :rtype: MoBaseMoRef """ return self._parent @parent.setter def parent(self, parent): """ - Sets the parent of this TechsupportmanagementDownload. + Sets the parent of this HclOperatingSystemVendor. The direct ancestor of this managed object in the containment hierarchy. - :param parent: The parent of this TechsupportmanagementDownload. - :type: MoMoRef + :param parent: The parent of this HclOperatingSystemVendor. + :type: MoBaseMoRef """ self._parent = parent @@ -280,10 +285,10 @@ def parent(self, parent): @property def tags(self): """ - Gets the tags of this TechsupportmanagementDownload. - An array of tags, which allow to add key, value meta-data to managed objects. + Gets the tags of this HclOperatingSystemVendor. + An array of tags, which allow to add key, value meta-data to managed objects. - :return: The tags of this TechsupportmanagementDownload. + :return: The tags of this HclOperatingSystemVendor. :rtype: list[MoTag] """ return self._tags @@ -291,35 +296,60 @@ def tags(self): @tags.setter def tags(self, tags): """ - Sets the tags of this TechsupportmanagementDownload. - An array of tags, which allow to add key, value meta-data to managed objects. + Sets the tags of this HclOperatingSystemVendor. + An array of tags, which allow to add key, value meta-data to managed objects. - :param tags: The tags of this TechsupportmanagementDownload. + :param tags: The tags of this HclOperatingSystemVendor. :type: list[MoTag] """ self._tags = tags @property - def tech_support_status(self): + def version_context(self): """ - Gets the tech_support_status of this TechsupportmanagementDownload. + Gets the version_context of this HclOperatingSystemVendor. + The versioning info for this managed object - :return: The tech_support_status of this TechsupportmanagementDownload. - :rtype: MoMoRef + :return: The version_context of this HclOperatingSystemVendor. + :rtype: MoVersionContext """ - return self._tech_support_status + return self._version_context - @tech_support_status.setter - def tech_support_status(self, tech_support_status): + @version_context.setter + def version_context(self, version_context): """ - Sets the tech_support_status of this TechsupportmanagementDownload. + Sets the version_context of this HclOperatingSystemVendor. + The versioning info for this managed object - :param tech_support_status: The tech_support_status of this TechsupportmanagementDownload. - :type: MoMoRef + :param version_context: The version_context of this HclOperatingSystemVendor. + :type: MoVersionContext """ - self._tech_support_status = tech_support_status + self._version_context = version_context + + @property + def name(self): + """ + Gets the name of this HclOperatingSystemVendor. + Name of the vendor of the operating system + + :return: The name of this HclOperatingSystemVendor. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this HclOperatingSystemVendor. + Name of the vendor of the operating system + + :param name: The name of this HclOperatingSystemVendor. + :type: str + """ + + self._name = name def to_dict(self): """ @@ -363,7 +393,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, TechsupportmanagementDownload): + if not isinstance(other, HclOperatingSystemVendor): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/hcl_operating_system_vendor_list.py b/intersight/models/hcl_operating_system_vendor_list.py new file mode 100644 index 00000000..1cd9cc09 --- /dev/null +++ b/intersight/models/hcl_operating_system_vendor_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclOperatingSystemVendorList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[HclOperatingSystemVendor]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + HclOperatingSystemVendorList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this HclOperatingSystemVendorList. + The number of hclOperatingSystemVendors matching your request in total for all pages. + + :return: The count of this HclOperatingSystemVendorList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this HclOperatingSystemVendorList. + The number of hclOperatingSystemVendors matching your request in total for all pages. + + :param count: The count of this HclOperatingSystemVendorList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this HclOperatingSystemVendorList. + The array of hclOperatingSystemVendors matching your request. + + :return: The results of this HclOperatingSystemVendorList. + :rtype: list[HclOperatingSystemVendor] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this HclOperatingSystemVendorList. + The array of hclOperatingSystemVendors matching your request. + + :param results: The results of this HclOperatingSystemVendorList. + :type: list[HclOperatingSystemVendor] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclOperatingSystemVendorList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_operating_system_vendor_ref.py b/intersight/models/hcl_operating_system_vendor_ref.py new file mode 100644 index 00000000..ea96d125 --- /dev/null +++ b/intersight/models/hcl_operating_system_vendor_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclOperatingSystemVendorRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclOperatingSystemVendorRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclOperatingSystemVendorRef. + + :return: The moid of this HclOperatingSystemVendorRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclOperatingSystemVendorRef. + + :param moid: The moid of this HclOperatingSystemVendorRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclOperatingSystemVendorRef. + + :return: The object_type of this HclOperatingSystemVendorRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclOperatingSystemVendorRef. + + :param object_type: The object_type of this HclOperatingSystemVendorRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclOperatingSystemVendorRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_product.py b/intersight/models/hcl_product.py index 8bab9bcf..0fa18d26 100644 --- a/intersight/models/hcl_product.py +++ b/intersight/models/hcl_product.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -121,7 +121,7 @@ def error_code(self, error_code): :param error_code: The error_code of this HclProduct. :type: str """ - allowed_values = ["Success", "Unknown", "InvalidUcsVersion", "UcsVersionServerOSCombinationNotSupported", "ProductNotSupported", "DriverNameNotSupported", "FirmwareNotSupported", "DriverVersionNotSupported", "FirmwareDriverVersionCombinationNotSupported", "FirmwareAndDriverNotSupported", "InternalError", "MarshallingError"] + allowed_values = ["Success", "Unknown", "UnknownServer", "InvalidUcsVersion", "ProcessorNotSupported", "OSNotSupported", "UCSVersionNotSupported", "UcsVersionServerOSCombinationNotSupported", "ProductUnknown", "ProductNotSupported", "DriverNameNotSupported", "FirmwareVersionNotSupported", "DriverVersionNotSupported", "FirmwareVersionDriverVersionCombinationNotSupported", "FirmwareVersionAndDriverVersionNotSupported", "FirmwareVersionAndDriverNameNotSupported", "InternalError", "MarshallingError"] if error_code not in allowed_values: raise ValueError( "Invalid value for `error_code` ({0}), must be one of {1}" diff --git a/intersight/models/hcl_product_ref.py b/intersight/models/hcl_product_ref.py new file mode 100644 index 00000000..c53ecb70 --- /dev/null +++ b/intersight/models/hcl_product_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclProductRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclProductRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclProductRef. + + :return: The moid of this HclProductRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclProductRef. + + :param moid: The moid of this HclProductRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclProductRef. + + :return: The object_type of this HclProductRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclProductRef. + + :param object_type: The object_type of this HclProductRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclProductRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/extsearch_import.py b/intersight/models/hcl_service_status.py similarity index 51% rename from intersight/models/extsearch_import.py rename to intersight/models/hcl_service_status.py index c54356f9..e65c44a3 100644 --- a/intersight/models/extsearch_import.py +++ b/intersight/models/hcl_service_status.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class ExtsearchImport(object): +class HclServiceStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,19 +32,19 @@ class ExtsearchImport(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'import_since': 'datetime', - 'import_status': 'str', - 'import_type': 'str', - 'index_name': 'str', - 'index_types': 'list[str]' + 'version_context': 'MoVersionContext', + 'identity': 'str', + 'last_hcl_data_modified_time': 'datetime', + 'last_imported_data_checksum': 'str', + 'status': 'str' } attribute_map = { @@ -57,16 +57,16 @@ class ExtsearchImport(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', - 'import_since': 'ImportSince', - 'import_status': 'ImportStatus', - 'import_type': 'ImportType', - 'index_name': 'IndexName', - 'index_types': 'IndexTypes' + 'version_context': 'VersionContext', + 'identity': 'Identity', + 'last_hcl_data_modified_time': 'LastHclDataModifiedTime', + 'last_imported_data_checksum': 'LastImportedDataChecksum', + 'status': 'Status' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, import_since=None, import_status=None, import_type=None, index_name=None, index_types=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, identity=None, last_hcl_data_modified_time=None, last_imported_data_checksum=None, status='Unknown'): """ - ExtsearchImport - a model defined in Swagger + HclServiceStatus - a model defined in Swagger """ self._account_moid = None @@ -78,11 +78,11 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None - self._import_since = None - self._import_status = None - self._import_type = None - self._index_name = None - self._index_types = None + self._version_context = None + self._identity = None + self._last_hcl_data_modified_time = None + self._last_imported_data_checksum = None + self._status = None if account_moid is not None: self.account_moid = account_moid @@ -102,24 +102,24 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags - if import_since is not None: - self.import_since = import_since - if import_status is not None: - self.import_status = import_status - if import_type is not None: - self.import_type = import_type - if index_name is not None: - self.index_name = index_name - if index_types is not None: - self.index_types = index_types + if version_context is not None: + self.version_context = version_context + if identity is not None: + self.identity = identity + if last_hcl_data_modified_time is not None: + self.last_hcl_data_modified_time = last_hcl_data_modified_time + if last_imported_data_checksum is not None: + self.last_imported_data_checksum = last_imported_data_checksum + if status is not None: + self.status = status @property def account_moid(self): """ - Gets the account_moid of this ExtsearchImport. + Gets the account_moid of this HclServiceStatus. The Account ID for this managed object. - :return: The account_moid of this ExtsearchImport. + :return: The account_moid of this HclServiceStatus. :rtype: str """ return self._account_moid @@ -127,10 +127,10 @@ def account_moid(self): @account_moid.setter def account_moid(self, account_moid): """ - Sets the account_moid of this ExtsearchImport. + Sets the account_moid of this HclServiceStatus. The Account ID for this managed object. - :param account_moid: The account_moid of this ExtsearchImport. + :param account_moid: The account_moid of this HclServiceStatus. :type: str """ @@ -139,22 +139,22 @@ def account_moid(self, account_moid): @property def ancestors(self): """ - Gets the ancestors of this ExtsearchImport. + Gets the ancestors of this HclServiceStatus. Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - :return: The ancestors of this ExtsearchImport. - :rtype: list[MoMoRef] + :return: The ancestors of this HclServiceStatus. + :rtype: list[MoBaseMoRef] """ return self._ancestors @ancestors.setter def ancestors(self, ancestors): """ - Sets the ancestors of this ExtsearchImport. + Sets the ancestors of this HclServiceStatus. Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - :param ancestors: The ancestors of this ExtsearchImport. - :type: list[MoMoRef] + :param ancestors: The ancestors of this HclServiceStatus. + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -162,10 +162,10 @@ def ancestors(self, ancestors): @property def create_time(self): """ - Gets the create_time of this ExtsearchImport. + Gets the create_time of this HclServiceStatus. The time when this managed object was created. - :return: The create_time of this ExtsearchImport. + :return: The create_time of this HclServiceStatus. :rtype: datetime """ return self._create_time @@ -173,10 +173,10 @@ def create_time(self): @create_time.setter def create_time(self, create_time): """ - Sets the create_time of this ExtsearchImport. + Sets the create_time of this HclServiceStatus. The time when this managed object was created. - :param create_time: The create_time of this ExtsearchImport. + :param create_time: The create_time of this HclServiceStatus. :type: datetime """ @@ -185,10 +185,10 @@ def create_time(self, create_time): @property def mod_time(self): """ - Gets the mod_time of this ExtsearchImport. + Gets the mod_time of this HclServiceStatus. The time when this managed object was last modified. - :return: The mod_time of this ExtsearchImport. + :return: The mod_time of this HclServiceStatus. :rtype: datetime """ return self._mod_time @@ -196,10 +196,10 @@ def mod_time(self): @mod_time.setter def mod_time(self, mod_time): """ - Sets the mod_time of this ExtsearchImport. + Sets the mod_time of this HclServiceStatus. The time when this managed object was last modified. - :param mod_time: The mod_time of this ExtsearchImport. + :param mod_time: The mod_time of this HclServiceStatus. :type: datetime """ @@ -208,10 +208,10 @@ def mod_time(self, mod_time): @property def moid(self): """ - Gets the moid of this ExtsearchImport. + Gets the moid of this HclServiceStatus. A unique identifier of this Managed Object instance. - :return: The moid of this ExtsearchImport. + :return: The moid of this HclServiceStatus. :rtype: str """ return self._moid @@ -219,10 +219,10 @@ def moid(self): @moid.setter def moid(self, moid): """ - Sets the moid of this ExtsearchImport. + Sets the moid of this HclServiceStatus. A unique identifier of this Managed Object instance. - :param moid: The moid of this ExtsearchImport. + :param moid: The moid of this HclServiceStatus. :type: str """ @@ -231,10 +231,10 @@ def moid(self, moid): @property def object_type(self): """ - Gets the object_type of this ExtsearchImport. + Gets the object_type of this HclServiceStatus. The fully-qualified type of this managed object, e.g. the class name. - :return: The object_type of this ExtsearchImport. + :return: The object_type of this HclServiceStatus. :rtype: str """ return self._object_type @@ -242,10 +242,10 @@ def object_type(self): @object_type.setter def object_type(self, object_type): """ - Sets the object_type of this ExtsearchImport. + Sets the object_type of this HclServiceStatus. The fully-qualified type of this managed object, e.g. the class name. - :param object_type: The object_type of this ExtsearchImport. + :param object_type: The object_type of this HclServiceStatus. :type: str """ @@ -254,10 +254,10 @@ def object_type(self, object_type): @property def owners(self): """ - Gets the owners of this ExtsearchImport. + Gets the owners of this HclServiceStatus. An array of owners which represent effective ownership of this object. - :return: The owners of this ExtsearchImport. + :return: The owners of this HclServiceStatus. :rtype: list[str] """ return self._owners @@ -265,10 +265,10 @@ def owners(self): @owners.setter def owners(self, owners): """ - Sets the owners of this ExtsearchImport. + Sets the owners of this HclServiceStatus. An array of owners which represent effective ownership of this object. - :param owners: The owners of this ExtsearchImport. + :param owners: The owners of this HclServiceStatus. :type: list[str] """ @@ -277,22 +277,22 @@ def owners(self, owners): @property def parent(self): """ - Gets the parent of this ExtsearchImport. + Gets the parent of this HclServiceStatus. The direct ancestor of this managed object in the containment hierarchy. - :return: The parent of this ExtsearchImport. - :rtype: MoMoRef + :return: The parent of this HclServiceStatus. + :rtype: MoBaseMoRef """ return self._parent @parent.setter def parent(self, parent): """ - Sets the parent of this ExtsearchImport. + Sets the parent of this HclServiceStatus. The direct ancestor of this managed object in the containment hierarchy. - :param parent: The parent of this ExtsearchImport. - :type: MoMoRef + :param parent: The parent of this HclServiceStatus. + :type: MoBaseMoRef """ self._parent = parent @@ -300,10 +300,10 @@ def parent(self, parent): @property def tags(self): """ - Gets the tags of this ExtsearchImport. - An array of tags, which allow to add key, value meta-data to managed objects. + Gets the tags of this HclServiceStatus. + An array of tags, which allow to add key, value meta-data to managed objects. - :return: The tags of this ExtsearchImport. + :return: The tags of this HclServiceStatus. :rtype: list[MoTag] """ return self._tags @@ -311,129 +311,135 @@ def tags(self): @tags.setter def tags(self, tags): """ - Sets the tags of this ExtsearchImport. - An array of tags, which allow to add key, value meta-data to managed objects. + Sets the tags of this HclServiceStatus. + An array of tags, which allow to add key, value meta-data to managed objects. - :param tags: The tags of this ExtsearchImport. + :param tags: The tags of this HclServiceStatus. :type: list[MoTag] """ self._tags = tags @property - def import_since(self): + def version_context(self): """ - Gets the import_since of this ExtsearchImport. - Reimport data only that has ModTime greater than what is specified in importSince. When not specified, ModTime filter will not be used. + Gets the version_context of this HclServiceStatus. + The versioning info for this managed object - :return: The import_since of this ExtsearchImport. - :rtype: datetime + :return: The version_context of this HclServiceStatus. + :rtype: MoVersionContext """ - return self._import_since + return self._version_context - @import_since.setter - def import_since(self, import_since): + @version_context.setter + def version_context(self, version_context): """ - Sets the import_since of this ExtsearchImport. - Reimport data only that has ModTime greater than what is specified in importSince. When not specified, ModTime filter will not be used. + Sets the version_context of this HclServiceStatus. + The versioning info for this managed object - :param import_since: The import_since of this ExtsearchImport. - :type: datetime + :param version_context: The version_context of this HclServiceStatus. + :type: MoVersionContext """ - self._import_since = import_since + self._version_context = version_context @property - def import_status(self): + def identity(self): """ - Gets the import_status of this ExtsearchImport. - Current Status of import. Created, Started are possible values. + Gets the identity of this HclServiceStatus. + a field to have as an identifier so that upsert can be used - :return: The import_status of this ExtsearchImport. + :return: The identity of this HclServiceStatus. :rtype: str """ - return self._import_status + return self._identity - @import_status.setter - def import_status(self, import_status): + @identity.setter + def identity(self, identity): """ - Sets the import_status of this ExtsearchImport. - Current Status of import. Created, Started are possible values. + Sets the identity of this HclServiceStatus. + a field to have as an identifier so that upsert can be used - :param import_status: The import_status of this ExtsearchImport. + :param identity: The identity of this HclServiceStatus. :type: str """ - self._import_status = import_status + self._identity = identity @property - def import_type(self): + def last_hcl_data_modified_time(self): """ - Gets the import_type of this ExtsearchImport. - Value that specifies whether to a reimport or create a new index with new schema. reindex and reimport are possible values. When reindex is selected a new index with a newer version will be created in ES and the old index will be deleted. + Gets the last_hcl_data_modified_time of this HclServiceStatus. + the timestamp of the last modified record in the HCL tool database. This value is used to query and get updated records - :return: The import_type of this ExtsearchImport. - :rtype: str + :return: The last_hcl_data_modified_time of this HclServiceStatus. + :rtype: datetime """ - return self._import_type + return self._last_hcl_data_modified_time - @import_type.setter - def import_type(self, import_type): + @last_hcl_data_modified_time.setter + def last_hcl_data_modified_time(self, last_hcl_data_modified_time): """ - Sets the import_type of this ExtsearchImport. - Value that specifies whether to a reimport or create a new index with new schema. reindex and reimport are possible values. When reindex is selected a new index with a newer version will be created in ES and the old index will be deleted. + Sets the last_hcl_data_modified_time of this HclServiceStatus. + the timestamp of the last modified record in the HCL tool database. This value is used to query and get updated records - :param import_type: The import_type of this ExtsearchImport. - :type: str + :param last_hcl_data_modified_time: The last_hcl_data_modified_time of this HclServiceStatus. + :type: datetime """ - self._import_type = import_type + self._last_hcl_data_modified_time = last_hcl_data_modified_time @property - def index_name(self): + def last_imported_data_checksum(self): """ - Gets the index_name of this ExtsearchImport. - Name of the micro-service that this external search index belongs to. For example, dejavu, aurora.. + Gets the last_imported_data_checksum of this HclServiceStatus. + checksum of the data dump used as the base for delta updates - :return: The index_name of this ExtsearchImport. + :return: The last_imported_data_checksum of this HclServiceStatus. :rtype: str """ - return self._index_name + return self._last_imported_data_checksum - @index_name.setter - def index_name(self, index_name): + @last_imported_data_checksum.setter + def last_imported_data_checksum(self, last_imported_data_checksum): """ - Sets the index_name of this ExtsearchImport. - Name of the micro-service that this external search index belongs to. For example, dejavu, aurora.. + Sets the last_imported_data_checksum of this HclServiceStatus. + checksum of the data dump used as the base for delta updates - :param index_name: The index_name of this ExtsearchImport. + :param last_imported_data_checksum: The last_imported_data_checksum of this HclServiceStatus. :type: str """ - self._index_name = index_name + self._last_imported_data_checksum = last_imported_data_checksum @property - def index_types(self): + def status(self): """ - Gets the index_types of this ExtsearchImport. - The fully-qualified names of the mo types. For example, \"compute.Blade\". If not specified, reimport will be done on all the mos that have external search enabled. When specified, only those mos will be reimported. + Gets the status of this HclServiceStatus. + status of the service - :return: The index_types of this ExtsearchImport. - :rtype: list[str] + :return: The status of this HclServiceStatus. + :rtype: str """ - return self._index_types + return self._status - @index_types.setter - def index_types(self, index_types): + @status.setter + def status(self, status): """ - Sets the index_types of this ExtsearchImport. - The fully-qualified names of the mo types. For example, \"compute.Blade\". If not specified, reimport will be done on all the mos that have external search enabled. When specified, only those mos will be reimported. + Sets the status of this HclServiceStatus. + status of the service - :param index_types: The index_types of this ExtsearchImport. - :type: list[str] + :param status: The status of this HclServiceStatus. + :type: str """ + allowed_values = ["Unknown", "Initializing", "DataRefreshing", "Active"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) - self._index_types = index_types + self._status = status def to_dict(self): """ @@ -477,7 +483,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, ExtsearchImport): + if not isinstance(other, HclServiceStatus): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/hcl_service_status_list.py b/intersight/models/hcl_service_status_list.py new file mode 100644 index 00000000..ee06bd38 --- /dev/null +++ b/intersight/models/hcl_service_status_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclServiceStatusList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[HclServiceStatus]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + HclServiceStatusList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this HclServiceStatusList. + The number of hclServiceStatuses matching your request in total for all pages. + + :return: The count of this HclServiceStatusList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this HclServiceStatusList. + The number of hclServiceStatuses matching your request in total for all pages. + + :param count: The count of this HclServiceStatusList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this HclServiceStatusList. + The array of hclServiceStatuses matching your request. + + :return: The results of this HclServiceStatusList. + :rtype: list[HclServiceStatus] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this HclServiceStatusList. + The array of hclServiceStatuses matching your request. + + :param results: The results of this HclServiceStatusList. + :type: list[HclServiceStatus] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclServiceStatusList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_service_status_ref.py b/intersight/models/hcl_service_status_ref.py new file mode 100644 index 00000000..f857db74 --- /dev/null +++ b/intersight/models/hcl_service_status_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclServiceStatusRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclServiceStatusRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclServiceStatusRef. + + :return: The moid of this HclServiceStatusRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclServiceStatusRef. + + :param moid: The moid of this HclServiceStatusRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclServiceStatusRef. + + :return: The object_type of this HclServiceStatusRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclServiceStatusRef. + + :param object_type: The object_type of this HclServiceStatusRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclServiceStatusRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_supported_driver_name.py b/intersight/models/hcl_supported_driver_name.py index c6c6709c..b0fb1029 100644 --- a/intersight/models/hcl_supported_driver_name.py +++ b/intersight/models/hcl_supported_driver_name.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class HclSupportedDriverName(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'product_list': 'list[HclProduct]' } @@ -53,10 +54,11 @@ class HclSupportedDriverName(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'product_list': 'ProductList' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, product_list=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, product_list=None): """ HclSupportedDriverName - a model defined in Swagger """ @@ -70,6 +72,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._product_list = None if account_moid is not None: @@ -90,6 +93,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if product_list is not None: self.product_list = product_list @@ -123,7 +128,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HclSupportedDriverName. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -134,7 +139,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HclSupportedDriverName. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -261,7 +266,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HclSupportedDriverName. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -272,7 +277,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HclSupportedDriverName. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -281,7 +286,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this HclSupportedDriverName. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this HclSupportedDriverName. :rtype: list[MoTag] @@ -292,7 +297,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this HclSupportedDriverName. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this HclSupportedDriverName. :type: list[MoTag] @@ -300,6 +305,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this HclSupportedDriverName. + The versioning info for this managed object + + :return: The version_context of this HclSupportedDriverName. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HclSupportedDriverName. + The versioning info for this managed object + + :param version_context: The version_context of this HclSupportedDriverName. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def product_list(self): """ diff --git a/intersight/models/hcl_supported_driver_name_ref.py b/intersight/models/hcl_supported_driver_name_ref.py new file mode 100644 index 00000000..04b54df9 --- /dev/null +++ b/intersight/models/hcl_supported_driver_name_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HclSupportedDriverNameRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HclSupportedDriverNameRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HclSupportedDriverNameRef. + + :return: The moid of this HclSupportedDriverNameRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HclSupportedDriverNameRef. + + :param moid: The moid of this HclSupportedDriverNameRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HclSupportedDriverNameRef. + + :return: The object_type of this HclSupportedDriverNameRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HclSupportedDriverNameRef. + + :param object_type: The object_type of this HclSupportedDriverNameRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HclSupportedDriverNameRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hxdpconnector_hx_inventory_msg_ref.py b/intersight/models/hxdpconnector_hx_inventory_msg_ref.py new file mode 100644 index 00000000..ada11313 --- /dev/null +++ b/intersight/models/hxdpconnector_hx_inventory_msg_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HxdpconnectorHxInventoryMsgRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HxdpconnectorHxInventoryMsgRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HxdpconnectorHxInventoryMsgRef. + + :return: The moid of this HxdpconnectorHxInventoryMsgRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HxdpconnectorHxInventoryMsgRef. + + :param moid: The moid of this HxdpconnectorHxInventoryMsgRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HxdpconnectorHxInventoryMsgRef. + + :return: The object_type of this HxdpconnectorHxInventoryMsgRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HxdpconnectorHxInventoryMsgRef. + + :param object_type: The object_type of this HxdpconnectorHxInventoryMsgRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HxdpconnectorHxInventoryMsgRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_category.py b/intersight/models/hyperflex_abstract_app_setting.py similarity index 65% rename from intersight/models/policy_category.py rename to intersight/models/hyperflex_abstract_app_setting.py index 79765902..b9ae4acc 100644 --- a/intersight/models/policy_category.py +++ b/intersight/models/hyperflex_abstract_app_setting.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class PolicyCategory(object): +class HyperflexAbstractAppSetting(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,73 +31,73 @@ class PolicyCategory(object): and the value is json key in definition. """ swagger_types = { - 'display_label': 'str', - 'name': 'str' + 'name': 'str', + 'value': 'str' } attribute_map = { - 'display_label': 'DisplayLabel', - 'name': 'Name' + 'name': 'Name', + 'value': 'Value' } - def __init__(self, display_label=None, name=None): + def __init__(self, name=None, value=None): """ - PolicyCategory - a model defined in Swagger + HyperflexAbstractAppSetting - a model defined in Swagger """ - self._display_label = None self._name = None + self._value = None - if display_label is not None: - self.display_label = display_label if name is not None: self.name = name + if value is not None: + self.value = value @property - def display_label(self): + def name(self): """ - Gets the display_label of this PolicyCategory. - Display Label for this Category + Gets the name of this HyperflexAbstractAppSetting. + Application setting identifier - :return: The display_label of this PolicyCategory. + :return: The name of this HyperflexAbstractAppSetting. :rtype: str """ - return self._display_label + return self._name - @display_label.setter - def display_label(self, display_label): + @name.setter + def name(self, name): """ - Sets the display_label of this PolicyCategory. - Display Label for this Category + Sets the name of this HyperflexAbstractAppSetting. + Application setting identifier - :param display_label: The display_label of this PolicyCategory. + :param name: The name of this HyperflexAbstractAppSetting. :type: str """ - self._display_label = display_label + self._name = name @property - def name(self): + def value(self): """ - Gets the name of this PolicyCategory. - Category of this Policy + Gets the value of this HyperflexAbstractAppSetting. + Application setting value - :return: The name of this PolicyCategory. + :return: The value of this HyperflexAbstractAppSetting. :rtype: str """ - return self._name + return self._value - @name.setter - def name(self, name): + @value.setter + def value(self, value): """ - Sets the name of this PolicyCategory. - Category of this Policy + Sets the value of this HyperflexAbstractAppSetting. + Application setting value - :param name: The name of this PolicyCategory. + :param value: The value of this HyperflexAbstractAppSetting. :type: str """ - self._name = name + self._value = value def to_dict(self): """ @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, PolicyCategory): + if not isinstance(other, HyperflexAbstractAppSetting): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/hyperflex_abstract_app_setting_ref.py b/intersight/models/hyperflex_abstract_app_setting_ref.py new file mode 100644 index 00000000..c50bf502 --- /dev/null +++ b/intersight/models/hyperflex_abstract_app_setting_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexAbstractAppSettingRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexAbstractAppSettingRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexAbstractAppSettingRef. + + :return: The moid of this HyperflexAbstractAppSettingRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexAbstractAppSettingRef. + + :param moid: The moid of this HyperflexAbstractAppSettingRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexAbstractAppSettingRef. + + :return: The object_type of this HyperflexAbstractAppSettingRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexAbstractAppSettingRef. + + :param object_type: The object_type of this HyperflexAbstractAppSettingRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexAbstractAppSettingRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_alarm.py b/intersight/models/hyperflex_alarm.py index 4bb3da7e..3fcf0e7e 100644 --- a/intersight/models/hyperflex_alarm.py +++ b/intersight/models/hyperflex_alarm.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,16 +32,17 @@ class HyperflexAlarm(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'acknowledged': 'bool', - 'cluster': 'MoMoRef', + 'cluster': 'HyperflexClusterRef', 'description': 'str', 'entity': 'HyperflexManagedObjectReference', 'entity_name': 'str', @@ -61,6 +62,7 @@ class HyperflexAlarm(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'acknowledged': 'Acknowledged', 'cluster': 'Cluster', 'description': 'Description', @@ -72,7 +74,7 @@ class HyperflexAlarm(object): 'triggered_time': 'TriggeredTime' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, acknowledged=None, cluster=None, description=None, entity=None, entity_name=None, key=None, mor=None, status=None, triggered_time=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, acknowledged=None, cluster=None, description=None, entity=None, entity_name=None, key=None, mor=None, status=None, triggered_time=None): """ HyperflexAlarm - a model defined in Swagger """ @@ -86,6 +88,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._acknowledged = None self._cluster = None self._description = None @@ -114,6 +117,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if acknowledged is not None: self.acknowledged = acknowledged if cluster is not None: @@ -163,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexAlarm. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexAlarm. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexAlarm. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexAlarm. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -321,7 +326,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this HyperflexAlarm. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this HyperflexAlarm. :rtype: list[MoTag] @@ -332,7 +337,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this HyperflexAlarm. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this HyperflexAlarm. :type: list[MoTag] @@ -340,6 +345,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this HyperflexAlarm. + The versioning info for this managed object + + :return: The version_context of this HyperflexAlarm. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexAlarm. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexAlarm. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def acknowledged(self): """ @@ -367,7 +395,7 @@ def cluster(self): Gets the cluster of this HyperflexAlarm. :return: The cluster of this HyperflexAlarm. - :rtype: MoMoRef + :rtype: HyperflexClusterRef """ return self._cluster @@ -377,7 +405,7 @@ def cluster(self, cluster): Sets the cluster of this HyperflexAlarm. :param cluster: The cluster of this HyperflexAlarm. - :type: MoMoRef + :type: HyperflexClusterRef """ self._cluster = cluster diff --git a/intersight/models/hyperflex_alarm_list.py b/intersight/models/hyperflex_alarm_list.py index 3a97a74a..c2eb9fa0 100644 --- a/intersight/models/hyperflex_alarm_list.py +++ b/intersight/models/hyperflex_alarm_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_alarm_ref.py b/intersight/models/hyperflex_alarm_ref.py new file mode 100644 index 00000000..1de0caa7 --- /dev/null +++ b/intersight/models/hyperflex_alarm_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexAlarmRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexAlarmRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexAlarmRef. + + :return: The moid of this HyperflexAlarmRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexAlarmRef. + + :param moid: The moid of this HyperflexAlarmRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexAlarmRef. + + :return: The object_type of this HyperflexAlarmRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexAlarmRef. + + :param object_type: The object_type of this HyperflexAlarmRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexAlarmRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_app_catalog.py b/intersight/models/hyperflex_app_catalog.py new file mode 100644 index 00000000..07fb4501 --- /dev/null +++ b/intersight/models/hyperflex_app_catalog.py @@ -0,0 +1,517 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexAppCatalog(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'feature_limit_external': 'HyperflexFeatureLimitExternalRef', + 'feature_limit_internal': 'HyperflexFeatureLimitInternalRef', + 'hxdp_versions': 'list[HyperflexHxdpVersionRef]', + 'server_firmware_version': 'HyperflexServerFirmwareVersionRef', + 'server_model': 'HyperflexServerModelRef' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'feature_limit_external': 'FeatureLimitExternal', + 'feature_limit_internal': 'FeatureLimitInternal', + 'hxdp_versions': 'HxdpVersions', + 'server_firmware_version': 'ServerFirmwareVersion', + 'server_model': 'ServerModel' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, feature_limit_external=None, feature_limit_internal=None, hxdp_versions=None, server_firmware_version=None, server_model=None): + """ + HyperflexAppCatalog - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._feature_limit_external = None + self._feature_limit_internal = None + self._hxdp_versions = None + self._server_firmware_version = None + self._server_model = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if feature_limit_external is not None: + self.feature_limit_external = feature_limit_external + if feature_limit_internal is not None: + self.feature_limit_internal = feature_limit_internal + if hxdp_versions is not None: + self.hxdp_versions = hxdp_versions + if server_firmware_version is not None: + self.server_firmware_version = server_firmware_version + if server_model is not None: + self.server_model = server_model + + @property + def account_moid(self): + """ + Gets the account_moid of this HyperflexAppCatalog. + The Account ID for this managed object. + + :return: The account_moid of this HyperflexAppCatalog. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this HyperflexAppCatalog. + The Account ID for this managed object. + + :param account_moid: The account_moid of this HyperflexAppCatalog. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this HyperflexAppCatalog. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this HyperflexAppCatalog. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this HyperflexAppCatalog. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this HyperflexAppCatalog. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this HyperflexAppCatalog. + The time when this managed object was created. + + :return: The create_time of this HyperflexAppCatalog. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this HyperflexAppCatalog. + The time when this managed object was created. + + :param create_time: The create_time of this HyperflexAppCatalog. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this HyperflexAppCatalog. + The time when this managed object was last modified. + + :return: The mod_time of this HyperflexAppCatalog. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this HyperflexAppCatalog. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this HyperflexAppCatalog. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this HyperflexAppCatalog. + A unique identifier of this Managed Object instance. + + :return: The moid of this HyperflexAppCatalog. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexAppCatalog. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this HyperflexAppCatalog. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexAppCatalog. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this HyperflexAppCatalog. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexAppCatalog. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this HyperflexAppCatalog. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this HyperflexAppCatalog. + An array of owners which represent effective ownership of this object. + + :return: The owners of this HyperflexAppCatalog. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this HyperflexAppCatalog. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this HyperflexAppCatalog. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this HyperflexAppCatalog. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this HyperflexAppCatalog. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this HyperflexAppCatalog. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this HyperflexAppCatalog. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this HyperflexAppCatalog. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this HyperflexAppCatalog. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this HyperflexAppCatalog. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this HyperflexAppCatalog. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this HyperflexAppCatalog. + The versioning info for this managed object + + :return: The version_context of this HyperflexAppCatalog. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexAppCatalog. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexAppCatalog. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def feature_limit_external(self): + """ + Gets the feature_limit_external of this HyperflexAppCatalog. + HyperFlex feature limits that are available to end users + + :return: The feature_limit_external of this HyperflexAppCatalog. + :rtype: HyperflexFeatureLimitExternalRef + """ + return self._feature_limit_external + + @feature_limit_external.setter + def feature_limit_external(self, feature_limit_external): + """ + Sets the feature_limit_external of this HyperflexAppCatalog. + HyperFlex feature limits that are available to end users + + :param feature_limit_external: The feature_limit_external of this HyperflexAppCatalog. + :type: HyperflexFeatureLimitExternalRef + """ + + self._feature_limit_external = feature_limit_external + + @property + def feature_limit_internal(self): + """ + Gets the feature_limit_internal of this HyperflexAppCatalog. + HyperFlex feature limits for internal system use + + :return: The feature_limit_internal of this HyperflexAppCatalog. + :rtype: HyperflexFeatureLimitInternalRef + """ + return self._feature_limit_internal + + @feature_limit_internal.setter + def feature_limit_internal(self, feature_limit_internal): + """ + Sets the feature_limit_internal of this HyperflexAppCatalog. + HyperFlex feature limits for internal system use + + :param feature_limit_internal: The feature_limit_internal of this HyperflexAppCatalog. + :type: HyperflexFeatureLimitInternalRef + """ + + self._feature_limit_internal = feature_limit_internal + + @property + def hxdp_versions(self): + """ + Gets the hxdp_versions of this HyperflexAppCatalog. + List of supported HyperFlex Data Platform versions + + :return: The hxdp_versions of this HyperflexAppCatalog. + :rtype: list[HyperflexHxdpVersionRef] + """ + return self._hxdp_versions + + @hxdp_versions.setter + def hxdp_versions(self, hxdp_versions): + """ + Sets the hxdp_versions of this HyperflexAppCatalog. + List of supported HyperFlex Data Platform versions + + :param hxdp_versions: The hxdp_versions of this HyperflexAppCatalog. + :type: list[HyperflexHxdpVersionRef] + """ + + self._hxdp_versions = hxdp_versions + + @property + def server_firmware_version(self): + """ + Gets the server_firmware_version of this HyperflexAppCatalog. + Supported server firmware bundle + + :return: The server_firmware_version of this HyperflexAppCatalog. + :rtype: HyperflexServerFirmwareVersionRef + """ + return self._server_firmware_version + + @server_firmware_version.setter + def server_firmware_version(self, server_firmware_version): + """ + Sets the server_firmware_version of this HyperflexAppCatalog. + Supported server firmware bundle + + :param server_firmware_version: The server_firmware_version of this HyperflexAppCatalog. + :type: HyperflexServerFirmwareVersionRef + """ + + self._server_firmware_version = server_firmware_version + + @property + def server_model(self): + """ + Gets the server_model of this HyperflexAppCatalog. + Supported server models in regex format + + :return: The server_model of this HyperflexAppCatalog. + :rtype: HyperflexServerModelRef + """ + return self._server_model + + @server_model.setter + def server_model(self, server_model): + """ + Sets the server_model of this HyperflexAppCatalog. + Supported server models in regex format + + :param server_model: The server_model of this HyperflexAppCatalog. + :type: HyperflexServerModelRef + """ + + self._server_model = server_model + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexAppCatalog): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_app_catalog_list.py b/intersight/models/hyperflex_app_catalog_list.py new file mode 100644 index 00000000..88d1d72f --- /dev/null +++ b/intersight/models/hyperflex_app_catalog_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexAppCatalogList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[HyperflexAppCatalog]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + HyperflexAppCatalogList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this HyperflexAppCatalogList. + The number of hyperflexAppCatalogs matching your request in total for all pages. + + :return: The count of this HyperflexAppCatalogList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this HyperflexAppCatalogList. + The number of hyperflexAppCatalogs matching your request in total for all pages. + + :param count: The count of this HyperflexAppCatalogList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this HyperflexAppCatalogList. + The array of hyperflexAppCatalogs matching your request. + + :return: The results of this HyperflexAppCatalogList. + :rtype: list[HyperflexAppCatalog] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this HyperflexAppCatalogList. + The array of hyperflexAppCatalogs matching your request. + + :param results: The results of this HyperflexAppCatalogList. + :type: list[HyperflexAppCatalog] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexAppCatalogList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_app_catalog_ref.py b/intersight/models/hyperflex_app_catalog_ref.py new file mode 100644 index 00000000..afe19b39 --- /dev/null +++ b/intersight/models/hyperflex_app_catalog_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexAppCatalogRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexAppCatalogRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexAppCatalogRef. + + :return: The moid of this HyperflexAppCatalogRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexAppCatalogRef. + + :param moid: The moid of this HyperflexAppCatalogRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexAppCatalogRef. + + :return: The object_type of this HyperflexAppCatalogRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexAppCatalogRef. + + :param object_type: The object_type of this HyperflexAppCatalogRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexAppCatalogRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_app_setting_constraint.py b/intersight/models/hyperflex_app_setting_constraint.py new file mode 100644 index 00000000..6b3b6d93 --- /dev/null +++ b/intersight/models/hyperflex_app_setting_constraint.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexAppSettingConstraint(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'hxdp_version': 'str', + 'hypervisor_type': 'str', + 'mgmt_platform': 'str', + 'server_model': 'str' + } + + attribute_map = { + 'hxdp_version': 'HxdpVersion', + 'hypervisor_type': 'HypervisorType', + 'mgmt_platform': 'MgmtPlatform', + 'server_model': 'ServerModel' + } + + def __init__(self, hxdp_version=None, hypervisor_type='ESXi', mgmt_platform='FI', server_model=None): + """ + HyperflexAppSettingConstraint - a model defined in Swagger + """ + + self._hxdp_version = None + self._hypervisor_type = None + self._mgmt_platform = None + self._server_model = None + + if hxdp_version is not None: + self.hxdp_version = hxdp_version + if hypervisor_type is not None: + self.hypervisor_type = hypervisor_type + if mgmt_platform is not None: + self.mgmt_platform = mgmt_platform + if server_model is not None: + self.server_model = server_model + + @property + def hxdp_version(self): + """ + Gets the hxdp_version of this HyperflexAppSettingConstraint. + HyperFlex Data Platform version in regex format + + :return: The hxdp_version of this HyperflexAppSettingConstraint. + :rtype: str + """ + return self._hxdp_version + + @hxdp_version.setter + def hxdp_version(self, hxdp_version): + """ + Sets the hxdp_version of this HyperflexAppSettingConstraint. + HyperFlex Data Platform version in regex format + + :param hxdp_version: The hxdp_version of this HyperflexAppSettingConstraint. + :type: str + """ + + self._hxdp_version = hxdp_version + + @property + def hypervisor_type(self): + """ + Gets the hypervisor_type of this HyperflexAppSettingConstraint. + Hypervisor type for the HyperFlex cluster + + :return: The hypervisor_type of this HyperflexAppSettingConstraint. + :rtype: str + """ + return self._hypervisor_type + + @hypervisor_type.setter + def hypervisor_type(self, hypervisor_type): + """ + Sets the hypervisor_type of this HyperflexAppSettingConstraint. + Hypervisor type for the HyperFlex cluster + + :param hypervisor_type: The hypervisor_type of this HyperflexAppSettingConstraint. + :type: str + """ + allowed_values = ["ESXi"] + if hypervisor_type not in allowed_values: + raise ValueError( + "Invalid value for `hypervisor_type` ({0}), must be one of {1}" + .format(hypervisor_type, allowed_values) + ) + + self._hypervisor_type = hypervisor_type + + @property + def mgmt_platform(self): + """ + Gets the mgmt_platform of this HyperflexAppSettingConstraint. + Management platform for the Hyperflex Cluster + + :return: The mgmt_platform of this HyperflexAppSettingConstraint. + :rtype: str + """ + return self._mgmt_platform + + @mgmt_platform.setter + def mgmt_platform(self, mgmt_platform): + """ + Sets the mgmt_platform of this HyperflexAppSettingConstraint. + Management platform for the Hyperflex Cluster + + :param mgmt_platform: The mgmt_platform of this HyperflexAppSettingConstraint. + :type: str + """ + allowed_values = ["FI", "EDGE"] + if mgmt_platform not in allowed_values: + raise ValueError( + "Invalid value for `mgmt_platform` ({0}), must be one of {1}" + .format(mgmt_platform, allowed_values) + ) + + self._mgmt_platform = mgmt_platform + + @property + def server_model(self): + """ + Gets the server_model of this HyperflexAppSettingConstraint. + Supported server models in regex format + + :return: The server_model of this HyperflexAppSettingConstraint. + :rtype: str + """ + return self._server_model + + @server_model.setter + def server_model(self, server_model): + """ + Sets the server_model of this HyperflexAppSettingConstraint. + Supported server models in regex format + + :param server_model: The server_model of this HyperflexAppSettingConstraint. + :type: str + """ + + self._server_model = server_model + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexAppSettingConstraint): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_app_setting_constraint_ref.py b/intersight/models/hyperflex_app_setting_constraint_ref.py new file mode 100644 index 00000000..807f9d94 --- /dev/null +++ b/intersight/models/hyperflex_app_setting_constraint_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexAppSettingConstraintRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexAppSettingConstraintRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexAppSettingConstraintRef. + + :return: The moid of this HyperflexAppSettingConstraintRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexAppSettingConstraintRef. + + :param moid: The moid of this HyperflexAppSettingConstraintRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexAppSettingConstraintRef. + + :return: The object_type of this HyperflexAppSettingConstraintRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexAppSettingConstraintRef. + + :param object_type: The object_type of this HyperflexAppSettingConstraintRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexAppSettingConstraintRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_auto_support_policy.py b/intersight/models/hyperflex_auto_support_policy.py index e5d5837b..0fc842d0 100644 --- a/intersight/models/hyperflex_auto_support_policy.py +++ b/intersight/models/hyperflex_auto_support_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,19 +32,20 @@ class HyperflexAutoSupportPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', 'admin_state': 'bool', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', + 'organization': 'IamAccountRef', 'service_ticket_receipient': 'str' } @@ -58,15 +59,16 @@ class HyperflexAutoSupportPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'admin_state': 'AdminState', 'cluster_profiles': 'ClusterProfiles', + 'organization': 'Organization', 'service_ticket_receipient': 'ServiceTicketReceipient' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, admin_state=None, cluster_profiles=None, service_ticket_receipient=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, admin_state=None, cluster_profiles=None, organization=None, service_ticket_receipient=None): """ HyperflexAutoSupportPolicy - a model defined in Swagger """ @@ -80,11 +82,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None - self._account = None self._admin_state = None self._cluster_profiles = None + self._organization = None self._service_ticket_receipient = None if account_moid is not None: @@ -105,16 +108,18 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if admin_state is not None: self.admin_state = admin_state if cluster_profiles is not None: self.cluster_profiles = cluster_profiles + if organization is not None: + self.organization = organization if service_ticket_receipient is not None: self.service_ticket_receipient = service_ticket_receipient @@ -148,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexAutoSupportPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexAutoSupportPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexAutoSupportPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexAutoSupportPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -306,7 +311,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this HyperflexAutoSupportPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this HyperflexAutoSupportPolicy. :rtype: list[MoTag] @@ -317,7 +322,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this HyperflexAutoSupportPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this HyperflexAutoSupportPolicy. :type: list[MoTag] @@ -325,6 +330,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this HyperflexAutoSupportPolicy. + The versioning info for this managed object + + :return: The version_context of this HyperflexAutoSupportPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexAutoSupportPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexAutoSupportPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -371,32 +399,11 @@ def name(self, name): self._name = name - @property - def account(self): - """ - Gets the account of this HyperflexAutoSupportPolicy. - - :return: The account of this HyperflexAutoSupportPolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexAutoSupportPolicy. - - :param account: The account of this HyperflexAutoSupportPolicy. - :type: MoMoRef - """ - - self._account = account - @property def admin_state(self): """ Gets the admin_state of this HyperflexAutoSupportPolicy. - Flag to determine whether Auto Support is enabled or disabled + Enable or disable Auto Support :return: The admin_state of this HyperflexAutoSupportPolicy. :rtype: bool @@ -407,7 +414,7 @@ def admin_state(self): def admin_state(self, admin_state): """ Sets the admin_state of this HyperflexAutoSupportPolicy. - Flag to determine whether Auto Support is enabled or disabled + Enable or disable Auto Support :param admin_state: The admin_state of this HyperflexAutoSupportPolicy. :type: bool @@ -419,9 +426,10 @@ def admin_state(self, admin_state): def cluster_profiles(self): """ Gets the cluster_profiles of this HyperflexAutoSupportPolicy. + List of cluster profiles using this policy :return: The cluster_profiles of this HyperflexAutoSupportPolicy. - :rtype: list[MoMoRef] + :rtype: list[HyperflexClusterProfileRef] """ return self._cluster_profiles @@ -429,18 +437,42 @@ def cluster_profiles(self): def cluster_profiles(self, cluster_profiles): """ Sets the cluster_profiles of this HyperflexAutoSupportPolicy. + List of cluster profiles using this policy :param cluster_profiles: The cluster_profiles of this HyperflexAutoSupportPolicy. - :type: list[MoMoRef] + :type: list[HyperflexClusterProfileRef] """ self._cluster_profiles = cluster_profiles + @property + def organization(self): + """ + Gets the organization of this HyperflexAutoSupportPolicy. + Organization + + :return: The organization of this HyperflexAutoSupportPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexAutoSupportPolicy. + Organization + + :param organization: The organization of this HyperflexAutoSupportPolicy. + :type: IamAccountRef + """ + + self._organization = organization + @property def service_ticket_receipient(self): """ Gets the service_ticket_receipient of this HyperflexAutoSupportPolicy. - Designated E-mail Address or E-mail alias to which notifications are sent from HX Data Platform + Email address recipient for support tickets :return: The service_ticket_receipient of this HyperflexAutoSupportPolicy. :rtype: str @@ -451,7 +483,7 @@ def service_ticket_receipient(self): def service_ticket_receipient(self, service_ticket_receipient): """ Sets the service_ticket_receipient of this HyperflexAutoSupportPolicy. - Designated E-mail Address or E-mail alias to which notifications are sent from HX Data Platform + Email address recipient for support tickets :param service_ticket_receipient: The service_ticket_receipient of this HyperflexAutoSupportPolicy. :type: str diff --git a/intersight/models/hyperflex_auto_support_policy_list.py b/intersight/models/hyperflex_auto_support_policy_list.py index 31b8029e..e4e395b1 100644 --- a/intersight/models/hyperflex_auto_support_policy_list.py +++ b/intersight/models/hyperflex_auto_support_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_auto_support_policy_ref.py b/intersight/models/hyperflex_auto_support_policy_ref.py new file mode 100644 index 00000000..285faccc --- /dev/null +++ b/intersight/models/hyperflex_auto_support_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexAutoSupportPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexAutoSupportPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexAutoSupportPolicyRef. + + :return: The moid of this HyperflexAutoSupportPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexAutoSupportPolicyRef. + + :param moid: The moid of this HyperflexAutoSupportPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexAutoSupportPolicyRef. + + :return: The object_type of this HyperflexAutoSupportPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexAutoSupportPolicyRef. + + :param object_type: The object_type of this HyperflexAutoSupportPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexAutoSupportPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_cluster.py b/intersight/models/hyperflex_cluster.py index 03fb701d..7f5f896e 100644 --- a/intersight/models/hyperflex_cluster.py +++ b/intersight/models/hyperflex_cluster.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,16 @@ class HyperflexCluster(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'alarm': 'list[MoMoRef]', + 'version_context': 'MoVersionContext', + 'alarm': 'list[HyperflexAlarmRef]', 'cluster_name': 'str', 'cluster_type': 'int', 'cluster_uuid': 'str', @@ -49,8 +50,10 @@ class HyperflexCluster(object): 'device_id': 'str', 'flt_aggr': 'int', 'hx_version': 'str', + 'hypervisor_type': 'str', 'hypervisor_version': 'str', - 'registered_device': 'MoMoRef', + 'nodes': 'list[HyperflexNodeRef]', + 'registered_device': 'AssetDeviceRegistrationRef', 'summary': 'HyperflexSummary', 'vm_count': 'int' } @@ -65,6 +68,7 @@ class HyperflexCluster(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'alarm': 'Alarm', 'cluster_name': 'ClusterName', 'cluster_type': 'ClusterType', @@ -74,13 +78,15 @@ class HyperflexCluster(object): 'device_id': 'DeviceId', 'flt_aggr': 'FltAggr', 'hx_version': 'HxVersion', + 'hypervisor_type': 'HypervisorType', 'hypervisor_version': 'HypervisorVersion', + 'nodes': 'Nodes', 'registered_device': 'RegisteredDevice', 'summary': 'Summary', 'vm_count': 'VmCount' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, alarm=None, cluster_name=None, cluster_type=None, cluster_uuid=None, compute_node_count=None, converged_node_count=None, device_id=None, flt_aggr=None, hx_version=None, hypervisor_version=None, registered_device=None, summary=None, vm_count=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, alarm=None, cluster_name=None, cluster_type=None, cluster_uuid=None, compute_node_count=None, converged_node_count=None, device_id=None, flt_aggr=None, hx_version=None, hypervisor_type='Unknown', hypervisor_version=None, nodes=None, registered_device=None, summary=None, vm_count=None): """ HyperflexCluster - a model defined in Swagger """ @@ -94,6 +100,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._alarm = None self._cluster_name = None self._cluster_type = None @@ -103,7 +110,9 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._device_id = None self._flt_aggr = None self._hx_version = None + self._hypervisor_type = None self._hypervisor_version = None + self._nodes = None self._registered_device = None self._summary = None self._vm_count = None @@ -126,6 +135,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if alarm is not None: self.alarm = alarm if cluster_name is not None: @@ -144,8 +155,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.flt_aggr = flt_aggr if hx_version is not None: self.hx_version = hx_version + if hypervisor_type is not None: + self.hypervisor_type = hypervisor_type if hypervisor_version is not None: self.hypervisor_version = hypervisor_version + if nodes is not None: + self.nodes = nodes if registered_device is not None: self.registered_device = registered_device if summary is not None: @@ -183,7 +198,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexCluster. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -194,7 +209,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexCluster. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -321,7 +336,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexCluster. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -332,7 +347,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexCluster. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -341,7 +356,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this HyperflexCluster. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this HyperflexCluster. :rtype: list[MoTag] @@ -352,7 +367,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this HyperflexCluster. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this HyperflexCluster. :type: list[MoTag] @@ -360,13 +375,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this HyperflexCluster. + The versioning info for this managed object + + :return: The version_context of this HyperflexCluster. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexCluster. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexCluster. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def alarm(self): """ Gets the alarm of this HyperflexCluster. :return: The alarm of this HyperflexCluster. - :rtype: list[MoMoRef] + :rtype: list[HyperflexAlarmRef] """ return self._alarm @@ -376,7 +414,7 @@ def alarm(self, alarm): Sets the alarm of this HyperflexCluster. :param alarm: The alarm of this HyperflexCluster. - :type: list[MoMoRef] + :type: list[HyperflexAlarmRef] """ self._alarm = alarm @@ -549,6 +587,33 @@ def hx_version(self, hx_version): self._hx_version = hx_version + @property + def hypervisor_type(self): + """ + Gets the hypervisor_type of this HyperflexCluster. + + :return: The hypervisor_type of this HyperflexCluster. + :rtype: str + """ + return self._hypervisor_type + + @hypervisor_type.setter + def hypervisor_type(self, hypervisor_type): + """ + Sets the hypervisor_type of this HyperflexCluster. + + :param hypervisor_type: The hypervisor_type of this HyperflexCluster. + :type: str + """ + allowed_values = ["Unknown", "HyperV", "ESXi"] + if hypervisor_type not in allowed_values: + raise ValueError( + "Invalid value for `hypervisor_type` ({0}), must be one of {1}" + .format(hypervisor_type, allowed_values) + ) + + self._hypervisor_type = hypervisor_type + @property def hypervisor_version(self): """ @@ -570,13 +635,34 @@ def hypervisor_version(self, hypervisor_version): self._hypervisor_version = hypervisor_version + @property + def nodes(self): + """ + Gets the nodes of this HyperflexCluster. + + :return: The nodes of this HyperflexCluster. + :rtype: list[HyperflexNodeRef] + """ + return self._nodes + + @nodes.setter + def nodes(self, nodes): + """ + Sets the nodes of this HyperflexCluster. + + :param nodes: The nodes of this HyperflexCluster. + :type: list[HyperflexNodeRef] + """ + + self._nodes = nodes + @property def registered_device(self): """ Gets the registered_device of this HyperflexCluster. :return: The registered_device of this HyperflexCluster. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -586,7 +672,7 @@ def registered_device(self, registered_device): Sets the registered_device of this HyperflexCluster. :param registered_device: The registered_device of this HyperflexCluster. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/hyperflex_cluster_list.py b/intersight/models/hyperflex_cluster_list.py index 70294b3f..5f98cda8 100644 --- a/intersight/models/hyperflex_cluster_list.py +++ b/intersight/models/hyperflex_cluster_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_cluster_network_policy.py b/intersight/models/hyperflex_cluster_network_policy.py index 3a1e90d6..f03ba961 100644 --- a/intersight/models/hyperflex_cluster_network_policy.py +++ b/intersight/models/hyperflex_cluster_network_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,21 @@ class HyperflexClusterNetworkPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', 'jumbo_frame': 'bool', 'mgmt_vlan': 'HyperflexNamedVlan', + 'organization': 'IamAccountRef', 'vm_migration_vlan': 'HyperflexNamedVlan', 'vm_network_vlans': 'list[HyperflexNamedVlan]' } @@ -60,17 +61,18 @@ class HyperflexClusterNetworkPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'cluster_profiles': 'ClusterProfiles', 'jumbo_frame': 'JumboFrame', 'mgmt_vlan': 'MgmtVlan', + 'organization': 'Organization', 'vm_migration_vlan': 'VmMigrationVlan', 'vm_network_vlans': 'VmNetworkVlans' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, cluster_profiles=None, jumbo_frame=None, mgmt_vlan=None, vm_migration_vlan=None, vm_network_vlans=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, cluster_profiles=None, jumbo_frame=None, mgmt_vlan=None, organization=None, vm_migration_vlan=None, vm_network_vlans=None): """ HyperflexClusterNetworkPolicy - a model defined in Swagger """ @@ -84,12 +86,13 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None - self._account = None self._cluster_profiles = None self._jumbo_frame = None self._mgmt_vlan = None + self._organization = None self._vm_migration_vlan = None self._vm_network_vlans = None @@ -111,18 +114,20 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if cluster_profiles is not None: self.cluster_profiles = cluster_profiles if jumbo_frame is not None: self.jumbo_frame = jumbo_frame if mgmt_vlan is not None: self.mgmt_vlan = mgmt_vlan + if organization is not None: + self.organization = organization if vm_migration_vlan is not None: self.vm_migration_vlan = vm_migration_vlan if vm_network_vlans is not None: @@ -158,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexClusterNetworkPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexClusterNetworkPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexClusterNetworkPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexClusterNetworkPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -316,7 +321,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this HyperflexClusterNetworkPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this HyperflexClusterNetworkPolicy. :rtype: list[MoTag] @@ -327,7 +332,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this HyperflexClusterNetworkPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this HyperflexClusterNetworkPolicy. :type: list[MoTag] @@ -335,6 +340,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this HyperflexClusterNetworkPolicy. + The versioning info for this managed object + + :return: The version_context of this HyperflexClusterNetworkPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexClusterNetworkPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexClusterNetworkPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -381,34 +409,14 @@ def name(self, name): self._name = name - @property - def account(self): - """ - Gets the account of this HyperflexClusterNetworkPolicy. - - :return: The account of this HyperflexClusterNetworkPolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexClusterNetworkPolicy. - - :param account: The account of this HyperflexClusterNetworkPolicy. - :type: MoMoRef - """ - - self._account = account - @property def cluster_profiles(self): """ Gets the cluster_profiles of this HyperflexClusterNetworkPolicy. + List of cluster profiles using this policy :return: The cluster_profiles of this HyperflexClusterNetworkPolicy. - :rtype: list[MoMoRef] + :rtype: list[HyperflexClusterProfileRef] """ return self._cluster_profiles @@ -416,9 +424,10 @@ def cluster_profiles(self): def cluster_profiles(self, cluster_profiles): """ Sets the cluster_profiles of this HyperflexClusterNetworkPolicy. + List of cluster profiles using this policy :param cluster_profiles: The cluster_profiles of this HyperflexClusterNetworkPolicy. - :type: list[MoMoRef] + :type: list[HyperflexClusterProfileRef] """ self._cluster_profiles = cluster_profiles @@ -427,7 +436,7 @@ def cluster_profiles(self, cluster_profiles): def jumbo_frame(self): """ Gets the jumbo_frame of this HyperflexClusterNetworkPolicy. - Flag to indicate whether Jumbo Frames are enabled or disabled + Enable or disable Jumbo frames :return: The jumbo_frame of this HyperflexClusterNetworkPolicy. :rtype: bool @@ -438,7 +447,7 @@ def jumbo_frame(self): def jumbo_frame(self, jumbo_frame): """ Sets the jumbo_frame of this HyperflexClusterNetworkPolicy. - Flag to indicate whether Jumbo Frames are enabled or disabled + Enable or disable Jumbo frames :param jumbo_frame: The jumbo_frame of this HyperflexClusterNetworkPolicy. :type: bool @@ -450,7 +459,7 @@ def jumbo_frame(self, jumbo_frame): def mgmt_vlan(self): """ Gets the mgmt_vlan of this HyperflexClusterNetworkPolicy. - Represents the VLAN for Management traffic + Management VLAN :return: The mgmt_vlan of this HyperflexClusterNetworkPolicy. :rtype: HyperflexNamedVlan @@ -461,7 +470,7 @@ def mgmt_vlan(self): def mgmt_vlan(self, mgmt_vlan): """ Sets the mgmt_vlan of this HyperflexClusterNetworkPolicy. - Represents the VLAN for Management traffic + Management VLAN :param mgmt_vlan: The mgmt_vlan of this HyperflexClusterNetworkPolicy. :type: HyperflexNamedVlan @@ -469,11 +478,34 @@ def mgmt_vlan(self, mgmt_vlan): self._mgmt_vlan = mgmt_vlan + @property + def organization(self): + """ + Gets the organization of this HyperflexClusterNetworkPolicy. + Organization + + :return: The organization of this HyperflexClusterNetworkPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexClusterNetworkPolicy. + Organization + + :param organization: The organization of this HyperflexClusterNetworkPolicy. + :type: IamAccountRef + """ + + self._organization = organization + @property def vm_migration_vlan(self): """ Gets the vm_migration_vlan of this HyperflexClusterNetworkPolicy. - Represents the VLAN for VM migration traffic + VM migration VLAN :return: The vm_migration_vlan of this HyperflexClusterNetworkPolicy. :rtype: HyperflexNamedVlan @@ -484,7 +516,7 @@ def vm_migration_vlan(self): def vm_migration_vlan(self, vm_migration_vlan): """ Sets the vm_migration_vlan of this HyperflexClusterNetworkPolicy. - Represents the VLAN for VM migration traffic + VM migration VLAN :param vm_migration_vlan: The vm_migration_vlan of this HyperflexClusterNetworkPolicy. :type: HyperflexNamedVlan @@ -496,7 +528,7 @@ def vm_migration_vlan(self, vm_migration_vlan): def vm_network_vlans(self): """ Gets the vm_network_vlans of this HyperflexClusterNetworkPolicy. - List of VLANs for VM traffic + VM traffic VLANs :return: The vm_network_vlans of this HyperflexClusterNetworkPolicy. :rtype: list[HyperflexNamedVlan] @@ -507,7 +539,7 @@ def vm_network_vlans(self): def vm_network_vlans(self, vm_network_vlans): """ Sets the vm_network_vlans of this HyperflexClusterNetworkPolicy. - List of VLANs for VM traffic + VM traffic VLANs :param vm_network_vlans: The vm_network_vlans of this HyperflexClusterNetworkPolicy. :type: list[HyperflexNamedVlan] diff --git a/intersight/models/hyperflex_cluster_network_policy_list.py b/intersight/models/hyperflex_cluster_network_policy_list.py index 9030541b..3c082b18 100644 --- a/intersight/models/hyperflex_cluster_network_policy_list.py +++ b/intersight/models/hyperflex_cluster_network_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_cluster_network_policy_ref.py b/intersight/models/hyperflex_cluster_network_policy_ref.py new file mode 100644 index 00000000..e09a94d9 --- /dev/null +++ b/intersight/models/hyperflex_cluster_network_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexClusterNetworkPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexClusterNetworkPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexClusterNetworkPolicyRef. + + :return: The moid of this HyperflexClusterNetworkPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexClusterNetworkPolicyRef. + + :param moid: The moid of this HyperflexClusterNetworkPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexClusterNetworkPolicyRef. + + :return: The object_type of this HyperflexClusterNetworkPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexClusterNetworkPolicyRef. + + :param object_type: The object_type of this HyperflexClusterNetworkPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexClusterNetworkPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_cluster_profile.py b/intersight/models/hyperflex_cluster_profile.py index 0d8f8687..2744e983 100644 --- a/intersight/models/hyperflex_cluster_profile.py +++ b/intersight/models/hyperflex_cluster_profile.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,40 +32,44 @@ class HyperflexClusterProfile(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'src_template': 'MoMoRef', + 'src_template': 'PolicyAbstractProfileRef', 'type': 'str', 'action': 'str', 'config_context': 'PolicyConfigContext', - 'account': 'MoMoRef', - 'auto_support': 'MoMoRef', - 'cluster_network': 'MoMoRef', - 'cluster_storage': 'MoMoRef', - 'config_result': 'MoMoRef', + 'auto_support': 'HyperflexAutoSupportPolicyRef', + 'cluster_network': 'HyperflexClusterNetworkPolicyRef', + 'cluster_storage': 'HyperflexClusterStoragePolicyRef', + 'config_result': 'HyperflexConfigResultRef', 'data_ip_address': 'str', - 'ext_fc_storage': 'MoMoRef', - 'ext_iscsi_storage': 'MoMoRef', + 'ext_fc_storage': 'HyperflexExtFcStoragePolicyRef', + 'ext_iscsi_storage': 'HyperflexExtIscsiStoragePolicyRef', + 'hxdp_version': 'str', 'hypervisor_type': 'str', - 'local_credential': 'MoMoRef', + 'local_credential': 'HyperflexLocalCredentialPolicyRef', 'mac_address_prefix': 'str', 'mgmt_ip_address': 'str', 'mgmt_platform': 'str', - 'node_config': 'MoMoRef', - 'node_profile_config': 'list[MoMoRef]', + 'node_config': 'HyperflexNodeConfigPolicyRef', + 'node_profile_config': 'list[HyperflexNodeProfileRef]', + 'organization': 'IamAccountRef', + 'proxy_setting': 'HyperflexProxySettingPolicyRef', 'replication': 'int', 'storage_data_vlan': 'HyperflexNamedVlan', - 'sys_config': 'MoMoRef', - 'ucsm_config': 'MoMoRef', - 'vcenter_config': 'MoMoRef' + 'sys_config': 'HyperflexSysConfigPolicyRef', + 'ucsm_config': 'HyperflexUcsmConfigPolicyRef', + 'vcenter_config': 'HyperflexVcenterConfigPolicyRef', + 'wwxn_prefix': 'str' } attribute_map = { @@ -78,13 +82,13 @@ class HyperflexClusterProfile(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'src_template': 'SrcTemplate', 'type': 'Type', 'action': 'Action', 'config_context': 'ConfigContext', - 'account': 'Account', 'auto_support': 'AutoSupport', 'cluster_network': 'ClusterNetwork', 'cluster_storage': 'ClusterStorage', @@ -92,6 +96,7 @@ class HyperflexClusterProfile(object): 'data_ip_address': 'DataIpAddress', 'ext_fc_storage': 'ExtFcStorage', 'ext_iscsi_storage': 'ExtIscsiStorage', + 'hxdp_version': 'HxdpVersion', 'hypervisor_type': 'HypervisorType', 'local_credential': 'LocalCredential', 'mac_address_prefix': 'MacAddressPrefix', @@ -99,14 +104,17 @@ class HyperflexClusterProfile(object): 'mgmt_platform': 'MgmtPlatform', 'node_config': 'NodeConfig', 'node_profile_config': 'NodeProfileConfig', + 'organization': 'Organization', + 'proxy_setting': 'ProxySetting', 'replication': 'Replication', 'storage_data_vlan': 'StorageDataVlan', 'sys_config': 'SysConfig', 'ucsm_config': 'UcsmConfig', - 'vcenter_config': 'VcenterConfig' + 'vcenter_config': 'VcenterConfig', + 'wwxn_prefix': 'WwxnPrefix' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, src_template=None, type='instance', action=None, config_context=None, account=None, auto_support=None, cluster_network=None, cluster_storage=None, config_result=None, data_ip_address=None, ext_fc_storage=None, ext_iscsi_storage=None, hypervisor_type='ESXi', local_credential=None, mac_address_prefix=None, mgmt_ip_address=None, mgmt_platform='FI', node_config=None, node_profile_config=None, replication=None, storage_data_vlan=None, sys_config=None, ucsm_config=None, vcenter_config=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, src_template=None, type='instance', action=None, config_context=None, auto_support=None, cluster_network=None, cluster_storage=None, config_result=None, data_ip_address=None, ext_fc_storage=None, ext_iscsi_storage=None, hxdp_version=None, hypervisor_type='ESXi', local_credential=None, mac_address_prefix=None, mgmt_ip_address=None, mgmt_platform='FI', node_config=None, node_profile_config=None, organization=None, proxy_setting=None, replication=None, storage_data_vlan=None, sys_config=None, ucsm_config=None, vcenter_config=None, wwxn_prefix=None): """ HyperflexClusterProfile - a model defined in Swagger """ @@ -120,13 +128,13 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._src_template = None self._type = None self._action = None self._config_context = None - self._account = None self._auto_support = None self._cluster_network = None self._cluster_storage = None @@ -134,6 +142,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._data_ip_address = None self._ext_fc_storage = None self._ext_iscsi_storage = None + self._hxdp_version = None self._hypervisor_type = None self._local_credential = None self._mac_address_prefix = None @@ -141,11 +150,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._mgmt_platform = None self._node_config = None self._node_profile_config = None + self._organization = None + self._proxy_setting = None self._replication = None self._storage_data_vlan = None self._sys_config = None self._ucsm_config = None self._vcenter_config = None + self._wwxn_prefix = None if account_moid is not None: self.account_moid = account_moid @@ -165,6 +177,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -177,8 +191,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.action = action if config_context is not None: self.config_context = config_context - if account is not None: - self.account = account if auto_support is not None: self.auto_support = auto_support if cluster_network is not None: @@ -193,6 +205,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.ext_fc_storage = ext_fc_storage if ext_iscsi_storage is not None: self.ext_iscsi_storage = ext_iscsi_storage + if hxdp_version is not None: + self.hxdp_version = hxdp_version if hypervisor_type is not None: self.hypervisor_type = hypervisor_type if local_credential is not None: @@ -207,6 +221,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.node_config = node_config if node_profile_config is not None: self.node_profile_config = node_profile_config + if organization is not None: + self.organization = organization + if proxy_setting is not None: + self.proxy_setting = proxy_setting if replication is not None: self.replication = replication if storage_data_vlan is not None: @@ -217,6 +235,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.ucsm_config = ucsm_config if vcenter_config is not None: self.vcenter_config = vcenter_config + if wwxn_prefix is not None: + self.wwxn_prefix = wwxn_prefix @property def account_moid(self): @@ -248,7 +268,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexClusterProfile. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -259,7 +279,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexClusterProfile. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -386,7 +406,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -397,7 +417,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexClusterProfile. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -406,7 +426,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this HyperflexClusterProfile. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this HyperflexClusterProfile. :rtype: list[MoTag] @@ -417,7 +437,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this HyperflexClusterProfile. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this HyperflexClusterProfile. :type: list[MoTag] @@ -425,6 +445,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this HyperflexClusterProfile. + The versioning info for this managed object + + :return: The version_context of this HyperflexClusterProfile. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexClusterProfile. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexClusterProfile. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -477,7 +520,7 @@ def src_template(self): Gets the src_template of this HyperflexClusterProfile. :return: The src_template of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: PolicyAbstractProfileRef """ return self._src_template @@ -487,7 +530,7 @@ def src_template(self, src_template): Sets the src_template of this HyperflexClusterProfile. :param src_template: The src_template of this HyperflexClusterProfile. - :type: MoMoRef + :type: PolicyAbstractProfileRef """ self._src_template = src_template @@ -525,7 +568,7 @@ def type(self, type): def action(self): """ Gets the action of this HyperflexClusterProfile. - User/system triggered action like \"NoOp\", \"Deploy\", \"Undeploy\", \"DryRun\", \"ComplianceCheck\", \"AnalyzeImpact\" + User initiated action. Each profile type has its own supported actions. For hyperflex cluster profile, the supported actions are -- Validate, Deploy, Continue, Retry, Abort, Unassign For server profile, the support actions are -- Deploy, Unassign :return: The action of this HyperflexClusterProfile. :rtype: str @@ -536,7 +579,7 @@ def action(self): def action(self, action): """ Sets the action of this HyperflexClusterProfile. - User/system triggered action like \"NoOp\", \"Deploy\", \"Undeploy\", \"DryRun\", \"ComplianceCheck\", \"AnalyzeImpact\" + User initiated action. Each profile type has its own supported actions. For hyperflex cluster profile, the supported actions are -- Validate, Deploy, Continue, Retry, Abort, Unassign For server profile, the support actions are -- Deploy, Unassign :param action: The action of this HyperflexClusterProfile. :type: str @@ -565,34 +608,13 @@ def config_context(self, config_context): self._config_context = config_context - @property - def account(self): - """ - Gets the account of this HyperflexClusterProfile. - - :return: The account of this HyperflexClusterProfile. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexClusterProfile. - - :param account: The account of this HyperflexClusterProfile. - :type: MoMoRef - """ - - self._account = account - @property def auto_support(self): """ Gets the auto_support of this HyperflexClusterProfile. :return: The auto_support of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexAutoSupportPolicyRef """ return self._auto_support @@ -602,7 +624,7 @@ def auto_support(self, auto_support): Sets the auto_support of this HyperflexClusterProfile. :param auto_support: The auto_support of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexAutoSupportPolicyRef """ self._auto_support = auto_support @@ -613,7 +635,7 @@ def cluster_network(self): Gets the cluster_network of this HyperflexClusterProfile. :return: The cluster_network of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexClusterNetworkPolicyRef """ return self._cluster_network @@ -623,7 +645,7 @@ def cluster_network(self, cluster_network): Sets the cluster_network of this HyperflexClusterProfile. :param cluster_network: The cluster_network of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexClusterNetworkPolicyRef """ self._cluster_network = cluster_network @@ -634,7 +656,7 @@ def cluster_storage(self): Gets the cluster_storage of this HyperflexClusterProfile. :return: The cluster_storage of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexClusterStoragePolicyRef """ return self._cluster_storage @@ -644,7 +666,7 @@ def cluster_storage(self, cluster_storage): Sets the cluster_storage of this HyperflexClusterProfile. :param cluster_storage: The cluster_storage of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexClusterStoragePolicyRef """ self._cluster_storage = cluster_storage @@ -653,9 +675,10 @@ def cluster_storage(self, cluster_storage): def config_result(self): """ Gets the config_result of this HyperflexClusterProfile. + The profile configuration (deploy, validation) results with the overall state and detailed result messages. :return: The config_result of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexConfigResultRef """ return self._config_result @@ -663,9 +686,10 @@ def config_result(self): def config_result(self, config_result): """ Sets the config_result of this HyperflexClusterProfile. + The profile configuration (deploy, validation) results with the overall state and detailed result messages. :param config_result: The config_result of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexConfigResultRef """ self._config_result = config_result @@ -674,7 +698,7 @@ def config_result(self, config_result): def data_ip_address(self): """ Gets the data_ip_address of this HyperflexClusterProfile. - Data IP address for the HyperFlex cluster + Storage data IP address for the HyperFlex cluster :return: The data_ip_address of this HyperflexClusterProfile. :rtype: str @@ -685,7 +709,7 @@ def data_ip_address(self): def data_ip_address(self, data_ip_address): """ Sets the data_ip_address of this HyperflexClusterProfile. - Data IP address for the HyperFlex cluster + Storage data IP address for the HyperFlex cluster :param data_ip_address: The data_ip_address of this HyperflexClusterProfile. :type: str @@ -699,7 +723,7 @@ def ext_fc_storage(self): Gets the ext_fc_storage of this HyperflexClusterProfile. :return: The ext_fc_storage of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexExtFcStoragePolicyRef """ return self._ext_fc_storage @@ -709,7 +733,7 @@ def ext_fc_storage(self, ext_fc_storage): Sets the ext_fc_storage of this HyperflexClusterProfile. :param ext_fc_storage: The ext_fc_storage of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexExtFcStoragePolicyRef """ self._ext_fc_storage = ext_fc_storage @@ -720,7 +744,7 @@ def ext_iscsi_storage(self): Gets the ext_iscsi_storage of this HyperflexClusterProfile. :return: The ext_iscsi_storage of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexExtIscsiStoragePolicyRef """ return self._ext_iscsi_storage @@ -730,16 +754,39 @@ def ext_iscsi_storage(self, ext_iscsi_storage): Sets the ext_iscsi_storage of this HyperflexClusterProfile. :param ext_iscsi_storage: The ext_iscsi_storage of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexExtIscsiStoragePolicyRef """ self._ext_iscsi_storage = ext_iscsi_storage + @property + def hxdp_version(self): + """ + Gets the hxdp_version of this HyperflexClusterProfile. + Specifies the HyperFlex Data Platform version to be installed + + :return: The hxdp_version of this HyperflexClusterProfile. + :rtype: str + """ + return self._hxdp_version + + @hxdp_version.setter + def hxdp_version(self, hxdp_version): + """ + Sets the hxdp_version of this HyperflexClusterProfile. + Specifies the HyperFlex Data Platform version to be installed + + :param hxdp_version: The hxdp_version of this HyperflexClusterProfile. + :type: str + """ + + self._hxdp_version = hxdp_version + @property def hypervisor_type(self): """ Gets the hypervisor_type of this HyperflexClusterProfile. - Hypervisor Type for HyperFlex cluster + Hypervisor type for the HyperFlex cluster :return: The hypervisor_type of this HyperflexClusterProfile. :rtype: str @@ -750,7 +797,7 @@ def hypervisor_type(self): def hypervisor_type(self, hypervisor_type): """ Sets the hypervisor_type of this HyperflexClusterProfile. - Hypervisor Type for HyperFlex cluster + Hypervisor type for the HyperFlex cluster :param hypervisor_type: The hypervisor_type of this HyperflexClusterProfile. :type: str @@ -770,7 +817,7 @@ def local_credential(self): Gets the local_credential of this HyperflexClusterProfile. :return: The local_credential of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexLocalCredentialPolicyRef """ return self._local_credential @@ -780,7 +827,7 @@ def local_credential(self, local_credential): Sets the local_credential of this HyperflexClusterProfile. :param local_credential: The local_credential of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexLocalCredentialPolicyRef """ self._local_credential = local_credential @@ -789,6 +836,7 @@ def local_credential(self, local_credential): def mac_address_prefix(self): """ Gets the mac_address_prefix of this HyperflexClusterProfile. + MAC address prefix 00:25:B5:XX :return: The mac_address_prefix of this HyperflexClusterProfile. :rtype: str @@ -799,6 +847,7 @@ def mac_address_prefix(self): def mac_address_prefix(self, mac_address_prefix): """ Sets the mac_address_prefix of this HyperflexClusterProfile. + MAC address prefix 00:25:B5:XX :param mac_address_prefix: The mac_address_prefix of this HyperflexClusterProfile. :type: str @@ -833,7 +882,7 @@ def mgmt_ip_address(self, mgmt_ip_address): def mgmt_platform(self): """ Gets the mgmt_platform of this HyperflexClusterProfile. - Management platform for HyperFlex cluster + Management platform for the HyperFlex cluster :return: The mgmt_platform of this HyperflexClusterProfile. :rtype: str @@ -844,7 +893,7 @@ def mgmt_platform(self): def mgmt_platform(self, mgmt_platform): """ Sets the mgmt_platform of this HyperflexClusterProfile. - Management platform for HyperFlex cluster + Management platform for the HyperFlex cluster :param mgmt_platform: The mgmt_platform of this HyperflexClusterProfile. :type: str @@ -864,7 +913,7 @@ def node_config(self): Gets the node_config of this HyperflexClusterProfile. :return: The node_config of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexNodeConfigPolicyRef """ return self._node_config @@ -874,7 +923,7 @@ def node_config(self, node_config): Sets the node_config of this HyperflexClusterProfile. :param node_config: The node_config of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexNodeConfigPolicyRef """ self._node_config = node_config @@ -883,9 +932,10 @@ def node_config(self, node_config): def node_profile_config(self): """ Gets the node_profile_config of this HyperflexClusterProfile. + List of node profiles representing the configuraion of the corresponding HX cluster nodes :return: The node_profile_config of this HyperflexClusterProfile. - :rtype: list[MoMoRef] + :rtype: list[HyperflexNodeProfileRef] """ return self._node_profile_config @@ -893,18 +943,63 @@ def node_profile_config(self): def node_profile_config(self, node_profile_config): """ Sets the node_profile_config of this HyperflexClusterProfile. + List of node profiles representing the configuraion of the corresponding HX cluster nodes :param node_profile_config: The node_profile_config of this HyperflexClusterProfile. - :type: list[MoMoRef] + :type: list[HyperflexNodeProfileRef] """ self._node_profile_config = node_profile_config + @property + def organization(self): + """ + Gets the organization of this HyperflexClusterProfile. + Organization + + :return: The organization of this HyperflexClusterProfile. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexClusterProfile. + Organization + + :param organization: The organization of this HyperflexClusterProfile. + :type: IamAccountRef + """ + + self._organization = organization + + @property + def proxy_setting(self): + """ + Gets the proxy_setting of this HyperflexClusterProfile. + + :return: The proxy_setting of this HyperflexClusterProfile. + :rtype: HyperflexProxySettingPolicyRef + """ + return self._proxy_setting + + @proxy_setting.setter + def proxy_setting(self, proxy_setting): + """ + Sets the proxy_setting of this HyperflexClusterProfile. + + :param proxy_setting: The proxy_setting of this HyperflexClusterProfile. + :type: HyperflexProxySettingPolicyRef + """ + + self._proxy_setting = proxy_setting + @property def replication(self): """ Gets the replication of this HyperflexClusterProfile. - Defines the number of redundant replicas of data across the cluster + Specifies the number of copies of each data block written :return: The replication of this HyperflexClusterProfile. :rtype: int @@ -915,7 +1010,7 @@ def replication(self): def replication(self, replication): """ Sets the replication of this HyperflexClusterProfile. - Defines the number of redundant replicas of data across the cluster + Specifies the number of copies of each data block written :param replication: The replication of this HyperflexClusterProfile. :type: int @@ -927,7 +1022,7 @@ def replication(self, replication): def storage_data_vlan(self): """ Gets the storage_data_vlan of this HyperflexClusterProfile. - VLAN for HyperFlex storage data traffic + VLAN for the HyperFlex storage data traffic :return: The storage_data_vlan of this HyperflexClusterProfile. :rtype: HyperflexNamedVlan @@ -938,7 +1033,7 @@ def storage_data_vlan(self): def storage_data_vlan(self, storage_data_vlan): """ Sets the storage_data_vlan of this HyperflexClusterProfile. - VLAN for HyperFlex storage data traffic + VLAN for the HyperFlex storage data traffic :param storage_data_vlan: The storage_data_vlan of this HyperflexClusterProfile. :type: HyperflexNamedVlan @@ -952,7 +1047,7 @@ def sys_config(self): Gets the sys_config of this HyperflexClusterProfile. :return: The sys_config of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexSysConfigPolicyRef """ return self._sys_config @@ -962,7 +1057,7 @@ def sys_config(self, sys_config): Sets the sys_config of this HyperflexClusterProfile. :param sys_config: The sys_config of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexSysConfigPolicyRef """ self._sys_config = sys_config @@ -973,7 +1068,7 @@ def ucsm_config(self): Gets the ucsm_config of this HyperflexClusterProfile. :return: The ucsm_config of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexUcsmConfigPolicyRef """ return self._ucsm_config @@ -983,7 +1078,7 @@ def ucsm_config(self, ucsm_config): Sets the ucsm_config of this HyperflexClusterProfile. :param ucsm_config: The ucsm_config of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexUcsmConfigPolicyRef """ self._ucsm_config = ucsm_config @@ -994,7 +1089,7 @@ def vcenter_config(self): Gets the vcenter_config of this HyperflexClusterProfile. :return: The vcenter_config of this HyperflexClusterProfile. - :rtype: MoMoRef + :rtype: HyperflexVcenterConfigPolicyRef """ return self._vcenter_config @@ -1004,11 +1099,34 @@ def vcenter_config(self, vcenter_config): Sets the vcenter_config of this HyperflexClusterProfile. :param vcenter_config: The vcenter_config of this HyperflexClusterProfile. - :type: MoMoRef + :type: HyperflexVcenterConfigPolicyRef """ self._vcenter_config = vcenter_config + @property + def wwxn_prefix(self): + """ + Gets the wwxn_prefix of this HyperflexClusterProfile. + WWxN prefix 20:00:00:25:B5:XX + + :return: The wwxn_prefix of this HyperflexClusterProfile. + :rtype: str + """ + return self._wwxn_prefix + + @wwxn_prefix.setter + def wwxn_prefix(self, wwxn_prefix): + """ + Sets the wwxn_prefix of this HyperflexClusterProfile. + WWxN prefix 20:00:00:25:B5:XX + + :param wwxn_prefix: The wwxn_prefix of this HyperflexClusterProfile. + :type: str + """ + + self._wwxn_prefix = wwxn_prefix + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/hyperflex_cluster_profile_list.py b/intersight/models/hyperflex_cluster_profile_list.py index 10da5d62..6dc60ee0 100644 --- a/intersight/models/hyperflex_cluster_profile_list.py +++ b/intersight/models/hyperflex_cluster_profile_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_cluster_profile_ref.py b/intersight/models/hyperflex_cluster_profile_ref.py new file mode 100644 index 00000000..70fb5284 --- /dev/null +++ b/intersight/models/hyperflex_cluster_profile_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexClusterProfileRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexClusterProfileRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexClusterProfileRef. + + :return: The moid of this HyperflexClusterProfileRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexClusterProfileRef. + + :param moid: The moid of this HyperflexClusterProfileRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexClusterProfileRef. + + :return: The object_type of this HyperflexClusterProfileRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexClusterProfileRef. + + :param object_type: The object_type of this HyperflexClusterProfileRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexClusterProfileRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_cluster_ref.py b/intersight/models/hyperflex_cluster_ref.py new file mode 100644 index 00000000..bcdbb4d0 --- /dev/null +++ b/intersight/models/hyperflex_cluster_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexClusterRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexClusterRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexClusterRef. + + :return: The moid of this HyperflexClusterRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexClusterRef. + + :param moid: The moid of this HyperflexClusterRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexClusterRef. + + :return: The object_type of this HyperflexClusterRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexClusterRef. + + :param object_type: The object_type of this HyperflexClusterRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexClusterRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_cluster_storage_policy.py b/intersight/models/hyperflex_cluster_storage_policy.py index 0ea688bf..1c129513 100644 --- a/intersight/models/hyperflex_cluster_storage_policy.py +++ b/intersight/models/hyperflex_cluster_storage_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,19 +32,21 @@ class HyperflexClusterStoragePolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', 'disk_partition_cleanup': 'bool', + 'logical_avalability_zone_config': 'HyperflexLogicalAvailabilityZone', + 'organization': 'IamAccountRef', 'vdi_optimization': 'bool' } @@ -58,15 +60,17 @@ class HyperflexClusterStoragePolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'cluster_profiles': 'ClusterProfiles', 'disk_partition_cleanup': 'DiskPartitionCleanup', + 'logical_avalability_zone_config': 'LogicalAvalabilityZoneConfig', + 'organization': 'Organization', 'vdi_optimization': 'VdiOptimization' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, cluster_profiles=None, disk_partition_cleanup=None, vdi_optimization=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, cluster_profiles=None, disk_partition_cleanup=None, logical_avalability_zone_config=None, organization=None, vdi_optimization=None): """ HyperflexClusterStoragePolicy - a model defined in Swagger """ @@ -80,11 +84,13 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None - self._account = None self._cluster_profiles = None self._disk_partition_cleanup = None + self._logical_avalability_zone_config = None + self._organization = None self._vdi_optimization = None if account_moid is not None: @@ -105,16 +111,20 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if cluster_profiles is not None: self.cluster_profiles = cluster_profiles if disk_partition_cleanup is not None: self.disk_partition_cleanup = disk_partition_cleanup + if logical_avalability_zone_config is not None: + self.logical_avalability_zone_config = logical_avalability_zone_config + if organization is not None: + self.organization = organization if vdi_optimization is not None: self.vdi_optimization = vdi_optimization @@ -148,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexClusterStoragePolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexClusterStoragePolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexClusterStoragePolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexClusterStoragePolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -306,7 +316,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this HyperflexClusterStoragePolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this HyperflexClusterStoragePolicy. :rtype: list[MoTag] @@ -317,7 +327,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this HyperflexClusterStoragePolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this HyperflexClusterStoragePolicy. :type: list[MoTag] @@ -325,6 +335,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this HyperflexClusterStoragePolicy. + The versioning info for this managed object + + :return: The version_context of this HyperflexClusterStoragePolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexClusterStoragePolicy. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexClusterStoragePolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -371,34 +404,14 @@ def name(self, name): self._name = name - @property - def account(self): - """ - Gets the account of this HyperflexClusterStoragePolicy. - - :return: The account of this HyperflexClusterStoragePolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexClusterStoragePolicy. - - :param account: The account of this HyperflexClusterStoragePolicy. - :type: MoMoRef - """ - - self._account = account - @property def cluster_profiles(self): """ Gets the cluster_profiles of this HyperflexClusterStoragePolicy. + List of cluster profiles using this policy :return: The cluster_profiles of this HyperflexClusterStoragePolicy. - :rtype: list[MoMoRef] + :rtype: list[HyperflexClusterProfileRef] """ return self._cluster_profiles @@ -406,9 +419,10 @@ def cluster_profiles(self): def cluster_profiles(self, cluster_profiles): """ Sets the cluster_profiles of this HyperflexClusterStoragePolicy. + List of cluster profiles using this policy :param cluster_profiles: The cluster_profiles of this HyperflexClusterStoragePolicy. - :type: list[MoMoRef] + :type: list[HyperflexClusterProfileRef] """ self._cluster_profiles = cluster_profiles @@ -417,7 +431,7 @@ def cluster_profiles(self, cluster_profiles): def disk_partition_cleanup(self): """ Gets the disk_partition_cleanup of this HyperflexClusterStoragePolicy. - Flag to determine if the existing disk partitions need to be cleaned up + If enabled, formats existing disk partitions (destroys all user data) :return: The disk_partition_cleanup of this HyperflexClusterStoragePolicy. :rtype: bool @@ -428,7 +442,7 @@ def disk_partition_cleanup(self): def disk_partition_cleanup(self, disk_partition_cleanup): """ Sets the disk_partition_cleanup of this HyperflexClusterStoragePolicy. - Flag to determine if the existing disk partitions need to be cleaned up + If enabled, formats existing disk partitions (destroys all user data) :param disk_partition_cleanup: The disk_partition_cleanup of this HyperflexClusterStoragePolicy. :type: bool @@ -436,11 +450,57 @@ def disk_partition_cleanup(self, disk_partition_cleanup): self._disk_partition_cleanup = disk_partition_cleanup + @property + def logical_avalability_zone_config(self): + """ + Gets the logical_avalability_zone_config of this HyperflexClusterStoragePolicy. + Enable or disable Logical Availability Zones (LAZ). If enabled, HyperFlex Data Platform automatically selects and groups nodes into different availability zones. For HyperFlex Data Platform versions prior to 3.0 release, this setting does not apply. For HyperFlex Data Platform versions 3.0 or higher, this setting is only applicable to Fabric Interconnect attached HyperFlex systems with 8 or more converged nodes. + + :return: The logical_avalability_zone_config of this HyperflexClusterStoragePolicy. + :rtype: HyperflexLogicalAvailabilityZone + """ + return self._logical_avalability_zone_config + + @logical_avalability_zone_config.setter + def logical_avalability_zone_config(self, logical_avalability_zone_config): + """ + Sets the logical_avalability_zone_config of this HyperflexClusterStoragePolicy. + Enable or disable Logical Availability Zones (LAZ). If enabled, HyperFlex Data Platform automatically selects and groups nodes into different availability zones. For HyperFlex Data Platform versions prior to 3.0 release, this setting does not apply. For HyperFlex Data Platform versions 3.0 or higher, this setting is only applicable to Fabric Interconnect attached HyperFlex systems with 8 or more converged nodes. + + :param logical_avalability_zone_config: The logical_avalability_zone_config of this HyperflexClusterStoragePolicy. + :type: HyperflexLogicalAvailabilityZone + """ + + self._logical_avalability_zone_config = logical_avalability_zone_config + + @property + def organization(self): + """ + Gets the organization of this HyperflexClusterStoragePolicy. + Organization + + :return: The organization of this HyperflexClusterStoragePolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexClusterStoragePolicy. + Organization + + :param organization: The organization of this HyperflexClusterStoragePolicy. + :type: IamAccountRef + """ + + self._organization = organization + @property def vdi_optimization(self): """ Gets the vdi_optimization of this HyperflexClusterStoragePolicy. - Flag to determine if VDI Optimization needs to be enabled or disabled + Enable or disable VDI optimization (hybrid HyperFlex systems only) :return: The vdi_optimization of this HyperflexClusterStoragePolicy. :rtype: bool @@ -451,7 +511,7 @@ def vdi_optimization(self): def vdi_optimization(self, vdi_optimization): """ Sets the vdi_optimization of this HyperflexClusterStoragePolicy. - Flag to determine if VDI Optimization needs to be enabled or disabled + Enable or disable VDI optimization (hybrid HyperFlex systems only) :param vdi_optimization: The vdi_optimization of this HyperflexClusterStoragePolicy. :type: bool diff --git a/intersight/models/hyperflex_cluster_storage_policy_list.py b/intersight/models/hyperflex_cluster_storage_policy_list.py index 99fc24ab..6e2d395d 100644 --- a/intersight/models/hyperflex_cluster_storage_policy_list.py +++ b/intersight/models/hyperflex_cluster_storage_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_cluster_storage_policy_ref.py b/intersight/models/hyperflex_cluster_storage_policy_ref.py new file mode 100644 index 00000000..35cf4461 --- /dev/null +++ b/intersight/models/hyperflex_cluster_storage_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexClusterStoragePolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexClusterStoragePolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexClusterStoragePolicyRef. + + :return: The moid of this HyperflexClusterStoragePolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexClusterStoragePolicyRef. + + :param moid: The moid of this HyperflexClusterStoragePolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexClusterStoragePolicyRef. + + :return: The object_type of this HyperflexClusterStoragePolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexClusterStoragePolicyRef. + + :param object_type: The object_type of this HyperflexClusterStoragePolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexClusterStoragePolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_config_result.py b/intersight/models/hyperflex_config_result.py index 387d168e..d2291dcf 100644 --- a/intersight/models/hyperflex_config_result.py +++ b/intersight/models/hyperflex_config_result.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,19 +32,23 @@ class HyperflexConfigResult(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'config_stage': 'str', 'config_state': 'str', - 'result_entries': 'list[PolicyConfigResultEntry]', 'validation_state': 'str', - 'cluster_profile': 'MoMoRef' + 'cluster_profile': 'HyperflexClusterProfileRef', + 'config_progress': 'str', + 'duration': 'str', + 'result_entries': 'list[HyperflexConfigResultEntryRef]', + 'start_time': 'str' } attribute_map = { @@ -57,14 +61,18 @@ class HyperflexConfigResult(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'config_stage': 'ConfigStage', 'config_state': 'ConfigState', - 'result_entries': 'ResultEntries', 'validation_state': 'ValidationState', - 'cluster_profile': 'ClusterProfile' + 'cluster_profile': 'ClusterProfile', + 'config_progress': 'ConfigProgress', + 'duration': 'Duration', + 'result_entries': 'ResultEntries', + 'start_time': 'StartTime' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, config_stage=None, config_state=None, result_entries=None, validation_state=None, cluster_profile=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, config_stage=None, config_state=None, validation_state=None, cluster_profile=None, config_progress=None, duration=None, result_entries=None, start_time=None): """ HyperflexConfigResult - a model defined in Swagger """ @@ -78,11 +86,15 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._config_stage = None self._config_state = None - self._result_entries = None self._validation_state = None self._cluster_profile = None + self._config_progress = None + self._duration = None + self._result_entries = None + self._start_time = None if account_moid is not None: self.account_moid = account_moid @@ -102,16 +114,24 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if config_stage is not None: self.config_stage = config_stage if config_state is not None: self.config_state = config_state - if result_entries is not None: - self.result_entries = result_entries if validation_state is not None: self.validation_state = validation_state if cluster_profile is not None: self.cluster_profile = cluster_profile + if config_progress is not None: + self.config_progress = config_progress + if duration is not None: + self.duration = duration + if result_entries is not None: + self.result_entries = result_entries + if start_time is not None: + self.start_time = start_time @property def account_moid(self): @@ -143,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexConfigResult. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -154,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexConfigResult. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -281,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexConfigResult. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -292,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexConfigResult. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -301,7 +321,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this HyperflexConfigResult. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this HyperflexConfigResult. :rtype: list[MoTag] @@ -312,7 +332,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this HyperflexConfigResult. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this HyperflexConfigResult. :type: list[MoTag] @@ -320,6 +340,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this HyperflexConfigResult. + The versioning info for this managed object + + :return: The version_context of this HyperflexConfigResult. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexConfigResult. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexConfigResult. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def config_stage(self): """ @@ -366,29 +409,6 @@ def config_state(self, config_state): self._config_state = config_state - @property - def result_entries(self): - """ - Gets the result_entries of this HyperflexConfigResult. - Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. - - :return: The result_entries of this HyperflexConfigResult. - :rtype: list[PolicyConfigResultEntry] - """ - return self._result_entries - - @result_entries.setter - def result_entries(self, result_entries): - """ - Sets the result_entries of this HyperflexConfigResult. - Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. - - :param result_entries: The result_entries of this HyperflexConfigResult. - :type: list[PolicyConfigResultEntry] - """ - - self._result_entries = result_entries - @property def validation_state(self): """ @@ -418,7 +438,7 @@ def cluster_profile(self): Gets the cluster_profile of this HyperflexConfigResult. :return: The cluster_profile of this HyperflexConfigResult. - :rtype: MoMoRef + :rtype: HyperflexClusterProfileRef """ return self._cluster_profile @@ -428,11 +448,103 @@ def cluster_profile(self, cluster_profile): Sets the cluster_profile of this HyperflexConfigResult. :param cluster_profile: The cluster_profile of this HyperflexConfigResult. - :type: MoMoRef + :type: HyperflexClusterProfileRef """ self._cluster_profile = cluster_profile + @property + def config_progress(self): + """ + Gets the config_progress of this HyperflexConfigResult. + The progress percentage of the running configuration or workflow + + :return: The config_progress of this HyperflexConfigResult. + :rtype: str + """ + return self._config_progress + + @config_progress.setter + def config_progress(self, config_progress): + """ + Sets the config_progress of this HyperflexConfigResult. + The progress percentage of the running configuration or workflow + + :param config_progress: The config_progress of this HyperflexConfigResult. + :type: str + """ + + self._config_progress = config_progress + + @property + def duration(self): + """ + Gets the duration of this HyperflexConfigResult. + The duration of the running configuration or workflow + + :return: The duration of this HyperflexConfigResult. + :rtype: str + """ + return self._duration + + @duration.setter + def duration(self, duration): + """ + Sets the duration of this HyperflexConfigResult. + The duration of the running configuration or workflow + + :param duration: The duration of this HyperflexConfigResult. + :type: str + """ + + self._duration = duration + + @property + def result_entries(self): + """ + Gets the result_entries of this HyperflexConfigResult. + Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. + + :return: The result_entries of this HyperflexConfigResult. + :rtype: list[HyperflexConfigResultEntryRef] + """ + return self._result_entries + + @result_entries.setter + def result_entries(self, result_entries): + """ + Sets the result_entries of this HyperflexConfigResult. + Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. + + :param result_entries: The result_entries of this HyperflexConfigResult. + :type: list[HyperflexConfigResultEntryRef] + """ + + self._result_entries = result_entries + + @property + def start_time(self): + """ + Gets the start_time of this HyperflexConfigResult. + The start time of the configuration or workflow + + :return: The start_time of this HyperflexConfigResult. + :rtype: str + """ + return self._start_time + + @start_time.setter + def start_time(self, start_time): + """ + Sets the start_time of this HyperflexConfigResult. + The start time of the configuration or workflow + + :param start_time: The start_time of this HyperflexConfigResult. + :type: str + """ + + self._start_time = start_time + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/hyperflex_config_result_entry.py b/intersight/models/hyperflex_config_result_entry.py new file mode 100644 index 00000000..49faeee9 --- /dev/null +++ b/intersight/models/hyperflex_config_result_entry.py @@ -0,0 +1,567 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexConfigResultEntry(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'completed_time': 'str', + 'context': 'PolicyConfigResultContext', + 'message': 'str', + 'owner_id': 'str', + 'state': 'str', + 'type': 'str', + 'config_result': 'HyperflexConfigResultRef' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'completed_time': 'CompletedTime', + 'context': 'Context', + 'message': 'Message', + 'owner_id': 'OwnerId', + 'state': 'State', + 'type': 'Type', + 'config_result': 'ConfigResult' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, completed_time=None, context=None, message=None, owner_id=None, state=None, type=None, config_result=None): + """ + HyperflexConfigResultEntry - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._completed_time = None + self._context = None + self._message = None + self._owner_id = None + self._state = None + self._type = None + self._config_result = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if completed_time is not None: + self.completed_time = completed_time + if context is not None: + self.context = context + if message is not None: + self.message = message + if owner_id is not None: + self.owner_id = owner_id + if state is not None: + self.state = state + if type is not None: + self.type = type + if config_result is not None: + self.config_result = config_result + + @property + def account_moid(self): + """ + Gets the account_moid of this HyperflexConfigResultEntry. + The Account ID for this managed object. + + :return: The account_moid of this HyperflexConfigResultEntry. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this HyperflexConfigResultEntry. + The Account ID for this managed object. + + :param account_moid: The account_moid of this HyperflexConfigResultEntry. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this HyperflexConfigResultEntry. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this HyperflexConfigResultEntry. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this HyperflexConfigResultEntry. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this HyperflexConfigResultEntry. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this HyperflexConfigResultEntry. + The time when this managed object was created. + + :return: The create_time of this HyperflexConfigResultEntry. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this HyperflexConfigResultEntry. + The time when this managed object was created. + + :param create_time: The create_time of this HyperflexConfigResultEntry. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this HyperflexConfigResultEntry. + The time when this managed object was last modified. + + :return: The mod_time of this HyperflexConfigResultEntry. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this HyperflexConfigResultEntry. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this HyperflexConfigResultEntry. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this HyperflexConfigResultEntry. + A unique identifier of this Managed Object instance. + + :return: The moid of this HyperflexConfigResultEntry. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexConfigResultEntry. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this HyperflexConfigResultEntry. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexConfigResultEntry. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this HyperflexConfigResultEntry. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexConfigResultEntry. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this HyperflexConfigResultEntry. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this HyperflexConfigResultEntry. + An array of owners which represent effective ownership of this object. + + :return: The owners of this HyperflexConfigResultEntry. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this HyperflexConfigResultEntry. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this HyperflexConfigResultEntry. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this HyperflexConfigResultEntry. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this HyperflexConfigResultEntry. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this HyperflexConfigResultEntry. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this HyperflexConfigResultEntry. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this HyperflexConfigResultEntry. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this HyperflexConfigResultEntry. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this HyperflexConfigResultEntry. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this HyperflexConfigResultEntry. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this HyperflexConfigResultEntry. + The versioning info for this managed object + + :return: The version_context of this HyperflexConfigResultEntry. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexConfigResultEntry. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexConfigResultEntry. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def completed_time(self): + """ + Gets the completed_time of this HyperflexConfigResultEntry. + The completed time of the task in installer + + :return: The completed_time of this HyperflexConfigResultEntry. + :rtype: str + """ + return self._completed_time + + @completed_time.setter + def completed_time(self, completed_time): + """ + Sets the completed_time of this HyperflexConfigResultEntry. + The completed time of the task in installer + + :param completed_time: The completed_time of this HyperflexConfigResultEntry. + :type: str + """ + + self._completed_time = completed_time + + @property + def context(self): + """ + Gets the context of this HyperflexConfigResultEntry. + + :return: The context of this HyperflexConfigResultEntry. + :rtype: PolicyConfigResultContext + """ + return self._context + + @context.setter + def context(self, context): + """ + Sets the context of this HyperflexConfigResultEntry. + + :param context: The context of this HyperflexConfigResultEntry. + :type: PolicyConfigResultContext + """ + + self._context = context + + @property + def message(self): + """ + Gets the message of this HyperflexConfigResultEntry. + Localized message based on the locale setting of the user's context + + :return: The message of this HyperflexConfigResultEntry. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this HyperflexConfigResultEntry. + Localized message based on the locale setting of the user's context + + :param message: The message of this HyperflexConfigResultEntry. + :type: str + """ + + self._message = message + + @property + def owner_id(self): + """ + Gets the owner_id of this HyperflexConfigResultEntry. + + :return: The owner_id of this HyperflexConfigResultEntry. + :rtype: str + """ + return self._owner_id + + @owner_id.setter + def owner_id(self, owner_id): + """ + Sets the owner_id of this HyperflexConfigResultEntry. + + :param owner_id: The owner_id of this HyperflexConfigResultEntry. + :type: str + """ + + self._owner_id = owner_id + + @property + def state(self): + """ + Gets the state of this HyperflexConfigResultEntry. + Values -- ok, ok-with-warning, errored + + :return: The state of this HyperflexConfigResultEntry. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this HyperflexConfigResultEntry. + Values -- ok, ok-with-warning, errored + + :param state: The state of this HyperflexConfigResultEntry. + :type: str + """ + + self._state = state + + @property + def type(self): + """ + Gets the type of this HyperflexConfigResultEntry. + Indicates if the result is reported during the logical model validation/resource allocation phase or the configuration applying phase. Values -- validation, config + + :return: The type of this HyperflexConfigResultEntry. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this HyperflexConfigResultEntry. + Indicates if the result is reported during the logical model validation/resource allocation phase or the configuration applying phase. Values -- validation, config + + :param type: The type of this HyperflexConfigResultEntry. + :type: str + """ + + self._type = type + + @property + def config_result(self): + """ + Gets the config_result of this HyperflexConfigResultEntry. + + :return: The config_result of this HyperflexConfigResultEntry. + :rtype: HyperflexConfigResultRef + """ + return self._config_result + + @config_result.setter + def config_result(self, config_result): + """ + Sets the config_result of this HyperflexConfigResultEntry. + + :param config_result: The config_result of this HyperflexConfigResultEntry. + :type: HyperflexConfigResultRef + """ + + self._config_result = config_result + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexConfigResultEntry): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_config_result_entry_list.py b/intersight/models/hyperflex_config_result_entry_list.py new file mode 100644 index 00000000..313a25db --- /dev/null +++ b/intersight/models/hyperflex_config_result_entry_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexConfigResultEntryList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[HyperflexConfigResultEntry]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + HyperflexConfigResultEntryList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this HyperflexConfigResultEntryList. + The number of hyperflexConfigResultEntries matching your request in total for all pages. + + :return: The count of this HyperflexConfigResultEntryList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this HyperflexConfigResultEntryList. + The number of hyperflexConfigResultEntries matching your request in total for all pages. + + :param count: The count of this HyperflexConfigResultEntryList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this HyperflexConfigResultEntryList. + The array of hyperflexConfigResultEntries matching your request. + + :return: The results of this HyperflexConfigResultEntryList. + :rtype: list[HyperflexConfigResultEntry] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this HyperflexConfigResultEntryList. + The array of hyperflexConfigResultEntries matching your request. + + :param results: The results of this HyperflexConfigResultEntryList. + :type: list[HyperflexConfigResultEntry] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexConfigResultEntryList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_config_result_entry_ref.py b/intersight/models/hyperflex_config_result_entry_ref.py new file mode 100644 index 00000000..bd02a42d --- /dev/null +++ b/intersight/models/hyperflex_config_result_entry_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexConfigResultEntryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexConfigResultEntryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexConfigResultEntryRef. + + :return: The moid of this HyperflexConfigResultEntryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexConfigResultEntryRef. + + :param moid: The moid of this HyperflexConfigResultEntryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexConfigResultEntryRef. + + :return: The object_type of this HyperflexConfigResultEntryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexConfigResultEntryRef. + + :param object_type: The object_type of this HyperflexConfigResultEntryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexConfigResultEntryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_config_result_list.py b/intersight/models/hyperflex_config_result_list.py index 1a19c038..b0df0295 100644 --- a/intersight/models/hyperflex_config_result_list.py +++ b/intersight/models/hyperflex_config_result_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_config_result_ref.py b/intersight/models/hyperflex_config_result_ref.py new file mode 100644 index 00000000..10c3694d --- /dev/null +++ b/intersight/models/hyperflex_config_result_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexConfigResultRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexConfigResultRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexConfigResultRef. + + :return: The moid of this HyperflexConfigResultRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexConfigResultRef. + + :param moid: The moid of this HyperflexConfigResultRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexConfigResultRef. + + :return: The object_type of this HyperflexConfigResultRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexConfigResultRef. + + :param object_type: The object_type of this HyperflexConfigResultRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexConfigResultRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_credentials_ref.py b/intersight/models/hyperflex_credentials_ref.py new file mode 100644 index 00000000..130fd244 --- /dev/null +++ b/intersight/models/hyperflex_credentials_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexCredentialsRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexCredentialsRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexCredentialsRef. + + :return: The moid of this HyperflexCredentialsRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexCredentialsRef. + + :param moid: The moid of this HyperflexCredentialsRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexCredentialsRef. + + :return: The object_type of this HyperflexCredentialsRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexCredentialsRef. + + :param object_type: The object_type of this HyperflexCredentialsRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexCredentialsRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_ext_fc_storage_policy.py b/intersight/models/hyperflex_ext_fc_storage_policy.py index fc098b5b..7c1280ef 100644 --- a/intersight/models/hyperflex_ext_fc_storage_policy.py +++ b/intersight/models/hyperflex_ext_fc_storage_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,22 +32,23 @@ class HyperflexExtFcStoragePolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', 'admin_state': 'bool', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', 'exta_traffic': 'HyperflexNamedVsan', 'extb_traffic': 'HyperflexNamedVsan', - 'wwxn_range': 'HyperflexWwxnRange' + 'organization': 'IamAccountRef', + 'wwxn_prefix_range': 'HyperflexWwxnPrefixRange' } attribute_map = { @@ -60,17 +61,18 @@ class HyperflexExtFcStoragePolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'admin_state': 'AdminState', 'cluster_profiles': 'ClusterProfiles', 'exta_traffic': 'ExtaTraffic', 'extb_traffic': 'ExtbTraffic', - 'wwxn_range': 'WwxnRange' + 'organization': 'Organization', + 'wwxn_prefix_range': 'WwxnPrefixRange' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, admin_state=None, cluster_profiles=None, exta_traffic=None, extb_traffic=None, wwxn_range=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, admin_state=None, cluster_profiles=None, exta_traffic=None, extb_traffic=None, organization=None, wwxn_prefix_range=None): """ HyperflexExtFcStoragePolicy - a model defined in Swagger """ @@ -84,14 +86,15 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None - self._account = None self._admin_state = None self._cluster_profiles = None self._exta_traffic = None self._extb_traffic = None - self._wwxn_range = None + self._organization = None + self._wwxn_prefix_range = None if account_moid is not None: self.account_moid = account_moid @@ -111,12 +114,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if admin_state is not None: self.admin_state = admin_state if cluster_profiles is not None: @@ -125,8 +128,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.exta_traffic = exta_traffic if extb_traffic is not None: self.extb_traffic = extb_traffic - if wwxn_range is not None: - self.wwxn_range = wwxn_range + if organization is not None: + self.organization = organization + if wwxn_prefix_range is not None: + self.wwxn_prefix_range = wwxn_prefix_range @property def account_moid(self): @@ -158,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexExtFcStoragePolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexExtFcStoragePolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexExtFcStoragePolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexExtFcStoragePolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -316,7 +321,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this HyperflexExtFcStoragePolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this HyperflexExtFcStoragePolicy. :rtype: list[MoTag] @@ -327,7 +332,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this HyperflexExtFcStoragePolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this HyperflexExtFcStoragePolicy. :type: list[MoTag] @@ -335,6 +340,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this HyperflexExtFcStoragePolicy. + The versioning info for this managed object + + :return: The version_context of this HyperflexExtFcStoragePolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexExtFcStoragePolicy. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexExtFcStoragePolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -381,32 +409,11 @@ def name(self, name): self._name = name - @property - def account(self): - """ - Gets the account of this HyperflexExtFcStoragePolicy. - - :return: The account of this HyperflexExtFcStoragePolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexExtFcStoragePolicy. - - :param account: The account of this HyperflexExtFcStoragePolicy. - :type: MoMoRef - """ - - self._account = account - @property def admin_state(self): """ Gets the admin_state of this HyperflexExtFcStoragePolicy. - Flag to determine if external FC storage configuration is enabled or disabled + Enables or disables external FC storage configuration :return: The admin_state of this HyperflexExtFcStoragePolicy. :rtype: bool @@ -417,7 +424,7 @@ def admin_state(self): def admin_state(self, admin_state): """ Sets the admin_state of this HyperflexExtFcStoragePolicy. - Flag to determine if external FC storage configuration is enabled or disabled + Enables or disables external FC storage configuration :param admin_state: The admin_state of this HyperflexExtFcStoragePolicy. :type: bool @@ -429,9 +436,10 @@ def admin_state(self, admin_state): def cluster_profiles(self): """ Gets the cluster_profiles of this HyperflexExtFcStoragePolicy. + List of cluster profiles using this policy :return: The cluster_profiles of this HyperflexExtFcStoragePolicy. - :rtype: list[MoMoRef] + :rtype: list[HyperflexClusterProfileRef] """ return self._cluster_profiles @@ -439,9 +447,10 @@ def cluster_profiles(self): def cluster_profiles(self, cluster_profiles): """ Sets the cluster_profiles of this HyperflexExtFcStoragePolicy. + List of cluster profiles using this policy :param cluster_profiles: The cluster_profiles of this HyperflexExtFcStoragePolicy. - :type: list[MoMoRef] + :type: list[HyperflexClusterProfileRef] """ self._cluster_profiles = cluster_profiles @@ -450,7 +459,7 @@ def cluster_profiles(self, cluster_profiles): def exta_traffic(self): """ Gets the exta_traffic of this HyperflexExtFcStoragePolicy. - VSAN for Primary Fabric Interconnect external FC storage traffic + VSAN for the primary Fabric Interconnect external FC storage traffic :return: The exta_traffic of this HyperflexExtFcStoragePolicy. :rtype: HyperflexNamedVsan @@ -461,7 +470,7 @@ def exta_traffic(self): def exta_traffic(self, exta_traffic): """ Sets the exta_traffic of this HyperflexExtFcStoragePolicy. - VSAN for Primary Fabric Interconnect external FC storage traffic + VSAN for the primary Fabric Interconnect external FC storage traffic :param exta_traffic: The exta_traffic of this HyperflexExtFcStoragePolicy. :type: HyperflexNamedVsan @@ -473,7 +482,7 @@ def exta_traffic(self, exta_traffic): def extb_traffic(self): """ Gets the extb_traffic of this HyperflexExtFcStoragePolicy. - VSAN for Secondary Fabric Interconnect external FC storage traffic + VSAN for the secondary Fabric Interconnect external FC storage traffic :return: The extb_traffic of this HyperflexExtFcStoragePolicy. :rtype: HyperflexNamedVsan @@ -484,7 +493,7 @@ def extb_traffic(self): def extb_traffic(self, extb_traffic): """ Sets the extb_traffic of this HyperflexExtFcStoragePolicy. - VSAN for Secondary Fabric Interconnect external FC storage traffic + VSAN for the secondary Fabric Interconnect external FC storage traffic :param extb_traffic: The extb_traffic of this HyperflexExtFcStoragePolicy. :type: HyperflexNamedVsan @@ -493,25 +502,50 @@ def extb_traffic(self, extb_traffic): self._extb_traffic = extb_traffic @property - def wwxn_range(self): + def organization(self): + """ + Gets the organization of this HyperflexExtFcStoragePolicy. + Organization + + :return: The organization of this HyperflexExtFcStoragePolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexExtFcStoragePolicy. + Organization + + :param organization: The organization of this HyperflexExtFcStoragePolicy. + :type: IamAccountRef + """ + + self._organization = organization + + @property + def wwxn_prefix_range(self): """ - Gets the wwxn_range of this HyperflexExtFcStoragePolicy. + Gets the wwxn_prefix_range of this HyperflexExtFcStoragePolicy. + WWxN range - :return: The wwxn_range of this HyperflexExtFcStoragePolicy. - :rtype: HyperflexWwxnRange + :return: The wwxn_prefix_range of this HyperflexExtFcStoragePolicy. + :rtype: HyperflexWwxnPrefixRange """ - return self._wwxn_range + return self._wwxn_prefix_range - @wwxn_range.setter - def wwxn_range(self, wwxn_range): + @wwxn_prefix_range.setter + def wwxn_prefix_range(self, wwxn_prefix_range): """ - Sets the wwxn_range of this HyperflexExtFcStoragePolicy. + Sets the wwxn_prefix_range of this HyperflexExtFcStoragePolicy. + WWxN range - :param wwxn_range: The wwxn_range of this HyperflexExtFcStoragePolicy. - :type: HyperflexWwxnRange + :param wwxn_prefix_range: The wwxn_prefix_range of this HyperflexExtFcStoragePolicy. + :type: HyperflexWwxnPrefixRange """ - self._wwxn_range = wwxn_range + self._wwxn_prefix_range = wwxn_prefix_range def to_dict(self): """ diff --git a/intersight/models/hyperflex_ext_fc_storage_policy_list.py b/intersight/models/hyperflex_ext_fc_storage_policy_list.py index 8b03e86d..b44e960d 100644 --- a/intersight/models/hyperflex_ext_fc_storage_policy_list.py +++ b/intersight/models/hyperflex_ext_fc_storage_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_ext_fc_storage_policy_ref.py b/intersight/models/hyperflex_ext_fc_storage_policy_ref.py new file mode 100644 index 00000000..b2caa39c --- /dev/null +++ b/intersight/models/hyperflex_ext_fc_storage_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexExtFcStoragePolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexExtFcStoragePolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexExtFcStoragePolicyRef. + + :return: The moid of this HyperflexExtFcStoragePolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexExtFcStoragePolicyRef. + + :param moid: The moid of this HyperflexExtFcStoragePolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexExtFcStoragePolicyRef. + + :return: The object_type of this HyperflexExtFcStoragePolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexExtFcStoragePolicyRef. + + :param object_type: The object_type of this HyperflexExtFcStoragePolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexExtFcStoragePolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_ext_iscsi_storage_policy.py b/intersight/models/hyperflex_ext_iscsi_storage_policy.py index d5acb356..2b7678b1 100644 --- a/intersight/models/hyperflex_ext_iscsi_storage_policy.py +++ b/intersight/models/hyperflex_ext_iscsi_storage_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,22 @@ class HyperflexExtIscsiStoragePolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', 'admin_state': 'bool', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', 'exta_traffic': 'HyperflexNamedVlan', - 'extb_traffic': 'HyperflexNamedVlan' + 'extb_traffic': 'HyperflexNamedVlan', + 'organization': 'IamAccountRef' } attribute_map = { @@ -59,16 +60,17 @@ class HyperflexExtIscsiStoragePolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'admin_state': 'AdminState', 'cluster_profiles': 'ClusterProfiles', 'exta_traffic': 'ExtaTraffic', - 'extb_traffic': 'ExtbTraffic' + 'extb_traffic': 'ExtbTraffic', + 'organization': 'Organization' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, admin_state=None, cluster_profiles=None, exta_traffic=None, extb_traffic=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, admin_state=None, cluster_profiles=None, exta_traffic=None, extb_traffic=None, organization=None): """ HyperflexExtIscsiStoragePolicy - a model defined in Swagger """ @@ -82,13 +84,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None - self._account = None self._admin_state = None self._cluster_profiles = None self._exta_traffic = None self._extb_traffic = None + self._organization = None if account_moid is not None: self.account_moid = account_moid @@ -108,12 +111,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if admin_state is not None: self.admin_state = admin_state if cluster_profiles is not None: @@ -122,6 +125,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.exta_traffic = exta_traffic if extb_traffic is not None: self.extb_traffic = extb_traffic + if organization is not None: + self.organization = organization @property def account_moid(self): @@ -153,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexExtIscsiStoragePolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexExtIscsiStoragePolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexExtIscsiStoragePolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexExtIscsiStoragePolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -311,7 +316,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this HyperflexExtIscsiStoragePolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this HyperflexExtIscsiStoragePolicy. :rtype: list[MoTag] @@ -322,7 +327,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this HyperflexExtIscsiStoragePolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this HyperflexExtIscsiStoragePolicy. :type: list[MoTag] @@ -330,6 +335,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this HyperflexExtIscsiStoragePolicy. + The versioning info for this managed object + + :return: The version_context of this HyperflexExtIscsiStoragePolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexExtIscsiStoragePolicy. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexExtIscsiStoragePolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -376,32 +404,11 @@ def name(self, name): self._name = name - @property - def account(self): - """ - Gets the account of this HyperflexExtIscsiStoragePolicy. - - :return: The account of this HyperflexExtIscsiStoragePolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexExtIscsiStoragePolicy. - - :param account: The account of this HyperflexExtIscsiStoragePolicy. - :type: MoMoRef - """ - - self._account = account - @property def admin_state(self): """ Gets the admin_state of this HyperflexExtIscsiStoragePolicy. - Flag to determine if external FCoE storage configuration is enabled or disabled + Enable or disable external FCoE storage configuration :return: The admin_state of this HyperflexExtIscsiStoragePolicy. :rtype: bool @@ -412,7 +419,7 @@ def admin_state(self): def admin_state(self, admin_state): """ Sets the admin_state of this HyperflexExtIscsiStoragePolicy. - Flag to determine if external FCoE storage configuration is enabled or disabled + Enable or disable external FCoE storage configuration :param admin_state: The admin_state of this HyperflexExtIscsiStoragePolicy. :type: bool @@ -424,9 +431,10 @@ def admin_state(self, admin_state): def cluster_profiles(self): """ Gets the cluster_profiles of this HyperflexExtIscsiStoragePolicy. + List of cluster profiles using this policy :return: The cluster_profiles of this HyperflexExtIscsiStoragePolicy. - :rtype: list[MoMoRef] + :rtype: list[HyperflexClusterProfileRef] """ return self._cluster_profiles @@ -434,9 +442,10 @@ def cluster_profiles(self): def cluster_profiles(self, cluster_profiles): """ Sets the cluster_profiles of this HyperflexExtIscsiStoragePolicy. + List of cluster profiles using this policy :param cluster_profiles: The cluster_profiles of this HyperflexExtIscsiStoragePolicy. - :type: list[MoMoRef] + :type: list[HyperflexClusterProfileRef] """ self._cluster_profiles = cluster_profiles @@ -445,7 +454,7 @@ def cluster_profiles(self, cluster_profiles): def exta_traffic(self): """ Gets the exta_traffic of this HyperflexExtIscsiStoragePolicy. - VLAN for Primary Fabric Interconnect external FCoE storage traffic + VLAN for the primary Fabric Interconnect external FCoE storage traffic :return: The exta_traffic of this HyperflexExtIscsiStoragePolicy. :rtype: HyperflexNamedVlan @@ -456,7 +465,7 @@ def exta_traffic(self): def exta_traffic(self, exta_traffic): """ Sets the exta_traffic of this HyperflexExtIscsiStoragePolicy. - VLAN for Primary Fabric Interconnect external FCoE storage traffic + VLAN for the primary Fabric Interconnect external FCoE storage traffic :param exta_traffic: The exta_traffic of this HyperflexExtIscsiStoragePolicy. :type: HyperflexNamedVlan @@ -468,7 +477,7 @@ def exta_traffic(self, exta_traffic): def extb_traffic(self): """ Gets the extb_traffic of this HyperflexExtIscsiStoragePolicy. - VLAN for Secondary Fabric Interconnect external FCoE storage traffic + VLAN for the secondary Fabric Interconnect external FCoE storage traffic :return: The extb_traffic of this HyperflexExtIscsiStoragePolicy. :rtype: HyperflexNamedVlan @@ -479,7 +488,7 @@ def extb_traffic(self): def extb_traffic(self, extb_traffic): """ Sets the extb_traffic of this HyperflexExtIscsiStoragePolicy. - VLAN for Secondary Fabric Interconnect external FCoE storage traffic + VLAN for the secondary Fabric Interconnect external FCoE storage traffic :param extb_traffic: The extb_traffic of this HyperflexExtIscsiStoragePolicy. :type: HyperflexNamedVlan @@ -487,6 +496,29 @@ def extb_traffic(self, extb_traffic): self._extb_traffic = extb_traffic + @property + def organization(self): + """ + Gets the organization of this HyperflexExtIscsiStoragePolicy. + Organization + + :return: The organization of this HyperflexExtIscsiStoragePolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexExtIscsiStoragePolicy. + Organization + + :param organization: The organization of this HyperflexExtIscsiStoragePolicy. + :type: IamAccountRef + """ + + self._organization = organization + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/hyperflex_ext_iscsi_storage_policy_list.py b/intersight/models/hyperflex_ext_iscsi_storage_policy_list.py index db1493b3..baef9891 100644 --- a/intersight/models/hyperflex_ext_iscsi_storage_policy_list.py +++ b/intersight/models/hyperflex_ext_iscsi_storage_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_ext_iscsi_storage_policy_ref.py b/intersight/models/hyperflex_ext_iscsi_storage_policy_ref.py new file mode 100644 index 00000000..3ff7df7a --- /dev/null +++ b/intersight/models/hyperflex_ext_iscsi_storage_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexExtIscsiStoragePolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexExtIscsiStoragePolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexExtIscsiStoragePolicyRef. + + :return: The moid of this HyperflexExtIscsiStoragePolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexExtIscsiStoragePolicyRef. + + :param moid: The moid of this HyperflexExtIscsiStoragePolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexExtIscsiStoragePolicyRef. + + :return: The object_type of this HyperflexExtIscsiStoragePolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexExtIscsiStoragePolicyRef. + + :param object_type: The object_type of this HyperflexExtIscsiStoragePolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexExtIscsiStoragePolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_local_disk.py b/intersight/models/hyperflex_feature_limit_entry.py similarity index 55% rename from intersight/models/boot_local_disk.py rename to intersight/models/hyperflex_feature_limit_entry.py index 3e6fb11b..13dcc2e2 100644 --- a/intersight/models/boot_local_disk.py +++ b/intersight/models/hyperflex_feature_limit_entry.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class BootLocalDisk(object): +class HyperflexFeatureLimitEntry(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,101 +31,101 @@ class BootLocalDisk(object): and the value is json key in definition. """ swagger_types = { - 'enabled': 'bool', 'name': 'str', - 'slot': 'str' + 'value': 'str', + 'constraint': 'HyperflexAppSettingConstraint' } attribute_map = { - 'enabled': 'Enabled', 'name': 'Name', - 'slot': 'Slot' + 'value': 'Value', + 'constraint': 'Constraint' } - def __init__(self, enabled=None, name=None, slot=None): + def __init__(self, name=None, value=None, constraint=None): """ - BootLocalDisk - a model defined in Swagger + HyperflexFeatureLimitEntry - a model defined in Swagger """ - self._enabled = None self._name = None - self._slot = None + self._value = None + self._constraint = None - if enabled is not None: - self.enabled = enabled if name is not None: self.name = name - if slot is not None: - self.slot = slot + if value is not None: + self.value = value + if constraint is not None: + self.constraint = constraint @property - def enabled(self): + def name(self): """ - Gets the enabled of this BootLocalDisk. - Specifies if the boot device is enabled or disabled. + Gets the name of this HyperflexFeatureLimitEntry. + Application setting identifier - :return: The enabled of this BootLocalDisk. - :rtype: bool + :return: The name of this HyperflexFeatureLimitEntry. + :rtype: str """ - return self._enabled + return self._name - @enabled.setter - def enabled(self, enabled): + @name.setter + def name(self, name): """ - Sets the enabled of this BootLocalDisk. - Specifies if the boot device is enabled or disabled. + Sets the name of this HyperflexFeatureLimitEntry. + Application setting identifier - :param enabled: The enabled of this BootLocalDisk. - :type: bool + :param name: The name of this HyperflexFeatureLimitEntry. + :type: str """ - self._enabled = enabled + self._name = name @property - def name(self): + def value(self): """ - Gets the name of this BootLocalDisk. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. + Gets the value of this HyperflexFeatureLimitEntry. + Application setting value - :return: The name of this BootLocalDisk. + :return: The value of this HyperflexFeatureLimitEntry. :rtype: str """ - return self._name + return self._value - @name.setter - def name(self, name): + @value.setter + def value(self, value): """ - Sets the name of this BootLocalDisk. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. + Sets the value of this HyperflexFeatureLimitEntry. + Application setting value - :param name: The name of this BootLocalDisk. + :param value: The value of this HyperflexFeatureLimitEntry. :type: str """ - self._name = name + self._value = value @property - def slot(self): + def constraint(self): """ - Gets the slot of this BootLocalDisk. - Specifies the slot id of the local disk device. Supported value is (\"MRAID\") + Gets the constraint of this HyperflexFeatureLimitEntry. + Conditions to be met to apply the AppSetting - :return: The slot of this BootLocalDisk. - :rtype: str + :return: The constraint of this HyperflexFeatureLimitEntry. + :rtype: HyperflexAppSettingConstraint """ - return self._slot + return self._constraint - @slot.setter - def slot(self, slot): + @constraint.setter + def constraint(self, constraint): """ - Sets the slot of this BootLocalDisk. - Specifies the slot id of the local disk device. Supported value is (\"MRAID\") + Sets the constraint of this HyperflexFeatureLimitEntry. + Conditions to be met to apply the AppSetting - :param slot: The slot of this BootLocalDisk. - :type: str + :param constraint: The constraint of this HyperflexFeatureLimitEntry. + :type: HyperflexAppSettingConstraint """ - self._slot = slot + self._constraint = constraint def to_dict(self): """ @@ -169,7 +169,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, BootLocalDisk): + if not isinstance(other, HyperflexFeatureLimitEntry): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/hyperflex_feature_limit_entry_ref.py b/intersight/models/hyperflex_feature_limit_entry_ref.py new file mode 100644 index 00000000..d649f825 --- /dev/null +++ b/intersight/models/hyperflex_feature_limit_entry_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexFeatureLimitEntryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexFeatureLimitEntryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexFeatureLimitEntryRef. + + :return: The moid of this HyperflexFeatureLimitEntryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexFeatureLimitEntryRef. + + :param moid: The moid of this HyperflexFeatureLimitEntryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexFeatureLimitEntryRef. + + :return: The object_type of this HyperflexFeatureLimitEntryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexFeatureLimitEntryRef. + + :param object_type: The object_type of this HyperflexFeatureLimitEntryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexFeatureLimitEntryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_feature_limit_external.py b/intersight/models/hyperflex_feature_limit_external.py new file mode 100644 index 00000000..f476b59f --- /dev/null +++ b/intersight/models/hyperflex_feature_limit_external.py @@ -0,0 +1,431 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexFeatureLimitExternal(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'app_catalog': 'HyperflexAppCatalogRef', + 'feature_limit_entries': 'list[HyperflexFeatureLimitEntry]' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'app_catalog': 'AppCatalog', + 'feature_limit_entries': 'FeatureLimitEntries' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, app_catalog=None, feature_limit_entries=None): + """ + HyperflexFeatureLimitExternal - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._app_catalog = None + self._feature_limit_entries = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if app_catalog is not None: + self.app_catalog = app_catalog + if feature_limit_entries is not None: + self.feature_limit_entries = feature_limit_entries + + @property + def account_moid(self): + """ + Gets the account_moid of this HyperflexFeatureLimitExternal. + The Account ID for this managed object. + + :return: The account_moid of this HyperflexFeatureLimitExternal. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this HyperflexFeatureLimitExternal. + The Account ID for this managed object. + + :param account_moid: The account_moid of this HyperflexFeatureLimitExternal. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this HyperflexFeatureLimitExternal. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this HyperflexFeatureLimitExternal. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this HyperflexFeatureLimitExternal. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this HyperflexFeatureLimitExternal. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this HyperflexFeatureLimitExternal. + The time when this managed object was created. + + :return: The create_time of this HyperflexFeatureLimitExternal. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this HyperflexFeatureLimitExternal. + The time when this managed object was created. + + :param create_time: The create_time of this HyperflexFeatureLimitExternal. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this HyperflexFeatureLimitExternal. + The time when this managed object was last modified. + + :return: The mod_time of this HyperflexFeatureLimitExternal. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this HyperflexFeatureLimitExternal. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this HyperflexFeatureLimitExternal. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this HyperflexFeatureLimitExternal. + A unique identifier of this Managed Object instance. + + :return: The moid of this HyperflexFeatureLimitExternal. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexFeatureLimitExternal. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this HyperflexFeatureLimitExternal. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexFeatureLimitExternal. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this HyperflexFeatureLimitExternal. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexFeatureLimitExternal. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this HyperflexFeatureLimitExternal. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this HyperflexFeatureLimitExternal. + An array of owners which represent effective ownership of this object. + + :return: The owners of this HyperflexFeatureLimitExternal. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this HyperflexFeatureLimitExternal. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this HyperflexFeatureLimitExternal. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this HyperflexFeatureLimitExternal. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this HyperflexFeatureLimitExternal. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this HyperflexFeatureLimitExternal. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this HyperflexFeatureLimitExternal. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this HyperflexFeatureLimitExternal. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this HyperflexFeatureLimitExternal. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this HyperflexFeatureLimitExternal. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this HyperflexFeatureLimitExternal. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this HyperflexFeatureLimitExternal. + The versioning info for this managed object + + :return: The version_context of this HyperflexFeatureLimitExternal. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexFeatureLimitExternal. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexFeatureLimitExternal. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def app_catalog(self): + """ + Gets the app_catalog of this HyperflexFeatureLimitExternal. + + :return: The app_catalog of this HyperflexFeatureLimitExternal. + :rtype: HyperflexAppCatalogRef + """ + return self._app_catalog + + @app_catalog.setter + def app_catalog(self, app_catalog): + """ + Sets the app_catalog of this HyperflexFeatureLimitExternal. + + :param app_catalog: The app_catalog of this HyperflexFeatureLimitExternal. + :type: HyperflexAppCatalogRef + """ + + self._app_catalog = app_catalog + + @property + def feature_limit_entries(self): + """ + Gets the feature_limit_entries of this HyperflexFeatureLimitExternal. + HyperFlex feature limits + + :return: The feature_limit_entries of this HyperflexFeatureLimitExternal. + :rtype: list[HyperflexFeatureLimitEntry] + """ + return self._feature_limit_entries + + @feature_limit_entries.setter + def feature_limit_entries(self, feature_limit_entries): + """ + Sets the feature_limit_entries of this HyperflexFeatureLimitExternal. + HyperFlex feature limits + + :param feature_limit_entries: The feature_limit_entries of this HyperflexFeatureLimitExternal. + :type: list[HyperflexFeatureLimitEntry] + """ + + self._feature_limit_entries = feature_limit_entries + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexFeatureLimitExternal): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/techsupportmanagement_download_list.py b/intersight/models/hyperflex_feature_limit_external_list.py similarity index 70% rename from intersight/models/techsupportmanagement_download_list.py rename to intersight/models/hyperflex_feature_limit_external_list.py index e9b68d40..08ad4eea 100644 --- a/intersight/models/techsupportmanagement_download_list.py +++ b/intersight/models/hyperflex_feature_limit_external_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class TechsupportmanagementDownloadList(object): +class HyperflexFeatureLimitExternalList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class TechsupportmanagementDownloadList(object): """ swagger_types = { 'count': 'int', - 'results': 'list[TechsupportmanagementDownload]' + 'results': 'list[HyperflexFeatureLimitExternal]' } attribute_map = { @@ -42,7 +42,7 @@ class TechsupportmanagementDownloadList(object): def __init__(self, count=None, results=None): """ - TechsupportmanagementDownloadList - a model defined in Swagger + HyperflexFeatureLimitExternalList - a model defined in Swagger """ self._count = None @@ -56,10 +56,10 @@ def __init__(self, count=None, results=None): @property def count(self): """ - Gets the count of this TechsupportmanagementDownloadList. - The number of techsupportmanagementDownloads matching your request in total for all pages. + Gets the count of this HyperflexFeatureLimitExternalList. + The number of hyperflexFeatureLimitExternals matching your request in total for all pages. - :return: The count of this TechsupportmanagementDownloadList. + :return: The count of this HyperflexFeatureLimitExternalList. :rtype: int """ return self._count @@ -67,10 +67,10 @@ def count(self): @count.setter def count(self, count): """ - Sets the count of this TechsupportmanagementDownloadList. - The number of techsupportmanagementDownloads matching your request in total for all pages. + Sets the count of this HyperflexFeatureLimitExternalList. + The number of hyperflexFeatureLimitExternals matching your request in total for all pages. - :param count: The count of this TechsupportmanagementDownloadList. + :param count: The count of this HyperflexFeatureLimitExternalList. :type: int """ @@ -79,22 +79,22 @@ def count(self, count): @property def results(self): """ - Gets the results of this TechsupportmanagementDownloadList. - The array of techsupportmanagementDownloads matching your request. + Gets the results of this HyperflexFeatureLimitExternalList. + The array of hyperflexFeatureLimitExternals matching your request. - :return: The results of this TechsupportmanagementDownloadList. - :rtype: list[TechsupportmanagementDownload] + :return: The results of this HyperflexFeatureLimitExternalList. + :rtype: list[HyperflexFeatureLimitExternal] """ return self._results @results.setter def results(self, results): """ - Sets the results of this TechsupportmanagementDownloadList. - The array of techsupportmanagementDownloads matching your request. + Sets the results of this HyperflexFeatureLimitExternalList. + The array of hyperflexFeatureLimitExternals matching your request. - :param results: The results of this TechsupportmanagementDownloadList. - :type: list[TechsupportmanagementDownload] + :param results: The results of this HyperflexFeatureLimitExternalList. + :type: list[HyperflexFeatureLimitExternal] """ self._results = results @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, TechsupportmanagementDownloadList): + if not isinstance(other, HyperflexFeatureLimitExternalList): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/hyperflex_feature_limit_external_ref.py b/intersight/models/hyperflex_feature_limit_external_ref.py new file mode 100644 index 00000000..742da4a0 --- /dev/null +++ b/intersight/models/hyperflex_feature_limit_external_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexFeatureLimitExternalRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexFeatureLimitExternalRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexFeatureLimitExternalRef. + + :return: The moid of this HyperflexFeatureLimitExternalRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexFeatureLimitExternalRef. + + :param moid: The moid of this HyperflexFeatureLimitExternalRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexFeatureLimitExternalRef. + + :return: The object_type of this HyperflexFeatureLimitExternalRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexFeatureLimitExternalRef. + + :param object_type: The object_type of this HyperflexFeatureLimitExternalRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexFeatureLimitExternalRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_feature_limit_internal.py b/intersight/models/hyperflex_feature_limit_internal.py new file mode 100644 index 00000000..06c16c6e --- /dev/null +++ b/intersight/models/hyperflex_feature_limit_internal.py @@ -0,0 +1,431 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexFeatureLimitInternal(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'app_catalog': 'HyperflexAppCatalogRef', + 'feature_limit_entries': 'list[HyperflexFeatureLimitEntry]' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'app_catalog': 'AppCatalog', + 'feature_limit_entries': 'FeatureLimitEntries' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, app_catalog=None, feature_limit_entries=None): + """ + HyperflexFeatureLimitInternal - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._app_catalog = None + self._feature_limit_entries = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if app_catalog is not None: + self.app_catalog = app_catalog + if feature_limit_entries is not None: + self.feature_limit_entries = feature_limit_entries + + @property + def account_moid(self): + """ + Gets the account_moid of this HyperflexFeatureLimitInternal. + The Account ID for this managed object. + + :return: The account_moid of this HyperflexFeatureLimitInternal. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this HyperflexFeatureLimitInternal. + The Account ID for this managed object. + + :param account_moid: The account_moid of this HyperflexFeatureLimitInternal. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this HyperflexFeatureLimitInternal. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this HyperflexFeatureLimitInternal. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this HyperflexFeatureLimitInternal. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this HyperflexFeatureLimitInternal. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this HyperflexFeatureLimitInternal. + The time when this managed object was created. + + :return: The create_time of this HyperflexFeatureLimitInternal. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this HyperflexFeatureLimitInternal. + The time when this managed object was created. + + :param create_time: The create_time of this HyperflexFeatureLimitInternal. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this HyperflexFeatureLimitInternal. + The time when this managed object was last modified. + + :return: The mod_time of this HyperflexFeatureLimitInternal. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this HyperflexFeatureLimitInternal. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this HyperflexFeatureLimitInternal. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this HyperflexFeatureLimitInternal. + A unique identifier of this Managed Object instance. + + :return: The moid of this HyperflexFeatureLimitInternal. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexFeatureLimitInternal. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this HyperflexFeatureLimitInternal. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexFeatureLimitInternal. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this HyperflexFeatureLimitInternal. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexFeatureLimitInternal. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this HyperflexFeatureLimitInternal. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this HyperflexFeatureLimitInternal. + An array of owners which represent effective ownership of this object. + + :return: The owners of this HyperflexFeatureLimitInternal. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this HyperflexFeatureLimitInternal. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this HyperflexFeatureLimitInternal. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this HyperflexFeatureLimitInternal. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this HyperflexFeatureLimitInternal. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this HyperflexFeatureLimitInternal. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this HyperflexFeatureLimitInternal. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this HyperflexFeatureLimitInternal. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this HyperflexFeatureLimitInternal. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this HyperflexFeatureLimitInternal. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this HyperflexFeatureLimitInternal. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this HyperflexFeatureLimitInternal. + The versioning info for this managed object + + :return: The version_context of this HyperflexFeatureLimitInternal. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexFeatureLimitInternal. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexFeatureLimitInternal. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def app_catalog(self): + """ + Gets the app_catalog of this HyperflexFeatureLimitInternal. + + :return: The app_catalog of this HyperflexFeatureLimitInternal. + :rtype: HyperflexAppCatalogRef + """ + return self._app_catalog + + @app_catalog.setter + def app_catalog(self, app_catalog): + """ + Sets the app_catalog of this HyperflexFeatureLimitInternal. + + :param app_catalog: The app_catalog of this HyperflexFeatureLimitInternal. + :type: HyperflexAppCatalogRef + """ + + self._app_catalog = app_catalog + + @property + def feature_limit_entries(self): + """ + Gets the feature_limit_entries of this HyperflexFeatureLimitInternal. + HyperFlex feature limits + + :return: The feature_limit_entries of this HyperflexFeatureLimitInternal. + :rtype: list[HyperflexFeatureLimitEntry] + """ + return self._feature_limit_entries + + @feature_limit_entries.setter + def feature_limit_entries(self, feature_limit_entries): + """ + Sets the feature_limit_entries of this HyperflexFeatureLimitInternal. + HyperFlex feature limits + + :param feature_limit_entries: The feature_limit_entries of this HyperflexFeatureLimitInternal. + :type: list[HyperflexFeatureLimitEntry] + """ + + self._feature_limit_entries = feature_limit_entries + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexFeatureLimitInternal): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_feature_limit_internal_list.py b/intersight/models/hyperflex_feature_limit_internal_list.py new file mode 100644 index 00000000..1b63700c --- /dev/null +++ b/intersight/models/hyperflex_feature_limit_internal_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexFeatureLimitInternalList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[HyperflexFeatureLimitInternal]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + HyperflexFeatureLimitInternalList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this HyperflexFeatureLimitInternalList. + The number of hyperflexFeatureLimitInternals matching your request in total for all pages. + + :return: The count of this HyperflexFeatureLimitInternalList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this HyperflexFeatureLimitInternalList. + The number of hyperflexFeatureLimitInternals matching your request in total for all pages. + + :param count: The count of this HyperflexFeatureLimitInternalList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this HyperflexFeatureLimitInternalList. + The array of hyperflexFeatureLimitInternals matching your request. + + :return: The results of this HyperflexFeatureLimitInternalList. + :rtype: list[HyperflexFeatureLimitInternal] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this HyperflexFeatureLimitInternalList. + The array of hyperflexFeatureLimitInternals matching your request. + + :param results: The results of this HyperflexFeatureLimitInternalList. + :type: list[HyperflexFeatureLimitInternal] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexFeatureLimitInternalList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_feature_limit_internal_ref.py b/intersight/models/hyperflex_feature_limit_internal_ref.py new file mode 100644 index 00000000..1948ef71 --- /dev/null +++ b/intersight/models/hyperflex_feature_limit_internal_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexFeatureLimitInternalRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexFeatureLimitInternalRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexFeatureLimitInternalRef. + + :return: The moid of this HyperflexFeatureLimitInternalRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexFeatureLimitInternalRef. + + :param moid: The moid of this HyperflexFeatureLimitInternalRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexFeatureLimitInternalRef. + + :return: The object_type of this HyperflexFeatureLimitInternalRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexFeatureLimitInternalRef. + + :param object_type: The object_type of this HyperflexFeatureLimitInternalRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexFeatureLimitInternalRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_hx_link_dt.py b/intersight/models/hyperflex_hx_link_dt.py new file mode 100644 index 00000000..1940bfa6 --- /dev/null +++ b/intersight/models/hyperflex_hx_link_dt.py @@ -0,0 +1,207 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexHxLinkDt(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'comments': 'str', + 'href': 'str', + 'method': 'str', + 'rel': 'str' + } + + attribute_map = { + 'comments': 'Comments', + 'href': 'Href', + 'method': 'Method', + 'rel': 'Rel' + } + + def __init__(self, comments=None, href=None, method='POST', rel=None): + """ + HyperflexHxLinkDt - a model defined in Swagger + """ + + self._comments = None + self._href = None + self._method = None + self._rel = None + + if comments is not None: + self.comments = comments + if href is not None: + self.href = href + if method is not None: + self.method = method + if rel is not None: + self.rel = rel + + @property + def comments(self): + """ + Gets the comments of this HyperflexHxLinkDt. + + :return: The comments of this HyperflexHxLinkDt. + :rtype: str + """ + return self._comments + + @comments.setter + def comments(self, comments): + """ + Sets the comments of this HyperflexHxLinkDt. + + :param comments: The comments of this HyperflexHxLinkDt. + :type: str + """ + + self._comments = comments + + @property + def href(self): + """ + Gets the href of this HyperflexHxLinkDt. + + :return: The href of this HyperflexHxLinkDt. + :rtype: str + """ + return self._href + + @href.setter + def href(self, href): + """ + Sets the href of this HyperflexHxLinkDt. + + :param href: The href of this HyperflexHxLinkDt. + :type: str + """ + + self._href = href + + @property + def method(self): + """ + Gets the method of this HyperflexHxLinkDt. + + :return: The method of this HyperflexHxLinkDt. + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """ + Sets the method of this HyperflexHxLinkDt. + + :param method: The method of this HyperflexHxLinkDt. + :type: str + """ + allowed_values = ["POST", "GET", "PUT", "DELETE"] + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" + .format(method, allowed_values) + ) + + self._method = method + + @property + def rel(self): + """ + Gets the rel of this HyperflexHxLinkDt. + + :return: The rel of this HyperflexHxLinkDt. + :rtype: str + """ + return self._rel + + @rel.setter + def rel(self, rel): + """ + Sets the rel of this HyperflexHxLinkDt. + + :param rel: The rel of this HyperflexHxLinkDt. + :type: str + """ + + self._rel = rel + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexHxLinkDt): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_hx_link_dt_ref.py b/intersight/models/hyperflex_hx_link_dt_ref.py new file mode 100644 index 00000000..9e1d6bca --- /dev/null +++ b/intersight/models/hyperflex_hx_link_dt_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexHxLinkDtRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexHxLinkDtRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexHxLinkDtRef. + + :return: The moid of this HyperflexHxLinkDtRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexHxLinkDtRef. + + :param moid: The moid of this HyperflexHxLinkDtRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexHxLinkDtRef. + + :return: The object_type of this HyperflexHxLinkDtRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexHxLinkDtRef. + + :param object_type: The object_type of this HyperflexHxLinkDtRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexHxLinkDtRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_hx_network_address_dt.py b/intersight/models/hyperflex_hx_network_address_dt.py new file mode 100644 index 00000000..c1e129cb --- /dev/null +++ b/intersight/models/hyperflex_hx_network_address_dt.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexHxNetworkAddressDt(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'address': 'str', + 'fqdn': 'str', + 'ip': 'str' + } + + attribute_map = { + 'address': 'Address', + 'fqdn': 'Fqdn', + 'ip': 'Ip' + } + + def __init__(self, address=None, fqdn=None, ip=None): + """ + HyperflexHxNetworkAddressDt - a model defined in Swagger + """ + + self._address = None + self._fqdn = None + self._ip = None + + if address is not None: + self.address = address + if fqdn is not None: + self.fqdn = fqdn + if ip is not None: + self.ip = ip + + @property + def address(self): + """ + Gets the address of this HyperflexHxNetworkAddressDt. + + :return: The address of this HyperflexHxNetworkAddressDt. + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """ + Sets the address of this HyperflexHxNetworkAddressDt. + + :param address: The address of this HyperflexHxNetworkAddressDt. + :type: str + """ + + self._address = address + + @property + def fqdn(self): + """ + Gets the fqdn of this HyperflexHxNetworkAddressDt. + + :return: The fqdn of this HyperflexHxNetworkAddressDt. + :rtype: str + """ + return self._fqdn + + @fqdn.setter + def fqdn(self, fqdn): + """ + Sets the fqdn of this HyperflexHxNetworkAddressDt. + + :param fqdn: The fqdn of this HyperflexHxNetworkAddressDt. + :type: str + """ + + self._fqdn = fqdn + + @property + def ip(self): + """ + Gets the ip of this HyperflexHxNetworkAddressDt. + + :return: The ip of this HyperflexHxNetworkAddressDt. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """ + Sets the ip of this HyperflexHxNetworkAddressDt. + + :param ip: The ip of this HyperflexHxNetworkAddressDt. + :type: str + """ + + self._ip = ip + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexHxNetworkAddressDt): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_hx_network_address_dt_ref.py b/intersight/models/hyperflex_hx_network_address_dt_ref.py new file mode 100644 index 00000000..f976f94b --- /dev/null +++ b/intersight/models/hyperflex_hx_network_address_dt_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexHxNetworkAddressDtRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexHxNetworkAddressDtRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexHxNetworkAddressDtRef. + + :return: The moid of this HyperflexHxNetworkAddressDtRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexHxNetworkAddressDtRef. + + :param moid: The moid of this HyperflexHxNetworkAddressDtRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexHxNetworkAddressDtRef. + + :return: The object_type of this HyperflexHxNetworkAddressDtRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexHxNetworkAddressDtRef. + + :param object_type: The object_type of this HyperflexHxNetworkAddressDtRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexHxNetworkAddressDtRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_hx_uu_id_dt.py b/intersight/models/hyperflex_hx_uu_id_dt.py new file mode 100644 index 00000000..b0546c30 --- /dev/null +++ b/intersight/models/hyperflex_hx_uu_id_dt.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexHxUuIdDt(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'links': 'list[HyperflexHxLinkDt]', + 'uuid': 'str' + } + + attribute_map = { + 'links': 'Links', + 'uuid': 'Uuid' + } + + def __init__(self, links=None, uuid=None): + """ + HyperflexHxUuIdDt - a model defined in Swagger + """ + + self._links = None + self._uuid = None + + if links is not None: + self.links = links + if uuid is not None: + self.uuid = uuid + + @property + def links(self): + """ + Gets the links of this HyperflexHxUuIdDt. + + :return: The links of this HyperflexHxUuIdDt. + :rtype: list[HyperflexHxLinkDt] + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this HyperflexHxUuIdDt. + + :param links: The links of this HyperflexHxUuIdDt. + :type: list[HyperflexHxLinkDt] + """ + + self._links = links + + @property + def uuid(self): + """ + Gets the uuid of this HyperflexHxUuIdDt. + + :return: The uuid of this HyperflexHxUuIdDt. + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """ + Sets the uuid of this HyperflexHxUuIdDt. + + :param uuid: The uuid of this HyperflexHxUuIdDt. + :type: str + """ + + self._uuid = uuid + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexHxUuIdDt): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_hx_uu_id_dt_ref.py b/intersight/models/hyperflex_hx_uu_id_dt_ref.py new file mode 100644 index 00000000..d910728a --- /dev/null +++ b/intersight/models/hyperflex_hx_uu_id_dt_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexHxUuIdDtRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexHxUuIdDtRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexHxUuIdDtRef. + + :return: The moid of this HyperflexHxUuIdDtRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexHxUuIdDtRef. + + :param moid: The moid of this HyperflexHxUuIdDtRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexHxUuIdDtRef. + + :return: The object_type of this HyperflexHxUuIdDtRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexHxUuIdDtRef. + + :param object_type: The object_type of this HyperflexHxUuIdDtRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexHxUuIdDtRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_hxdp_version.py b/intersight/models/hyperflex_hxdp_version.py new file mode 100644 index 00000000..e8e19ac1 --- /dev/null +++ b/intersight/models/hyperflex_hxdp_version.py @@ -0,0 +1,459 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexHxdpVersion(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'app_catalog': 'HyperflexAppCatalogRef', + 'installer_image': 'HyperflexInstallerImageRef', + 'version': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'app_catalog': 'AppCatalog', + 'installer_image': 'InstallerImage', + 'version': 'Version' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, app_catalog=None, installer_image=None, version=None): + """ + HyperflexHxdpVersion - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._app_catalog = None + self._installer_image = None + self._version = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if app_catalog is not None: + self.app_catalog = app_catalog + if installer_image is not None: + self.installer_image = installer_image + if version is not None: + self.version = version + + @property + def account_moid(self): + """ + Gets the account_moid of this HyperflexHxdpVersion. + The Account ID for this managed object. + + :return: The account_moid of this HyperflexHxdpVersion. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this HyperflexHxdpVersion. + The Account ID for this managed object. + + :param account_moid: The account_moid of this HyperflexHxdpVersion. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this HyperflexHxdpVersion. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this HyperflexHxdpVersion. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this HyperflexHxdpVersion. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this HyperflexHxdpVersion. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this HyperflexHxdpVersion. + The time when this managed object was created. + + :return: The create_time of this HyperflexHxdpVersion. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this HyperflexHxdpVersion. + The time when this managed object was created. + + :param create_time: The create_time of this HyperflexHxdpVersion. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this HyperflexHxdpVersion. + The time when this managed object was last modified. + + :return: The mod_time of this HyperflexHxdpVersion. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this HyperflexHxdpVersion. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this HyperflexHxdpVersion. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this HyperflexHxdpVersion. + A unique identifier of this Managed Object instance. + + :return: The moid of this HyperflexHxdpVersion. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexHxdpVersion. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this HyperflexHxdpVersion. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexHxdpVersion. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this HyperflexHxdpVersion. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexHxdpVersion. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this HyperflexHxdpVersion. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this HyperflexHxdpVersion. + An array of owners which represent effective ownership of this object. + + :return: The owners of this HyperflexHxdpVersion. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this HyperflexHxdpVersion. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this HyperflexHxdpVersion. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this HyperflexHxdpVersion. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this HyperflexHxdpVersion. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this HyperflexHxdpVersion. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this HyperflexHxdpVersion. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this HyperflexHxdpVersion. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this HyperflexHxdpVersion. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this HyperflexHxdpVersion. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this HyperflexHxdpVersion. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this HyperflexHxdpVersion. + The versioning info for this managed object + + :return: The version_context of this HyperflexHxdpVersion. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexHxdpVersion. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexHxdpVersion. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def app_catalog(self): + """ + Gets the app_catalog of this HyperflexHxdpVersion. + + :return: The app_catalog of this HyperflexHxdpVersion. + :rtype: HyperflexAppCatalogRef + """ + return self._app_catalog + + @app_catalog.setter + def app_catalog(self, app_catalog): + """ + Sets the app_catalog of this HyperflexHxdpVersion. + + :param app_catalog: The app_catalog of this HyperflexHxdpVersion. + :type: HyperflexAppCatalogRef + """ + + self._app_catalog = app_catalog + + @property + def installer_image(self): + """ + Gets the installer_image of this HyperflexHxdpVersion. + Corresponding installer image for the HyperFlex Data Platform version + + :return: The installer_image of this HyperflexHxdpVersion. + :rtype: HyperflexInstallerImageRef + """ + return self._installer_image + + @installer_image.setter + def installer_image(self, installer_image): + """ + Sets the installer_image of this HyperflexHxdpVersion. + Corresponding installer image for the HyperFlex Data Platform version + + :param installer_image: The installer_image of this HyperflexHxdpVersion. + :type: HyperflexInstallerImageRef + """ + + self._installer_image = installer_image + + @property + def version(self): + """ + Gets the version of this HyperflexHxdpVersion. + HyperFlex Data Platform version + + :return: The version of this HyperflexHxdpVersion. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this HyperflexHxdpVersion. + HyperFlex Data Platform version + + :param version: The version of this HyperflexHxdpVersion. + :type: str + """ + + self._version = version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexHxdpVersion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_compatibility_info_list.py b/intersight/models/hyperflex_hxdp_version_list.py similarity index 71% rename from intersight/models/hcl_compatibility_info_list.py rename to intersight/models/hyperflex_hxdp_version_list.py index 9d7b1028..25c28e07 100644 --- a/intersight/models/hcl_compatibility_info_list.py +++ b/intersight/models/hyperflex_hxdp_version_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class HclCompatibilityInfoList(object): +class HyperflexHxdpVersionList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class HclCompatibilityInfoList(object): """ swagger_types = { 'count': 'int', - 'results': 'list[HclCompatibilityInfo]' + 'results': 'list[HyperflexHxdpVersion]' } attribute_map = { @@ -42,7 +42,7 @@ class HclCompatibilityInfoList(object): def __init__(self, count=None, results=None): """ - HclCompatibilityInfoList - a model defined in Swagger + HyperflexHxdpVersionList - a model defined in Swagger """ self._count = None @@ -56,10 +56,10 @@ def __init__(self, count=None, results=None): @property def count(self): """ - Gets the count of this HclCompatibilityInfoList. - The number of hclCompatibilityInfos matching your request in total for all pages. + Gets the count of this HyperflexHxdpVersionList. + The number of hyperflexHxdpVersions matching your request in total for all pages. - :return: The count of this HclCompatibilityInfoList. + :return: The count of this HyperflexHxdpVersionList. :rtype: int """ return self._count @@ -67,10 +67,10 @@ def count(self): @count.setter def count(self, count): """ - Sets the count of this HclCompatibilityInfoList. - The number of hclCompatibilityInfos matching your request in total for all pages. + Sets the count of this HyperflexHxdpVersionList. + The number of hyperflexHxdpVersions matching your request in total for all pages. - :param count: The count of this HclCompatibilityInfoList. + :param count: The count of this HyperflexHxdpVersionList. :type: int """ @@ -79,22 +79,22 @@ def count(self, count): @property def results(self): """ - Gets the results of this HclCompatibilityInfoList. - The array of hclCompatibilityInfos matching your request. + Gets the results of this HyperflexHxdpVersionList. + The array of hyperflexHxdpVersions matching your request. - :return: The results of this HclCompatibilityInfoList. - :rtype: list[HclCompatibilityInfo] + :return: The results of this HyperflexHxdpVersionList. + :rtype: list[HyperflexHxdpVersion] """ return self._results @results.setter def results(self, results): """ - Sets the results of this HclCompatibilityInfoList. - The array of hclCompatibilityInfos matching your request. + Sets the results of this HyperflexHxdpVersionList. + The array of hyperflexHxdpVersions matching your request. - :param results: The results of this HclCompatibilityInfoList. - :type: list[HclCompatibilityInfo] + :param results: The results of this HyperflexHxdpVersionList. + :type: list[HyperflexHxdpVersion] """ self._results = results @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, HclCompatibilityInfoList): + if not isinstance(other, HyperflexHxdpVersionList): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/hyperflex_hxdp_version_ref.py b/intersight/models/hyperflex_hxdp_version_ref.py new file mode 100644 index 00000000..3d12079d --- /dev/null +++ b/intersight/models/hyperflex_hxdp_version_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexHxdpVersionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexHxdpVersionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexHxdpVersionRef. + + :return: The moid of this HyperflexHxdpVersionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexHxdpVersionRef. + + :param moid: The moid of this HyperflexHxdpVersionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexHxdpVersionRef. + + :return: The object_type of this HyperflexHxdpVersionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexHxdpVersionRef. + + :param object_type: The object_type of this HyperflexHxdpVersionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexHxdpVersionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_installer_image_ref.py b/intersight/models/hyperflex_installer_image_ref.py new file mode 100644 index 00000000..3400706a --- /dev/null +++ b/intersight/models/hyperflex_installer_image_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexInstallerImageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexInstallerImageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexInstallerImageRef. + + :return: The moid of this HyperflexInstallerImageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexInstallerImageRef. + + :param moid: The moid of this HyperflexInstallerImageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexInstallerImageRef. + + :return: The object_type of this HyperflexInstallerImageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexInstallerImageRef. + + :param object_type: The object_type of this HyperflexInstallerImageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexInstallerImageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_ip_addr_range.py b/intersight/models/hyperflex_ip_addr_range.py index c9725f14..f8cfc31e 100644 --- a/intersight/models/hyperflex_ip_addr_range.py +++ b/intersight/models/hyperflex_ip_addr_range.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -67,6 +67,7 @@ def __init__(self, end_addr=None, gateway=None, netmask=None, start_addr=None): def end_addr(self): """ Gets the end_addr of this HyperflexIpAddrRange. + End address :return: The end_addr of this HyperflexIpAddrRange. :rtype: str @@ -77,6 +78,7 @@ def end_addr(self): def end_addr(self, end_addr): """ Sets the end_addr of this HyperflexIpAddrRange. + End address :param end_addr: The end_addr of this HyperflexIpAddrRange. :type: str @@ -88,6 +90,7 @@ def end_addr(self, end_addr): def gateway(self): """ Gets the gateway of this HyperflexIpAddrRange. + Gateway :return: The gateway of this HyperflexIpAddrRange. :rtype: str @@ -98,6 +101,7 @@ def gateway(self): def gateway(self, gateway): """ Sets the gateway of this HyperflexIpAddrRange. + Gateway :param gateway: The gateway of this HyperflexIpAddrRange. :type: str @@ -109,6 +113,7 @@ def gateway(self, gateway): def netmask(self): """ Gets the netmask of this HyperflexIpAddrRange. + Netmask :return: The netmask of this HyperflexIpAddrRange. :rtype: str @@ -119,6 +124,7 @@ def netmask(self): def netmask(self, netmask): """ Sets the netmask of this HyperflexIpAddrRange. + Netmask :param netmask: The netmask of this HyperflexIpAddrRange. :type: str @@ -130,6 +136,7 @@ def netmask(self, netmask): def start_addr(self): """ Gets the start_addr of this HyperflexIpAddrRange. + Start address :return: The start_addr of this HyperflexIpAddrRange. :rtype: str @@ -140,6 +147,7 @@ def start_addr(self): def start_addr(self, start_addr): """ Sets the start_addr of this HyperflexIpAddrRange. + Start address :param start_addr: The start_addr of this HyperflexIpAddrRange. :type: str diff --git a/intersight/models/hyperflex_ip_addr_range_ref.py b/intersight/models/hyperflex_ip_addr_range_ref.py new file mode 100644 index 00000000..9c4e033e --- /dev/null +++ b/intersight/models/hyperflex_ip_addr_range_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexIpAddrRangeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexIpAddrRangeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexIpAddrRangeRef. + + :return: The moid of this HyperflexIpAddrRangeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexIpAddrRangeRef. + + :param moid: The moid of this HyperflexIpAddrRangeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexIpAddrRangeRef. + + :return: The object_type of this HyperflexIpAddrRangeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexIpAddrRangeRef. + + :param object_type: The object_type of this HyperflexIpAddrRangeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexIpAddrRangeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_local_credential_policy.py b/intersight/models/hyperflex_local_credential_policy.py index 5c61bfb7..a2d4859f 100644 --- a/intersight/models/hyperflex_local_credential_policy.py +++ b/intersight/models/hyperflex_local_credential_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,25 @@ class HyperflexLocalCredentialPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', + 'factory_hypervisor_password': 'bool', 'hxdp_root_pwd': 'str', 'hypervisor_admin': 'str', - 'hypervisor_admin_pwd': 'str' + 'hypervisor_admin_pwd': 'str', + 'is_hxdp_root_pwd_set': 'bool', + 'is_hypervisor_admin_pwd_set': 'bool', + 'organization': 'IamAccountRef' } attribute_map = { @@ -59,16 +63,20 @@ class HyperflexLocalCredentialPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'cluster_profiles': 'ClusterProfiles', + 'factory_hypervisor_password': 'FactoryHypervisorPassword', 'hxdp_root_pwd': 'HxdpRootPwd', 'hypervisor_admin': 'HypervisorAdmin', - 'hypervisor_admin_pwd': 'HypervisorAdminPwd' + 'hypervisor_admin_pwd': 'HypervisorAdminPwd', + 'is_hxdp_root_pwd_set': 'IsHxdpRootPwdSet', + 'is_hypervisor_admin_pwd_set': 'IsHypervisorAdminPwdSet', + 'organization': 'Organization' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, cluster_profiles=None, hxdp_root_pwd=None, hypervisor_admin=None, hypervisor_admin_pwd=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, cluster_profiles=None, factory_hypervisor_password=None, hxdp_root_pwd=None, hypervisor_admin=None, hypervisor_admin_pwd=None, is_hxdp_root_pwd_set=None, is_hypervisor_admin_pwd_set=None, organization=None): """ HyperflexLocalCredentialPolicy - a model defined in Swagger """ @@ -82,13 +90,17 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None - self._account = None self._cluster_profiles = None + self._factory_hypervisor_password = None self._hxdp_root_pwd = None self._hypervisor_admin = None self._hypervisor_admin_pwd = None + self._is_hxdp_root_pwd_set = None + self._is_hypervisor_admin_pwd_set = None + self._organization = None if account_moid is not None: self.account_moid = account_moid @@ -108,20 +120,28 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if cluster_profiles is not None: self.cluster_profiles = cluster_profiles + if factory_hypervisor_password is not None: + self.factory_hypervisor_password = factory_hypervisor_password if hxdp_root_pwd is not None: self.hxdp_root_pwd = hxdp_root_pwd if hypervisor_admin is not None: self.hypervisor_admin = hypervisor_admin if hypervisor_admin_pwd is not None: self.hypervisor_admin_pwd = hypervisor_admin_pwd + if is_hxdp_root_pwd_set is not None: + self.is_hxdp_root_pwd_set = is_hxdp_root_pwd_set + if is_hypervisor_admin_pwd_set is not None: + self.is_hypervisor_admin_pwd_set = is_hypervisor_admin_pwd_set + if organization is not None: + self.organization = organization @property def account_moid(self): @@ -153,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexLocalCredentialPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexLocalCredentialPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexLocalCredentialPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexLocalCredentialPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -311,7 +331,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this HyperflexLocalCredentialPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this HyperflexLocalCredentialPolicy. :rtype: list[MoTag] @@ -322,7 +342,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this HyperflexLocalCredentialPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this HyperflexLocalCredentialPolicy. :type: list[MoTag] @@ -330,6 +350,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this HyperflexLocalCredentialPolicy. + The versioning info for this managed object + + :return: The version_context of this HyperflexLocalCredentialPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexLocalCredentialPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexLocalCredentialPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -377,52 +420,56 @@ def name(self, name): self._name = name @property - def account(self): + def cluster_profiles(self): """ - Gets the account of this HyperflexLocalCredentialPolicy. + Gets the cluster_profiles of this HyperflexLocalCredentialPolicy. + List of cluster profiles using this policy - :return: The account of this HyperflexLocalCredentialPolicy. - :rtype: MoMoRef + :return: The cluster_profiles of this HyperflexLocalCredentialPolicy. + :rtype: list[HyperflexClusterProfileRef] """ - return self._account + return self._cluster_profiles - @account.setter - def account(self, account): + @cluster_profiles.setter + def cluster_profiles(self, cluster_profiles): """ - Sets the account of this HyperflexLocalCredentialPolicy. + Sets the cluster_profiles of this HyperflexLocalCredentialPolicy. + List of cluster profiles using this policy - :param account: The account of this HyperflexLocalCredentialPolicy. - :type: MoMoRef + :param cluster_profiles: The cluster_profiles of this HyperflexLocalCredentialPolicy. + :type: list[HyperflexClusterProfileRef] """ - self._account = account + self._cluster_profiles = cluster_profiles @property - def cluster_profiles(self): + def factory_hypervisor_password(self): """ - Gets the cluster_profiles of this HyperflexLocalCredentialPolicy. + Gets the factory_hypervisor_password of this HyperflexLocalCredentialPolicy. + Indicates if Hypervisor password is the factory set default password. For HyperFlex Data Platform versions 3.0 or higher, enable this if the default password was not changed on the Hypervisor. It is required to supply a new custom Hypervisor password that will be applied to the Hypervisor during deployment. For HyperFlex Data Platform versions prior to 3.0 release, this setting has no effect and the default password will be used for initial install. The Hypervisor password should be changed after deployment. - :return: The cluster_profiles of this HyperflexLocalCredentialPolicy. - :rtype: list[MoMoRef] + :return: The factory_hypervisor_password of this HyperflexLocalCredentialPolicy. + :rtype: bool """ - return self._cluster_profiles + return self._factory_hypervisor_password - @cluster_profiles.setter - def cluster_profiles(self, cluster_profiles): + @factory_hypervisor_password.setter + def factory_hypervisor_password(self, factory_hypervisor_password): """ - Sets the cluster_profiles of this HyperflexLocalCredentialPolicy. + Sets the factory_hypervisor_password of this HyperflexLocalCredentialPolicy. + Indicates if Hypervisor password is the factory set default password. For HyperFlex Data Platform versions 3.0 or higher, enable this if the default password was not changed on the Hypervisor. It is required to supply a new custom Hypervisor password that will be applied to the Hypervisor during deployment. For HyperFlex Data Platform versions prior to 3.0 release, this setting has no effect and the default password will be used for initial install. The Hypervisor password should be changed after deployment. - :param cluster_profiles: The cluster_profiles of this HyperflexLocalCredentialPolicy. - :type: list[MoMoRef] + :param factory_hypervisor_password: The factory_hypervisor_password of this HyperflexLocalCredentialPolicy. + :type: bool """ - self._cluster_profiles = cluster_profiles + self._factory_hypervisor_password = factory_hypervisor_password @property def hxdp_root_pwd(self): """ Gets the hxdp_root_pwd of this HyperflexLocalCredentialPolicy. - HX Storage Controller VM Password Must contain a minimum of 10 characters with at least 1 lower-case, 1 upper-case, 1 numeric, and 1 special character - !@#$%^&* + HyperFlex storage controller VM password must contain a minimum of 10 characters, with at least 1 lowercase, 1 uppercase, 1 numeric, and 1 of these special characters - !@#$%^&* :return: The hxdp_root_pwd of this HyperflexLocalCredentialPolicy. :rtype: str @@ -433,7 +480,7 @@ def hxdp_root_pwd(self): def hxdp_root_pwd(self, hxdp_root_pwd): """ Sets the hxdp_root_pwd of this HyperflexLocalCredentialPolicy. - HX Storage Controller VM Password Must contain a minimum of 10 characters with at least 1 lower-case, 1 upper-case, 1 numeric, and 1 special character - !@#$%^&* + HyperFlex storage controller VM password must contain a minimum of 10 characters, with at least 1 lowercase, 1 uppercase, 1 numeric, and 1 of these special characters - !@#$%^&* :param hxdp_root_pwd: The hxdp_root_pwd of this HyperflexLocalCredentialPolicy. :type: str @@ -445,7 +492,7 @@ def hxdp_root_pwd(self, hxdp_root_pwd): def hypervisor_admin(self): """ Gets the hypervisor_admin of this HyperflexLocalCredentialPolicy. - Hypervisor administrator username Must contain only alphanumeric characters + Hypervisor administrator username must contain only alphanumeric characters. Use the root account for ESXi deployments. :return: The hypervisor_admin of this HyperflexLocalCredentialPolicy. :rtype: str @@ -456,7 +503,7 @@ def hypervisor_admin(self): def hypervisor_admin(self, hypervisor_admin): """ Sets the hypervisor_admin of this HyperflexLocalCredentialPolicy. - Hypervisor administrator username Must contain only alphanumeric characters + Hypervisor administrator username must contain only alphanumeric characters. Use the root account for ESXi deployments. :param hypervisor_admin: The hypervisor_admin of this HyperflexLocalCredentialPolicy. :type: str @@ -468,7 +515,7 @@ def hypervisor_admin(self, hypervisor_admin): def hypervisor_admin_pwd(self): """ Gets the hypervisor_admin_pwd of this HyperflexLocalCredentialPolicy. - Hypervisor administrator password Password must be a minimum length of 6 characters. Follow the corresponding password policy governed by the hypervisor. + Specifies the ESXi root password. For HyperFlex Data Platform 3.0 or later, if the factory default password was not manually changed, you must set a new custom password. If the password was manually changed, you must not enable the factory default password property and provide the current hypervisor password. Note - All HyperFlex nodes require the same hypervisor password for installation. For HyperFlex Data Platform prior to 3.0, use the default password \"Cisco123\" for newly manufactured HyperFlex servers. A custom password should only be entered if hypervisor credentials were manually changed prior to deployment. :return: The hypervisor_admin_pwd of this HyperflexLocalCredentialPolicy. :rtype: str @@ -479,7 +526,7 @@ def hypervisor_admin_pwd(self): def hypervisor_admin_pwd(self, hypervisor_admin_pwd): """ Sets the hypervisor_admin_pwd of this HyperflexLocalCredentialPolicy. - Hypervisor administrator password Password must be a minimum length of 6 characters. Follow the corresponding password policy governed by the hypervisor. + Specifies the ESXi root password. For HyperFlex Data Platform 3.0 or later, if the factory default password was not manually changed, you must set a new custom password. If the password was manually changed, you must not enable the factory default password property and provide the current hypervisor password. Note - All HyperFlex nodes require the same hypervisor password for installation. For HyperFlex Data Platform prior to 3.0, use the default password \"Cisco123\" for newly manufactured HyperFlex servers. A custom password should only be entered if hypervisor credentials were manually changed prior to deployment. :param hypervisor_admin_pwd: The hypervisor_admin_pwd of this HyperflexLocalCredentialPolicy. :type: str @@ -487,6 +534,71 @@ def hypervisor_admin_pwd(self, hypervisor_admin_pwd): self._hypervisor_admin_pwd = hypervisor_admin_pwd + @property + def is_hxdp_root_pwd_set(self): + """ + Gets the is_hxdp_root_pwd_set of this HyperflexLocalCredentialPolicy. + + :return: The is_hxdp_root_pwd_set of this HyperflexLocalCredentialPolicy. + :rtype: bool + """ + return self._is_hxdp_root_pwd_set + + @is_hxdp_root_pwd_set.setter + def is_hxdp_root_pwd_set(self, is_hxdp_root_pwd_set): + """ + Sets the is_hxdp_root_pwd_set of this HyperflexLocalCredentialPolicy. + + :param is_hxdp_root_pwd_set: The is_hxdp_root_pwd_set of this HyperflexLocalCredentialPolicy. + :type: bool + """ + + self._is_hxdp_root_pwd_set = is_hxdp_root_pwd_set + + @property + def is_hypervisor_admin_pwd_set(self): + """ + Gets the is_hypervisor_admin_pwd_set of this HyperflexLocalCredentialPolicy. + + :return: The is_hypervisor_admin_pwd_set of this HyperflexLocalCredentialPolicy. + :rtype: bool + """ + return self._is_hypervisor_admin_pwd_set + + @is_hypervisor_admin_pwd_set.setter + def is_hypervisor_admin_pwd_set(self, is_hypervisor_admin_pwd_set): + """ + Sets the is_hypervisor_admin_pwd_set of this HyperflexLocalCredentialPolicy. + + :param is_hypervisor_admin_pwd_set: The is_hypervisor_admin_pwd_set of this HyperflexLocalCredentialPolicy. + :type: bool + """ + + self._is_hypervisor_admin_pwd_set = is_hypervisor_admin_pwd_set + + @property + def organization(self): + """ + Gets the organization of this HyperflexLocalCredentialPolicy. + Organization + + :return: The organization of this HyperflexLocalCredentialPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexLocalCredentialPolicy. + Organization + + :param organization: The organization of this HyperflexLocalCredentialPolicy. + :type: IamAccountRef + """ + + self._organization = organization + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/hyperflex_local_credential_policy_list.py b/intersight/models/hyperflex_local_credential_policy_list.py index f3f79441..323037d6 100644 --- a/intersight/models/hyperflex_local_credential_policy_list.py +++ b/intersight/models/hyperflex_local_credential_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_local_credential_policy_ref.py b/intersight/models/hyperflex_local_credential_policy_ref.py new file mode 100644 index 00000000..236eda95 --- /dev/null +++ b/intersight/models/hyperflex_local_credential_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexLocalCredentialPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexLocalCredentialPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexLocalCredentialPolicyRef. + + :return: The moid of this HyperflexLocalCredentialPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexLocalCredentialPolicyRef. + + :param moid: The moid of this HyperflexLocalCredentialPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexLocalCredentialPolicyRef. + + :return: The object_type of this HyperflexLocalCredentialPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexLocalCredentialPolicyRef. + + :param object_type: The object_type of this HyperflexLocalCredentialPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexLocalCredentialPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_logical_availability_zone.py b/intersight/models/hyperflex_logical_availability_zone.py new file mode 100644 index 00000000..0a646e0d --- /dev/null +++ b/intersight/models/hyperflex_logical_availability_zone.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexLogicalAvailabilityZone(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'auto_config': 'bool' + } + + attribute_map = { + 'auto_config': 'AutoConfig' + } + + def __init__(self, auto_config=None): + """ + HyperflexLogicalAvailabilityZone - a model defined in Swagger + """ + + self._auto_config = None + + if auto_config is not None: + self.auto_config = auto_config + + @property + def auto_config(self): + """ + Gets the auto_config of this HyperflexLogicalAvailabilityZone. + Enable or disable Logical Availability Zones (LAZ). If enabled, HyperFlex Data Platform automatically selects and groups nodes into different availability zones. For HyperFlex Data Platform versions prior to 3.0 release, this setting does not apply. For HyperFlex Data Platform versions 3.0 or higher, this setting is only applicable to Fabric Interconnect attached HyperFlex systems with 8 or more converged nodes. + + :return: The auto_config of this HyperflexLogicalAvailabilityZone. + :rtype: bool + """ + return self._auto_config + + @auto_config.setter + def auto_config(self, auto_config): + """ + Sets the auto_config of this HyperflexLogicalAvailabilityZone. + Enable or disable Logical Availability Zones (LAZ). If enabled, HyperFlex Data Platform automatically selects and groups nodes into different availability zones. For HyperFlex Data Platform versions prior to 3.0 release, this setting does not apply. For HyperFlex Data Platform versions 3.0 or higher, this setting is only applicable to Fabric Interconnect attached HyperFlex systems with 8 or more converged nodes. + + :param auto_config: The auto_config of this HyperflexLogicalAvailabilityZone. + :type: bool + """ + + self._auto_config = auto_config + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexLogicalAvailabilityZone): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_logical_availability_zone_ref.py b/intersight/models/hyperflex_logical_availability_zone_ref.py new file mode 100644 index 00000000..465d3bb2 --- /dev/null +++ b/intersight/models/hyperflex_logical_availability_zone_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexLogicalAvailabilityZoneRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexLogicalAvailabilityZoneRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexLogicalAvailabilityZoneRef. + + :return: The moid of this HyperflexLogicalAvailabilityZoneRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexLogicalAvailabilityZoneRef. + + :param moid: The moid of this HyperflexLogicalAvailabilityZoneRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexLogicalAvailabilityZoneRef. + + :return: The object_type of this HyperflexLogicalAvailabilityZoneRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexLogicalAvailabilityZoneRef. + + :param object_type: The object_type of this HyperflexLogicalAvailabilityZoneRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexLogicalAvailabilityZoneRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_mac_addr_prefix_range.py b/intersight/models/hyperflex_mac_addr_prefix_range.py index d9743711..41c5b07d 100644 --- a/intersight/models/hyperflex_mac_addr_prefix_range.py +++ b/intersight/models/hyperflex_mac_addr_prefix_range.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -57,6 +57,7 @@ def __init__(self, end_addr=None, start_addr=None): def end_addr(self): """ Gets the end_addr of this HyperflexMacAddrPrefixRange. + End address of a MAC address prefix range in the form of 00:25:B5:XX :return: The end_addr of this HyperflexMacAddrPrefixRange. :rtype: str @@ -67,6 +68,7 @@ def end_addr(self): def end_addr(self, end_addr): """ Sets the end_addr of this HyperflexMacAddrPrefixRange. + End address of a MAC address prefix range in the form of 00:25:B5:XX :param end_addr: The end_addr of this HyperflexMacAddrPrefixRange. :type: str @@ -78,6 +80,7 @@ def end_addr(self, end_addr): def start_addr(self): """ Gets the start_addr of this HyperflexMacAddrPrefixRange. + Start address of a MAC address prefix range in the form of 00:25:B5:XX :return: The start_addr of this HyperflexMacAddrPrefixRange. :rtype: str @@ -88,6 +91,7 @@ def start_addr(self): def start_addr(self, start_addr): """ Sets the start_addr of this HyperflexMacAddrPrefixRange. + Start address of a MAC address prefix range in the form of 00:25:B5:XX :param start_addr: The start_addr of this HyperflexMacAddrPrefixRange. :type: str diff --git a/intersight/models/hyperflex_mac_addr_prefix_range_ref.py b/intersight/models/hyperflex_mac_addr_prefix_range_ref.py new file mode 100644 index 00000000..a943b8ff --- /dev/null +++ b/intersight/models/hyperflex_mac_addr_prefix_range_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexMacAddrPrefixRangeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexMacAddrPrefixRangeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexMacAddrPrefixRangeRef. + + :return: The moid of this HyperflexMacAddrPrefixRangeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexMacAddrPrefixRangeRef. + + :param moid: The moid of this HyperflexMacAddrPrefixRangeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexMacAddrPrefixRangeRef. + + :return: The object_type of this HyperflexMacAddrPrefixRangeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexMacAddrPrefixRangeRef. + + :param object_type: The object_type of this HyperflexMacAddrPrefixRangeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexMacAddrPrefixRangeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_managed_object_reference.py b/intersight/models/hyperflex_managed_object_reference.py index 5f57d371..183ce9cd 100644 --- a/intersight/models/hyperflex_managed_object_reference.py +++ b/intersight/models/hyperflex_managed_object_reference.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_managed_object_reference_ref.py b/intersight/models/hyperflex_managed_object_reference_ref.py new file mode 100644 index 00000000..1a6d1367 --- /dev/null +++ b/intersight/models/hyperflex_managed_object_reference_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexManagedObjectReferenceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexManagedObjectReferenceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexManagedObjectReferenceRef. + + :return: The moid of this HyperflexManagedObjectReferenceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexManagedObjectReferenceRef. + + :param moid: The moid of this HyperflexManagedObjectReferenceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexManagedObjectReferenceRef. + + :return: The object_type of this HyperflexManagedObjectReferenceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexManagedObjectReferenceRef. + + :param object_type: The object_type of this HyperflexManagedObjectReferenceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexManagedObjectReferenceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_named_vlan.py b/intersight/models/hyperflex_named_vlan.py index 672d9ea1..8629d555 100644 --- a/intersight/models/hyperflex_named_vlan.py +++ b/intersight/models/hyperflex_named_vlan.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -57,6 +57,7 @@ def __init__(self, name=None, vlan_id=None): def name(self): """ Gets the name of this HyperflexNamedVlan. + VLAN name :return: The name of this HyperflexNamedVlan. :rtype: str @@ -67,6 +68,7 @@ def name(self): def name(self, name): """ Sets the name of this HyperflexNamedVlan. + VLAN name :param name: The name of this HyperflexNamedVlan. :type: str @@ -78,6 +80,7 @@ def name(self, name): def vlan_id(self): """ Gets the vlan_id of this HyperflexNamedVlan. + VLAN ID :return: The vlan_id of this HyperflexNamedVlan. :rtype: int @@ -88,6 +91,7 @@ def vlan_id(self): def vlan_id(self, vlan_id): """ Sets the vlan_id of this HyperflexNamedVlan. + VLAN ID :param vlan_id: The vlan_id of this HyperflexNamedVlan. :type: int diff --git a/intersight/models/hyperflex_named_vlan_ref.py b/intersight/models/hyperflex_named_vlan_ref.py new file mode 100644 index 00000000..3c0562e1 --- /dev/null +++ b/intersight/models/hyperflex_named_vlan_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexNamedVlanRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexNamedVlanRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexNamedVlanRef. + + :return: The moid of this HyperflexNamedVlanRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexNamedVlanRef. + + :param moid: The moid of this HyperflexNamedVlanRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexNamedVlanRef. + + :return: The object_type of this HyperflexNamedVlanRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexNamedVlanRef. + + :param object_type: The object_type of this HyperflexNamedVlanRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexNamedVlanRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_named_vsan.py b/intersight/models/hyperflex_named_vsan.py index 16ce6828..9d49a6d9 100644 --- a/intersight/models/hyperflex_named_vsan.py +++ b/intersight/models/hyperflex_named_vsan.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -57,6 +57,7 @@ def __init__(self, name=None, vsan_id=None): def name(self): """ Gets the name of this HyperflexNamedVsan. + VSAN name :return: The name of this HyperflexNamedVsan. :rtype: str @@ -67,6 +68,7 @@ def name(self): def name(self, name): """ Sets the name of this HyperflexNamedVsan. + VSAN name :param name: The name of this HyperflexNamedVsan. :type: str @@ -78,6 +80,7 @@ def name(self, name): def vsan_id(self): """ Gets the vsan_id of this HyperflexNamedVsan. + VSAN ID :return: The vsan_id of this HyperflexNamedVsan. :rtype: int @@ -88,6 +91,7 @@ def vsan_id(self): def vsan_id(self, vsan_id): """ Sets the vsan_id of this HyperflexNamedVsan. + VSAN ID :param vsan_id: The vsan_id of this HyperflexNamedVsan. :type: int diff --git a/intersight/models/hyperflex_named_vsan_ref.py b/intersight/models/hyperflex_named_vsan_ref.py new file mode 100644 index 00000000..264f84d0 --- /dev/null +++ b/intersight/models/hyperflex_named_vsan_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexNamedVsanRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexNamedVsanRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexNamedVsanRef. + + :return: The moid of this HyperflexNamedVsanRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexNamedVsanRef. + + :param moid: The moid of this HyperflexNamedVsanRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexNamedVsanRef. + + :return: The object_type of this HyperflexNamedVsanRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexNamedVsanRef. + + :param object_type: The object_type of this HyperflexNamedVsanRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexNamedVsanRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_node.py b/intersight/models/hyperflex_node.py new file mode 100644 index 00000000..d1b3402e --- /dev/null +++ b/intersight/models/hyperflex_node.py @@ -0,0 +1,751 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexNode(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'build_number': 'str', + 'cluster': 'HyperflexClusterRef', + 'cluster_member': 'AssetClusterMemberRef', + 'display_version': 'str', + 'host_name': 'str', + 'hypervisor': 'str', + 'identity': 'HyperflexHxUuIdDt', + 'ip': 'HyperflexHxNetworkAddressDt', + 'lockdown': 'bool', + 'model_number': 'str', + 'physical_server': 'ComputePhysicalRef', + 'serial_number': 'str', + 'status': 'str', + 'version': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'build_number': 'BuildNumber', + 'cluster': 'Cluster', + 'cluster_member': 'ClusterMember', + 'display_version': 'DisplayVersion', + 'host_name': 'HostName', + 'hypervisor': 'Hypervisor', + 'identity': 'Identity', + 'ip': 'Ip', + 'lockdown': 'Lockdown', + 'model_number': 'ModelNumber', + 'physical_server': 'PhysicalServer', + 'serial_number': 'SerialNumber', + 'status': 'Status', + 'version': 'Version' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, build_number=None, cluster=None, cluster_member=None, display_version=None, host_name=None, hypervisor=None, identity=None, ip=None, lockdown=None, model_number=None, physical_server=None, serial_number=None, status='UNKNOWN', version=None): + """ + HyperflexNode - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._build_number = None + self._cluster = None + self._cluster_member = None + self._display_version = None + self._host_name = None + self._hypervisor = None + self._identity = None + self._ip = None + self._lockdown = None + self._model_number = None + self._physical_server = None + self._serial_number = None + self._status = None + self._version = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if build_number is not None: + self.build_number = build_number + if cluster is not None: + self.cluster = cluster + if cluster_member is not None: + self.cluster_member = cluster_member + if display_version is not None: + self.display_version = display_version + if host_name is not None: + self.host_name = host_name + if hypervisor is not None: + self.hypervisor = hypervisor + if identity is not None: + self.identity = identity + if ip is not None: + self.ip = ip + if lockdown is not None: + self.lockdown = lockdown + if model_number is not None: + self.model_number = model_number + if physical_server is not None: + self.physical_server = physical_server + if serial_number is not None: + self.serial_number = serial_number + if status is not None: + self.status = status + if version is not None: + self.version = version + + @property + def account_moid(self): + """ + Gets the account_moid of this HyperflexNode. + The Account ID for this managed object. + + :return: The account_moid of this HyperflexNode. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this HyperflexNode. + The Account ID for this managed object. + + :param account_moid: The account_moid of this HyperflexNode. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this HyperflexNode. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this HyperflexNode. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this HyperflexNode. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this HyperflexNode. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this HyperflexNode. + The time when this managed object was created. + + :return: The create_time of this HyperflexNode. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this HyperflexNode. + The time when this managed object was created. + + :param create_time: The create_time of this HyperflexNode. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this HyperflexNode. + The time when this managed object was last modified. + + :return: The mod_time of this HyperflexNode. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this HyperflexNode. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this HyperflexNode. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this HyperflexNode. + A unique identifier of this Managed Object instance. + + :return: The moid of this HyperflexNode. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexNode. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this HyperflexNode. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexNode. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this HyperflexNode. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexNode. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this HyperflexNode. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this HyperflexNode. + An array of owners which represent effective ownership of this object. + + :return: The owners of this HyperflexNode. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this HyperflexNode. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this HyperflexNode. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this HyperflexNode. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this HyperflexNode. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this HyperflexNode. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this HyperflexNode. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this HyperflexNode. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this HyperflexNode. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this HyperflexNode. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this HyperflexNode. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this HyperflexNode. + The versioning info for this managed object + + :return: The version_context of this HyperflexNode. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexNode. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexNode. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def build_number(self): + """ + Gets the build_number of this HyperflexNode. + + :return: The build_number of this HyperflexNode. + :rtype: str + """ + return self._build_number + + @build_number.setter + def build_number(self, build_number): + """ + Sets the build_number of this HyperflexNode. + + :param build_number: The build_number of this HyperflexNode. + :type: str + """ + + self._build_number = build_number + + @property + def cluster(self): + """ + Gets the cluster of this HyperflexNode. + + :return: The cluster of this HyperflexNode. + :rtype: HyperflexClusterRef + """ + return self._cluster + + @cluster.setter + def cluster(self, cluster): + """ + Sets the cluster of this HyperflexNode. + + :param cluster: The cluster of this HyperflexNode. + :type: HyperflexClusterRef + """ + + self._cluster = cluster + + @property + def cluster_member(self): + """ + Gets the cluster_member of this HyperflexNode. + A relationship to the ClusterMember that represents this node's registration to Intersight + + :return: The cluster_member of this HyperflexNode. + :rtype: AssetClusterMemberRef + """ + return self._cluster_member + + @cluster_member.setter + def cluster_member(self, cluster_member): + """ + Sets the cluster_member of this HyperflexNode. + A relationship to the ClusterMember that represents this node's registration to Intersight + + :param cluster_member: The cluster_member of this HyperflexNode. + :type: AssetClusterMemberRef + """ + + self._cluster_member = cluster_member + + @property + def display_version(self): + """ + Gets the display_version of this HyperflexNode. + + :return: The display_version of this HyperflexNode. + :rtype: str + """ + return self._display_version + + @display_version.setter + def display_version(self, display_version): + """ + Sets the display_version of this HyperflexNode. + + :param display_version: The display_version of this HyperflexNode. + :type: str + """ + + self._display_version = display_version + + @property + def host_name(self): + """ + Gets the host_name of this HyperflexNode. + + :return: The host_name of this HyperflexNode. + :rtype: str + """ + return self._host_name + + @host_name.setter + def host_name(self, host_name): + """ + Sets the host_name of this HyperflexNode. + + :param host_name: The host_name of this HyperflexNode. + :type: str + """ + + self._host_name = host_name + + @property + def hypervisor(self): + """ + Gets the hypervisor of this HyperflexNode. + + :return: The hypervisor of this HyperflexNode. + :rtype: str + """ + return self._hypervisor + + @hypervisor.setter + def hypervisor(self, hypervisor): + """ + Sets the hypervisor of this HyperflexNode. + + :param hypervisor: The hypervisor of this HyperflexNode. + :type: str + """ + + self._hypervisor = hypervisor + + @property + def identity(self): + """ + Gets the identity of this HyperflexNode. + + :return: The identity of this HyperflexNode. + :rtype: HyperflexHxUuIdDt + """ + return self._identity + + @identity.setter + def identity(self, identity): + """ + Sets the identity of this HyperflexNode. + + :param identity: The identity of this HyperflexNode. + :type: HyperflexHxUuIdDt + """ + + self._identity = identity + + @property + def ip(self): + """ + Gets the ip of this HyperflexNode. + + :return: The ip of this HyperflexNode. + :rtype: HyperflexHxNetworkAddressDt + """ + return self._ip + + @ip.setter + def ip(self, ip): + """ + Sets the ip of this HyperflexNode. + + :param ip: The ip of this HyperflexNode. + :type: HyperflexHxNetworkAddressDt + """ + + self._ip = ip + + @property + def lockdown(self): + """ + Gets the lockdown of this HyperflexNode. + + :return: The lockdown of this HyperflexNode. + :rtype: bool + """ + return self._lockdown + + @lockdown.setter + def lockdown(self, lockdown): + """ + Sets the lockdown of this HyperflexNode. + + :param lockdown: The lockdown of this HyperflexNode. + :type: bool + """ + + self._lockdown = lockdown + + @property + def model_number(self): + """ + Gets the model_number of this HyperflexNode. + + :return: The model_number of this HyperflexNode. + :rtype: str + """ + return self._model_number + + @model_number.setter + def model_number(self, model_number): + """ + Sets the model_number of this HyperflexNode. + + :param model_number: The model_number of this HyperflexNode. + :type: str + """ + + self._model_number = model_number + + @property + def physical_server(self): + """ + Gets the physical_server of this HyperflexNode. + A relationship to the UCS server associated with this node + + :return: The physical_server of this HyperflexNode. + :rtype: ComputePhysicalRef + """ + return self._physical_server + + @physical_server.setter + def physical_server(self, physical_server): + """ + Sets the physical_server of this HyperflexNode. + A relationship to the UCS server associated with this node + + :param physical_server: The physical_server of this HyperflexNode. + :type: ComputePhysicalRef + """ + + self._physical_server = physical_server + + @property + def serial_number(self): + """ + Gets the serial_number of this HyperflexNode. + + :return: The serial_number of this HyperflexNode. + :rtype: str + """ + return self._serial_number + + @serial_number.setter + def serial_number(self, serial_number): + """ + Sets the serial_number of this HyperflexNode. + + :param serial_number: The serial_number of this HyperflexNode. + :type: str + """ + + self._serial_number = serial_number + + @property + def status(self): + """ + Gets the status of this HyperflexNode. + + :return: The status of this HyperflexNode. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this HyperflexNode. + + :param status: The status of this HyperflexNode. + :type: str + """ + allowed_values = ["UNKNOWN", "ONLINE", "OFFLINE", "INMAINTENANCE", "DEGRADED"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def version(self): + """ + Gets the version of this HyperflexNode. + + :return: The version of this HyperflexNode. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this HyperflexNode. + + :param version: The version of this HyperflexNode. + :type: str + """ + + self._version = version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexNode): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_node_config_policy.py b/intersight/models/hyperflex_node_config_policy.py index a8248610..bdff946d 100644 --- a/intersight/models/hyperflex_node_config_policy.py +++ b/intersight/models/hyperflex_node_config_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,22 +32,23 @@ class HyperflexNodeConfigPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', 'data_ip_range': 'HyperflexIpAddrRange', 'hxdp_ip_range': 'HyperflexIpAddrRange', 'mgmt_ip_range': 'HyperflexIpAddrRange', - 'node_name_prefix': 'str' + 'node_name_prefix': 'str', + 'organization': 'IamAccountRef' } attribute_map = { @@ -60,17 +61,18 @@ class HyperflexNodeConfigPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'cluster_profiles': 'ClusterProfiles', 'data_ip_range': 'DataIpRange', 'hxdp_ip_range': 'HxdpIpRange', 'mgmt_ip_range': 'MgmtIpRange', - 'node_name_prefix': 'NodeNamePrefix' + 'node_name_prefix': 'NodeNamePrefix', + 'organization': 'Organization' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, cluster_profiles=None, data_ip_range=None, hxdp_ip_range=None, mgmt_ip_range=None, node_name_prefix=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, cluster_profiles=None, data_ip_range=None, hxdp_ip_range=None, mgmt_ip_range=None, node_name_prefix=None, organization=None): """ HyperflexNodeConfigPolicy - a model defined in Swagger """ @@ -84,14 +86,15 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None - self._account = None self._cluster_profiles = None self._data_ip_range = None self._hxdp_ip_range = None self._mgmt_ip_range = None self._node_name_prefix = None + self._organization = None if account_moid is not None: self.account_moid = account_moid @@ -111,12 +114,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if cluster_profiles is not None: self.cluster_profiles = cluster_profiles if data_ip_range is not None: @@ -127,6 +130,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.mgmt_ip_range = mgmt_ip_range if node_name_prefix is not None: self.node_name_prefix = node_name_prefix + if organization is not None: + self.organization = organization @property def account_moid(self): @@ -158,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexNodeConfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexNodeConfigPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexNodeConfigPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexNodeConfigPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -316,7 +321,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this HyperflexNodeConfigPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this HyperflexNodeConfigPolicy. :rtype: list[MoTag] @@ -327,7 +332,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this HyperflexNodeConfigPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this HyperflexNodeConfigPolicy. :type: list[MoTag] @@ -335,6 +340,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this HyperflexNodeConfigPolicy. + The versioning info for this managed object + + :return: The version_context of this HyperflexNodeConfigPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexNodeConfigPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexNodeConfigPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -381,34 +409,14 @@ def name(self, name): self._name = name - @property - def account(self): - """ - Gets the account of this HyperflexNodeConfigPolicy. - - :return: The account of this HyperflexNodeConfigPolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexNodeConfigPolicy. - - :param account: The account of this HyperflexNodeConfigPolicy. - :type: MoMoRef - """ - - self._account = account - @property def cluster_profiles(self): """ Gets the cluster_profiles of this HyperflexNodeConfigPolicy. + List of cluster profiles using this policy :return: The cluster_profiles of this HyperflexNodeConfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[HyperflexClusterProfileRef] """ return self._cluster_profiles @@ -416,9 +424,10 @@ def cluster_profiles(self): def cluster_profiles(self, cluster_profiles): """ Sets the cluster_profiles of this HyperflexNodeConfigPolicy. + List of cluster profiles using this policy :param cluster_profiles: The cluster_profiles of this HyperflexNodeConfigPolicy. - :type: list[MoMoRef] + :type: list[HyperflexClusterProfileRef] """ self._cluster_profiles = cluster_profiles @@ -427,6 +436,7 @@ def cluster_profiles(self, cluster_profiles): def data_ip_range(self): """ Gets the data_ip_range of this HyperflexNodeConfigPolicy. + Storage data IP range :return: The data_ip_range of this HyperflexNodeConfigPolicy. :rtype: HyperflexIpAddrRange @@ -437,6 +447,7 @@ def data_ip_range(self): def data_ip_range(self, data_ip_range): """ Sets the data_ip_range of this HyperflexNodeConfigPolicy. + Storage data IP range :param data_ip_range: The data_ip_range of this HyperflexNodeConfigPolicy. :type: HyperflexIpAddrRange @@ -448,6 +459,7 @@ def data_ip_range(self, data_ip_range): def hxdp_ip_range(self): """ Gets the hxdp_ip_range of this HyperflexNodeConfigPolicy. + HyperFlex storage management IP range :return: The hxdp_ip_range of this HyperflexNodeConfigPolicy. :rtype: HyperflexIpAddrRange @@ -458,6 +470,7 @@ def hxdp_ip_range(self): def hxdp_ip_range(self, hxdp_ip_range): """ Sets the hxdp_ip_range of this HyperflexNodeConfigPolicy. + HyperFlex storage management IP range :param hxdp_ip_range: The hxdp_ip_range of this HyperflexNodeConfigPolicy. :type: HyperflexIpAddrRange @@ -469,6 +482,7 @@ def hxdp_ip_range(self, hxdp_ip_range): def mgmt_ip_range(self): """ Gets the mgmt_ip_range of this HyperflexNodeConfigPolicy. + Management IP range :return: The mgmt_ip_range of this HyperflexNodeConfigPolicy. :rtype: HyperflexIpAddrRange @@ -479,6 +493,7 @@ def mgmt_ip_range(self): def mgmt_ip_range(self, mgmt_ip_range): """ Sets the mgmt_ip_range of this HyperflexNodeConfigPolicy. + Management IP range :param mgmt_ip_range: The mgmt_ip_range of this HyperflexNodeConfigPolicy. :type: HyperflexIpAddrRange @@ -490,6 +505,7 @@ def mgmt_ip_range(self, mgmt_ip_range): def node_name_prefix(self): """ Gets the node_name_prefix of this HyperflexNodeConfigPolicy. + Specifies a node name prefix that is used to automatically generate the default hostname for each server. A dash (-) will be appended to the prefix followed by the node number to form a hostname. This default naming scheme can be manually overridden in the node configuration. The maximum length of a prefix is 60 and must only contain alphanumeric characters or dash (-). :return: The node_name_prefix of this HyperflexNodeConfigPolicy. :rtype: str @@ -500,6 +516,7 @@ def node_name_prefix(self): def node_name_prefix(self, node_name_prefix): """ Sets the node_name_prefix of this HyperflexNodeConfigPolicy. + Specifies a node name prefix that is used to automatically generate the default hostname for each server. A dash (-) will be appended to the prefix followed by the node number to form a hostname. This default naming scheme can be manually overridden in the node configuration. The maximum length of a prefix is 60 and must only contain alphanumeric characters or dash (-). :param node_name_prefix: The node_name_prefix of this HyperflexNodeConfigPolicy. :type: str @@ -507,6 +524,29 @@ def node_name_prefix(self, node_name_prefix): self._node_name_prefix = node_name_prefix + @property + def organization(self): + """ + Gets the organization of this HyperflexNodeConfigPolicy. + Organization + + :return: The organization of this HyperflexNodeConfigPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexNodeConfigPolicy. + Organization + + :param organization: The organization of this HyperflexNodeConfigPolicy. + :type: IamAccountRef + """ + + self._organization = organization + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/hyperflex_node_config_policy_list.py b/intersight/models/hyperflex_node_config_policy_list.py index b5b97d1a..518d5cd5 100644 --- a/intersight/models/hyperflex_node_config_policy_list.py +++ b/intersight/models/hyperflex_node_config_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_node_config_policy_ref.py b/intersight/models/hyperflex_node_config_policy_ref.py new file mode 100644 index 00000000..13052f53 --- /dev/null +++ b/intersight/models/hyperflex_node_config_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexNodeConfigPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexNodeConfigPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexNodeConfigPolicyRef. + + :return: The moid of this HyperflexNodeConfigPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexNodeConfigPolicyRef. + + :param moid: The moid of this HyperflexNodeConfigPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexNodeConfigPolicyRef. + + :return: The object_type of this HyperflexNodeConfigPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexNodeConfigPolicyRef. + + :param object_type: The object_type of this HyperflexNodeConfigPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexNodeConfigPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_node_list.py b/intersight/models/hyperflex_node_list.py new file mode 100644 index 00000000..b0fd583a --- /dev/null +++ b/intersight/models/hyperflex_node_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexNodeList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[HyperflexNode]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + HyperflexNodeList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this HyperflexNodeList. + The number of hyperflexNodes matching your request in total for all pages. + + :return: The count of this HyperflexNodeList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this HyperflexNodeList. + The number of hyperflexNodes matching your request in total for all pages. + + :param count: The count of this HyperflexNodeList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this HyperflexNodeList. + The array of hyperflexNodes matching your request. + + :return: The results of this HyperflexNodeList. + :rtype: list[HyperflexNode] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this HyperflexNodeList. + The array of hyperflexNodes matching your request. + + :param results: The results of this HyperflexNodeList. + :type: list[HyperflexNode] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexNodeList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_node_profile.py b/intersight/models/hyperflex_node_profile.py index b75862a3..86484af5 100644 --- a/intersight/models/hyperflex_node_profile.py +++ b/intersight/models/hyperflex_node_profile.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,24 +32,25 @@ class HyperflexNodeProfile(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'src_template': 'MoMoRef', + 'src_template': 'PolicyAbstractProfileRef', 'type': 'str', - 'assigned_server': 'MoMoRef', - 'cluster_profile': 'MoMoRef', - 'esx_data_ip': 'str', - 'esx_mgmt_ip': 'str', + 'assigned_server': 'ComputeRackUnitRef', + 'cluster_profile': 'HyperflexClusterProfileRef', 'hxdp_data_ip': 'str', - 'hxdp_mgmt_ip': 'str' + 'hxdp_mgmt_ip': 'str', + 'hypervisor_data_ip': 'str', + 'hypervisor_mgmt_ip': 'str' } attribute_map = { @@ -62,19 +63,20 @@ class HyperflexNodeProfile(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'src_template': 'SrcTemplate', 'type': 'Type', 'assigned_server': 'AssignedServer', 'cluster_profile': 'ClusterProfile', - 'esx_data_ip': 'EsxDataIp', - 'esx_mgmt_ip': 'EsxMgmtIp', 'hxdp_data_ip': 'HxdpDataIp', - 'hxdp_mgmt_ip': 'HxdpMgmtIp' + 'hxdp_mgmt_ip': 'HxdpMgmtIp', + 'hypervisor_data_ip': 'HypervisorDataIp', + 'hypervisor_mgmt_ip': 'HypervisorMgmtIp' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, src_template=None, type='instance', assigned_server=None, cluster_profile=None, esx_data_ip=None, esx_mgmt_ip=None, hxdp_data_ip=None, hxdp_mgmt_ip=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, src_template=None, type='instance', assigned_server=None, cluster_profile=None, hxdp_data_ip=None, hxdp_mgmt_ip=None, hypervisor_data_ip=None, hypervisor_mgmt_ip=None): """ HyperflexNodeProfile - a model defined in Swagger """ @@ -88,16 +90,17 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._src_template = None self._type = None self._assigned_server = None self._cluster_profile = None - self._esx_data_ip = None - self._esx_mgmt_ip = None self._hxdp_data_ip = None self._hxdp_mgmt_ip = None + self._hypervisor_data_ip = None + self._hypervisor_mgmt_ip = None if account_moid is not None: self.account_moid = account_moid @@ -117,6 +120,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -129,14 +134,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.assigned_server = assigned_server if cluster_profile is not None: self.cluster_profile = cluster_profile - if esx_data_ip is not None: - self.esx_data_ip = esx_data_ip - if esx_mgmt_ip is not None: - self.esx_mgmt_ip = esx_mgmt_ip if hxdp_data_ip is not None: self.hxdp_data_ip = hxdp_data_ip if hxdp_mgmt_ip is not None: self.hxdp_mgmt_ip = hxdp_mgmt_ip + if hypervisor_data_ip is not None: + self.hypervisor_data_ip = hypervisor_data_ip + if hypervisor_mgmt_ip is not None: + self.hypervisor_mgmt_ip = hypervisor_mgmt_ip @property def account_moid(self): @@ -168,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexNodeProfile. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -179,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexNodeProfile. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -306,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexNodeProfile. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -317,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexNodeProfile. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -326,7 +331,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this HyperflexNodeProfile. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this HyperflexNodeProfile. :rtype: list[MoTag] @@ -337,7 +342,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this HyperflexNodeProfile. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this HyperflexNodeProfile. :type: list[MoTag] @@ -345,6 +350,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this HyperflexNodeProfile. + The versioning info for this managed object + + :return: The version_context of this HyperflexNodeProfile. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexNodeProfile. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexNodeProfile. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -397,7 +425,7 @@ def src_template(self): Gets the src_template of this HyperflexNodeProfile. :return: The src_template of this HyperflexNodeProfile. - :rtype: MoMoRef + :rtype: PolicyAbstractProfileRef """ return self._src_template @@ -407,7 +435,7 @@ def src_template(self, src_template): Sets the src_template of this HyperflexNodeProfile. :param src_template: The src_template of this HyperflexNodeProfile. - :type: MoMoRef + :type: PolicyAbstractProfileRef """ self._src_template = src_template @@ -445,9 +473,10 @@ def type(self, type): def assigned_server(self): """ Gets the assigned_server of this HyperflexNodeProfile. + The physical server assigned to this node profile :return: The assigned_server of this HyperflexNodeProfile. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._assigned_server @@ -455,9 +484,10 @@ def assigned_server(self): def assigned_server(self, assigned_server): """ Sets the assigned_server of this HyperflexNodeProfile. + The physical server assigned to this node profile :param assigned_server: The assigned_server of this HyperflexNodeProfile. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._assigned_server = assigned_server @@ -468,7 +498,7 @@ def cluster_profile(self): Gets the cluster_profile of this HyperflexNodeProfile. :return: The cluster_profile of this HyperflexNodeProfile. - :rtype: MoMoRef + :rtype: HyperflexClusterProfileRef """ return self._cluster_profile @@ -478,102 +508,102 @@ def cluster_profile(self, cluster_profile): Sets the cluster_profile of this HyperflexNodeProfile. :param cluster_profile: The cluster_profile of this HyperflexNodeProfile. - :type: MoMoRef + :type: HyperflexClusterProfileRef """ self._cluster_profile = cluster_profile @property - def esx_data_ip(self): + def hxdp_data_ip(self): """ - Gets the esx_data_ip of this HyperflexNodeProfile. - IP address for Hypervisor Data Network + Gets the hxdp_data_ip of this HyperflexNodeProfile. + IP address for storage data network (Controller VM interface) - :return: The esx_data_ip of this HyperflexNodeProfile. + :return: The hxdp_data_ip of this HyperflexNodeProfile. :rtype: str """ - return self._esx_data_ip + return self._hxdp_data_ip - @esx_data_ip.setter - def esx_data_ip(self, esx_data_ip): + @hxdp_data_ip.setter + def hxdp_data_ip(self, hxdp_data_ip): """ - Sets the esx_data_ip of this HyperflexNodeProfile. - IP address for Hypervisor Data Network + Sets the hxdp_data_ip of this HyperflexNodeProfile. + IP address for storage data network (Controller VM interface) - :param esx_data_ip: The esx_data_ip of this HyperflexNodeProfile. + :param hxdp_data_ip: The hxdp_data_ip of this HyperflexNodeProfile. :type: str """ - self._esx_data_ip = esx_data_ip + self._hxdp_data_ip = hxdp_data_ip @property - def esx_mgmt_ip(self): + def hxdp_mgmt_ip(self): """ - Gets the esx_mgmt_ip of this HyperflexNodeProfile. - IP address for Hypervisor Management + Gets the hxdp_mgmt_ip of this HyperflexNodeProfile. + IP address for HyperFlex management network - :return: The esx_mgmt_ip of this HyperflexNodeProfile. + :return: The hxdp_mgmt_ip of this HyperflexNodeProfile. :rtype: str """ - return self._esx_mgmt_ip + return self._hxdp_mgmt_ip - @esx_mgmt_ip.setter - def esx_mgmt_ip(self, esx_mgmt_ip): + @hxdp_mgmt_ip.setter + def hxdp_mgmt_ip(self, hxdp_mgmt_ip): """ - Sets the esx_mgmt_ip of this HyperflexNodeProfile. - IP address for Hypervisor Management + Sets the hxdp_mgmt_ip of this HyperflexNodeProfile. + IP address for HyperFlex management network - :param esx_mgmt_ip: The esx_mgmt_ip of this HyperflexNodeProfile. + :param hxdp_mgmt_ip: The hxdp_mgmt_ip of this HyperflexNodeProfile. :type: str """ - self._esx_mgmt_ip = esx_mgmt_ip + self._hxdp_mgmt_ip = hxdp_mgmt_ip @property - def hxdp_data_ip(self): + def hypervisor_data_ip(self): """ - Gets the hxdp_data_ip of this HyperflexNodeProfile. - IP address for HX Data Platform Data Network + Gets the hypervisor_data_ip of this HyperflexNodeProfile. + IP address for storage data network (Hypervisor interface) - :return: The hxdp_data_ip of this HyperflexNodeProfile. + :return: The hypervisor_data_ip of this HyperflexNodeProfile. :rtype: str """ - return self._hxdp_data_ip + return self._hypervisor_data_ip - @hxdp_data_ip.setter - def hxdp_data_ip(self, hxdp_data_ip): + @hypervisor_data_ip.setter + def hypervisor_data_ip(self, hypervisor_data_ip): """ - Sets the hxdp_data_ip of this HyperflexNodeProfile. - IP address for HX Data Platform Data Network + Sets the hypervisor_data_ip of this HyperflexNodeProfile. + IP address for storage data network (Hypervisor interface) - :param hxdp_data_ip: The hxdp_data_ip of this HyperflexNodeProfile. + :param hypervisor_data_ip: The hypervisor_data_ip of this HyperflexNodeProfile. :type: str """ - self._hxdp_data_ip = hxdp_data_ip + self._hypervisor_data_ip = hypervisor_data_ip @property - def hxdp_mgmt_ip(self): + def hypervisor_mgmt_ip(self): """ - Gets the hxdp_mgmt_ip of this HyperflexNodeProfile. - IP address for HX Data Platform Management + Gets the hypervisor_mgmt_ip of this HyperflexNodeProfile. + IP address for Hypervisor management network - :return: The hxdp_mgmt_ip of this HyperflexNodeProfile. + :return: The hypervisor_mgmt_ip of this HyperflexNodeProfile. :rtype: str """ - return self._hxdp_mgmt_ip + return self._hypervisor_mgmt_ip - @hxdp_mgmt_ip.setter - def hxdp_mgmt_ip(self, hxdp_mgmt_ip): + @hypervisor_mgmt_ip.setter + def hypervisor_mgmt_ip(self, hypervisor_mgmt_ip): """ - Sets the hxdp_mgmt_ip of this HyperflexNodeProfile. - IP address for HX Data Platform Management + Sets the hypervisor_mgmt_ip of this HyperflexNodeProfile. + IP address for Hypervisor management network - :param hxdp_mgmt_ip: The hxdp_mgmt_ip of this HyperflexNodeProfile. + :param hypervisor_mgmt_ip: The hypervisor_mgmt_ip of this HyperflexNodeProfile. :type: str """ - self._hxdp_mgmt_ip = hxdp_mgmt_ip + self._hypervisor_mgmt_ip = hypervisor_mgmt_ip def to_dict(self): """ diff --git a/intersight/models/hyperflex_node_profile_list.py b/intersight/models/hyperflex_node_profile_list.py index c1b177dd..8dd08f06 100644 --- a/intersight/models/hyperflex_node_profile_list.py +++ b/intersight/models/hyperflex_node_profile_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_node_profile_ref.py b/intersight/models/hyperflex_node_profile_ref.py new file mode 100644 index 00000000..5cf5fce1 --- /dev/null +++ b/intersight/models/hyperflex_node_profile_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexNodeProfileRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexNodeProfileRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexNodeProfileRef. + + :return: The moid of this HyperflexNodeProfileRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexNodeProfileRef. + + :param moid: The moid of this HyperflexNodeProfileRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexNodeProfileRef. + + :return: The object_type of this HyperflexNodeProfileRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexNodeProfileRef. + + :param object_type: The object_type of this HyperflexNodeProfileRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexNodeProfileRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_node_ref.py b/intersight/models/hyperflex_node_ref.py new file mode 100644 index 00000000..222fbb77 --- /dev/null +++ b/intersight/models/hyperflex_node_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexNodeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexNodeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexNodeRef. + + :return: The moid of this HyperflexNodeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexNodeRef. + + :param moid: The moid of this HyperflexNodeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexNodeRef. + + :return: The object_type of this HyperflexNodeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexNodeRef. + + :param object_type: The object_type of this HyperflexNodeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexNodeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_proxy_setting_policy.py b/intersight/models/hyperflex_proxy_setting_policy.py new file mode 100644 index 00000000..3284d73f --- /dev/null +++ b/intersight/models/hyperflex_proxy_setting_policy.py @@ -0,0 +1,627 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexProxySettingPolicy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'description': 'str', + 'name': 'str', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', + 'hostname': 'str', + 'is_password_set': 'bool', + 'organization': 'IamAccountRef', + 'password': 'str', + 'port': 'int', + 'username': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'description': 'Description', + 'name': 'Name', + 'cluster_profiles': 'ClusterProfiles', + 'hostname': 'Hostname', + 'is_password_set': 'IsPasswordSet', + 'organization': 'Organization', + 'password': 'Password', + 'port': 'Port', + 'username': 'Username' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, cluster_profiles=None, hostname=None, is_password_set=None, organization=None, password=None, port=None, username=None): + """ + HyperflexProxySettingPolicy - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._description = None + self._name = None + self._cluster_profiles = None + self._hostname = None + self._is_password_set = None + self._organization = None + self._password = None + self._port = None + self._username = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if description is not None: + self.description = description + if name is not None: + self.name = name + if cluster_profiles is not None: + self.cluster_profiles = cluster_profiles + if hostname is not None: + self.hostname = hostname + if is_password_set is not None: + self.is_password_set = is_password_set + if organization is not None: + self.organization = organization + if password is not None: + self.password = password + if port is not None: + self.port = port + if username is not None: + self.username = username + + @property + def account_moid(self): + """ + Gets the account_moid of this HyperflexProxySettingPolicy. + The Account ID for this managed object. + + :return: The account_moid of this HyperflexProxySettingPolicy. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this HyperflexProxySettingPolicy. + The Account ID for this managed object. + + :param account_moid: The account_moid of this HyperflexProxySettingPolicy. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this HyperflexProxySettingPolicy. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this HyperflexProxySettingPolicy. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this HyperflexProxySettingPolicy. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this HyperflexProxySettingPolicy. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this HyperflexProxySettingPolicy. + The time when this managed object was created. + + :return: The create_time of this HyperflexProxySettingPolicy. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this HyperflexProxySettingPolicy. + The time when this managed object was created. + + :param create_time: The create_time of this HyperflexProxySettingPolicy. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this HyperflexProxySettingPolicy. + The time when this managed object was last modified. + + :return: The mod_time of this HyperflexProxySettingPolicy. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this HyperflexProxySettingPolicy. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this HyperflexProxySettingPolicy. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this HyperflexProxySettingPolicy. + A unique identifier of this Managed Object instance. + + :return: The moid of this HyperflexProxySettingPolicy. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexProxySettingPolicy. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this HyperflexProxySettingPolicy. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexProxySettingPolicy. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this HyperflexProxySettingPolicy. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexProxySettingPolicy. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this HyperflexProxySettingPolicy. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this HyperflexProxySettingPolicy. + An array of owners which represent effective ownership of this object. + + :return: The owners of this HyperflexProxySettingPolicy. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this HyperflexProxySettingPolicy. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this HyperflexProxySettingPolicy. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this HyperflexProxySettingPolicy. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this HyperflexProxySettingPolicy. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this HyperflexProxySettingPolicy. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this HyperflexProxySettingPolicy. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this HyperflexProxySettingPolicy. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this HyperflexProxySettingPolicy. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this HyperflexProxySettingPolicy. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this HyperflexProxySettingPolicy. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this HyperflexProxySettingPolicy. + The versioning info for this managed object + + :return: The version_context of this HyperflexProxySettingPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexProxySettingPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexProxySettingPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def description(self): + """ + Gets the description of this HyperflexProxySettingPolicy. + Description of the policy. + + :return: The description of this HyperflexProxySettingPolicy. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this HyperflexProxySettingPolicy. + Description of the policy. + + :param description: The description of this HyperflexProxySettingPolicy. + :type: str + """ + + self._description = description + + @property + def name(self): + """ + Gets the name of this HyperflexProxySettingPolicy. + Name of the policy. + + :return: The name of this HyperflexProxySettingPolicy. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this HyperflexProxySettingPolicy. + Name of the policy. + + :param name: The name of this HyperflexProxySettingPolicy. + :type: str + """ + + self._name = name + + @property + def cluster_profiles(self): + """ + Gets the cluster_profiles of this HyperflexProxySettingPolicy. + List of cluster profiles using this policy + + :return: The cluster_profiles of this HyperflexProxySettingPolicy. + :rtype: list[HyperflexClusterProfileRef] + """ + return self._cluster_profiles + + @cluster_profiles.setter + def cluster_profiles(self, cluster_profiles): + """ + Sets the cluster_profiles of this HyperflexProxySettingPolicy. + List of cluster profiles using this policy + + :param cluster_profiles: The cluster_profiles of this HyperflexProxySettingPolicy. + :type: list[HyperflexClusterProfileRef] + """ + + self._cluster_profiles = cluster_profiles + + @property + def hostname(self): + """ + Gets the hostname of this HyperflexProxySettingPolicy. + HTTP Proxy server FQDN or IP + + :return: The hostname of this HyperflexProxySettingPolicy. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """ + Sets the hostname of this HyperflexProxySettingPolicy. + HTTP Proxy server FQDN or IP + + :param hostname: The hostname of this HyperflexProxySettingPolicy. + :type: str + """ + + self._hostname = hostname + + @property + def is_password_set(self): + """ + Gets the is_password_set of this HyperflexProxySettingPolicy. + + :return: The is_password_set of this HyperflexProxySettingPolicy. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this HyperflexProxySettingPolicy. + + :param is_password_set: The is_password_set of this HyperflexProxySettingPolicy. + :type: bool + """ + + self._is_password_set = is_password_set + + @property + def organization(self): + """ + Gets the organization of this HyperflexProxySettingPolicy. + Organization + + :return: The organization of this HyperflexProxySettingPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexProxySettingPolicy. + Organization + + :param organization: The organization of this HyperflexProxySettingPolicy. + :type: IamAccountRef + """ + + self._organization = organization + + @property + def password(self): + """ + Gets the password of this HyperflexProxySettingPolicy. + HTTP Proxy password + + :return: The password of this HyperflexProxySettingPolicy. + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """ + Sets the password of this HyperflexProxySettingPolicy. + HTTP Proxy password + + :param password: The password of this HyperflexProxySettingPolicy. + :type: str + """ + + self._password = password + + @property + def port(self): + """ + Gets the port of this HyperflexProxySettingPolicy. + HTTP Proxy port number + + :return: The port of this HyperflexProxySettingPolicy. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """ + Sets the port of this HyperflexProxySettingPolicy. + HTTP Proxy port number + + :param port: The port of this HyperflexProxySettingPolicy. + :type: int + """ + + self._port = port + + @property + def username(self): + """ + Gets the username of this HyperflexProxySettingPolicy. + HTTP Proxy username + + :return: The username of this HyperflexProxySettingPolicy. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """ + Sets the username of this HyperflexProxySettingPolicy. + HTTP Proxy username + + :param username: The username of this HyperflexProxySettingPolicy. + :type: str + """ + + self._username = username + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexProxySettingPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_proxy_setting_policy_list.py b/intersight/models/hyperflex_proxy_setting_policy_list.py new file mode 100644 index 00000000..7ff06fae --- /dev/null +++ b/intersight/models/hyperflex_proxy_setting_policy_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexProxySettingPolicyList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[HyperflexProxySettingPolicy]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + HyperflexProxySettingPolicyList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this HyperflexProxySettingPolicyList. + The number of hyperflexProxySettingPolicies matching your request in total for all pages. + + :return: The count of this HyperflexProxySettingPolicyList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this HyperflexProxySettingPolicyList. + The number of hyperflexProxySettingPolicies matching your request in total for all pages. + + :param count: The count of this HyperflexProxySettingPolicyList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this HyperflexProxySettingPolicyList. + The array of hyperflexProxySettingPolicies matching your request. + + :return: The results of this HyperflexProxySettingPolicyList. + :rtype: list[HyperflexProxySettingPolicy] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this HyperflexProxySettingPolicyList. + The array of hyperflexProxySettingPolicies matching your request. + + :param results: The results of this HyperflexProxySettingPolicyList. + :type: list[HyperflexProxySettingPolicy] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexProxySettingPolicyList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_proxy_setting_policy_ref.py b/intersight/models/hyperflex_proxy_setting_policy_ref.py new file mode 100644 index 00000000..9aa3097d --- /dev/null +++ b/intersight/models/hyperflex_proxy_setting_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexProxySettingPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexProxySettingPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexProxySettingPolicyRef. + + :return: The moid of this HyperflexProxySettingPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexProxySettingPolicyRef. + + :param moid: The moid of this HyperflexProxySettingPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexProxySettingPolicyRef. + + :return: The object_type of this HyperflexProxySettingPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexProxySettingPolicyRef. + + :param object_type: The object_type of this HyperflexProxySettingPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexProxySettingPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_server_firmware_version.py b/intersight/models/hyperflex_server_firmware_version.py new file mode 100644 index 00000000..26aad969 --- /dev/null +++ b/intersight/models/hyperflex_server_firmware_version.py @@ -0,0 +1,431 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexServerFirmwareVersion(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'app_catalog': 'HyperflexAppCatalogRef', + 'server_firmware_version_entries': 'list[HyperflexServerFirmwareVersionEntry]' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'app_catalog': 'AppCatalog', + 'server_firmware_version_entries': 'ServerFirmwareVersionEntries' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, app_catalog=None, server_firmware_version_entries=None): + """ + HyperflexServerFirmwareVersion - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._app_catalog = None + self._server_firmware_version_entries = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if app_catalog is not None: + self.app_catalog = app_catalog + if server_firmware_version_entries is not None: + self.server_firmware_version_entries = server_firmware_version_entries + + @property + def account_moid(self): + """ + Gets the account_moid of this HyperflexServerFirmwareVersion. + The Account ID for this managed object. + + :return: The account_moid of this HyperflexServerFirmwareVersion. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this HyperflexServerFirmwareVersion. + The Account ID for this managed object. + + :param account_moid: The account_moid of this HyperflexServerFirmwareVersion. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this HyperflexServerFirmwareVersion. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this HyperflexServerFirmwareVersion. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this HyperflexServerFirmwareVersion. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this HyperflexServerFirmwareVersion. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this HyperflexServerFirmwareVersion. + The time when this managed object was created. + + :return: The create_time of this HyperflexServerFirmwareVersion. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this HyperflexServerFirmwareVersion. + The time when this managed object was created. + + :param create_time: The create_time of this HyperflexServerFirmwareVersion. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this HyperflexServerFirmwareVersion. + The time when this managed object was last modified. + + :return: The mod_time of this HyperflexServerFirmwareVersion. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this HyperflexServerFirmwareVersion. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this HyperflexServerFirmwareVersion. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this HyperflexServerFirmwareVersion. + A unique identifier of this Managed Object instance. + + :return: The moid of this HyperflexServerFirmwareVersion. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexServerFirmwareVersion. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this HyperflexServerFirmwareVersion. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexServerFirmwareVersion. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this HyperflexServerFirmwareVersion. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexServerFirmwareVersion. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this HyperflexServerFirmwareVersion. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this HyperflexServerFirmwareVersion. + An array of owners which represent effective ownership of this object. + + :return: The owners of this HyperflexServerFirmwareVersion. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this HyperflexServerFirmwareVersion. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this HyperflexServerFirmwareVersion. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this HyperflexServerFirmwareVersion. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this HyperflexServerFirmwareVersion. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this HyperflexServerFirmwareVersion. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this HyperflexServerFirmwareVersion. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this HyperflexServerFirmwareVersion. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this HyperflexServerFirmwareVersion. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this HyperflexServerFirmwareVersion. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this HyperflexServerFirmwareVersion. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this HyperflexServerFirmwareVersion. + The versioning info for this managed object + + :return: The version_context of this HyperflexServerFirmwareVersion. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexServerFirmwareVersion. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexServerFirmwareVersion. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def app_catalog(self): + """ + Gets the app_catalog of this HyperflexServerFirmwareVersion. + + :return: The app_catalog of this HyperflexServerFirmwareVersion. + :rtype: HyperflexAppCatalogRef + """ + return self._app_catalog + + @app_catalog.setter + def app_catalog(self, app_catalog): + """ + Sets the app_catalog of this HyperflexServerFirmwareVersion. + + :param app_catalog: The app_catalog of this HyperflexServerFirmwareVersion. + :type: HyperflexAppCatalogRef + """ + + self._app_catalog = app_catalog + + @property + def server_firmware_version_entries(self): + """ + Gets the server_firmware_version_entries of this HyperflexServerFirmwareVersion. + Specifies server firmware bundle versions used for server components such as CIMC, adapters, BIOS, etc. + + :return: The server_firmware_version_entries of this HyperflexServerFirmwareVersion. + :rtype: list[HyperflexServerFirmwareVersionEntry] + """ + return self._server_firmware_version_entries + + @server_firmware_version_entries.setter + def server_firmware_version_entries(self, server_firmware_version_entries): + """ + Sets the server_firmware_version_entries of this HyperflexServerFirmwareVersion. + Specifies server firmware bundle versions used for server components such as CIMC, adapters, BIOS, etc. + + :param server_firmware_version_entries: The server_firmware_version_entries of this HyperflexServerFirmwareVersion. + :type: list[HyperflexServerFirmwareVersionEntry] + """ + + self._server_firmware_version_entries = server_firmware_version_entries + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexServerFirmwareVersion): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_server_firmware_version_entry.py b/intersight/models/hyperflex_server_firmware_version_entry.py new file mode 100644 index 00000000..3c99bec9 --- /dev/null +++ b/intersight/models/hyperflex_server_firmware_version_entry.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexServerFirmwareVersionEntry(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'value': 'str', + 'constraint': 'HyperflexAppSettingConstraint', + 'label': 'str' + } + + attribute_map = { + 'name': 'Name', + 'value': 'Value', + 'constraint': 'Constraint', + 'label': 'Label' + } + + def __init__(self, name=None, value=None, constraint=None, label=None): + """ + HyperflexServerFirmwareVersionEntry - a model defined in Swagger + """ + + self._name = None + self._value = None + self._constraint = None + self._label = None + + if name is not None: + self.name = name + if value is not None: + self.value = value + if constraint is not None: + self.constraint = constraint + if label is not None: + self.label = label + + @property + def name(self): + """ + Gets the name of this HyperflexServerFirmwareVersionEntry. + Application setting identifier + + :return: The name of this HyperflexServerFirmwareVersionEntry. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this HyperflexServerFirmwareVersionEntry. + Application setting identifier + + :param name: The name of this HyperflexServerFirmwareVersionEntry. + :type: str + """ + + self._name = name + + @property + def value(self): + """ + Gets the value of this HyperflexServerFirmwareVersionEntry. + Application setting value + + :return: The value of this HyperflexServerFirmwareVersionEntry. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this HyperflexServerFirmwareVersionEntry. + Application setting value + + :param value: The value of this HyperflexServerFirmwareVersionEntry. + :type: str + """ + + self._value = value + + @property + def constraint(self): + """ + Gets the constraint of this HyperflexServerFirmwareVersionEntry. + Conditions to be met to apply the AppSetting + + :return: The constraint of this HyperflexServerFirmwareVersionEntry. + :rtype: HyperflexAppSettingConstraint + """ + return self._constraint + + @constraint.setter + def constraint(self, constraint): + """ + Sets the constraint of this HyperflexServerFirmwareVersionEntry. + Conditions to be met to apply the AppSetting + + :param constraint: The constraint of this HyperflexServerFirmwareVersionEntry. + :type: HyperflexAppSettingConstraint + """ + + self._constraint = constraint + + @property + def label(self): + """ + Gets the label of this HyperflexServerFirmwareVersionEntry. + Display name for server firmware bundle version in UI + + :return: The label of this HyperflexServerFirmwareVersionEntry. + :rtype: str + """ + return self._label + + @label.setter + def label(self, label): + """ + Sets the label of this HyperflexServerFirmwareVersionEntry. + Display name for server firmware bundle version in UI + + :param label: The label of this HyperflexServerFirmwareVersionEntry. + :type: str + """ + + self._label = label + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexServerFirmwareVersionEntry): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_server_firmware_version_entry_ref.py b/intersight/models/hyperflex_server_firmware_version_entry_ref.py new file mode 100644 index 00000000..a8fbc196 --- /dev/null +++ b/intersight/models/hyperflex_server_firmware_version_entry_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexServerFirmwareVersionEntryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexServerFirmwareVersionEntryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexServerFirmwareVersionEntryRef. + + :return: The moid of this HyperflexServerFirmwareVersionEntryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexServerFirmwareVersionEntryRef. + + :param moid: The moid of this HyperflexServerFirmwareVersionEntryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexServerFirmwareVersionEntryRef. + + :return: The object_type of this HyperflexServerFirmwareVersionEntryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexServerFirmwareVersionEntryRef. + + :param object_type: The object_type of this HyperflexServerFirmwareVersionEntryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexServerFirmwareVersionEntryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_server_firmware_version_list.py b/intersight/models/hyperflex_server_firmware_version_list.py new file mode 100644 index 00000000..3f8a9ed9 --- /dev/null +++ b/intersight/models/hyperflex_server_firmware_version_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexServerFirmwareVersionList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[HyperflexServerFirmwareVersion]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + HyperflexServerFirmwareVersionList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this HyperflexServerFirmwareVersionList. + The number of hyperflexServerFirmwareVersions matching your request in total for all pages. + + :return: The count of this HyperflexServerFirmwareVersionList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this HyperflexServerFirmwareVersionList. + The number of hyperflexServerFirmwareVersions matching your request in total for all pages. + + :param count: The count of this HyperflexServerFirmwareVersionList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this HyperflexServerFirmwareVersionList. + The array of hyperflexServerFirmwareVersions matching your request. + + :return: The results of this HyperflexServerFirmwareVersionList. + :rtype: list[HyperflexServerFirmwareVersion] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this HyperflexServerFirmwareVersionList. + The array of hyperflexServerFirmwareVersions matching your request. + + :param results: The results of this HyperflexServerFirmwareVersionList. + :type: list[HyperflexServerFirmwareVersion] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexServerFirmwareVersionList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_server_firmware_version_ref.py b/intersight/models/hyperflex_server_firmware_version_ref.py new file mode 100644 index 00000000..e2ada2bf --- /dev/null +++ b/intersight/models/hyperflex_server_firmware_version_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexServerFirmwareVersionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexServerFirmwareVersionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexServerFirmwareVersionRef. + + :return: The moid of this HyperflexServerFirmwareVersionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexServerFirmwareVersionRef. + + :param moid: The moid of this HyperflexServerFirmwareVersionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexServerFirmwareVersionRef. + + :return: The object_type of this HyperflexServerFirmwareVersionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexServerFirmwareVersionRef. + + :param object_type: The object_type of this HyperflexServerFirmwareVersionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexServerFirmwareVersionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_server_model.py b/intersight/models/hyperflex_server_model.py new file mode 100644 index 00000000..9281c044 --- /dev/null +++ b/intersight/models/hyperflex_server_model.py @@ -0,0 +1,431 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexServerModel(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'app_catalog': 'HyperflexAppCatalogRef', + 'server_model_entries': 'list[HyperflexServerModelEntry]' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'app_catalog': 'AppCatalog', + 'server_model_entries': 'ServerModelEntries' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, app_catalog=None, server_model_entries=None): + """ + HyperflexServerModel - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._app_catalog = None + self._server_model_entries = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if app_catalog is not None: + self.app_catalog = app_catalog + if server_model_entries is not None: + self.server_model_entries = server_model_entries + + @property + def account_moid(self): + """ + Gets the account_moid of this HyperflexServerModel. + The Account ID for this managed object. + + :return: The account_moid of this HyperflexServerModel. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this HyperflexServerModel. + The Account ID for this managed object. + + :param account_moid: The account_moid of this HyperflexServerModel. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this HyperflexServerModel. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this HyperflexServerModel. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this HyperflexServerModel. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this HyperflexServerModel. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this HyperflexServerModel. + The time when this managed object was created. + + :return: The create_time of this HyperflexServerModel. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this HyperflexServerModel. + The time when this managed object was created. + + :param create_time: The create_time of this HyperflexServerModel. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this HyperflexServerModel. + The time when this managed object was last modified. + + :return: The mod_time of this HyperflexServerModel. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this HyperflexServerModel. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this HyperflexServerModel. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this HyperflexServerModel. + A unique identifier of this Managed Object instance. + + :return: The moid of this HyperflexServerModel. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexServerModel. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this HyperflexServerModel. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexServerModel. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this HyperflexServerModel. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexServerModel. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this HyperflexServerModel. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this HyperflexServerModel. + An array of owners which represent effective ownership of this object. + + :return: The owners of this HyperflexServerModel. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this HyperflexServerModel. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this HyperflexServerModel. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this HyperflexServerModel. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this HyperflexServerModel. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this HyperflexServerModel. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this HyperflexServerModel. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this HyperflexServerModel. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this HyperflexServerModel. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this HyperflexServerModel. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this HyperflexServerModel. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this HyperflexServerModel. + The versioning info for this managed object + + :return: The version_context of this HyperflexServerModel. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexServerModel. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexServerModel. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def app_catalog(self): + """ + Gets the app_catalog of this HyperflexServerModel. + + :return: The app_catalog of this HyperflexServerModel. + :rtype: HyperflexAppCatalogRef + """ + return self._app_catalog + + @app_catalog.setter + def app_catalog(self, app_catalog): + """ + Sets the app_catalog of this HyperflexServerModel. + + :param app_catalog: The app_catalog of this HyperflexServerModel. + :type: HyperflexAppCatalogRef + """ + + self._app_catalog = app_catalog + + @property + def server_model_entries(self): + """ + Gets the server_model_entries of this HyperflexServerModel. + Specifies supported server models in regex format + + :return: The server_model_entries of this HyperflexServerModel. + :rtype: list[HyperflexServerModelEntry] + """ + return self._server_model_entries + + @server_model_entries.setter + def server_model_entries(self, server_model_entries): + """ + Sets the server_model_entries of this HyperflexServerModel. + Specifies supported server models in regex format + + :param server_model_entries: The server_model_entries of this HyperflexServerModel. + :type: list[HyperflexServerModelEntry] + """ + + self._server_model_entries = server_model_entries + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexServerModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_pch_storage.py b/intersight/models/hyperflex_server_model_entry.py similarity index 54% rename from intersight/models/boot_pch_storage.py rename to intersight/models/hyperflex_server_model_entry.py index b32f2dc8..f4505751 100644 --- a/intersight/models/boot_pch_storage.py +++ b/intersight/models/hyperflex_server_model_entry.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class BootPchStorage(object): +class HyperflexServerModelEntry(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,101 +31,101 @@ class BootPchStorage(object): and the value is json key in definition. """ swagger_types = { - 'enabled': 'bool', 'name': 'str', - 'lun': 'int' + 'value': 'str', + 'constraint': 'HyperflexAppSettingConstraint' } attribute_map = { - 'enabled': 'Enabled', 'name': 'Name', - 'lun': 'Lun' + 'value': 'Value', + 'constraint': 'Constraint' } - def __init__(self, enabled=None, name=None, lun=None): + def __init__(self, name=None, value=None, constraint=None): """ - BootPchStorage - a model defined in Swagger + HyperflexServerModelEntry - a model defined in Swagger """ - self._enabled = None self._name = None - self._lun = None + self._value = None + self._constraint = None - if enabled is not None: - self.enabled = enabled if name is not None: self.name = name - if lun is not None: - self.lun = lun + if value is not None: + self.value = value + if constraint is not None: + self.constraint = constraint @property - def enabled(self): + def name(self): """ - Gets the enabled of this BootPchStorage. - Specifies if the boot device is enabled or disabled. + Gets the name of this HyperflexServerModelEntry. + Application setting identifier - :return: The enabled of this BootPchStorage. - :rtype: bool + :return: The name of this HyperflexServerModelEntry. + :rtype: str """ - return self._enabled + return self._name - @enabled.setter - def enabled(self, enabled): + @name.setter + def name(self, name): """ - Sets the enabled of this BootPchStorage. - Specifies if the boot device is enabled or disabled. + Sets the name of this HyperflexServerModelEntry. + Application setting identifier - :param enabled: The enabled of this BootPchStorage. - :type: bool + :param name: The name of this HyperflexServerModelEntry. + :type: str """ - self._enabled = enabled + self._name = name @property - def name(self): + def value(self): """ - Gets the name of this BootPchStorage. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. + Gets the value of this HyperflexServerModelEntry. + Application setting value - :return: The name of this BootPchStorage. + :return: The value of this HyperflexServerModelEntry. :rtype: str """ - return self._name + return self._value - @name.setter - def name(self, name): + @value.setter + def value(self, value): """ - Sets the name of this BootPchStorage. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. + Sets the value of this HyperflexServerModelEntry. + Application setting value - :param name: The name of this BootPchStorage. + :param value: The value of this HyperflexServerModelEntry. :type: str """ - self._name = name + self._value = value @property - def lun(self): + def constraint(self): """ - Gets the lun of this BootPchStorage. - Specifies the Logical Unit Number(LUN) of the device. + Gets the constraint of this HyperflexServerModelEntry. + Conditions to be met to apply the AppSetting - :return: The lun of this BootPchStorage. - :rtype: int + :return: The constraint of this HyperflexServerModelEntry. + :rtype: HyperflexAppSettingConstraint """ - return self._lun + return self._constraint - @lun.setter - def lun(self, lun): + @constraint.setter + def constraint(self, constraint): """ - Sets the lun of this BootPchStorage. - Specifies the Logical Unit Number(LUN) of the device. + Sets the constraint of this HyperflexServerModelEntry. + Conditions to be met to apply the AppSetting - :param lun: The lun of this BootPchStorage. - :type: int + :param constraint: The constraint of this HyperflexServerModelEntry. + :type: HyperflexAppSettingConstraint """ - self._lun = lun + self._constraint = constraint def to_dict(self): """ @@ -169,7 +169,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, BootPchStorage): + if not isinstance(other, HyperflexServerModelEntry): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/hyperflex_server_model_entry_ref.py b/intersight/models/hyperflex_server_model_entry_ref.py new file mode 100644 index 00000000..213a1603 --- /dev/null +++ b/intersight/models/hyperflex_server_model_entry_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexServerModelEntryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexServerModelEntryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexServerModelEntryRef. + + :return: The moid of this HyperflexServerModelEntryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexServerModelEntryRef. + + :param moid: The moid of this HyperflexServerModelEntryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexServerModelEntryRef. + + :return: The object_type of this HyperflexServerModelEntryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexServerModelEntryRef. + + :param object_type: The object_type of this HyperflexServerModelEntryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexServerModelEntryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_workflow_task_list.py b/intersight/models/hyperflex_server_model_list.py similarity index 71% rename from intersight/models/workflow_workflow_task_list.py rename to intersight/models/hyperflex_server_model_list.py index 6fe054c1..f1d93bc8 100644 --- a/intersight/models/workflow_workflow_task_list.py +++ b/intersight/models/hyperflex_server_model_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class WorkflowWorkflowTaskList(object): +class HyperflexServerModelList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class WorkflowWorkflowTaskList(object): """ swagger_types = { 'count': 'int', - 'results': 'list[WorkflowWorkflowTask]' + 'results': 'list[HyperflexServerModel]' } attribute_map = { @@ -42,7 +42,7 @@ class WorkflowWorkflowTaskList(object): def __init__(self, count=None, results=None): """ - WorkflowWorkflowTaskList - a model defined in Swagger + HyperflexServerModelList - a model defined in Swagger """ self._count = None @@ -56,10 +56,10 @@ def __init__(self, count=None, results=None): @property def count(self): """ - Gets the count of this WorkflowWorkflowTaskList. - The number of workflowWorkflowTasks matching your request in total for all pages. + Gets the count of this HyperflexServerModelList. + The number of hyperflexServerModels matching your request in total for all pages. - :return: The count of this WorkflowWorkflowTaskList. + :return: The count of this HyperflexServerModelList. :rtype: int """ return self._count @@ -67,10 +67,10 @@ def count(self): @count.setter def count(self, count): """ - Sets the count of this WorkflowWorkflowTaskList. - The number of workflowWorkflowTasks matching your request in total for all pages. + Sets the count of this HyperflexServerModelList. + The number of hyperflexServerModels matching your request in total for all pages. - :param count: The count of this WorkflowWorkflowTaskList. + :param count: The count of this HyperflexServerModelList. :type: int """ @@ -79,22 +79,22 @@ def count(self, count): @property def results(self): """ - Gets the results of this WorkflowWorkflowTaskList. - The array of workflowWorkflowTasks matching your request. + Gets the results of this HyperflexServerModelList. + The array of hyperflexServerModels matching your request. - :return: The results of this WorkflowWorkflowTaskList. - :rtype: list[WorkflowWorkflowTask] + :return: The results of this HyperflexServerModelList. + :rtype: list[HyperflexServerModel] """ return self._results @results.setter def results(self, results): """ - Sets the results of this WorkflowWorkflowTaskList. - The array of workflowWorkflowTasks matching your request. + Sets the results of this HyperflexServerModelList. + The array of hyperflexServerModels matching your request. - :param results: The results of this WorkflowWorkflowTaskList. - :type: list[WorkflowWorkflowTask] + :param results: The results of this HyperflexServerModelList. + :type: list[HyperflexServerModel] """ self._results = results @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, WorkflowWorkflowTaskList): + if not isinstance(other, HyperflexServerModelList): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/hyperflex_server_model_ref.py b/intersight/models/hyperflex_server_model_ref.py new file mode 100644 index 00000000..52f862b9 --- /dev/null +++ b/intersight/models/hyperflex_server_model_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexServerModelRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexServerModelRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexServerModelRef. + + :return: The moid of this HyperflexServerModelRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexServerModelRef. + + :param moid: The moid of this HyperflexServerModelRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexServerModelRef. + + :return: The object_type of this HyperflexServerModelRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexServerModelRef. + + :param object_type: The object_type of this HyperflexServerModelRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexServerModelRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_st_platform_cluster_healing_info.py b/intersight/models/hyperflex_st_platform_cluster_healing_info.py index 6c6583be..3e777aa6 100644 --- a/intersight/models/hyperflex_st_platform_cluster_healing_info.py +++ b/intersight/models/hyperflex_st_platform_cluster_healing_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,7 +34,7 @@ class HyperflexStPlatformClusterHealingInfo(object): 'estimated_completion_time_in_seconds': 'int', 'in_progress': 'bool', 'messages': 'list[str]', - 'messages_iterator': 'HyperflexIteratorString', + 'messages_iterator': 'object', 'messages_size': 'int', 'percent_complete': 'int' } @@ -142,7 +142,7 @@ def messages_iterator(self): Gets the messages_iterator of this HyperflexStPlatformClusterHealingInfo. :return: The messages_iterator of this HyperflexStPlatformClusterHealingInfo. - :rtype: HyperflexIteratorString + :rtype: object """ return self._messages_iterator @@ -152,7 +152,7 @@ def messages_iterator(self, messages_iterator): Sets the messages_iterator of this HyperflexStPlatformClusterHealingInfo. :param messages_iterator: The messages_iterator of this HyperflexStPlatformClusterHealingInfo. - :type: HyperflexIteratorString + :type: object """ self._messages_iterator = messages_iterator diff --git a/intersight/models/hyperflex_st_platform_cluster_healing_info_ref.py b/intersight/models/hyperflex_st_platform_cluster_healing_info_ref.py new file mode 100644 index 00000000..524eeb2a --- /dev/null +++ b/intersight/models/hyperflex_st_platform_cluster_healing_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexStPlatformClusterHealingInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexStPlatformClusterHealingInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexStPlatformClusterHealingInfoRef. + + :return: The moid of this HyperflexStPlatformClusterHealingInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexStPlatformClusterHealingInfoRef. + + :param moid: The moid of this HyperflexStPlatformClusterHealingInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexStPlatformClusterHealingInfoRef. + + :return: The object_type of this HyperflexStPlatformClusterHealingInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexStPlatformClusterHealingInfoRef. + + :param object_type: The object_type of this HyperflexStPlatformClusterHealingInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexStPlatformClusterHealingInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_st_platform_cluster_resiliency_info.py b/intersight/models/hyperflex_st_platform_cluster_resiliency_info.py index 52425798..ad2382c3 100644 --- a/intersight/models/hyperflex_st_platform_cluster_resiliency_info.py +++ b/intersight/models/hyperflex_st_platform_cluster_resiliency_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -33,7 +33,7 @@ class HyperflexStPlatformClusterResiliencyInfo(object): swagger_types = { 'hdd_failures_tolerable': 'int', 'messages': 'list[str]', - 'messages_iterator': 'HyperflexIteratorString', + 'messages_iterator': 'object', 'messages_size': 'int', 'node_failures_tolerable': 'int', 'ssd_failures_tolerable': 'int', @@ -126,7 +126,7 @@ def messages_iterator(self): Gets the messages_iterator of this HyperflexStPlatformClusterResiliencyInfo. :return: The messages_iterator of this HyperflexStPlatformClusterResiliencyInfo. - :rtype: HyperflexIteratorString + :rtype: object """ return self._messages_iterator @@ -136,7 +136,7 @@ def messages_iterator(self, messages_iterator): Sets the messages_iterator of this HyperflexStPlatformClusterResiliencyInfo. :param messages_iterator: The messages_iterator of this HyperflexStPlatformClusterResiliencyInfo. - :type: HyperflexIteratorString + :type: object """ self._messages_iterator = messages_iterator diff --git a/intersight/models/hyperflex_st_platform_cluster_resiliency_info_ref.py b/intersight/models/hyperflex_st_platform_cluster_resiliency_info_ref.py new file mode 100644 index 00000000..7746c385 --- /dev/null +++ b/intersight/models/hyperflex_st_platform_cluster_resiliency_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexStPlatformClusterResiliencyInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexStPlatformClusterResiliencyInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexStPlatformClusterResiliencyInfoRef. + + :return: The moid of this HyperflexStPlatformClusterResiliencyInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexStPlatformClusterResiliencyInfoRef. + + :param moid: The moid of this HyperflexStPlatformClusterResiliencyInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexStPlatformClusterResiliencyInfoRef. + + :return: The object_type of this HyperflexStPlatformClusterResiliencyInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexStPlatformClusterResiliencyInfoRef. + + :param object_type: The object_type of this HyperflexStPlatformClusterResiliencyInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexStPlatformClusterResiliencyInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_summary.py b/intersight/models/hyperflex_summary.py index 2107943d..1759c368 100644 --- a/intersight/models/hyperflex_summary.py +++ b/intersight/models/hyperflex_summary.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -43,7 +43,7 @@ class HyperflexSummary(object): 'free_capacity': 'int', 'healing_info': 'HyperflexStPlatformClusterHealingInfo', 'name': 'str', - 'resiliency_details': 'str', + 'resiliency_details': 'object', 'resiliency_details_size': 'int', 'resiliency_info': 'HyperflexStPlatformClusterResiliencyInfo', 'space_status': 'str', @@ -406,7 +406,7 @@ def resiliency_details(self): Gets the resiliency_details of this HyperflexSummary. :return: The resiliency_details of this HyperflexSummary. - :rtype: str + :rtype: object """ return self._resiliency_details @@ -416,7 +416,7 @@ def resiliency_details(self, resiliency_details): Sets the resiliency_details of this HyperflexSummary. :param resiliency_details: The resiliency_details of this HyperflexSummary. - :type: str + :type: object """ self._resiliency_details = resiliency_details diff --git a/intersight/models/hyperflex_summary_ref.py b/intersight/models/hyperflex_summary_ref.py new file mode 100644 index 00000000..f4c1892b --- /dev/null +++ b/intersight/models/hyperflex_summary_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexSummaryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexSummaryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexSummaryRef. + + :return: The moid of this HyperflexSummaryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexSummaryRef. + + :param moid: The moid of this HyperflexSummaryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexSummaryRef. + + :return: The object_type of this HyperflexSummaryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexSummaryRef. + + :param object_type: The object_type of this HyperflexSummaryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexSummaryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_sys_config_policy.py b/intersight/models/hyperflex_sys_config_policy.py index 746e3879..3b342260 100644 --- a/intersight/models/hyperflex_sys_config_policy.py +++ b/intersight/models/hyperflex_sys_config_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,22 @@ class HyperflexSysConfigPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', + 'dns_domain_name': 'str', 'dns_servers': 'list[str]', 'ntp_servers': 'list[str]', + 'organization': 'IamAccountRef', 'timezone': 'str' } @@ -59,16 +61,18 @@ class HyperflexSysConfigPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'cluster_profiles': 'ClusterProfiles', + 'dns_domain_name': 'DnsDomainName', 'dns_servers': 'DnsServers', 'ntp_servers': 'NtpServers', + 'organization': 'Organization', 'timezone': 'Timezone' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, cluster_profiles=None, dns_servers=None, ntp_servers=None, timezone=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, cluster_profiles=None, dns_domain_name=None, dns_servers=None, ntp_servers=None, organization=None, timezone=None): """ HyperflexSysConfigPolicy - a model defined in Swagger """ @@ -82,12 +86,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None - self._account = None self._cluster_profiles = None + self._dns_domain_name = None self._dns_servers = None self._ntp_servers = None + self._organization = None self._timezone = None if account_moid is not None: @@ -108,18 +114,22 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if cluster_profiles is not None: self.cluster_profiles = cluster_profiles + if dns_domain_name is not None: + self.dns_domain_name = dns_domain_name if dns_servers is not None: self.dns_servers = dns_servers if ntp_servers is not None: self.ntp_servers = ntp_servers + if organization is not None: + self.organization = organization if timezone is not None: self.timezone = timezone @@ -153,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexSysConfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexSysConfigPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexSysConfigPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexSysConfigPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -311,7 +321,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this HyperflexSysConfigPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this HyperflexSysConfigPolicy. :rtype: list[MoTag] @@ -322,7 +332,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this HyperflexSysConfigPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this HyperflexSysConfigPolicy. :type: list[MoTag] @@ -330,6 +340,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this HyperflexSysConfigPolicy. + The versioning info for this managed object + + :return: The version_context of this HyperflexSysConfigPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexSysConfigPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexSysConfigPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -377,51 +410,56 @@ def name(self, name): self._name = name @property - def account(self): + def cluster_profiles(self): """ - Gets the account of this HyperflexSysConfigPolicy. + Gets the cluster_profiles of this HyperflexSysConfigPolicy. + List of cluster profiles using this policy - :return: The account of this HyperflexSysConfigPolicy. - :rtype: MoMoRef + :return: The cluster_profiles of this HyperflexSysConfigPolicy. + :rtype: list[HyperflexClusterProfileRef] """ - return self._account + return self._cluster_profiles - @account.setter - def account(self, account): + @cluster_profiles.setter + def cluster_profiles(self, cluster_profiles): """ - Sets the account of this HyperflexSysConfigPolicy. + Sets the cluster_profiles of this HyperflexSysConfigPolicy. + List of cluster profiles using this policy - :param account: The account of this HyperflexSysConfigPolicy. - :type: MoMoRef + :param cluster_profiles: The cluster_profiles of this HyperflexSysConfigPolicy. + :type: list[HyperflexClusterProfileRef] """ - self._account = account + self._cluster_profiles = cluster_profiles @property - def cluster_profiles(self): + def dns_domain_name(self): """ - Gets the cluster_profiles of this HyperflexSysConfigPolicy. + Gets the dns_domain_name of this HyperflexSysConfigPolicy. + DNS Search Domain Name. This applies to HyperFlex Data Platform 3.0 or later only. - :return: The cluster_profiles of this HyperflexSysConfigPolicy. - :rtype: list[MoMoRef] + :return: The dns_domain_name of this HyperflexSysConfigPolicy. + :rtype: str """ - return self._cluster_profiles + return self._dns_domain_name - @cluster_profiles.setter - def cluster_profiles(self, cluster_profiles): + @dns_domain_name.setter + def dns_domain_name(self, dns_domain_name): """ - Sets the cluster_profiles of this HyperflexSysConfigPolicy. + Sets the dns_domain_name of this HyperflexSysConfigPolicy. + DNS Search Domain Name. This applies to HyperFlex Data Platform 3.0 or later only. - :param cluster_profiles: The cluster_profiles of this HyperflexSysConfigPolicy. - :type: list[MoMoRef] + :param dns_domain_name: The dns_domain_name of this HyperflexSysConfigPolicy. + :type: str """ - self._cluster_profiles = cluster_profiles + self._dns_domain_name = dns_domain_name @property def dns_servers(self): """ Gets the dns_servers of this HyperflexSysConfigPolicy. + Enter one or more DNS servers. A DNS server that can resolve public domains is required for Intersight management. :return: The dns_servers of this HyperflexSysConfigPolicy. :rtype: list[str] @@ -432,6 +470,7 @@ def dns_servers(self): def dns_servers(self, dns_servers): """ Sets the dns_servers of this HyperflexSysConfigPolicy. + Enter one or more DNS servers. A DNS server that can resolve public domains is required for Intersight management. :param dns_servers: The dns_servers of this HyperflexSysConfigPolicy. :type: list[str] @@ -443,6 +482,7 @@ def dns_servers(self, dns_servers): def ntp_servers(self): """ Gets the ntp_servers of this HyperflexSysConfigPolicy. + Enter one or more NTP servers (IP address or FQDN). A local NTP server is highly recommended. :return: The ntp_servers of this HyperflexSysConfigPolicy. :rtype: list[str] @@ -453,6 +493,7 @@ def ntp_servers(self): def ntp_servers(self, ntp_servers): """ Sets the ntp_servers of this HyperflexSysConfigPolicy. + Enter one or more NTP servers (IP address or FQDN). A local NTP server is highly recommended. :param ntp_servers: The ntp_servers of this HyperflexSysConfigPolicy. :type: list[str] @@ -460,10 +501,34 @@ def ntp_servers(self, ntp_servers): self._ntp_servers = ntp_servers + @property + def organization(self): + """ + Gets the organization of this HyperflexSysConfigPolicy. + Organization + + :return: The organization of this HyperflexSysConfigPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexSysConfigPolicy. + Organization + + :param organization: The organization of this HyperflexSysConfigPolicy. + :type: IamAccountRef + """ + + self._organization = organization + @property def timezone(self): """ Gets the timezone of this HyperflexSysConfigPolicy. + Timezone :return: The timezone of this HyperflexSysConfigPolicy. :rtype: str @@ -474,6 +539,7 @@ def timezone(self): def timezone(self, timezone): """ Sets the timezone of this HyperflexSysConfigPolicy. + Timezone :param timezone: The timezone of this HyperflexSysConfigPolicy. :type: str diff --git a/intersight/models/hyperflex_sys_config_policy_list.py b/intersight/models/hyperflex_sys_config_policy_list.py index 2378e20f..1f002059 100644 --- a/intersight/models/hyperflex_sys_config_policy_list.py +++ b/intersight/models/hyperflex_sys_config_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_sys_config_policy_ref.py b/intersight/models/hyperflex_sys_config_policy_ref.py new file mode 100644 index 00000000..9bacb472 --- /dev/null +++ b/intersight/models/hyperflex_sys_config_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexSysConfigPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexSysConfigPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexSysConfigPolicyRef. + + :return: The moid of this HyperflexSysConfigPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexSysConfigPolicyRef. + + :param moid: The moid of this HyperflexSysConfigPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexSysConfigPolicyRef. + + :return: The object_type of this HyperflexSysConfigPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexSysConfigPolicyRef. + + :param object_type: The object_type of this HyperflexSysConfigPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexSysConfigPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_ucsm_config_policy.py b/intersight/models/hyperflex_ucsm_config_policy.py index 948588d7..9c758a0a 100644 --- a/intersight/models/hyperflex_ucsm_config_policy.py +++ b/intersight/models/hyperflex_ucsm_config_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,22 @@ class HyperflexUcsmConfigPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', 'kvm_ip_range': 'HyperflexIpAddrRange', 'mac_prefix_range': 'HyperflexMacAddrPrefixRange', - 'service_profile_org': 'str' + 'organization': 'IamAccountRef', + 'server_firmware_version': 'str' } attribute_map = { @@ -59,16 +60,17 @@ class HyperflexUcsmConfigPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'cluster_profiles': 'ClusterProfiles', 'kvm_ip_range': 'KvmIpRange', 'mac_prefix_range': 'MacPrefixRange', - 'service_profile_org': 'ServiceProfileOrg' + 'organization': 'Organization', + 'server_firmware_version': 'ServerFirmwareVersion' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, cluster_profiles=None, kvm_ip_range=None, mac_prefix_range=None, service_profile_org=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, cluster_profiles=None, kvm_ip_range=None, mac_prefix_range=None, organization=None, server_firmware_version=None): """ HyperflexUcsmConfigPolicy - a model defined in Swagger """ @@ -82,13 +84,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None - self._account = None self._cluster_profiles = None self._kvm_ip_range = None self._mac_prefix_range = None - self._service_profile_org = None + self._organization = None + self._server_firmware_version = None if account_moid is not None: self.account_moid = account_moid @@ -108,20 +111,22 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if cluster_profiles is not None: self.cluster_profiles = cluster_profiles if kvm_ip_range is not None: self.kvm_ip_range = kvm_ip_range if mac_prefix_range is not None: self.mac_prefix_range = mac_prefix_range - if service_profile_org is not None: - self.service_profile_org = service_profile_org + if organization is not None: + self.organization = organization + if server_firmware_version is not None: + self.server_firmware_version = server_firmware_version @property def account_moid(self): @@ -153,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexUcsmConfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexUcsmConfigPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexUcsmConfigPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexUcsmConfigPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -311,7 +316,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this HyperflexUcsmConfigPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this HyperflexUcsmConfigPolicy. :rtype: list[MoTag] @@ -322,7 +327,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this HyperflexUcsmConfigPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this HyperflexUcsmConfigPolicy. :type: list[MoTag] @@ -330,6 +335,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this HyperflexUcsmConfigPolicy. + The versioning info for this managed object + + :return: The version_context of this HyperflexUcsmConfigPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexUcsmConfigPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexUcsmConfigPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -376,34 +404,14 @@ def name(self, name): self._name = name - @property - def account(self): - """ - Gets the account of this HyperflexUcsmConfigPolicy. - - :return: The account of this HyperflexUcsmConfigPolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexUcsmConfigPolicy. - - :param account: The account of this HyperflexUcsmConfigPolicy. - :type: MoMoRef - """ - - self._account = account - @property def cluster_profiles(self): """ Gets the cluster_profiles of this HyperflexUcsmConfigPolicy. + List of cluster profiles using this policy :return: The cluster_profiles of this HyperflexUcsmConfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[HyperflexClusterProfileRef] """ return self._cluster_profiles @@ -411,9 +419,10 @@ def cluster_profiles(self): def cluster_profiles(self, cluster_profiles): """ Sets the cluster_profiles of this HyperflexUcsmConfigPolicy. + List of cluster profiles using this policy :param cluster_profiles: The cluster_profiles of this HyperflexUcsmConfigPolicy. - :type: list[MoMoRef] + :type: list[HyperflexClusterProfileRef] """ self._cluster_profiles = cluster_profiles @@ -422,6 +431,7 @@ def cluster_profiles(self, cluster_profiles): def kvm_ip_range(self): """ Gets the kvm_ip_range of this HyperflexUcsmConfigPolicy. + Out-of-band KVM IP range :return: The kvm_ip_range of this HyperflexUcsmConfigPolicy. :rtype: HyperflexIpAddrRange @@ -432,6 +442,7 @@ def kvm_ip_range(self): def kvm_ip_range(self, kvm_ip_range): """ Sets the kvm_ip_range of this HyperflexUcsmConfigPolicy. + Out-of-band KVM IP range :param kvm_ip_range: The kvm_ip_range of this HyperflexUcsmConfigPolicy. :type: HyperflexIpAddrRange @@ -443,6 +454,7 @@ def kvm_ip_range(self, kvm_ip_range): def mac_prefix_range(self): """ Gets the mac_prefix_range of this HyperflexUcsmConfigPolicy. + MAC address prefix range :return: The mac_prefix_range of this HyperflexUcsmConfigPolicy. :rtype: HyperflexMacAddrPrefixRange @@ -453,6 +465,7 @@ def mac_prefix_range(self): def mac_prefix_range(self, mac_prefix_range): """ Sets the mac_prefix_range of this HyperflexUcsmConfigPolicy. + MAC address prefix range :param mac_prefix_range: The mac_prefix_range of this HyperflexUcsmConfigPolicy. :type: HyperflexMacAddrPrefixRange @@ -461,25 +474,50 @@ def mac_prefix_range(self, mac_prefix_range): self._mac_prefix_range = mac_prefix_range @property - def service_profile_org(self): + def organization(self): + """ + Gets the organization of this HyperflexUcsmConfigPolicy. + Organization + + :return: The organization of this HyperflexUcsmConfigPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexUcsmConfigPolicy. + Organization + + :param organization: The organization of this HyperflexUcsmConfigPolicy. + :type: IamAccountRef + """ + + self._organization = organization + + @property + def server_firmware_version(self): """ - Gets the service_profile_org of this HyperflexUcsmConfigPolicy. + Gets the server_firmware_version of this HyperflexUcsmConfigPolicy. + Specifies server firmware bundle version used for server components such as CIMC, adapters, BIOS, etc. - :return: The service_profile_org of this HyperflexUcsmConfigPolicy. + :return: The server_firmware_version of this HyperflexUcsmConfigPolicy. :rtype: str """ - return self._service_profile_org + return self._server_firmware_version - @service_profile_org.setter - def service_profile_org(self, service_profile_org): + @server_firmware_version.setter + def server_firmware_version(self, server_firmware_version): """ - Sets the service_profile_org of this HyperflexUcsmConfigPolicy. + Sets the server_firmware_version of this HyperflexUcsmConfigPolicy. + Specifies server firmware bundle version used for server components such as CIMC, adapters, BIOS, etc. - :param service_profile_org: The service_profile_org of this HyperflexUcsmConfigPolicy. + :param server_firmware_version: The server_firmware_version of this HyperflexUcsmConfigPolicy. :type: str """ - self._service_profile_org = service_profile_org + self._server_firmware_version = server_firmware_version def to_dict(self): """ diff --git a/intersight/models/hyperflex_ucsm_config_policy_list.py b/intersight/models/hyperflex_ucsm_config_policy_list.py index 28a608eb..e8d8faac 100644 --- a/intersight/models/hyperflex_ucsm_config_policy_list.py +++ b/intersight/models/hyperflex_ucsm_config_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_ucsm_config_policy_ref.py b/intersight/models/hyperflex_ucsm_config_policy_ref.py new file mode 100644 index 00000000..6034797d --- /dev/null +++ b/intersight/models/hyperflex_ucsm_config_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexUcsmConfigPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexUcsmConfigPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexUcsmConfigPolicyRef. + + :return: The moid of this HyperflexUcsmConfigPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexUcsmConfigPolicyRef. + + :param moid: The moid of this HyperflexUcsmConfigPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexUcsmConfigPolicyRef. + + :return: The object_type of this HyperflexUcsmConfigPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexUcsmConfigPolicyRef. + + :param object_type: The object_type of this HyperflexUcsmConfigPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexUcsmConfigPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_vcenter_config_policy.py b/intersight/models/hyperflex_vcenter_config_policy.py index efac267b..0a42aedb 100644 --- a/intersight/models/hyperflex_vcenter_config_policy.py +++ b/intersight/models/hyperflex_vcenter_config_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,23 +32,25 @@ class HyperflexVcenterConfigPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'account': 'MoMoRef', - 'cluster_profiles': 'list[MoMoRef]', + 'cluster_profiles': 'list[HyperflexClusterProfileRef]', 'data_center': 'str', 'hostname': 'str', - 'passwd': 'str', + 'is_password_set': 'bool', + 'organization': 'IamAccountRef', + 'password': 'str', 'sso_url': 'str', - 'user_name': 'str' + 'username': 'str' } attribute_map = { @@ -61,18 +63,20 @@ class HyperflexVcenterConfigPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', - 'account': 'Account', 'cluster_profiles': 'ClusterProfiles', 'data_center': 'DataCenter', 'hostname': 'Hostname', - 'passwd': 'Passwd', + 'is_password_set': 'IsPasswordSet', + 'organization': 'Organization', + 'password': 'Password', 'sso_url': 'SsoUrl', - 'user_name': 'UserName' + 'username': 'Username' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, account=None, cluster_profiles=None, data_center=None, hostname=None, passwd=None, sso_url=None, user_name=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, cluster_profiles=None, data_center=None, hostname=None, is_password_set=None, organization=None, password=None, sso_url=None, username=None): """ HyperflexVcenterConfigPolicy - a model defined in Swagger """ @@ -86,15 +90,17 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None - self._account = None self._cluster_profiles = None self._data_center = None self._hostname = None - self._passwd = None + self._is_password_set = None + self._organization = None + self._password = None self._sso_url = None - self._user_name = None + self._username = None if account_moid is not None: self.account_moid = account_moid @@ -114,24 +120,28 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: self.name = name - if account is not None: - self.account = account if cluster_profiles is not None: self.cluster_profiles = cluster_profiles if data_center is not None: self.data_center = data_center if hostname is not None: self.hostname = hostname - if passwd is not None: - self.passwd = passwd + if is_password_set is not None: + self.is_password_set = is_password_set + if organization is not None: + self.organization = organization + if password is not None: + self.password = password if sso_url is not None: self.sso_url = sso_url - if user_name is not None: - self.user_name = user_name + if username is not None: + self.username = username @property def account_moid(self): @@ -163,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this HyperflexVcenterConfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this HyperflexVcenterConfigPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this HyperflexVcenterConfigPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this HyperflexVcenterConfigPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -321,7 +331,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this HyperflexVcenterConfigPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this HyperflexVcenterConfigPolicy. :rtype: list[MoTag] @@ -332,7 +342,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this HyperflexVcenterConfigPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this HyperflexVcenterConfigPolicy. :type: list[MoTag] @@ -340,6 +350,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this HyperflexVcenterConfigPolicy. + The versioning info for this managed object + + :return: The version_context of this HyperflexVcenterConfigPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this HyperflexVcenterConfigPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this HyperflexVcenterConfigPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -386,34 +419,14 @@ def name(self, name): self._name = name - @property - def account(self): - """ - Gets the account of this HyperflexVcenterConfigPolicy. - - :return: The account of this HyperflexVcenterConfigPolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this HyperflexVcenterConfigPolicy. - - :param account: The account of this HyperflexVcenterConfigPolicy. - :type: MoMoRef - """ - - self._account = account - @property def cluster_profiles(self): """ Gets the cluster_profiles of this HyperflexVcenterConfigPolicy. + List of cluster profiles using this policy :return: The cluster_profiles of this HyperflexVcenterConfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[HyperflexClusterProfileRef] """ return self._cluster_profiles @@ -421,9 +434,10 @@ def cluster_profiles(self): def cluster_profiles(self, cluster_profiles): """ Sets the cluster_profiles of this HyperflexVcenterConfigPolicy. + List of cluster profiles using this policy :param cluster_profiles: The cluster_profiles of this HyperflexVcenterConfigPolicy. - :type: list[MoMoRef] + :type: list[HyperflexClusterProfileRef] """ self._cluster_profiles = cluster_profiles @@ -432,7 +446,7 @@ def cluster_profiles(self, cluster_profiles): def data_center(self): """ Gets the data_center of this HyperflexVcenterConfigPolicy. - vCenter Datacenter name for the HyperFlex cluster + vCenter datacenter name :return: The data_center of this HyperflexVcenterConfigPolicy. :rtype: str @@ -443,7 +457,7 @@ def data_center(self): def data_center(self, data_center): """ Sets the data_center of this HyperflexVcenterConfigPolicy. - vCenter Datacenter name for the HyperFlex cluster + vCenter datacenter name :param data_center: The data_center of this HyperflexVcenterConfigPolicy. :type: str @@ -455,6 +469,7 @@ def data_center(self, data_center): def hostname(self): """ Gets the hostname of this HyperflexVcenterConfigPolicy. + vCenter server FQDN or IP :return: The hostname of this HyperflexVcenterConfigPolicy. :rtype: str @@ -465,6 +480,7 @@ def hostname(self): def hostname(self, hostname): """ Sets the hostname of this HyperflexVcenterConfigPolicy. + vCenter server FQDN or IP :param hostname: The hostname of this HyperflexVcenterConfigPolicy. :type: str @@ -473,33 +489,77 @@ def hostname(self, hostname): self._hostname = hostname @property - def passwd(self): + def is_password_set(self): + """ + Gets the is_password_set of this HyperflexVcenterConfigPolicy. + + :return: The is_password_set of this HyperflexVcenterConfigPolicy. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this HyperflexVcenterConfigPolicy. + + :param is_password_set: The is_password_set of this HyperflexVcenterConfigPolicy. + :type: bool + """ + + self._is_password_set = is_password_set + + @property + def organization(self): + """ + Gets the organization of this HyperflexVcenterConfigPolicy. + Organization + + :return: The organization of this HyperflexVcenterConfigPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this HyperflexVcenterConfigPolicy. + Organization + + :param organization: The organization of this HyperflexVcenterConfigPolicy. + :type: IamAccountRef + """ + + self._organization = organization + + @property + def password(self): """ - Gets the passwd of this HyperflexVcenterConfigPolicy. - vCenter password + Gets the password of this HyperflexVcenterConfigPolicy. + vCenter password must be atleast 6 characters. Follow the corresponding password policy governed by vCenter. - :return: The passwd of this HyperflexVcenterConfigPolicy. + :return: The password of this HyperflexVcenterConfigPolicy. :rtype: str """ - return self._passwd + return self._password - @passwd.setter - def passwd(self, passwd): + @password.setter + def password(self, password): """ - Sets the passwd of this HyperflexVcenterConfigPolicy. - vCenter password + Sets the password of this HyperflexVcenterConfigPolicy. + vCenter password must be atleast 6 characters. Follow the corresponding password policy governed by vCenter. - :param passwd: The passwd of this HyperflexVcenterConfigPolicy. + :param password: The password of this HyperflexVcenterConfigPolicy. :type: str """ - self._passwd = passwd + self._password = password @property def sso_url(self): """ Gets the sso_url of this HyperflexVcenterConfigPolicy. - vCenter Single-Sign-On URL + Overrides the default vCenter Single Sign-On URL. Do not specify unless instructed by Cisco TAC. :return: The sso_url of this HyperflexVcenterConfigPolicy. :rtype: str @@ -510,7 +570,7 @@ def sso_url(self): def sso_url(self, sso_url): """ Sets the sso_url of this HyperflexVcenterConfigPolicy. - vCenter Single-Sign-On URL + Overrides the default vCenter Single Sign-On URL. Do not specify unless instructed by Cisco TAC. :param sso_url: The sso_url of this HyperflexVcenterConfigPolicy. :type: str @@ -519,27 +579,27 @@ def sso_url(self, sso_url): self._sso_url = sso_url @property - def user_name(self): + def username(self): """ - Gets the user_name of this HyperflexVcenterConfigPolicy. - vCenter user name + Gets the username of this HyperflexVcenterConfigPolicy. + vCenter username (e.g. administrator@vsphere.local) - :return: The user_name of this HyperflexVcenterConfigPolicy. + :return: The username of this HyperflexVcenterConfigPolicy. :rtype: str """ - return self._user_name + return self._username - @user_name.setter - def user_name(self, user_name): + @username.setter + def username(self, username): """ - Sets the user_name of this HyperflexVcenterConfigPolicy. - vCenter user name + Sets the username of this HyperflexVcenterConfigPolicy. + vCenter username (e.g. administrator@vsphere.local) - :param user_name: The user_name of this HyperflexVcenterConfigPolicy. + :param username: The username of this HyperflexVcenterConfigPolicy. :type: str """ - self._user_name = user_name + self._username = username def to_dict(self): """ diff --git a/intersight/models/hyperflex_vcenter_config_policy_list.py b/intersight/models/hyperflex_vcenter_config_policy_list.py index c8e342ce..c6e7cd16 100644 --- a/intersight/models/hyperflex_vcenter_config_policy_list.py +++ b/intersight/models/hyperflex_vcenter_config_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/hyperflex_vcenter_config_policy_ref.py b/intersight/models/hyperflex_vcenter_config_policy_ref.py new file mode 100644 index 00000000..a042abda --- /dev/null +++ b/intersight/models/hyperflex_vcenter_config_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexVcenterConfigPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexVcenterConfigPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexVcenterConfigPolicyRef. + + :return: The moid of this HyperflexVcenterConfigPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexVcenterConfigPolicyRef. + + :param moid: The moid of this HyperflexVcenterConfigPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexVcenterConfigPolicyRef. + + :return: The object_type of this HyperflexVcenterConfigPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexVcenterConfigPolicyRef. + + :param object_type: The object_type of this HyperflexVcenterConfigPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexVcenterConfigPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hyperflex_wwxn_range.py b/intersight/models/hyperflex_wwxn_prefix_range.py similarity index 72% rename from intersight/models/hyperflex_wwxn_range.py rename to intersight/models/hyperflex_wwxn_prefix_range.py index 1cccda1d..afa29ea5 100644 --- a/intersight/models/hyperflex_wwxn_range.py +++ b/intersight/models/hyperflex_wwxn_prefix_range.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class HyperflexWwxnRange(object): +class HyperflexWwxnPrefixRange(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class HyperflexWwxnRange(object): def __init__(self, end_addr=None, start_addr=None): """ - HyperflexWwxnRange - a model defined in Swagger + HyperflexWwxnPrefixRange - a model defined in Swagger """ self._end_addr = None @@ -56,9 +56,10 @@ def __init__(self, end_addr=None, start_addr=None): @property def end_addr(self): """ - Gets the end_addr of this HyperflexWwxnRange. + Gets the end_addr of this HyperflexWwxnPrefixRange. + End WWxN prefix of a WWPN/WWNN range in the form of 20:00:00:25:B5:XX - :return: The end_addr of this HyperflexWwxnRange. + :return: The end_addr of this HyperflexWwxnPrefixRange. :rtype: str """ return self._end_addr @@ -66,9 +67,10 @@ def end_addr(self): @end_addr.setter def end_addr(self, end_addr): """ - Sets the end_addr of this HyperflexWwxnRange. + Sets the end_addr of this HyperflexWwxnPrefixRange. + End WWxN prefix of a WWPN/WWNN range in the form of 20:00:00:25:B5:XX - :param end_addr: The end_addr of this HyperflexWwxnRange. + :param end_addr: The end_addr of this HyperflexWwxnPrefixRange. :type: str """ @@ -77,9 +79,10 @@ def end_addr(self, end_addr): @property def start_addr(self): """ - Gets the start_addr of this HyperflexWwxnRange. + Gets the start_addr of this HyperflexWwxnPrefixRange. + Start WWxN prefix of a WWPN/WWNN range in the form of 20:00:00:25:B5:XX - :return: The start_addr of this HyperflexWwxnRange. + :return: The start_addr of this HyperflexWwxnPrefixRange. :rtype: str """ return self._start_addr @@ -87,9 +90,10 @@ def start_addr(self): @start_addr.setter def start_addr(self, start_addr): """ - Sets the start_addr of this HyperflexWwxnRange. + Sets the start_addr of this HyperflexWwxnPrefixRange. + Start WWxN prefix of a WWPN/WWNN range in the form of 20:00:00:25:B5:XX - :param start_addr: The start_addr of this HyperflexWwxnRange. + :param start_addr: The start_addr of this HyperflexWwxnPrefixRange. :type: str """ @@ -137,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, HyperflexWwxnRange): + if not isinstance(other, HyperflexWwxnPrefixRange): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/hyperflex_wwxn_prefix_range_ref.py b/intersight/models/hyperflex_wwxn_prefix_range_ref.py new file mode 100644 index 00000000..40884e57 --- /dev/null +++ b/intersight/models/hyperflex_wwxn_prefix_range_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class HyperflexWwxnPrefixRangeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + HyperflexWwxnPrefixRangeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this HyperflexWwxnPrefixRangeRef. + + :return: The moid of this HyperflexWwxnPrefixRangeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this HyperflexWwxnPrefixRangeRef. + + :param moid: The moid of this HyperflexWwxnPrefixRangeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this HyperflexWwxnPrefixRangeRef. + + :return: The object_type of this HyperflexWwxnPrefixRangeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this HyperflexWwxnPrefixRangeRef. + + :param object_type: The object_type of this HyperflexWwxnPrefixRangeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, HyperflexWwxnPrefixRangeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/i18n_message.py b/intersight/models/i18n_message.py new file mode 100644 index 00000000..48263e51 --- /dev/null +++ b/intersight/models/i18n_message.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class I18nMessage(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'message': 'str', + 'message_id': 'str', + 'message_params': 'list[I18nMessageParam]' + } + + attribute_map = { + 'message': 'Message', + 'message_id': 'MessageId', + 'message_params': 'MessageParams' + } + + def __init__(self, message=None, message_id=None, message_params=None): + """ + I18nMessage - a model defined in Swagger + """ + + self._message = None + self._message_id = None + self._message_params = None + + if message is not None: + self.message = message + if message_id is not None: + self.message_id = message_id + if message_params is not None: + self.message_params = message_params + + @property + def message(self): + """ + Gets the message of this I18nMessage. + The default (en-US) localized message. Default localized message will be stored and directly retrieved when the user's locale setting is en-US. + + :return: The message of this I18nMessage. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this I18nMessage. + The default (en-US) localized message. Default localized message will be stored and directly retrieved when the user's locale setting is en-US. + + :param message: The message of this I18nMessage. + :type: str + """ + + self._message = message + + @property + def message_id(self): + """ + Gets the message_id of this I18nMessage. + The message identitifer that is mapped to localized messages + + :return: The message_id of this I18nMessage. + :rtype: str + """ + return self._message_id + + @message_id.setter + def message_id(self, message_id): + """ + Sets the message_id of this I18nMessage. + The message identitifer that is mapped to localized messages + + :param message_id: The message_id of this I18nMessage. + :type: str + """ + + self._message_id = message_id + + @property + def message_params(self): + """ + Gets the message_params of this I18nMessage. + List of message parameters + + :return: The message_params of this I18nMessage. + :rtype: list[I18nMessageParam] + """ + return self._message_params + + @message_params.setter + def message_params(self, message_params): + """ + Sets the message_params of this I18nMessage. + List of message parameters + + :param message_params: The message_params of this I18nMessage. + :type: list[I18nMessageParam] + """ + + self._message_params = message_params + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, I18nMessage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_management_platform.py b/intersight/models/i18n_message_param.py similarity index 62% rename from intersight/models/policy_management_platform.py rename to intersight/models/i18n_message_param.py index 81dda658..221785f2 100644 --- a/intersight/models/policy_management_platform.py +++ b/intersight/models/i18n_message_param.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class PolicyManagementPlatform(object): +class I18nMessageParam(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,73 +31,73 @@ class PolicyManagementPlatform(object): and the value is json key in definition. """ swagger_types = { - 'display_label': 'str', - 'name': 'str' + 'name': 'str', + 'value': 'str' } attribute_map = { - 'display_label': 'DisplayLabel', - 'name': 'Name' + 'name': 'Name', + 'value': 'Value' } - def __init__(self, display_label=None, name=None): + def __init__(self, name=None, value=None): """ - PolicyManagementPlatform - a model defined in Swagger + I18nMessageParam - a model defined in Swagger """ - self._display_label = None self._name = None + self._value = None - if display_label is not None: - self.display_label = display_label if name is not None: self.name = name + if value is not None: + self.value = value @property - def display_label(self): + def name(self): """ - Gets the display_label of this PolicyManagementPlatform. - Display Label for management platform + Gets the name of this I18nMessageParam. + Name of the parameter - :return: The display_label of this PolicyManagementPlatform. + :return: The name of this I18nMessageParam. :rtype: str """ - return self._display_label + return self._name - @display_label.setter - def display_label(self, display_label): + @name.setter + def name(self, name): """ - Sets the display_label of this PolicyManagementPlatform. - Display Label for management platform + Sets the name of this I18nMessageParam. + Name of the parameter - :param display_label: The display_label of this PolicyManagementPlatform. + :param name: The name of this I18nMessageParam. :type: str """ - self._display_label = display_label + self._name = name @property - def name(self): + def value(self): """ - Gets the name of this PolicyManagementPlatform. - The management platform type this Policy applies to + Gets the value of this I18nMessageParam. + Value of the parameter - :return: The name of this PolicyManagementPlatform. + :return: The value of this I18nMessageParam. :rtype: str """ - return self._name + return self._value - @name.setter - def name(self, name): + @value.setter + def value(self, value): """ - Sets the name of this PolicyManagementPlatform. - The management platform type this Policy applies to + Sets the value of this I18nMessageParam. + Value of the parameter - :param name: The name of this PolicyManagementPlatform. + :param value: The value of this I18nMessageParam. :type: str """ - self._name = name + self._value = value def to_dict(self): """ @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, PolicyManagementPlatform): + if not isinstance(other, I18nMessageParam): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/i18n_message_param_ref.py b/intersight/models/i18n_message_param_ref.py new file mode 100644 index 00000000..429b69cf --- /dev/null +++ b/intersight/models/i18n_message_param_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class I18nMessageParamRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + I18nMessageParamRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this I18nMessageParamRef. + + :return: The moid of this I18nMessageParamRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this I18nMessageParamRef. + + :param moid: The moid of this I18nMessageParamRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this I18nMessageParamRef. + + :return: The object_type of this I18nMessageParamRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this I18nMessageParamRef. + + :param object_type: The object_type of this I18nMessageParamRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, I18nMessageParamRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/i18n_message_ref.py b/intersight/models/i18n_message_ref.py new file mode 100644 index 00000000..4749d7a9 --- /dev/null +++ b/intersight/models/i18n_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class I18nMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + I18nMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this I18nMessageRef. + + :return: The moid of this I18nMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this I18nMessageRef. + + :param moid: The moid of this I18nMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this I18nMessageRef. + + :return: The object_type of this I18nMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this I18nMessageRef. + + :param object_type: The object_type of this I18nMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, I18nMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_connector_pack.py b/intersight/models/iaas_connector_pack.py new file mode 100644 index 00000000..df08de7c --- /dev/null +++ b/intersight/models/iaas_connector_pack.py @@ -0,0 +1,543 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasConnectorPack(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'dependency_names': 'list[str]', + 'downloaded_version': 'str', + 'guid': 'IaasUcsdInfoRef', + 'name': 'str', + 'state': 'str', + 'version': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'dependency_names': 'DependencyNames', + 'downloaded_version': 'DownloadedVersion', + 'guid': 'Guid', + 'name': 'Name', + 'state': 'State', + 'version': 'Version' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, dependency_names=None, downloaded_version=None, guid=None, name=None, state=None, version=None): + """ + IaasConnectorPack - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._dependency_names = None + self._downloaded_version = None + self._guid = None + self._name = None + self._state = None + self._version = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if dependency_names is not None: + self.dependency_names = dependency_names + if downloaded_version is not None: + self.downloaded_version = downloaded_version + if guid is not None: + self.guid = guid + if name is not None: + self.name = name + if state is not None: + self.state = state + if version is not None: + self.version = version + + @property + def account_moid(self): + """ + Gets the account_moid of this IaasConnectorPack. + The Account ID for this managed object. + + :return: The account_moid of this IaasConnectorPack. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this IaasConnectorPack. + The Account ID for this managed object. + + :param account_moid: The account_moid of this IaasConnectorPack. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this IaasConnectorPack. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this IaasConnectorPack. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this IaasConnectorPack. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this IaasConnectorPack. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this IaasConnectorPack. + The time when this managed object was created. + + :return: The create_time of this IaasConnectorPack. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this IaasConnectorPack. + The time when this managed object was created. + + :param create_time: The create_time of this IaasConnectorPack. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this IaasConnectorPack. + The time when this managed object was last modified. + + :return: The mod_time of this IaasConnectorPack. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this IaasConnectorPack. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this IaasConnectorPack. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this IaasConnectorPack. + A unique identifier of this Managed Object instance. + + :return: The moid of this IaasConnectorPack. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasConnectorPack. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this IaasConnectorPack. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasConnectorPack. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this IaasConnectorPack. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasConnectorPack. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this IaasConnectorPack. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this IaasConnectorPack. + An array of owners which represent effective ownership of this object. + + :return: The owners of this IaasConnectorPack. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this IaasConnectorPack. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this IaasConnectorPack. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this IaasConnectorPack. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this IaasConnectorPack. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this IaasConnectorPack. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this IaasConnectorPack. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this IaasConnectorPack. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this IaasConnectorPack. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this IaasConnectorPack. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this IaasConnectorPack. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this IaasConnectorPack. + The versioning info for this managed object + + :return: The version_context of this IaasConnectorPack. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IaasConnectorPack. + The versioning info for this managed object + + :param version_context: The version_context of this IaasConnectorPack. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def dependency_names(self): + """ + Gets the dependency_names of this IaasConnectorPack. + List of dependent connectors on the UCSD for this connector. For example BigData depends on UCS Connector + + :return: The dependency_names of this IaasConnectorPack. + :rtype: list[str] + """ + return self._dependency_names + + @dependency_names.setter + def dependency_names(self, dependency_names): + """ + Sets the dependency_names of this IaasConnectorPack. + List of dependent connectors on the UCSD for this connector. For example BigData depends on UCS Connector + + :param dependency_names: The dependency_names of this IaasConnectorPack. + :type: list[str] + """ + + self._dependency_names = dependency_names + + @property + def downloaded_version(self): + """ + Gets the downloaded_version of this IaasConnectorPack. + Version of the connector pack that is last downloaded successfully to UCSD + + :return: The downloaded_version of this IaasConnectorPack. + :rtype: str + """ + return self._downloaded_version + + @downloaded_version.setter + def downloaded_version(self, downloaded_version): + """ + Sets the downloaded_version of this IaasConnectorPack. + Version of the connector pack that is last downloaded successfully to UCSD + + :param downloaded_version: The downloaded_version of this IaasConnectorPack. + :type: str + """ + + self._downloaded_version = downloaded_version + + @property + def guid(self): + """ + Gets the guid of this IaasConnectorPack. + + :return: The guid of this IaasConnectorPack. + :rtype: IaasUcsdInfoRef + """ + return self._guid + + @guid.setter + def guid(self, guid): + """ + Sets the guid of this IaasConnectorPack. + + :param guid: The guid of this IaasConnectorPack. + :type: IaasUcsdInfoRef + """ + + self._guid = guid + + @property + def name(self): + """ + Gets the name of this IaasConnectorPack. + Name of the connector pack running on the UCSD + + :return: The name of this IaasConnectorPack. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this IaasConnectorPack. + Name of the connector pack running on the UCSD + + :param name: The name of this IaasConnectorPack. + :type: str + """ + + self._name = name + + @property + def state(self): + """ + Gets the state of this IaasConnectorPack. + State of the connector pack whether it is enabled or disabled + + :return: The state of this IaasConnectorPack. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this IaasConnectorPack. + State of the connector pack whether it is enabled or disabled + + :param state: The state of this IaasConnectorPack. + :type: str + """ + + self._state = state + + @property + def version(self): + """ + Gets the version of this IaasConnectorPack. + Version of the connector pack + + :return: The version of this IaasConnectorPack. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this IaasConnectorPack. + Version of the connector pack + + :param version: The version of this IaasConnectorPack. + :type: str + """ + + self._version = version + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasConnectorPack): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_connector_pack_list.py b/intersight/models/iaas_connector_pack_list.py new file mode 100644 index 00000000..48cc152d --- /dev/null +++ b/intersight/models/iaas_connector_pack_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasConnectorPackList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[IaasConnectorPack]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + IaasConnectorPackList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this IaasConnectorPackList. + The number of iaasConnectorPacks matching your request in total for all pages. + + :return: The count of this IaasConnectorPackList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this IaasConnectorPackList. + The number of iaasConnectorPacks matching your request in total for all pages. + + :param count: The count of this IaasConnectorPackList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this IaasConnectorPackList. + The array of iaasConnectorPacks matching your request. + + :return: The results of this IaasConnectorPackList. + :rtype: list[IaasConnectorPack] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this IaasConnectorPackList. + The array of iaasConnectorPacks matching your request. + + :param results: The results of this IaasConnectorPackList. + :type: list[IaasConnectorPack] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasConnectorPackList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_connector_pack_ref.py b/intersight/models/iaas_connector_pack_ref.py new file mode 100644 index 00000000..b42a23f9 --- /dev/null +++ b/intersight/models/iaas_connector_pack_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasConnectorPackRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IaasConnectorPackRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IaasConnectorPackRef. + + :return: The moid of this IaasConnectorPackRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasConnectorPackRef. + + :param moid: The moid of this IaasConnectorPackRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasConnectorPackRef. + + :return: The object_type of this IaasConnectorPackRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasConnectorPackRef. + + :param object_type: The object_type of this IaasConnectorPackRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasConnectorPackRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_device_status.py b/intersight/models/iaas_device_status.py new file mode 100644 index 00000000..c70658ea --- /dev/null +++ b/intersight/models/iaas_device_status.py @@ -0,0 +1,655 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasDeviceStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'account_name': 'str', + 'account_type': 'str', + 'connection_status': 'str', + 'device_model': 'str', + 'device_vendor': 'str', + 'device_version': 'str', + 'guid': 'IaasUcsdInfoRef', + 'ip_address': 'str', + 'pod': 'str', + 'pod_type': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'account_name': 'AccountName', + 'account_type': 'AccountType', + 'connection_status': 'ConnectionStatus', + 'device_model': 'DeviceModel', + 'device_vendor': 'DeviceVendor', + 'device_version': 'DeviceVersion', + 'guid': 'Guid', + 'ip_address': 'IpAddress', + 'pod': 'Pod', + 'pod_type': 'PodType' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account_name=None, account_type=None, connection_status=None, device_model=None, device_vendor=None, device_version=None, guid=None, ip_address=None, pod=None, pod_type=None): + """ + IaasDeviceStatus - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._account_name = None + self._account_type = None + self._connection_status = None + self._device_model = None + self._device_vendor = None + self._device_version = None + self._guid = None + self._ip_address = None + self._pod = None + self._pod_type = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if account_name is not None: + self.account_name = account_name + if account_type is not None: + self.account_type = account_type + if connection_status is not None: + self.connection_status = connection_status + if device_model is not None: + self.device_model = device_model + if device_vendor is not None: + self.device_vendor = device_vendor + if device_version is not None: + self.device_version = device_version + if guid is not None: + self.guid = guid + if ip_address is not None: + self.ip_address = ip_address + if pod is not None: + self.pod = pod + if pod_type is not None: + self.pod_type = pod_type + + @property + def account_moid(self): + """ + Gets the account_moid of this IaasDeviceStatus. + The Account ID for this managed object. + + :return: The account_moid of this IaasDeviceStatus. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this IaasDeviceStatus. + The Account ID for this managed object. + + :param account_moid: The account_moid of this IaasDeviceStatus. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this IaasDeviceStatus. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this IaasDeviceStatus. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this IaasDeviceStatus. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this IaasDeviceStatus. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this IaasDeviceStatus. + The time when this managed object was created. + + :return: The create_time of this IaasDeviceStatus. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this IaasDeviceStatus. + The time when this managed object was created. + + :param create_time: The create_time of this IaasDeviceStatus. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this IaasDeviceStatus. + The time when this managed object was last modified. + + :return: The mod_time of this IaasDeviceStatus. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this IaasDeviceStatus. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this IaasDeviceStatus. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this IaasDeviceStatus. + A unique identifier of this Managed Object instance. + + :return: The moid of this IaasDeviceStatus. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasDeviceStatus. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this IaasDeviceStatus. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasDeviceStatus. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this IaasDeviceStatus. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasDeviceStatus. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this IaasDeviceStatus. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this IaasDeviceStatus. + An array of owners which represent effective ownership of this object. + + :return: The owners of this IaasDeviceStatus. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this IaasDeviceStatus. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this IaasDeviceStatus. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this IaasDeviceStatus. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this IaasDeviceStatus. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this IaasDeviceStatus. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this IaasDeviceStatus. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this IaasDeviceStatus. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this IaasDeviceStatus. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this IaasDeviceStatus. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this IaasDeviceStatus. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this IaasDeviceStatus. + The versioning info for this managed object + + :return: The version_context of this IaasDeviceStatus. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IaasDeviceStatus. + The versioning info for this managed object + + :param version_context: The version_context of this IaasDeviceStatus. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def account_name(self): + """ + Gets the account_name of this IaasDeviceStatus. + The UCSD infra account name. Account Name is created when UCSD admin adds any new infra account(Physical/Virtual/Compute/Network) to be managed by UCSD + + :return: The account_name of this IaasDeviceStatus. + :rtype: str + """ + return self._account_name + + @account_name.setter + def account_name(self, account_name): + """ + Sets the account_name of this IaasDeviceStatus. + The UCSD infra account name. Account Name is created when UCSD admin adds any new infra account(Physical/Virtual/Compute/Network) to be managed by UCSD + + :param account_name: The account_name of this IaasDeviceStatus. + :type: str + """ + + self._account_name = account_name + + @property + def account_type(self): + """ + Gets the account_type of this IaasDeviceStatus. + The UCSD Infra Account type + + :return: The account_type of this IaasDeviceStatus. + :rtype: str + """ + return self._account_type + + @account_type.setter + def account_type(self, account_type): + """ + Sets the account_type of this IaasDeviceStatus. + The UCSD Infra Account type + + :param account_type: The account_type of this IaasDeviceStatus. + :type: str + """ + + self._account_type = account_type + + @property + def connection_status(self): + """ + Gets the connection_status of this IaasDeviceStatus. + Describes about the connection status between the UCSD and the actual end device + + :return: The connection_status of this IaasDeviceStatus. + :rtype: str + """ + return self._connection_status + + @connection_status.setter + def connection_status(self, connection_status): + """ + Sets the connection_status of this IaasDeviceStatus. + Describes about the connection status between the UCSD and the actual end device + + :param connection_status: The connection_status of this IaasDeviceStatus. + :type: str + """ + + self._connection_status = connection_status + + @property + def device_model(self): + """ + Gets the device_model of this IaasDeviceStatus. + Describes about the device model + + :return: The device_model of this IaasDeviceStatus. + :rtype: str + """ + return self._device_model + + @device_model.setter + def device_model(self, device_model): + """ + Sets the device_model of this IaasDeviceStatus. + Describes about the device model + + :param device_model: The device_model of this IaasDeviceStatus. + :type: str + """ + + self._device_model = device_model + + @property + def device_vendor(self): + """ + Gets the device_vendor of this IaasDeviceStatus. + Describes about the device vendor/manufacturer of the device + + :return: The device_vendor of this IaasDeviceStatus. + :rtype: str + """ + return self._device_vendor + + @device_vendor.setter + def device_vendor(self, device_vendor): + """ + Sets the device_vendor of this IaasDeviceStatus. + Describes about the device vendor/manufacturer of the device + + :param device_vendor: The device_vendor of this IaasDeviceStatus. + :type: str + """ + + self._device_vendor = device_vendor + + @property + def device_version(self): + """ + Gets the device_version of this IaasDeviceStatus. + Describes about the current firmware version running on the device + + :return: The device_version of this IaasDeviceStatus. + :rtype: str + """ + return self._device_version + + @device_version.setter + def device_version(self, device_version): + """ + Sets the device_version of this IaasDeviceStatus. + Describes about the current firmware version running on the device + + :param device_version: The device_version of this IaasDeviceStatus. + :type: str + """ + + self._device_version = device_version + + @property + def guid(self): + """ + Gets the guid of this IaasDeviceStatus. + + :return: The guid of this IaasDeviceStatus. + :rtype: IaasUcsdInfoRef + """ + return self._guid + + @guid.setter + def guid(self, guid): + """ + Sets the guid of this IaasDeviceStatus. + + :param guid: The guid of this IaasDeviceStatus. + :type: IaasUcsdInfoRef + """ + + self._guid = guid + + @property + def ip_address(self): + """ + Gets the ip_address of this IaasDeviceStatus. + The IPAddress of the device + + :return: The ip_address of this IaasDeviceStatus. + :rtype: str + """ + return self._ip_address + + @ip_address.setter + def ip_address(self, ip_address): + """ + Sets the ip_address of this IaasDeviceStatus. + The IPAddress of the device + + :param ip_address: The ip_address of this IaasDeviceStatus. + :type: str + """ + + self._ip_address = ip_address + + @property + def pod(self): + """ + Gets the pod of this IaasDeviceStatus. + Describes about the pod to which this device belongs to in UCSD + + :return: The pod of this IaasDeviceStatus. + :rtype: str + """ + return self._pod + + @pod.setter + def pod(self, pod): + """ + Sets the pod of this IaasDeviceStatus. + Describes about the pod to which this device belongs to in UCSD + + :param pod: The pod of this IaasDeviceStatus. + :type: str + """ + + self._pod = pod + + @property + def pod_type(self): + """ + Gets the pod_type of this IaasDeviceStatus. + Describes about the podType of Pod to which this device belongs to in UCSD + + :return: The pod_type of this IaasDeviceStatus. + :rtype: str + """ + return self._pod_type + + @pod_type.setter + def pod_type(self, pod_type): + """ + Sets the pod_type of this IaasDeviceStatus. + Describes about the podType of Pod to which this device belongs to in UCSD + + :param pod_type: The pod_type of this IaasDeviceStatus. + :type: str + """ + + self._pod_type = pod_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasDeviceStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_device_status_list.py b/intersight/models/iaas_device_status_list.py new file mode 100644 index 00000000..2214bfa3 --- /dev/null +++ b/intersight/models/iaas_device_status_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasDeviceStatusList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[IaasDeviceStatus]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + IaasDeviceStatusList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this IaasDeviceStatusList. + The number of iaasDeviceStatuses matching your request in total for all pages. + + :return: The count of this IaasDeviceStatusList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this IaasDeviceStatusList. + The number of iaasDeviceStatuses matching your request in total for all pages. + + :param count: The count of this IaasDeviceStatusList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this IaasDeviceStatusList. + The array of iaasDeviceStatuses matching your request. + + :return: The results of this IaasDeviceStatusList. + :rtype: list[IaasDeviceStatus] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this IaasDeviceStatusList. + The array of iaasDeviceStatuses matching your request. + + :param results: The results of this IaasDeviceStatusList. + :type: list[IaasDeviceStatus] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasDeviceStatusList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_device_status_ref.py b/intersight/models/iaas_device_status_ref.py new file mode 100644 index 00000000..ea761322 --- /dev/null +++ b/intersight/models/iaas_device_status_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasDeviceStatusRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IaasDeviceStatusRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IaasDeviceStatusRef. + + :return: The moid of this IaasDeviceStatusRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasDeviceStatusRef. + + :param moid: The moid of this IaasDeviceStatusRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasDeviceStatusRef. + + :return: The object_type of this IaasDeviceStatusRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasDeviceStatusRef. + + :param object_type: The object_type of this IaasDeviceStatusRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasDeviceStatusRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_license_info.py b/intersight/models/iaas_license_info.py new file mode 100644 index 00000000..f9b43945 --- /dev/null +++ b/intersight/models/iaas_license_info.py @@ -0,0 +1,515 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasLicenseInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'guid': 'IaasUcsdInfoRef', + 'license_expiration_date': 'str', + 'license_keys_info': 'list[IaasLicenseKeysInfo]', + 'license_type': 'str', + 'license_utilization_info': 'list[IaasLicenseUtilizationInfo]' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'guid': 'Guid', + 'license_expiration_date': 'LicenseExpirationDate', + 'license_keys_info': 'LicenseKeysInfo', + 'license_type': 'LicenseType', + 'license_utilization_info': 'LicenseUtilizationInfo' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, guid=None, license_expiration_date=None, license_keys_info=None, license_type=None, license_utilization_info=None): + """ + IaasLicenseInfo - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._guid = None + self._license_expiration_date = None + self._license_keys_info = None + self._license_type = None + self._license_utilization_info = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if guid is not None: + self.guid = guid + if license_expiration_date is not None: + self.license_expiration_date = license_expiration_date + if license_keys_info is not None: + self.license_keys_info = license_keys_info + if license_type is not None: + self.license_type = license_type + if license_utilization_info is not None: + self.license_utilization_info = license_utilization_info + + @property + def account_moid(self): + """ + Gets the account_moid of this IaasLicenseInfo. + The Account ID for this managed object. + + :return: The account_moid of this IaasLicenseInfo. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this IaasLicenseInfo. + The Account ID for this managed object. + + :param account_moid: The account_moid of this IaasLicenseInfo. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this IaasLicenseInfo. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this IaasLicenseInfo. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this IaasLicenseInfo. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this IaasLicenseInfo. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this IaasLicenseInfo. + The time when this managed object was created. + + :return: The create_time of this IaasLicenseInfo. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this IaasLicenseInfo. + The time when this managed object was created. + + :param create_time: The create_time of this IaasLicenseInfo. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this IaasLicenseInfo. + The time when this managed object was last modified. + + :return: The mod_time of this IaasLicenseInfo. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this IaasLicenseInfo. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this IaasLicenseInfo. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this IaasLicenseInfo. + A unique identifier of this Managed Object instance. + + :return: The moid of this IaasLicenseInfo. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasLicenseInfo. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this IaasLicenseInfo. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasLicenseInfo. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this IaasLicenseInfo. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasLicenseInfo. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this IaasLicenseInfo. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this IaasLicenseInfo. + An array of owners which represent effective ownership of this object. + + :return: The owners of this IaasLicenseInfo. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this IaasLicenseInfo. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this IaasLicenseInfo. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this IaasLicenseInfo. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this IaasLicenseInfo. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this IaasLicenseInfo. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this IaasLicenseInfo. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this IaasLicenseInfo. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this IaasLicenseInfo. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this IaasLicenseInfo. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this IaasLicenseInfo. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this IaasLicenseInfo. + The versioning info for this managed object + + :return: The version_context of this IaasLicenseInfo. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IaasLicenseInfo. + The versioning info for this managed object + + :param version_context: The version_context of this IaasLicenseInfo. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def guid(self): + """ + Gets the guid of this IaasLicenseInfo. + + :return: The guid of this IaasLicenseInfo. + :rtype: IaasUcsdInfoRef + """ + return self._guid + + @guid.setter + def guid(self, guid): + """ + Sets the guid of this IaasLicenseInfo. + + :param guid: The guid of this IaasLicenseInfo. + :type: IaasUcsdInfoRef + """ + + self._guid = guid + + @property + def license_expiration_date(self): + """ + Gets the license_expiration_date of this IaasLicenseInfo. + Licese expiration date + + :return: The license_expiration_date of this IaasLicenseInfo. + :rtype: str + """ + return self._license_expiration_date + + @license_expiration_date.setter + def license_expiration_date(self, license_expiration_date): + """ + Sets the license_expiration_date of this IaasLicenseInfo. + Licese expiration date + + :param license_expiration_date: The license_expiration_date of this IaasLicenseInfo. + :type: str + """ + + self._license_expiration_date = license_expiration_date + + @property + def license_keys_info(self): + """ + Gets the license_keys_info of this IaasLicenseInfo. + License keys info for UCSD + + :return: The license_keys_info of this IaasLicenseInfo. + :rtype: list[IaasLicenseKeysInfo] + """ + return self._license_keys_info + + @license_keys_info.setter + def license_keys_info(self, license_keys_info): + """ + Sets the license_keys_info of this IaasLicenseInfo. + License keys info for UCSD + + :param license_keys_info: The license_keys_info of this IaasLicenseInfo. + :type: list[IaasLicenseKeysInfo] + """ + + self._license_keys_info = license_keys_info + + @property + def license_type(self): + """ + Gets the license_type of this IaasLicenseInfo. + License type of UCSD whether it is EVAL/Permanent/Subscription. + + :return: The license_type of this IaasLicenseInfo. + :rtype: str + """ + return self._license_type + + @license_type.setter + def license_type(self, license_type): + """ + Sets the license_type of this IaasLicenseInfo. + License type of UCSD whether it is EVAL/Permanent/Subscription. + + :param license_type: The license_type of this IaasLicenseInfo. + :type: str + """ + + self._license_type = license_type + + @property + def license_utilization_info(self): + """ + Gets the license_utilization_info of this IaasLicenseInfo. + List of license utilization info for UCSD + + :return: The license_utilization_info of this IaasLicenseInfo. + :rtype: list[IaasLicenseUtilizationInfo] + """ + return self._license_utilization_info + + @license_utilization_info.setter + def license_utilization_info(self, license_utilization_info): + """ + Sets the license_utilization_info of this IaasLicenseInfo. + List of license utilization info for UCSD + + :param license_utilization_info: The license_utilization_info of this IaasLicenseInfo. + :type: list[IaasLicenseUtilizationInfo] + """ + + self._license_utilization_info = license_utilization_info + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasLicenseInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/epansible_runner_list.py b/intersight/models/iaas_license_info_list.py similarity index 72% rename from intersight/models/epansible_runner_list.py rename to intersight/models/iaas_license_info_list.py index bee02ca7..8954375d 100644 --- a/intersight/models/epansible_runner_list.py +++ b/intersight/models/iaas_license_info_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class EpansibleRunnerList(object): +class IaasLicenseInfoList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class EpansibleRunnerList(object): """ swagger_types = { 'count': 'int', - 'results': 'list[EpansibleRunner]' + 'results': 'list[IaasLicenseInfo]' } attribute_map = { @@ -42,7 +42,7 @@ class EpansibleRunnerList(object): def __init__(self, count=None, results=None): """ - EpansibleRunnerList - a model defined in Swagger + IaasLicenseInfoList - a model defined in Swagger """ self._count = None @@ -56,10 +56,10 @@ def __init__(self, count=None, results=None): @property def count(self): """ - Gets the count of this EpansibleRunnerList. - The number of epansibleRunners matching your request in total for all pages. + Gets the count of this IaasLicenseInfoList. + The number of iaasLicenseInfos matching your request in total for all pages. - :return: The count of this EpansibleRunnerList. + :return: The count of this IaasLicenseInfoList. :rtype: int """ return self._count @@ -67,10 +67,10 @@ def count(self): @count.setter def count(self, count): """ - Sets the count of this EpansibleRunnerList. - The number of epansibleRunners matching your request in total for all pages. + Sets the count of this IaasLicenseInfoList. + The number of iaasLicenseInfos matching your request in total for all pages. - :param count: The count of this EpansibleRunnerList. + :param count: The count of this IaasLicenseInfoList. :type: int """ @@ -79,22 +79,22 @@ def count(self, count): @property def results(self): """ - Gets the results of this EpansibleRunnerList. - The array of epansibleRunners matching your request. + Gets the results of this IaasLicenseInfoList. + The array of iaasLicenseInfos matching your request. - :return: The results of this EpansibleRunnerList. - :rtype: list[EpansibleRunner] + :return: The results of this IaasLicenseInfoList. + :rtype: list[IaasLicenseInfo] """ return self._results @results.setter def results(self, results): """ - Sets the results of this EpansibleRunnerList. - The array of epansibleRunners matching your request. + Sets the results of this IaasLicenseInfoList. + The array of iaasLicenseInfos matching your request. - :param results: The results of this EpansibleRunnerList. - :type: list[EpansibleRunner] + :param results: The results of this IaasLicenseInfoList. + :type: list[IaasLicenseInfo] """ self._results = results @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, EpansibleRunnerList): + if not isinstance(other, IaasLicenseInfoList): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/iaas_license_info_ref.py b/intersight/models/iaas_license_info_ref.py new file mode 100644 index 00000000..1e595914 --- /dev/null +++ b/intersight/models/iaas_license_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasLicenseInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IaasLicenseInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IaasLicenseInfoRef. + + :return: The moid of this IaasLicenseInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasLicenseInfoRef. + + :param moid: The moid of this IaasLicenseInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasLicenseInfoRef. + + :return: The object_type of this IaasLicenseInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasLicenseInfoRef. + + :param object_type: The object_type of this IaasLicenseInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasLicenseInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_license_keys_info.py b/intersight/models/iaas_license_keys_info.py new file mode 100644 index 00000000..3f2582ff --- /dev/null +++ b/intersight/models/iaas_license_keys_info.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasLicenseKeysInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'expiration_date': 'str', + 'license_id': 'str', + 'pid': 'str' + } + + attribute_map = { + 'count': 'Count', + 'expiration_date': 'ExpirationDate', + 'license_id': 'LicenseId', + 'pid': 'Pid' + } + + def __init__(self, count=None, expiration_date=None, license_id=None, pid=None): + """ + IaasLicenseKeysInfo - a model defined in Swagger + """ + + self._count = None + self._expiration_date = None + self._license_id = None + self._pid = None + + if count is not None: + self.count = count + if expiration_date is not None: + self.expiration_date = expiration_date + if license_id is not None: + self.license_id = license_id + if pid is not None: + self.pid = pid + + @property + def count(self): + """ + Gets the count of this IaasLicenseKeysInfo. + Number of licenses available for the UCSD PID(Product ID) + + :return: The count of this IaasLicenseKeysInfo. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this IaasLicenseKeysInfo. + Number of licenses available for the UCSD PID(Product ID) + + :param count: The count of this IaasLicenseKeysInfo. + :type: int + """ + + self._count = count + + @property + def expiration_date(self): + """ + Gets the expiration_date of this IaasLicenseKeysInfo. + Expiration date for the license + + :return: The expiration_date of this IaasLicenseKeysInfo. + :rtype: str + """ + return self._expiration_date + + @expiration_date.setter + def expiration_date(self, expiration_date): + """ + Sets the expiration_date of this IaasLicenseKeysInfo. + Expiration date for the license + + :param expiration_date: The expiration_date of this IaasLicenseKeysInfo. + :type: str + """ + + self._expiration_date = expiration_date + + @property + def license_id(self): + """ + Gets the license_id of this IaasLicenseKeysInfo. + Unique license ID + + :return: The license_id of this IaasLicenseKeysInfo. + :rtype: str + """ + return self._license_id + + @license_id.setter + def license_id(self, license_id): + """ + Sets the license_id of this IaasLicenseKeysInfo. + Unique license ID + + :param license_id: The license_id of this IaasLicenseKeysInfo. + :type: str + """ + + self._license_id = license_id + + @property + def pid(self): + """ + Gets the pid of this IaasLicenseKeysInfo. + PID(Product ID) for UCSD License + + :return: The pid of this IaasLicenseKeysInfo. + :rtype: str + """ + return self._pid + + @pid.setter + def pid(self, pid): + """ + Sets the pid of this IaasLicenseKeysInfo. + PID(Product ID) for UCSD License + + :param pid: The pid of this IaasLicenseKeysInfo. + :type: str + """ + + self._pid = pid + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasLicenseKeysInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_license_keys_info_ref.py b/intersight/models/iaas_license_keys_info_ref.py new file mode 100644 index 00000000..b84437bb --- /dev/null +++ b/intersight/models/iaas_license_keys_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasLicenseKeysInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IaasLicenseKeysInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IaasLicenseKeysInfoRef. + + :return: The moid of this IaasLicenseKeysInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasLicenseKeysInfoRef. + + :param moid: The moid of this IaasLicenseKeysInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasLicenseKeysInfoRef. + + :return: The object_type of this IaasLicenseKeysInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasLicenseKeysInfoRef. + + :param object_type: The object_type of this IaasLicenseKeysInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasLicenseKeysInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_license_utilization_info.py b/intersight/models/iaas_license_utilization_info.py new file mode 100644 index 00000000..7354820b --- /dev/null +++ b/intersight/models/iaas_license_utilization_info.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasLicenseUtilizationInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'actual_used': 'int', + 'label': 'str', + 'licensed_limit': 'str', + 'sku': 'str' + } + + attribute_map = { + 'actual_used': 'ActualUsed', + 'label': 'Label', + 'licensed_limit': 'LicensedLimit', + 'sku': 'Sku' + } + + def __init__(self, actual_used=None, label=None, licensed_limit=None, sku=None): + """ + IaasLicenseUtilizationInfo - a model defined in Swagger + """ + + self._actual_used = None + self._label = None + self._licensed_limit = None + self._sku = None + + if actual_used is not None: + self.actual_used = actual_used + if label is not None: + self.label = label + if licensed_limit is not None: + self.licensed_limit = licensed_limit + if sku is not None: + self.sku = sku + + @property + def actual_used(self): + """ + Gets the actual_used of this IaasLicenseUtilizationInfo. + Number of licenses actually used for this feature + + :return: The actual_used of this IaasLicenseUtilizationInfo. + :rtype: int + """ + return self._actual_used + + @actual_used.setter + def actual_used(self, actual_used): + """ + Sets the actual_used of this IaasLicenseUtilizationInfo. + Number of licenses actually used for this feature + + :param actual_used: The actual_used of this IaasLicenseUtilizationInfo. + :type: int + """ + + self._actual_used = actual_used + + @property + def label(self): + """ + Gets the label of this IaasLicenseUtilizationInfo. + License Label + + :return: The label of this IaasLicenseUtilizationInfo. + :rtype: str + """ + return self._label + + @label.setter + def label(self, label): + """ + Sets the label of this IaasLicenseUtilizationInfo. + License Label + + :param label: The label of this IaasLicenseUtilizationInfo. + :type: str + """ + + self._label = label + + @property + def licensed_limit(self): + """ + Gets the licensed_limit of this IaasLicenseUtilizationInfo. + License limit for this license feature + + :return: The licensed_limit of this IaasLicenseUtilizationInfo. + :rtype: str + """ + return self._licensed_limit + + @licensed_limit.setter + def licensed_limit(self, licensed_limit): + """ + Sets the licensed_limit of this IaasLicenseUtilizationInfo. + License limit for this license feature + + :param licensed_limit: The licensed_limit of this IaasLicenseUtilizationInfo. + :type: str + """ + + self._licensed_limit = licensed_limit + + @property + def sku(self): + """ + Gets the sku of this IaasLicenseUtilizationInfo. + SKU for the license + + :return: The sku of this IaasLicenseUtilizationInfo. + :rtype: str + """ + return self._sku + + @sku.setter + def sku(self, sku): + """ + Sets the sku of this IaasLicenseUtilizationInfo. + SKU for the license + + :param sku: The sku of this IaasLicenseUtilizationInfo. + :type: str + """ + + self._sku = sku + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasLicenseUtilizationInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_license_utilization_info_ref.py b/intersight/models/iaas_license_utilization_info_ref.py new file mode 100644 index 00000000..1e4697f1 --- /dev/null +++ b/intersight/models/iaas_license_utilization_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasLicenseUtilizationInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IaasLicenseUtilizationInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IaasLicenseUtilizationInfoRef. + + :return: The moid of this IaasLicenseUtilizationInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasLicenseUtilizationInfoRef. + + :param moid: The moid of this IaasLicenseUtilizationInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasLicenseUtilizationInfoRef. + + :return: The object_type of this IaasLicenseUtilizationInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasLicenseUtilizationInfoRef. + + :param object_type: The object_type of this IaasLicenseUtilizationInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasLicenseUtilizationInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_most_run_tasks.py b/intersight/models/iaas_most_run_tasks.py new file mode 100644 index 00000000..975d738c --- /dev/null +++ b/intersight/models/iaas_most_run_tasks.py @@ -0,0 +1,515 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasMostRunTasks(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'guid': 'IaasUcsdInfoRef', + 'task_category': 'str', + 'task_execution_count': 'int', + 'task_name': 'str', + 'task_type': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'guid': 'Guid', + 'task_category': 'TaskCategory', + 'task_execution_count': 'TaskExecutionCount', + 'task_name': 'TaskName', + 'task_type': 'TaskType' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, guid=None, task_category=None, task_execution_count=None, task_name=None, task_type=None): + """ + IaasMostRunTasks - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._guid = None + self._task_category = None + self._task_execution_count = None + self._task_name = None + self._task_type = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if guid is not None: + self.guid = guid + if task_category is not None: + self.task_category = task_category + if task_execution_count is not None: + self.task_execution_count = task_execution_count + if task_name is not None: + self.task_name = task_name + if task_type is not None: + self.task_type = task_type + + @property + def account_moid(self): + """ + Gets the account_moid of this IaasMostRunTasks. + The Account ID for this managed object. + + :return: The account_moid of this IaasMostRunTasks. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this IaasMostRunTasks. + The Account ID for this managed object. + + :param account_moid: The account_moid of this IaasMostRunTasks. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this IaasMostRunTasks. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this IaasMostRunTasks. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this IaasMostRunTasks. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this IaasMostRunTasks. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this IaasMostRunTasks. + The time when this managed object was created. + + :return: The create_time of this IaasMostRunTasks. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this IaasMostRunTasks. + The time when this managed object was created. + + :param create_time: The create_time of this IaasMostRunTasks. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this IaasMostRunTasks. + The time when this managed object was last modified. + + :return: The mod_time of this IaasMostRunTasks. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this IaasMostRunTasks. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this IaasMostRunTasks. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this IaasMostRunTasks. + A unique identifier of this Managed Object instance. + + :return: The moid of this IaasMostRunTasks. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasMostRunTasks. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this IaasMostRunTasks. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasMostRunTasks. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this IaasMostRunTasks. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasMostRunTasks. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this IaasMostRunTasks. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this IaasMostRunTasks. + An array of owners which represent effective ownership of this object. + + :return: The owners of this IaasMostRunTasks. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this IaasMostRunTasks. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this IaasMostRunTasks. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this IaasMostRunTasks. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this IaasMostRunTasks. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this IaasMostRunTasks. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this IaasMostRunTasks. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this IaasMostRunTasks. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this IaasMostRunTasks. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this IaasMostRunTasks. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this IaasMostRunTasks. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this IaasMostRunTasks. + The versioning info for this managed object + + :return: The version_context of this IaasMostRunTasks. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IaasMostRunTasks. + The versioning info for this managed object + + :param version_context: The version_context of this IaasMostRunTasks. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def guid(self): + """ + Gets the guid of this IaasMostRunTasks. + + :return: The guid of this IaasMostRunTasks. + :rtype: IaasUcsdInfoRef + """ + return self._guid + + @guid.setter + def guid(self, guid): + """ + Sets the guid of this IaasMostRunTasks. + + :param guid: The guid of this IaasMostRunTasks. + :type: IaasUcsdInfoRef + """ + + self._guid = guid + + @property + def task_category(self): + """ + Gets the task_category of this IaasMostRunTasks. + A functional area to which a task belongs to + + :return: The task_category of this IaasMostRunTasks. + :rtype: str + """ + return self._task_category + + @task_category.setter + def task_category(self, task_category): + """ + Sets the task_category of this IaasMostRunTasks. + A functional area to which a task belongs to + + :param task_category: The task_category of this IaasMostRunTasks. + :type: str + """ + + self._task_category = task_category + + @property + def task_execution_count(self): + """ + Gets the task_execution_count of this IaasMostRunTasks. + Number of times this task has executed. + + :return: The task_execution_count of this IaasMostRunTasks. + :rtype: int + """ + return self._task_execution_count + + @task_execution_count.setter + def task_execution_count(self, task_execution_count): + """ + Sets the task_execution_count of this IaasMostRunTasks. + Number of times this task has executed. + + :param task_execution_count: The task_execution_count of this IaasMostRunTasks. + :type: int + """ + + self._task_execution_count = task_execution_count + + @property + def task_name(self): + """ + Gets the task_name of this IaasMostRunTasks. + Name of the task + + :return: The task_name of this IaasMostRunTasks. + :rtype: str + """ + return self._task_name + + @task_name.setter + def task_name(self, task_name): + """ + Sets the task_name of this IaasMostRunTasks. + Name of the task + + :param task_name: The task_name of this IaasMostRunTasks. + :type: str + """ + + self._task_name = task_name + + @property + def task_type(self): + """ + Gets the task_type of this IaasMostRunTasks. + Type of the task whether it is system task or custom task + + :return: The task_type of this IaasMostRunTasks. + :rtype: str + """ + return self._task_type + + @task_type.setter + def task_type(self, task_type): + """ + Sets the task_type of this IaasMostRunTasks. + Type of the task whether it is system task or custom task + + :param task_type: The task_type of this IaasMostRunTasks. + :type: str + """ + + self._task_type = task_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasMostRunTasks): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_policy_meta_list.py b/intersight/models/iaas_most_run_tasks_list.py similarity index 72% rename from intersight/models/policy_policy_meta_list.py rename to intersight/models/iaas_most_run_tasks_list.py index b769716c..3965cd5e 100644 --- a/intersight/models/policy_policy_meta_list.py +++ b/intersight/models/iaas_most_run_tasks_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class PolicyPolicyMetaList(object): +class IaasMostRunTasksList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class PolicyPolicyMetaList(object): """ swagger_types = { 'count': 'int', - 'results': 'list[PolicyPolicyMeta]' + 'results': 'list[IaasMostRunTasks]' } attribute_map = { @@ -42,7 +42,7 @@ class PolicyPolicyMetaList(object): def __init__(self, count=None, results=None): """ - PolicyPolicyMetaList - a model defined in Swagger + IaasMostRunTasksList - a model defined in Swagger """ self._count = None @@ -56,10 +56,10 @@ def __init__(self, count=None, results=None): @property def count(self): """ - Gets the count of this PolicyPolicyMetaList. - The number of policyPolicyMeta matching your request in total for all pages. + Gets the count of this IaasMostRunTasksList. + The number of iaasMostRunTasks matching your request in total for all pages. - :return: The count of this PolicyPolicyMetaList. + :return: The count of this IaasMostRunTasksList. :rtype: int """ return self._count @@ -67,10 +67,10 @@ def count(self): @count.setter def count(self, count): """ - Sets the count of this PolicyPolicyMetaList. - The number of policyPolicyMeta matching your request in total for all pages. + Sets the count of this IaasMostRunTasksList. + The number of iaasMostRunTasks matching your request in total for all pages. - :param count: The count of this PolicyPolicyMetaList. + :param count: The count of this IaasMostRunTasksList. :type: int """ @@ -79,22 +79,22 @@ def count(self, count): @property def results(self): """ - Gets the results of this PolicyPolicyMetaList. - The array of policyPolicyMeta matching your request. + Gets the results of this IaasMostRunTasksList. + The array of iaasMostRunTasks matching your request. - :return: The results of this PolicyPolicyMetaList. - :rtype: list[PolicyPolicyMeta] + :return: The results of this IaasMostRunTasksList. + :rtype: list[IaasMostRunTasks] """ return self._results @results.setter def results(self, results): """ - Sets the results of this PolicyPolicyMetaList. - The array of policyPolicyMeta matching your request. + Sets the results of this IaasMostRunTasksList. + The array of iaasMostRunTasks matching your request. - :param results: The results of this PolicyPolicyMetaList. - :type: list[PolicyPolicyMeta] + :param results: The results of this IaasMostRunTasksList. + :type: list[IaasMostRunTasks] """ self._results = results @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, PolicyPolicyMetaList): + if not isinstance(other, IaasMostRunTasksList): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/iaas_most_run_tasks_ref.py b/intersight/models/iaas_most_run_tasks_ref.py new file mode 100644 index 00000000..beaeb73f --- /dev/null +++ b/intersight/models/iaas_most_run_tasks_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasMostRunTasksRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IaasMostRunTasksRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IaasMostRunTasksRef. + + :return: The moid of this IaasMostRunTasksRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasMostRunTasksRef. + + :param moid: The moid of this IaasMostRunTasksRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasMostRunTasksRef. + + :return: The object_type of this IaasMostRunTasksRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasMostRunTasksRef. + + :param object_type: The object_type of this IaasMostRunTasksRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasMostRunTasksRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_ucsd_info.py b/intersight/models/iaas_ucsd_info.py new file mode 100644 index 00000000..4613eb32 --- /dev/null +++ b/intersight/models/iaas_ucsd_info.py @@ -0,0 +1,785 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasUcsdInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'connector_pack': 'list[IaasConnectorPackRef]', + 'device_id': 'str', + 'device_status': 'list[IaasDeviceStatusRef]', + 'guid': 'str', + 'host_name': 'str', + 'ip': 'str', + 'license_info': 'IaasLicenseInfoRef', + 'most_run_tasks': 'list[IaasMostRunTasksRef]', + 'node_type': 'str', + 'product_name': 'str', + 'product_vendor': 'str', + 'product_version': 'str', + 'registered_device': 'AssetDeviceRegistrationRef', + 'status': 'str', + 'ucsd_managed_infra': 'IaasUcsdManagedInfraRef' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'connector_pack': 'ConnectorPack', + 'device_id': 'DeviceId', + 'device_status': 'DeviceStatus', + 'guid': 'Guid', + 'host_name': 'HostName', + 'ip': 'Ip', + 'license_info': 'LicenseInfo', + 'most_run_tasks': 'MostRunTasks', + 'node_type': 'NodeType', + 'product_name': 'ProductName', + 'product_vendor': 'ProductVendor', + 'product_version': 'ProductVersion', + 'registered_device': 'RegisteredDevice', + 'status': 'Status', + 'ucsd_managed_infra': 'UcsdManagedInfra' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, connector_pack=None, device_id=None, device_status=None, guid=None, host_name=None, ip=None, license_info=None, most_run_tasks=None, node_type=None, product_name=None, product_vendor=None, product_version=None, registered_device=None, status=None, ucsd_managed_infra=None): + """ + IaasUcsdInfo - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._connector_pack = None + self._device_id = None + self._device_status = None + self._guid = None + self._host_name = None + self._ip = None + self._license_info = None + self._most_run_tasks = None + self._node_type = None + self._product_name = None + self._product_vendor = None + self._product_version = None + self._registered_device = None + self._status = None + self._ucsd_managed_infra = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if connector_pack is not None: + self.connector_pack = connector_pack + if device_id is not None: + self.device_id = device_id + if device_status is not None: + self.device_status = device_status + if guid is not None: + self.guid = guid + if host_name is not None: + self.host_name = host_name + if ip is not None: + self.ip = ip + if license_info is not None: + self.license_info = license_info + if most_run_tasks is not None: + self.most_run_tasks = most_run_tasks + if node_type is not None: + self.node_type = node_type + if product_name is not None: + self.product_name = product_name + if product_vendor is not None: + self.product_vendor = product_vendor + if product_version is not None: + self.product_version = product_version + if registered_device is not None: + self.registered_device = registered_device + if status is not None: + self.status = status + if ucsd_managed_infra is not None: + self.ucsd_managed_infra = ucsd_managed_infra + + @property + def account_moid(self): + """ + Gets the account_moid of this IaasUcsdInfo. + The Account ID for this managed object. + + :return: The account_moid of this IaasUcsdInfo. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this IaasUcsdInfo. + The Account ID for this managed object. + + :param account_moid: The account_moid of this IaasUcsdInfo. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this IaasUcsdInfo. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this IaasUcsdInfo. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this IaasUcsdInfo. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this IaasUcsdInfo. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this IaasUcsdInfo. + The time when this managed object was created. + + :return: The create_time of this IaasUcsdInfo. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this IaasUcsdInfo. + The time when this managed object was created. + + :param create_time: The create_time of this IaasUcsdInfo. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this IaasUcsdInfo. + The time when this managed object was last modified. + + :return: The mod_time of this IaasUcsdInfo. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this IaasUcsdInfo. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this IaasUcsdInfo. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this IaasUcsdInfo. + A unique identifier of this Managed Object instance. + + :return: The moid of this IaasUcsdInfo. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasUcsdInfo. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this IaasUcsdInfo. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasUcsdInfo. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this IaasUcsdInfo. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasUcsdInfo. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this IaasUcsdInfo. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this IaasUcsdInfo. + An array of owners which represent effective ownership of this object. + + :return: The owners of this IaasUcsdInfo. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this IaasUcsdInfo. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this IaasUcsdInfo. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this IaasUcsdInfo. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this IaasUcsdInfo. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this IaasUcsdInfo. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this IaasUcsdInfo. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this IaasUcsdInfo. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this IaasUcsdInfo. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this IaasUcsdInfo. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this IaasUcsdInfo. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this IaasUcsdInfo. + The versioning info for this managed object + + :return: The version_context of this IaasUcsdInfo. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IaasUcsdInfo. + The versioning info for this managed object + + :param version_context: The version_context of this IaasUcsdInfo. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def connector_pack(self): + """ + Gets the connector_pack of this IaasUcsdInfo. + + :return: The connector_pack of this IaasUcsdInfo. + :rtype: list[IaasConnectorPackRef] + """ + return self._connector_pack + + @connector_pack.setter + def connector_pack(self, connector_pack): + """ + Sets the connector_pack of this IaasUcsdInfo. + + :param connector_pack: The connector_pack of this IaasUcsdInfo. + :type: list[IaasConnectorPackRef] + """ + + self._connector_pack = connector_pack + + @property + def device_id(self): + """ + Gets the device_id of this IaasUcsdInfo. + Moid of the UCSD device connector's asset.DeviceRegistration + + :return: The device_id of this IaasUcsdInfo. + :rtype: str + """ + return self._device_id + + @device_id.setter + def device_id(self, device_id): + """ + Sets the device_id of this IaasUcsdInfo. + Moid of the UCSD device connector's asset.DeviceRegistration + + :param device_id: The device_id of this IaasUcsdInfo. + :type: str + """ + + self._device_id = device_id + + @property + def device_status(self): + """ + Gets the device_status of this IaasUcsdInfo. + + :return: The device_status of this IaasUcsdInfo. + :rtype: list[IaasDeviceStatusRef] + """ + return self._device_status + + @device_status.setter + def device_status(self, device_status): + """ + Sets the device_status of this IaasUcsdInfo. + + :param device_status: The device_status of this IaasUcsdInfo. + :type: list[IaasDeviceStatusRef] + """ + + self._device_status = device_status + + @property + def guid(self): + """ + Gets the guid of this IaasUcsdInfo. + Unique ID of UCSD getting registerd with Intersight + + :return: The guid of this IaasUcsdInfo. + :rtype: str + """ + return self._guid + + @guid.setter + def guid(self, guid): + """ + Sets the guid of this IaasUcsdInfo. + Unique ID of UCSD getting registerd with Intersight + + :param guid: The guid of this IaasUcsdInfo. + :type: str + """ + + self._guid = guid + + @property + def host_name(self): + """ + Gets the host_name of this IaasUcsdInfo. + The UCSD host name + + :return: The host_name of this IaasUcsdInfo. + :rtype: str + """ + return self._host_name + + @host_name.setter + def host_name(self, host_name): + """ + Sets the host_name of this IaasUcsdInfo. + The UCSD host name + + :param host_name: The host_name of this IaasUcsdInfo. + :type: str + """ + + self._host_name = host_name + + @property + def ip(self): + """ + Gets the ip of this IaasUcsdInfo. + The UCSD IP address + + :return: The ip of this IaasUcsdInfo. + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """ + Sets the ip of this IaasUcsdInfo. + The UCSD IP address + + :param ip: The ip of this IaasUcsdInfo. + :type: str + """ + + self._ip = ip + + @property + def license_info(self): + """ + Gets the license_info of this IaasUcsdInfo. + + :return: The license_info of this IaasUcsdInfo. + :rtype: IaasLicenseInfoRef + """ + return self._license_info + + @license_info.setter + def license_info(self, license_info): + """ + Sets the license_info of this IaasUcsdInfo. + + :param license_info: The license_info of this IaasUcsdInfo. + :type: IaasLicenseInfoRef + """ + + self._license_info = license_info + + @property + def most_run_tasks(self): + """ + Gets the most_run_tasks of this IaasUcsdInfo. + + :return: The most_run_tasks of this IaasUcsdInfo. + :rtype: list[IaasMostRunTasksRef] + """ + return self._most_run_tasks + + @most_run_tasks.setter + def most_run_tasks(self, most_run_tasks): + """ + Sets the most_run_tasks of this IaasUcsdInfo. + + :param most_run_tasks: The most_run_tasks of this IaasUcsdInfo. + :type: list[IaasMostRunTasksRef] + """ + + self._most_run_tasks = most_run_tasks + + @property + def node_type(self): + """ + Gets the node_type of this IaasUcsdInfo. + nodeType specifies if UCSD is deployed in Stand-alone or Multi Node + + :return: The node_type of this IaasUcsdInfo. + :rtype: str + """ + return self._node_type + + @node_type.setter + def node_type(self, node_type): + """ + Sets the node_type of this IaasUcsdInfo. + nodeType specifies if UCSD is deployed in Stand-alone or Multi Node + + :param node_type: The node_type of this IaasUcsdInfo. + :type: str + """ + + self._node_type = node_type + + @property + def product_name(self): + """ + Gets the product_name of this IaasUcsdInfo. + The UCSD product name + + :return: The product_name of this IaasUcsdInfo. + :rtype: str + """ + return self._product_name + + @product_name.setter + def product_name(self, product_name): + """ + Sets the product_name of this IaasUcsdInfo. + The UCSD product name + + :param product_name: The product_name of this IaasUcsdInfo. + :type: str + """ + + self._product_name = product_name + + @property + def product_vendor(self): + """ + Gets the product_vendor of this IaasUcsdInfo. + The UCSD product vendor + + :return: The product_vendor of this IaasUcsdInfo. + :rtype: str + """ + return self._product_vendor + + @product_vendor.setter + def product_vendor(self, product_vendor): + """ + Sets the product_vendor of this IaasUcsdInfo. + The UCSD product vendor + + :param product_vendor: The product_vendor of this IaasUcsdInfo. + :type: str + """ + + self._product_vendor = product_vendor + + @property + def product_version(self): + """ + Gets the product_version of this IaasUcsdInfo. + The UCSD product/platform version + + :return: The product_version of this IaasUcsdInfo. + :rtype: str + """ + return self._product_version + + @product_version.setter + def product_version(self, product_version): + """ + Sets the product_version of this IaasUcsdInfo. + The UCSD product/platform version + + :param product_version: The product_version of this IaasUcsdInfo. + :type: str + """ + + self._product_version = product_version + + @property + def registered_device(self): + """ + Gets the registered_device of this IaasUcsdInfo. + + :return: The registered_device of this IaasUcsdInfo. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this IaasUcsdInfo. + + :param registered_device: The registered_device of this IaasUcsdInfo. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + @property + def status(self): + """ + Gets the status of this IaasUcsdInfo. + The UCSD status. Possible values are Active,In-Active,Unknown + + :return: The status of this IaasUcsdInfo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this IaasUcsdInfo. + The UCSD status. Possible values are Active,In-Active,Unknown + + :param status: The status of this IaasUcsdInfo. + :type: str + """ + + self._status = status + + @property + def ucsd_managed_infra(self): + """ + Gets the ucsd_managed_infra of this IaasUcsdInfo. + + :return: The ucsd_managed_infra of this IaasUcsdInfo. + :rtype: IaasUcsdManagedInfraRef + """ + return self._ucsd_managed_infra + + @ucsd_managed_infra.setter + def ucsd_managed_infra(self, ucsd_managed_infra): + """ + Sets the ucsd_managed_infra of this IaasUcsdInfo. + + :param ucsd_managed_infra: The ucsd_managed_infra of this IaasUcsdInfo. + :type: IaasUcsdManagedInfraRef + """ + + self._ucsd_managed_infra = ucsd_managed_infra + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasUcsdInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_ucsd_info_list.py b/intersight/models/iaas_ucsd_info_list.py new file mode 100644 index 00000000..f0f63fde --- /dev/null +++ b/intersight/models/iaas_ucsd_info_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasUcsdInfoList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[IaasUcsdInfo]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + IaasUcsdInfoList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this IaasUcsdInfoList. + The number of iaasUcsdInfos matching your request in total for all pages. + + :return: The count of this IaasUcsdInfoList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this IaasUcsdInfoList. + The number of iaasUcsdInfos matching your request in total for all pages. + + :param count: The count of this IaasUcsdInfoList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this IaasUcsdInfoList. + The array of iaasUcsdInfos matching your request. + + :return: The results of this IaasUcsdInfoList. + :rtype: list[IaasUcsdInfo] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this IaasUcsdInfoList. + The array of iaasUcsdInfos matching your request. + + :param results: The results of this IaasUcsdInfoList. + :type: list[IaasUcsdInfo] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasUcsdInfoList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_ucsd_info_ref.py b/intersight/models/iaas_ucsd_info_ref.py new file mode 100644 index 00000000..f157bc0a --- /dev/null +++ b/intersight/models/iaas_ucsd_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasUcsdInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IaasUcsdInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IaasUcsdInfoRef. + + :return: The moid of this IaasUcsdInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasUcsdInfoRef. + + :param moid: The moid of this IaasUcsdInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasUcsdInfoRef. + + :return: The object_type of this IaasUcsdInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasUcsdInfoRef. + + :param object_type: The object_type of this IaasUcsdInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasUcsdInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_ucsd_managed_infra.py b/intersight/models/iaas_ucsd_managed_infra.py new file mode 100644 index 00000000..24b4dfef --- /dev/null +++ b/intersight/models/iaas_ucsd_managed_infra.py @@ -0,0 +1,711 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasUcsdManagedInfra(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'advanced_catalog_count': 'int', + 'bm_catalog_count': 'int', + 'container_catalog_count': 'int', + 'esxi_host_count': 'int', + 'external_group_count': 'int', + 'guid': 'IaasUcsdInfoRef', + 'hyperv_host_count': 'int', + 'local_group_count': 'int', + 'standard_catalog_count': 'int', + 'user_count': 'int', + 'vdc_count': 'int', + 'vm_count': 'int' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'advanced_catalog_count': 'AdvancedCatalogCount', + 'bm_catalog_count': 'BmCatalogCount', + 'container_catalog_count': 'ContainerCatalogCount', + 'esxi_host_count': 'EsxiHostCount', + 'external_group_count': 'ExternalGroupCount', + 'guid': 'Guid', + 'hyperv_host_count': 'HypervHostCount', + 'local_group_count': 'LocalGroupCount', + 'standard_catalog_count': 'StandardCatalogCount', + 'user_count': 'UserCount', + 'vdc_count': 'VdcCount', + 'vm_count': 'VmCount' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, advanced_catalog_count=None, bm_catalog_count=None, container_catalog_count=None, esxi_host_count=None, external_group_count=None, guid=None, hyperv_host_count=None, local_group_count=None, standard_catalog_count=None, user_count=None, vdc_count=None, vm_count=None): + """ + IaasUcsdManagedInfra - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._advanced_catalog_count = None + self._bm_catalog_count = None + self._container_catalog_count = None + self._esxi_host_count = None + self._external_group_count = None + self._guid = None + self._hyperv_host_count = None + self._local_group_count = None + self._standard_catalog_count = None + self._user_count = None + self._vdc_count = None + self._vm_count = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if advanced_catalog_count is not None: + self.advanced_catalog_count = advanced_catalog_count + if bm_catalog_count is not None: + self.bm_catalog_count = bm_catalog_count + if container_catalog_count is not None: + self.container_catalog_count = container_catalog_count + if esxi_host_count is not None: + self.esxi_host_count = esxi_host_count + if external_group_count is not None: + self.external_group_count = external_group_count + if guid is not None: + self.guid = guid + if hyperv_host_count is not None: + self.hyperv_host_count = hyperv_host_count + if local_group_count is not None: + self.local_group_count = local_group_count + if standard_catalog_count is not None: + self.standard_catalog_count = standard_catalog_count + if user_count is not None: + self.user_count = user_count + if vdc_count is not None: + self.vdc_count = vdc_count + if vm_count is not None: + self.vm_count = vm_count + + @property + def account_moid(self): + """ + Gets the account_moid of this IaasUcsdManagedInfra. + The Account ID for this managed object. + + :return: The account_moid of this IaasUcsdManagedInfra. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this IaasUcsdManagedInfra. + The Account ID for this managed object. + + :param account_moid: The account_moid of this IaasUcsdManagedInfra. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this IaasUcsdManagedInfra. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this IaasUcsdManagedInfra. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this IaasUcsdManagedInfra. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this IaasUcsdManagedInfra. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this IaasUcsdManagedInfra. + The time when this managed object was created. + + :return: The create_time of this IaasUcsdManagedInfra. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this IaasUcsdManagedInfra. + The time when this managed object was created. + + :param create_time: The create_time of this IaasUcsdManagedInfra. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this IaasUcsdManagedInfra. + The time when this managed object was last modified. + + :return: The mod_time of this IaasUcsdManagedInfra. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this IaasUcsdManagedInfra. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this IaasUcsdManagedInfra. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this IaasUcsdManagedInfra. + A unique identifier of this Managed Object instance. + + :return: The moid of this IaasUcsdManagedInfra. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasUcsdManagedInfra. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this IaasUcsdManagedInfra. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasUcsdManagedInfra. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this IaasUcsdManagedInfra. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasUcsdManagedInfra. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this IaasUcsdManagedInfra. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this IaasUcsdManagedInfra. + An array of owners which represent effective ownership of this object. + + :return: The owners of this IaasUcsdManagedInfra. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this IaasUcsdManagedInfra. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this IaasUcsdManagedInfra. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this IaasUcsdManagedInfra. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this IaasUcsdManagedInfra. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this IaasUcsdManagedInfra. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this IaasUcsdManagedInfra. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this IaasUcsdManagedInfra. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this IaasUcsdManagedInfra. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this IaasUcsdManagedInfra. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this IaasUcsdManagedInfra. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this IaasUcsdManagedInfra. + The versioning info for this managed object + + :return: The version_context of this IaasUcsdManagedInfra. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IaasUcsdManagedInfra. + The versioning info for this managed object + + :param version_context: The version_context of this IaasUcsdManagedInfra. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def advanced_catalog_count(self): + """ + Gets the advanced_catalog_count of this IaasUcsdManagedInfra. + Total advanced catalogs in UCSD + + :return: The advanced_catalog_count of this IaasUcsdManagedInfra. + :rtype: int + """ + return self._advanced_catalog_count + + @advanced_catalog_count.setter + def advanced_catalog_count(self, advanced_catalog_count): + """ + Sets the advanced_catalog_count of this IaasUcsdManagedInfra. + Total advanced catalogs in UCSD + + :param advanced_catalog_count: The advanced_catalog_count of this IaasUcsdManagedInfra. + :type: int + """ + + self._advanced_catalog_count = advanced_catalog_count + + @property + def bm_catalog_count(self): + """ + Gets the bm_catalog_count of this IaasUcsdManagedInfra. + Total bare metal catalogs in UCSD + + :return: The bm_catalog_count of this IaasUcsdManagedInfra. + :rtype: int + """ + return self._bm_catalog_count + + @bm_catalog_count.setter + def bm_catalog_count(self, bm_catalog_count): + """ + Sets the bm_catalog_count of this IaasUcsdManagedInfra. + Total bare metal catalogs in UCSD + + :param bm_catalog_count: The bm_catalog_count of this IaasUcsdManagedInfra. + :type: int + """ + + self._bm_catalog_count = bm_catalog_count + + @property + def container_catalog_count(self): + """ + Gets the container_catalog_count of this IaasUcsdManagedInfra. + Total service container catalogs in UCSD + + :return: The container_catalog_count of this IaasUcsdManagedInfra. + :rtype: int + """ + return self._container_catalog_count + + @container_catalog_count.setter + def container_catalog_count(self, container_catalog_count): + """ + Sets the container_catalog_count of this IaasUcsdManagedInfra. + Total service container catalogs in UCSD + + :param container_catalog_count: The container_catalog_count of this IaasUcsdManagedInfra. + :type: int + """ + + self._container_catalog_count = container_catalog_count + + @property + def esxi_host_count(self): + """ + Gets the esxi_host_count of this IaasUcsdManagedInfra. + Total ESXi hosts in UCSD + + :return: The esxi_host_count of this IaasUcsdManagedInfra. + :rtype: int + """ + return self._esxi_host_count + + @esxi_host_count.setter + def esxi_host_count(self, esxi_host_count): + """ + Sets the esxi_host_count of this IaasUcsdManagedInfra. + Total ESXi hosts in UCSD + + :param esxi_host_count: The esxi_host_count of this IaasUcsdManagedInfra. + :type: int + """ + + self._esxi_host_count = esxi_host_count + + @property + def external_group_count(self): + """ + Gets the external_group_count of this IaasUcsdManagedInfra. + Total external (Ldap) groups in UCSD + + :return: The external_group_count of this IaasUcsdManagedInfra. + :rtype: int + """ + return self._external_group_count + + @external_group_count.setter + def external_group_count(self, external_group_count): + """ + Sets the external_group_count of this IaasUcsdManagedInfra. + Total external (Ldap) groups in UCSD + + :param external_group_count: The external_group_count of this IaasUcsdManagedInfra. + :type: int + """ + + self._external_group_count = external_group_count + + @property + def guid(self): + """ + Gets the guid of this IaasUcsdManagedInfra. + + :return: The guid of this IaasUcsdManagedInfra. + :rtype: IaasUcsdInfoRef + """ + return self._guid + + @guid.setter + def guid(self, guid): + """ + Sets the guid of this IaasUcsdManagedInfra. + + :param guid: The guid of this IaasUcsdManagedInfra. + :type: IaasUcsdInfoRef + """ + + self._guid = guid + + @property + def hyperv_host_count(self): + """ + Gets the hyperv_host_count of this IaasUcsdManagedInfra. + Total HyperV hosts in UCSD + + :return: The hyperv_host_count of this IaasUcsdManagedInfra. + :rtype: int + """ + return self._hyperv_host_count + + @hyperv_host_count.setter + def hyperv_host_count(self, hyperv_host_count): + """ + Sets the hyperv_host_count of this IaasUcsdManagedInfra. + Total HyperV hosts in UCSD + + :param hyperv_host_count: The hyperv_host_count of this IaasUcsdManagedInfra. + :type: int + """ + + self._hyperv_host_count = hyperv_host_count + + @property + def local_group_count(self): + """ + Gets the local_group_count of this IaasUcsdManagedInfra. + Total local groups in UCSD + + :return: The local_group_count of this IaasUcsdManagedInfra. + :rtype: int + """ + return self._local_group_count + + @local_group_count.setter + def local_group_count(self, local_group_count): + """ + Sets the local_group_count of this IaasUcsdManagedInfra. + Total local groups in UCSD + + :param local_group_count: The local_group_count of this IaasUcsdManagedInfra. + :type: int + """ + + self._local_group_count = local_group_count + + @property + def standard_catalog_count(self): + """ + Gets the standard_catalog_count of this IaasUcsdManagedInfra. + Total standard catalogs in UCSD + + :return: The standard_catalog_count of this IaasUcsdManagedInfra. + :rtype: int + """ + return self._standard_catalog_count + + @standard_catalog_count.setter + def standard_catalog_count(self, standard_catalog_count): + """ + Sets the standard_catalog_count of this IaasUcsdManagedInfra. + Total standard catalogs in UCSD + + :param standard_catalog_count: The standard_catalog_count of this IaasUcsdManagedInfra. + :type: int + """ + + self._standard_catalog_count = standard_catalog_count + + @property + def user_count(self): + """ + Gets the user_count of this IaasUcsdManagedInfra. + Total user accounts in UCSD + + :return: The user_count of this IaasUcsdManagedInfra. + :rtype: int + """ + return self._user_count + + @user_count.setter + def user_count(self, user_count): + """ + Sets the user_count of this IaasUcsdManagedInfra. + Total user accounts in UCSD + + :param user_count: The user_count of this IaasUcsdManagedInfra. + :type: int + """ + + self._user_count = user_count + + @property + def vdc_count(self): + """ + Gets the vdc_count of this IaasUcsdManagedInfra. + Total virtual datacenters in UCSD + + :return: The vdc_count of this IaasUcsdManagedInfra. + :rtype: int + """ + return self._vdc_count + + @vdc_count.setter + def vdc_count(self, vdc_count): + """ + Sets the vdc_count of this IaasUcsdManagedInfra. + Total virtual datacenters in UCSD + + :param vdc_count: The vdc_count of this IaasUcsdManagedInfra. + :type: int + """ + + self._vdc_count = vdc_count + + @property + def vm_count(self): + """ + Gets the vm_count of this IaasUcsdManagedInfra. + Total VMs in UCSD + + :return: The vm_count of this IaasUcsdManagedInfra. + :rtype: int + """ + return self._vm_count + + @vm_count.setter + def vm_count(self, vm_count): + """ + Sets the vm_count of this IaasUcsdManagedInfra. + Total VMs in UCSD + + :param vm_count: The vm_count of this IaasUcsdManagedInfra. + :type: int + """ + + self._vm_count = vm_count + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasUcsdManagedInfra): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_ucsd_managed_infra_list.py b/intersight/models/iaas_ucsd_managed_infra_list.py new file mode 100644 index 00000000..ff52a95f --- /dev/null +++ b/intersight/models/iaas_ucsd_managed_infra_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasUcsdManagedInfraList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[IaasUcsdManagedInfra]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + IaasUcsdManagedInfraList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this IaasUcsdManagedInfraList. + The number of iaasUcsdManagedInfras matching your request in total for all pages. + + :return: The count of this IaasUcsdManagedInfraList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this IaasUcsdManagedInfraList. + The number of iaasUcsdManagedInfras matching your request in total for all pages. + + :param count: The count of this IaasUcsdManagedInfraList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this IaasUcsdManagedInfraList. + The array of iaasUcsdManagedInfras matching your request. + + :return: The results of this IaasUcsdManagedInfraList. + :rtype: list[IaasUcsdManagedInfra] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this IaasUcsdManagedInfraList. + The array of iaasUcsdManagedInfras matching your request. + + :param results: The results of this IaasUcsdManagedInfraList. + :type: list[IaasUcsdManagedInfra] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasUcsdManagedInfraList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iaas_ucsd_managed_infra_ref.py b/intersight/models/iaas_ucsd_managed_infra_ref.py new file mode 100644 index 00000000..7ec9d58a --- /dev/null +++ b/intersight/models/iaas_ucsd_managed_infra_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IaasUcsdManagedInfraRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IaasUcsdManagedInfraRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IaasUcsdManagedInfraRef. + + :return: The moid of this IaasUcsdManagedInfraRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IaasUcsdManagedInfraRef. + + :param moid: The moid of this IaasUcsdManagedInfraRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IaasUcsdManagedInfraRef. + + :return: The object_type of this IaasUcsdManagedInfraRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IaasUcsdManagedInfraRef. + + :param object_type: The object_type of this IaasUcsdManagedInfraRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IaasUcsdManagedInfraRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_account.py b/intersight/models/iam_account.py index 63659652..5fb16fd4 100644 --- a/intersight/models/iam_account.py +++ b/intersight/models/iam_account.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,27 +32,26 @@ class IamAccount(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'end_point_roles': 'list[MoMoRef]', - 'idpreferences': 'list[MoMoRef]', - 'idps': 'list[MoMoRef]', + 'version_context': 'MoVersionContext', + 'domain_groups': 'list[IamDomainGroupRef]', + 'end_point_roles': 'list[IamEndPointRoleRef]', + 'idpreferences': 'list[IamIdpReferenceRef]', + 'idps': 'list[IamIdpRef]', 'name': 'str', - 'permissions': 'list[MoMoRef]', - 'privilege_sets': 'list[MoMoRef]', - 'privileges': 'list[MoMoRef]', - 'resource_limits': 'MoMoRef', - 'roles': 'list[MoMoRef]', - 'root_user_email': 'str', - 'root_user_id': 'str', - 'root_user_name': 'str', - 'session_limits': 'MoMoRef', + 'permissions': 'list[IamPermissionRef]', + 'privilege_sets': 'list[IamPrivilegeSetRef]', + 'privileges': 'list[IamPrivilegeRef]', + 'resource_limits': 'IamResourceLimitsRef', + 'roles': 'list[IamRoleRef]', + 'session_limits': 'IamSessionLimitsRef', 'status': 'str' } @@ -66,6 +65,8 @@ class IamAccount(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', + 'domain_groups': 'DomainGroups', 'end_point_roles': 'EndPointRoles', 'idpreferences': 'Idpreferences', 'idps': 'Idps', @@ -75,14 +76,11 @@ class IamAccount(object): 'privileges': 'Privileges', 'resource_limits': 'ResourceLimits', 'roles': 'Roles', - 'root_user_email': 'RootUserEmail', - 'root_user_id': 'RootUserId', - 'root_user_name': 'RootUserName', 'session_limits': 'SessionLimits', 'status': 'Status' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, end_point_roles=None, idpreferences=None, idps=None, name=None, permissions=None, privilege_sets=None, privileges=None, resource_limits=None, roles=None, root_user_email=None, root_user_id=None, root_user_name=None, session_limits=None, status=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, domain_groups=None, end_point_roles=None, idpreferences=None, idps=None, name=None, permissions=None, privilege_sets=None, privileges=None, resource_limits=None, roles=None, session_limits=None, status=None): """ IamAccount - a model defined in Swagger """ @@ -96,6 +94,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None + self._domain_groups = None self._end_point_roles = None self._idpreferences = None self._idps = None @@ -105,9 +105,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._privileges = None self._resource_limits = None self._roles = None - self._root_user_email = None - self._root_user_id = None - self._root_user_name = None self._session_limits = None self._status = None @@ -129,6 +126,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context + if domain_groups is not None: + self.domain_groups = domain_groups if end_point_roles is not None: self.end_point_roles = end_point_roles if idpreferences is not None: @@ -147,12 +148,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.resource_limits = resource_limits if roles is not None: self.roles = roles - if root_user_email is not None: - self.root_user_email = root_user_email - if root_user_id is not None: - self.root_user_id = root_user_id - if root_user_name is not None: - self.root_user_name = root_user_name if session_limits is not None: self.session_limits = session_limits if status is not None: @@ -188,7 +183,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamAccount. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -199,7 +194,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamAccount. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -326,7 +321,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamAccount. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -337,7 +332,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamAccount. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -346,7 +341,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamAccount. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamAccount. :rtype: list[MoTag] @@ -357,7 +352,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamAccount. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamAccount. :type: list[MoTag] @@ -365,13 +360,58 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamAccount. + The versioning info for this managed object + + :return: The version_context of this IamAccount. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamAccount. + The versioning info for this managed object + + :param version_context: The version_context of this IamAccount. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def domain_groups(self): + """ + Gets the domain_groups of this IamAccount. + + :return: The domain_groups of this IamAccount. + :rtype: list[IamDomainGroupRef] + """ + return self._domain_groups + + @domain_groups.setter + def domain_groups(self, domain_groups): + """ + Sets the domain_groups of this IamAccount. + + :param domain_groups: The domain_groups of this IamAccount. + :type: list[IamDomainGroupRef] + """ + + self._domain_groups = domain_groups + @property def end_point_roles(self): """ Gets the end_point_roles of this IamAccount. + User defined end point roles. These roles are assigned to Intersight users to perform end point operations such as GUI/CLI cross launch. :return: The end_point_roles of this IamAccount. - :rtype: list[MoMoRef] + :rtype: list[IamEndPointRoleRef] """ return self._end_point_roles @@ -379,9 +419,10 @@ def end_point_roles(self): def end_point_roles(self, end_point_roles): """ Sets the end_point_roles of this IamAccount. + User defined end point roles. These roles are assigned to Intersight users to perform end point operations such as GUI/CLI cross launch. :param end_point_roles: The end_point_roles of this IamAccount. - :type: list[MoMoRef] + :type: list[IamEndPointRoleRef] """ self._end_point_roles = end_point_roles @@ -390,9 +431,10 @@ def end_point_roles(self, end_point_roles): def idpreferences(self): """ Gets the idpreferences of this IamAccount. + System created IdPs configured for authentication in an account. By default Cisco IdP is created upon account creation. :return: The idpreferences of this IamAccount. - :rtype: list[MoMoRef] + :rtype: list[IamIdpReferenceRef] """ return self._idpreferences @@ -400,9 +442,10 @@ def idpreferences(self): def idpreferences(self, idpreferences): """ Sets the idpreferences of this IamAccount. + System created IdPs configured for authentication in an account. By default Cisco IdP is created upon account creation. :param idpreferences: The idpreferences of this IamAccount. - :type: list[MoMoRef] + :type: list[IamIdpReferenceRef] """ self._idpreferences = idpreferences @@ -411,9 +454,10 @@ def idpreferences(self, idpreferences): def idps(self): """ Gets the idps of this IamAccount. + IdPs configured for authentication in an account. :return: The idps of this IamAccount. - :rtype: list[MoMoRef] + :rtype: list[IamIdpRef] """ return self._idps @@ -421,9 +465,10 @@ def idps(self): def idps(self, idps): """ Sets the idps of this IamAccount. + IdPs configured for authentication in an account. :param idps: The idps of this IamAccount. - :type: list[MoMoRef] + :type: list[IamIdpRef] """ self._idps = idps @@ -432,6 +477,7 @@ def idps(self, idps): def name(self): """ Gets the name of this IamAccount. + Name of the account. By default, name is same as the MoID of the account. :return: The name of this IamAccount. :rtype: str @@ -442,6 +488,7 @@ def name(self): def name(self, name): """ Sets the name of this IamAccount. + Name of the account. By default, name is same as the MoID of the account. :param name: The name of this IamAccount. :type: str @@ -453,9 +500,10 @@ def name(self, name): def permissions(self): """ Gets the permissions of this IamAccount. + System defined permissions within an account. Permission provides a way to assign roles to a user or user group to perform operations on object hierarchy. :return: The permissions of this IamAccount. - :rtype: list[MoMoRef] + :rtype: list[IamPermissionRef] """ return self._permissions @@ -463,9 +511,10 @@ def permissions(self): def permissions(self, permissions): """ Sets the permissions of this IamAccount. + System defined permissions within an account. Permission provides a way to assign roles to a user or user group to perform operations on object hierarchy. :param permissions: The permissions of this IamAccount. - :type: list[MoMoRef] + :type: list[IamPermissionRef] """ self._permissions = permissions @@ -474,9 +523,10 @@ def permissions(self, permissions): def privilege_sets(self): """ Gets the privilege_sets of this IamAccount. + User defined privilege sets. Privilege set is a collection of privileges. Privilege sets are assigned to a user using roles. :return: The privilege_sets of this IamAccount. - :rtype: list[MoMoRef] + :rtype: list[IamPrivilegeSetRef] """ return self._privilege_sets @@ -484,9 +534,10 @@ def privilege_sets(self): def privilege_sets(self, privilege_sets): """ Sets the privilege_sets of this IamAccount. + User defined privilege sets. Privilege set is a collection of privileges. Privilege sets are assigned to a user using roles. :param privilege_sets: The privilege_sets of this IamAccount. - :type: list[MoMoRef] + :type: list[IamPrivilegeSetRef] """ self._privilege_sets = privilege_sets @@ -495,9 +546,10 @@ def privilege_sets(self, privilege_sets): def privileges(self): """ Gets the privileges of this IamAccount. + Account specific privileges. Privilege represents an action which can be performed in Intersight such as creating server profile, deleting a user etc. Privileges are assigned to a user using privilege sets and roles. :return: The privileges of this IamAccount. - :rtype: list[MoMoRef] + :rtype: list[IamPrivilegeRef] """ return self._privileges @@ -505,9 +557,10 @@ def privileges(self): def privileges(self, privileges): """ Sets the privileges of this IamAccount. + Account specific privileges. Privilege represents an action which can be performed in Intersight such as creating server profile, deleting a user etc. Privileges are assigned to a user using privilege sets and roles. :param privileges: The privileges of this IamAccount. - :type: list[MoMoRef] + :type: list[IamPrivilegeRef] """ self._privileges = privileges @@ -516,9 +569,10 @@ def privileges(self, privileges): def resource_limits(self): """ Gets the resource_limits of this IamAccount. + Represents user and user group related configuration limits. :return: The resource_limits of this IamAccount. - :rtype: MoMoRef + :rtype: IamResourceLimitsRef """ return self._resource_limits @@ -526,9 +580,10 @@ def resource_limits(self): def resource_limits(self, resource_limits): """ Sets the resource_limits of this IamAccount. + Represents user and user group related configuration limits. :param resource_limits: The resource_limits of this IamAccount. - :type: MoMoRef + :type: IamResourceLimitsRef """ self._resource_limits = resource_limits @@ -537,9 +592,10 @@ def resource_limits(self, resource_limits): def roles(self): """ Gets the roles of this IamAccount. + User defined roles created within an account. Role is a collection of privilege sets. Roles are assigned to user using permission object. :return: The roles of this IamAccount. - :rtype: list[MoMoRef] + :rtype: list[IamRoleRef] """ return self._roles @@ -547,83 +603,22 @@ def roles(self): def roles(self, roles): """ Sets the roles of this IamAccount. + User defined roles created within an account. Role is a collection of privilege sets. Roles are assigned to user using permission object. :param roles: The roles of this IamAccount. - :type: list[MoMoRef] + :type: list[IamRoleRef] """ self._roles = roles - @property - def root_user_email(self): - """ - Gets the root_user_email of this IamAccount. - - :return: The root_user_email of this IamAccount. - :rtype: str - """ - return self._root_user_email - - @root_user_email.setter - def root_user_email(self, root_user_email): - """ - Sets the root_user_email of this IamAccount. - - :param root_user_email: The root_user_email of this IamAccount. - :type: str - """ - - self._root_user_email = root_user_email - - @property - def root_user_id(self): - """ - Gets the root_user_id of this IamAccount. - - :return: The root_user_id of this IamAccount. - :rtype: str - """ - return self._root_user_id - - @root_user_id.setter - def root_user_id(self, root_user_id): - """ - Sets the root_user_id of this IamAccount. - - :param root_user_id: The root_user_id of this IamAccount. - :type: str - """ - - self._root_user_id = root_user_id - - @property - def root_user_name(self): - """ - Gets the root_user_name of this IamAccount. - - :return: The root_user_name of this IamAccount. - :rtype: str - """ - return self._root_user_name - - @root_user_name.setter - def root_user_name(self, root_user_name): - """ - Sets the root_user_name of this IamAccount. - - :param root_user_name: The root_user_name of this IamAccount. - :type: str - """ - - self._root_user_name = root_user_name - @property def session_limits(self): """ Gets the session_limits of this IamAccount. + Represents session related configuration limits. :return: The session_limits of this IamAccount. - :rtype: MoMoRef + :rtype: IamSessionLimitsRef """ return self._session_limits @@ -631,9 +626,10 @@ def session_limits(self): def session_limits(self, session_limits): """ Sets the session_limits of this IamAccount. + Represents session related configuration limits. :param session_limits: The session_limits of this IamAccount. - :type: MoMoRef + :type: IamSessionLimitsRef """ self._session_limits = session_limits @@ -642,6 +638,7 @@ def session_limits(self, session_limits): def status(self): """ Gets the status of this IamAccount. + Status of the account. This account remains inactive until a device is claimed to the account. :return: The status of this IamAccount. :rtype: str @@ -652,6 +649,7 @@ def status(self): def status(self, status): """ Sets the status of this IamAccount. + Status of the account. This account remains inactive until a device is claimed to the account. :param status: The status of this IamAccount. :type: str diff --git a/intersight/models/iam_account_list.py b/intersight/models/iam_account_list.py index c30ccdae..9541a709 100644 --- a/intersight/models/iam_account_list.py +++ b/intersight/models/iam_account_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_account_permissions.py b/intersight/models/iam_account_permissions.py new file mode 100644 index 00000000..5b827175 --- /dev/null +++ b/intersight/models/iam_account_permissions.py @@ -0,0 +1,209 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamAccountPermissions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_identifier': 'str', + 'account_name': 'str', + 'account_status': 'str', + 'permissions': 'list[IamPermissionReference]' + } + + attribute_map = { + 'account_identifier': 'AccountIdentifier', + 'account_name': 'AccountName', + 'account_status': 'AccountStatus', + 'permissions': 'Permissions' + } + + def __init__(self, account_identifier=None, account_name=None, account_status=None, permissions=None): + """ + IamAccountPermissions - a model defined in Swagger + """ + + self._account_identifier = None + self._account_name = None + self._account_status = None + self._permissions = None + + if account_identifier is not None: + self.account_identifier = account_identifier + if account_name is not None: + self.account_name = account_name + if account_status is not None: + self.account_status = account_status + if permissions is not None: + self.permissions = permissions + + @property + def account_identifier(self): + """ + Gets the account_identifier of this IamAccountPermissions. + MOID of the account which a user can select after authentication. + + :return: The account_identifier of this IamAccountPermissions. + :rtype: str + """ + return self._account_identifier + + @account_identifier.setter + def account_identifier(self, account_identifier): + """ + Sets the account_identifier of this IamAccountPermissions. + MOID of the account which a user can select after authentication. + + :param account_identifier: The account_identifier of this IamAccountPermissions. + :type: str + """ + + self._account_identifier = account_identifier + + @property + def account_name(self): + """ + Gets the account_name of this IamAccountPermissions. + Name of the account which a user can select after authentication. + + :return: The account_name of this IamAccountPermissions. + :rtype: str + """ + return self._account_name + + @account_name.setter + def account_name(self, account_name): + """ + Sets the account_name of this IamAccountPermissions. + Name of the account which a user can select after authentication. + + :param account_name: The account_name of this IamAccountPermissions. + :type: str + """ + + self._account_name = account_name + + @property + def account_status(self): + """ + Gets the account_status of this IamAccountPermissions. + Status of the account. Account remains inactive until a device is claimed to the account. + + :return: The account_status of this IamAccountPermissions. + :rtype: str + """ + return self._account_status + + @account_status.setter + def account_status(self, account_status): + """ + Sets the account_status of this IamAccountPermissions. + Status of the account. Account remains inactive until a device is claimed to the account. + + :param account_status: The account_status of this IamAccountPermissions. + :type: str + """ + + self._account_status = account_status + + @property + def permissions(self): + """ + Gets the permissions of this IamAccountPermissions. + Permissions within an account which a user can select after authentication. + + :return: The permissions of this IamAccountPermissions. + :rtype: list[IamPermissionReference] + """ + return self._permissions + + @permissions.setter + def permissions(self, permissions): + """ + Sets the permissions of this IamAccountPermissions. + Permissions within an account which a user can select after authentication. + + :param permissions: The permissions of this IamAccountPermissions. + :type: list[IamPermissionReference] + """ + + self._permissions = permissions + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamAccountPermissions): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_account_permissions_ref.py b/intersight/models/iam_account_permissions_ref.py new file mode 100644 index 00000000..2ccfc5ea --- /dev/null +++ b/intersight/models/iam_account_permissions_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamAccountPermissionsRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamAccountPermissionsRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamAccountPermissionsRef. + + :return: The moid of this IamAccountPermissionsRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamAccountPermissionsRef. + + :param moid: The moid of this IamAccountPermissionsRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamAccountPermissionsRef. + + :return: The object_type of this IamAccountPermissionsRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamAccountPermissionsRef. + + :param object_type: The object_type of this IamAccountPermissionsRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamAccountPermissionsRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_account_ref.py b/intersight/models/iam_account_ref.py new file mode 100644 index 00000000..4cba426f --- /dev/null +++ b/intersight/models/iam_account_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamAccountRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamAccountRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamAccountRef. + + :return: The moid of this IamAccountRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamAccountRef. + + :param moid: The moid of this IamAccountRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamAccountRef. + + :return: The object_type of this IamAccountRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamAccountRef. + + :param object_type: The object_type of this IamAccountRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamAccountRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_api_key.py b/intersight/models/iam_api_key.py index fafff61e..b476bc3d 100644 --- a/intersight/models/iam_api_key.py +++ b/intersight/models/iam_api_key.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,19 @@ class IamApiKey(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'permission': 'IamPermissionRef', 'private_key': 'str', 'purpose': 'str', - 'user': 'MoMoRef' + 'user': 'IamUserRef' } attribute_map = { @@ -55,12 +57,14 @@ class IamApiKey(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', + 'permission': 'Permission', 'private_key': 'PrivateKey', 'purpose': 'Purpose', 'user': 'User' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, private_key=None, purpose=None, user=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, permission=None, private_key=None, purpose=None, user=None): """ IamApiKey - a model defined in Swagger """ @@ -74,6 +78,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None + self._permission = None self._private_key = None self._purpose = None self._user = None @@ -96,6 +102,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context + if permission is not None: + self.permission = permission if private_key is not None: self.private_key = private_key if purpose is not None: @@ -133,7 +143,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamApiKey. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -144,7 +154,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamApiKey. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -271,7 +281,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamApiKey. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -282,7 +292,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamApiKey. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -291,7 +301,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamApiKey. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamApiKey. :rtype: list[MoTag] @@ -302,7 +312,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamApiKey. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamApiKey. :type: list[MoTag] @@ -310,11 +320,57 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamApiKey. + The versioning info for this managed object + + :return: The version_context of this IamApiKey. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamApiKey. + The versioning info for this managed object + + :param version_context: The version_context of this IamApiKey. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def permission(self): + """ + Gets the permission of this IamApiKey. + Permissions associated with the API key. Permission provides a way to assign roles to a user or user group to perform operations on object hierarchy. + + :return: The permission of this IamApiKey. + :rtype: IamPermissionRef + """ + return self._permission + + @permission.setter + def permission(self, permission): + """ + Sets the permission of this IamApiKey. + Permissions associated with the API key. Permission provides a way to assign roles to a user or user group to perform operations on object hierarchy. + + :param permission: The permission of this IamApiKey. + :type: IamPermissionRef + """ + + self._permission = permission + @property def private_key(self): """ Gets the private_key of this IamApiKey. - Holds private key for API key + Holds private key for API key. :return: The private_key of this IamApiKey. :rtype: str @@ -325,7 +381,7 @@ def private_key(self): def private_key(self, private_key): """ Sets the private_key of this IamApiKey. - Holds private key for API key + Holds private key for API key. :param private_key: The private_key of this IamApiKey. :type: str @@ -337,7 +393,7 @@ def private_key(self, private_key): def purpose(self): """ Gets the purpose of this IamApiKey. - Specifies the purpose of API Key + Specifies the purpose of API Key. :return: The purpose of this IamApiKey. :rtype: str @@ -348,7 +404,7 @@ def purpose(self): def purpose(self, purpose): """ Sets the purpose of this IamApiKey. - Specifies the purpose of API Key + Specifies the purpose of API Key. :param purpose: The purpose of this IamApiKey. :type: str @@ -362,7 +418,7 @@ def user(self): Gets the user of this IamApiKey. :return: The user of this IamApiKey. - :rtype: MoMoRef + :rtype: IamUserRef """ return self._user @@ -372,7 +428,7 @@ def user(self, user): Sets the user of this IamApiKey. :param user: The user of this IamApiKey. - :type: MoMoRef + :type: IamUserRef """ self._user = user diff --git a/intersight/models/iam_api_key_list.py b/intersight/models/iam_api_key_list.py index bae059e2..b1656d89 100644 --- a/intersight/models/iam_api_key_list.py +++ b/intersight/models/iam_api_key_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_api_key_ref.py b/intersight/models/iam_api_key_ref.py new file mode 100644 index 00000000..0d312025 --- /dev/null +++ b/intersight/models/iam_api_key_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamApiKeyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamApiKeyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamApiKeyRef. + + :return: The moid of this IamApiKeyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamApiKeyRef. + + :param moid: The moid of this IamApiKeyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamApiKeyRef. + + :return: The object_type of this IamApiKeyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamApiKeyRef. + + :param object_type: The object_type of this IamApiKeyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamApiKeyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_policy_meta.py b/intersight/models/iam_domain_group.py similarity index 51% rename from intersight/models/policy_policy_meta.py rename to intersight/models/iam_domain_group.py index 99ed2914..7ef84214 100644 --- a/intersight/models/policy_policy_meta.py +++ b/intersight/models/iam_domain_group.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class PolicyPolicyMeta(object): +class IamDomainGroup(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,20 +32,22 @@ class PolicyPolicyMeta(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', - 'attachable_service_objects': 'list[PolicyAttachableServiceObject]', - 'categories': 'list[PolicyCategory]', - 'hardware_platforms': 'list[PolicyHardwarePlatform]', - 'management_platforms': 'list[PolicyManagementPlatform]', - 'name': 'str' + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', + 'name': 'str', + 'partition1': 'int', + 'partition2': 'int', + 'partition3': 'int', + 'partition_key': 'str', + 'usage': 'int' } attribute_map = { @@ -58,17 +60,19 @@ class PolicyPolicyMeta(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account': 'Account', - 'attachable_service_objects': 'AttachableServiceObjects', - 'categories': 'Categories', - 'hardware_platforms': 'HardwarePlatforms', - 'management_platforms': 'ManagementPlatforms', - 'name': 'Name' + 'name': 'Name', + 'partition1': 'Partition1', + 'partition2': 'Partition2', + 'partition3': 'Partition3', + 'partition_key': 'PartitionKey', + 'usage': 'Usage' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, attachable_service_objects=None, categories=None, hardware_platforms=None, management_platforms=None, name=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, name=None, partition1=None, partition2=None, partition3=None, partition_key=None, usage=None): """ - PolicyPolicyMeta - a model defined in Swagger + IamDomainGroup - a model defined in Swagger """ self._account_moid = None @@ -80,12 +84,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account = None - self._attachable_service_objects = None - self._categories = None - self._hardware_platforms = None - self._management_platforms = None self._name = None + self._partition1 = None + self._partition2 = None + self._partition3 = None + self._partition_key = None + self._usage = None if account_moid is not None: self.account_moid = account_moid @@ -105,26 +111,30 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account is not None: self.account = account - if attachable_service_objects is not None: - self.attachable_service_objects = attachable_service_objects - if categories is not None: - self.categories = categories - if hardware_platforms is not None: - self.hardware_platforms = hardware_platforms - if management_platforms is not None: - self.management_platforms = management_platforms if name is not None: self.name = name + if partition1 is not None: + self.partition1 = partition1 + if partition2 is not None: + self.partition2 = partition2 + if partition3 is not None: + self.partition3 = partition3 + if partition_key is not None: + self.partition_key = partition_key + if usage is not None: + self.usage = usage @property def account_moid(self): """ - Gets the account_moid of this PolicyPolicyMeta. + Gets the account_moid of this IamDomainGroup. The Account ID for this managed object. - :return: The account_moid of this PolicyPolicyMeta. + :return: The account_moid of this IamDomainGroup. :rtype: str """ return self._account_moid @@ -132,10 +142,10 @@ def account_moid(self): @account_moid.setter def account_moid(self, account_moid): """ - Sets the account_moid of this PolicyPolicyMeta. + Sets the account_moid of this IamDomainGroup. The Account ID for this managed object. - :param account_moid: The account_moid of this PolicyPolicyMeta. + :param account_moid: The account_moid of this IamDomainGroup. :type: str """ @@ -144,22 +154,22 @@ def account_moid(self, account_moid): @property def ancestors(self): """ - Gets the ancestors of this PolicyPolicyMeta. + Gets the ancestors of this IamDomainGroup. Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - :return: The ancestors of this PolicyPolicyMeta. - :rtype: list[MoMoRef] + :return: The ancestors of this IamDomainGroup. + :rtype: list[MoBaseMoRef] """ return self._ancestors @ancestors.setter def ancestors(self, ancestors): """ - Sets the ancestors of this PolicyPolicyMeta. + Sets the ancestors of this IamDomainGroup. Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - :param ancestors: The ancestors of this PolicyPolicyMeta. - :type: list[MoMoRef] + :param ancestors: The ancestors of this IamDomainGroup. + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -167,10 +177,10 @@ def ancestors(self, ancestors): @property def create_time(self): """ - Gets the create_time of this PolicyPolicyMeta. + Gets the create_time of this IamDomainGroup. The time when this managed object was created. - :return: The create_time of this PolicyPolicyMeta. + :return: The create_time of this IamDomainGroup. :rtype: datetime """ return self._create_time @@ -178,10 +188,10 @@ def create_time(self): @create_time.setter def create_time(self, create_time): """ - Sets the create_time of this PolicyPolicyMeta. + Sets the create_time of this IamDomainGroup. The time when this managed object was created. - :param create_time: The create_time of this PolicyPolicyMeta. + :param create_time: The create_time of this IamDomainGroup. :type: datetime """ @@ -190,10 +200,10 @@ def create_time(self, create_time): @property def mod_time(self): """ - Gets the mod_time of this PolicyPolicyMeta. + Gets the mod_time of this IamDomainGroup. The time when this managed object was last modified. - :return: The mod_time of this PolicyPolicyMeta. + :return: The mod_time of this IamDomainGroup. :rtype: datetime """ return self._mod_time @@ -201,10 +211,10 @@ def mod_time(self): @mod_time.setter def mod_time(self, mod_time): """ - Sets the mod_time of this PolicyPolicyMeta. + Sets the mod_time of this IamDomainGroup. The time when this managed object was last modified. - :param mod_time: The mod_time of this PolicyPolicyMeta. + :param mod_time: The mod_time of this IamDomainGroup. :type: datetime """ @@ -213,10 +223,10 @@ def mod_time(self, mod_time): @property def moid(self): """ - Gets the moid of this PolicyPolicyMeta. + Gets the moid of this IamDomainGroup. A unique identifier of this Managed Object instance. - :return: The moid of this PolicyPolicyMeta. + :return: The moid of this IamDomainGroup. :rtype: str """ return self._moid @@ -224,10 +234,10 @@ def moid(self): @moid.setter def moid(self, moid): """ - Sets the moid of this PolicyPolicyMeta. + Sets the moid of this IamDomainGroup. A unique identifier of this Managed Object instance. - :param moid: The moid of this PolicyPolicyMeta. + :param moid: The moid of this IamDomainGroup. :type: str """ @@ -236,10 +246,10 @@ def moid(self, moid): @property def object_type(self): """ - Gets the object_type of this PolicyPolicyMeta. + Gets the object_type of this IamDomainGroup. The fully-qualified type of this managed object, e.g. the class name. - :return: The object_type of this PolicyPolicyMeta. + :return: The object_type of this IamDomainGroup. :rtype: str """ return self._object_type @@ -247,10 +257,10 @@ def object_type(self): @object_type.setter def object_type(self, object_type): """ - Sets the object_type of this PolicyPolicyMeta. + Sets the object_type of this IamDomainGroup. The fully-qualified type of this managed object, e.g. the class name. - :param object_type: The object_type of this PolicyPolicyMeta. + :param object_type: The object_type of this IamDomainGroup. :type: str """ @@ -259,10 +269,10 @@ def object_type(self, object_type): @property def owners(self): """ - Gets the owners of this PolicyPolicyMeta. + Gets the owners of this IamDomainGroup. An array of owners which represent effective ownership of this object. - :return: The owners of this PolicyPolicyMeta. + :return: The owners of this IamDomainGroup. :rtype: list[str] """ return self._owners @@ -270,10 +280,10 @@ def owners(self): @owners.setter def owners(self, owners): """ - Sets the owners of this PolicyPolicyMeta. + Sets the owners of this IamDomainGroup. An array of owners which represent effective ownership of this object. - :param owners: The owners of this PolicyPolicyMeta. + :param owners: The owners of this IamDomainGroup. :type: list[str] """ @@ -282,22 +292,22 @@ def owners(self, owners): @property def parent(self): """ - Gets the parent of this PolicyPolicyMeta. + Gets the parent of this IamDomainGroup. The direct ancestor of this managed object in the containment hierarchy. - :return: The parent of this PolicyPolicyMeta. - :rtype: MoMoRef + :return: The parent of this IamDomainGroup. + :rtype: MoBaseMoRef """ return self._parent @parent.setter def parent(self, parent): """ - Sets the parent of this PolicyPolicyMeta. + Sets the parent of this IamDomainGroup. The direct ancestor of this managed object in the containment hierarchy. - :param parent: The parent of this PolicyPolicyMeta. - :type: MoMoRef + :param parent: The parent of this IamDomainGroup. + :type: MoBaseMoRef """ self._parent = parent @@ -305,10 +315,10 @@ def parent(self, parent): @property def tags(self): """ - Gets the tags of this PolicyPolicyMeta. - An array of tags, which allow to add key, value meta-data to managed objects. + Gets the tags of this IamDomainGroup. + An array of tags, which allow to add key, value meta-data to managed objects. - :return: The tags of this PolicyPolicyMeta. + :return: The tags of this IamDomainGroup. :rtype: list[MoTag] """ return self._tags @@ -316,150 +326,190 @@ def tags(self): @tags.setter def tags(self, tags): """ - Sets the tags of this PolicyPolicyMeta. - An array of tags, which allow to add key, value meta-data to managed objects. + Sets the tags of this IamDomainGroup. + An array of tags, which allow to add key, value meta-data to managed objects. - :param tags: The tags of this PolicyPolicyMeta. + :param tags: The tags of this IamDomainGroup. :type: list[MoTag] """ self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamDomainGroup. + The versioning info for this managed object + + :return: The version_context of this IamDomainGroup. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamDomainGroup. + The versioning info for this managed object + + :param version_context: The version_context of this IamDomainGroup. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def account(self): """ - Gets the account of this PolicyPolicyMeta. + Gets the account of this IamDomainGroup. - :return: The account of this PolicyPolicyMeta. - :rtype: MoMoRef + :return: The account of this IamDomainGroup. + :rtype: IamAccountRef """ return self._account @account.setter def account(self, account): """ - Sets the account of this PolicyPolicyMeta. + Sets the account of this IamDomainGroup. - :param account: The account of this PolicyPolicyMeta. - :type: MoMoRef + :param account: The account of this IamDomainGroup. + :type: IamAccountRef """ self._account = account @property - def attachable_service_objects(self): + def name(self): """ - Gets the attachable_service_objects of this PolicyPolicyMeta. - Name of foreign Mo's that Policy can attach to + Gets the name of this IamDomainGroup. - :return: The attachable_service_objects of this PolicyPolicyMeta. - :rtype: list[PolicyAttachableServiceObject] + :return: The name of this IamDomainGroup. + :rtype: str """ - return self._attachable_service_objects + return self._name - @attachable_service_objects.setter - def attachable_service_objects(self, attachable_service_objects): + @name.setter + def name(self, name): """ - Sets the attachable_service_objects of this PolicyPolicyMeta. - Name of foreign Mo's that Policy can attach to + Sets the name of this IamDomainGroup. - :param attachable_service_objects: The attachable_service_objects of this PolicyPolicyMeta. - :type: list[PolicyAttachableServiceObject] + :param name: The name of this IamDomainGroup. + :type: str """ - self._attachable_service_objects = attachable_service_objects + self._name = name @property - def categories(self): + def partition1(self): """ - Gets the categories of this PolicyPolicyMeta. - Category of this Policy + Gets the partition1 of this IamDomainGroup. + the partition number of the domain group for 1st partition count - :return: The categories of this PolicyPolicyMeta. - :rtype: list[PolicyCategory] + :return: The partition1 of this IamDomainGroup. + :rtype: int """ - return self._categories + return self._partition1 - @categories.setter - def categories(self, categories): + @partition1.setter + def partition1(self, partition1): """ - Sets the categories of this PolicyPolicyMeta. - Category of this Policy + Sets the partition1 of this IamDomainGroup. + the partition number of the domain group for 1st partition count - :param categories: The categories of this PolicyPolicyMeta. - :type: list[PolicyCategory] + :param partition1: The partition1 of this IamDomainGroup. + :type: int """ - self._categories = categories + self._partition1 = partition1 @property - def hardware_platforms(self): + def partition2(self): """ - Gets the hardware_platforms of this PolicyPolicyMeta. - Hardware Platform Constraints + Gets the partition2 of this IamDomainGroup. + the partition number of the domain group for 2nd partition count - :return: The hardware_platforms of this PolicyPolicyMeta. - :rtype: list[PolicyHardwarePlatform] + :return: The partition2 of this IamDomainGroup. + :rtype: int """ - return self._hardware_platforms + return self._partition2 - @hardware_platforms.setter - def hardware_platforms(self, hardware_platforms): + @partition2.setter + def partition2(self, partition2): """ - Sets the hardware_platforms of this PolicyPolicyMeta. - Hardware Platform Constraints + Sets the partition2 of this IamDomainGroup. + the partition number of the domain group for 2nd partition count - :param hardware_platforms: The hardware_platforms of this PolicyPolicyMeta. - :type: list[PolicyHardwarePlatform] + :param partition2: The partition2 of this IamDomainGroup. + :type: int """ - self._hardware_platforms = hardware_platforms + self._partition2 = partition2 @property - def management_platforms(self): + def partition3(self): """ - Gets the management_platforms of this PolicyPolicyMeta. - The Management Platform Type this Policy applies to + Gets the partition3 of this IamDomainGroup. + the partition number of the domain group for 3rd partition count - :return: The management_platforms of this PolicyPolicyMeta. - :rtype: list[PolicyManagementPlatform] + :return: The partition3 of this IamDomainGroup. + :rtype: int """ - return self._management_platforms + return self._partition3 - @management_platforms.setter - def management_platforms(self, management_platforms): + @partition3.setter + def partition3(self, partition3): """ - Sets the management_platforms of this PolicyPolicyMeta. - The Management Platform Type this Policy applies to + Sets the partition3 of this IamDomainGroup. + the partition number of the domain group for 3rd partition count - :param management_platforms: The management_platforms of this PolicyPolicyMeta. - :type: list[PolicyManagementPlatform] + :param partition3: The partition3 of this IamDomainGroup. + :type: int """ - self._management_platforms = management_platforms + self._partition3 = partition3 @property - def name(self): + def partition_key(self): """ - Gets the name of this PolicyPolicyMeta. - Qualified Name of the Policy + Gets the partition_key of this IamDomainGroup. - :return: The name of this PolicyPolicyMeta. + :return: The partition_key of this IamDomainGroup. :rtype: str """ - return self._name + return self._partition_key - @name.setter - def name(self, name): + @partition_key.setter + def partition_key(self, partition_key): """ - Sets the name of this PolicyPolicyMeta. - Qualified Name of the Policy + Sets the partition_key of this IamDomainGroup. - :param name: The name of this PolicyPolicyMeta. + :param partition_key: The partition_key of this IamDomainGroup. :type: str """ - self._name = name + self._partition_key = partition_key + + @property + def usage(self): + """ + Gets the usage of this IamDomainGroup. + + :return: The usage of this IamDomainGroup. + :rtype: int + """ + return self._usage + + @usage.setter + def usage(self, usage): + """ + Sets the usage of this IamDomainGroup. + + :param usage: The usage of this IamDomainGroup. + :type: int + """ + + self._usage = usage def to_dict(self): """ @@ -503,7 +553,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, PolicyPolicyMeta): + if not isinstance(other, IamDomainGroup): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/iam_domain_group_list.py b/intersight/models/iam_domain_group_list.py new file mode 100644 index 00000000..338c26e1 --- /dev/null +++ b/intersight/models/iam_domain_group_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamDomainGroupList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[IamDomainGroup]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + IamDomainGroupList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this IamDomainGroupList. + The number of iamDomainGroups matching your request in total for all pages. + + :return: The count of this IamDomainGroupList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this IamDomainGroupList. + The number of iamDomainGroups matching your request in total for all pages. + + :param count: The count of this IamDomainGroupList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this IamDomainGroupList. + The array of iamDomainGroups matching your request. + + :return: The results of this IamDomainGroupList. + :rtype: list[IamDomainGroup] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this IamDomainGroupList. + The array of iamDomainGroups matching your request. + + :param results: The results of this IamDomainGroupList. + :type: list[IamDomainGroup] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamDomainGroupList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_domain_group_ref.py b/intersight/models/iam_domain_group_ref.py new file mode 100644 index 00000000..d6057137 --- /dev/null +++ b/intersight/models/iam_domain_group_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamDomainGroupRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamDomainGroupRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamDomainGroupRef. + + :return: The moid of this IamDomainGroupRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamDomainGroupRef. + + :param moid: The moid of this IamDomainGroupRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamDomainGroupRef. + + :return: The object_type of this IamDomainGroupRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamDomainGroupRef. + + :param object_type: The object_type of this IamDomainGroupRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamDomainGroupRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_end_point_password_properties.py b/intersight/models/iam_end_point_password_properties.py index c69ff093..7c60fff0 100644 --- a/intersight/models/iam_end_point_password_properties.py +++ b/intersight/models/iam_end_point_password_properties.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -100,7 +100,7 @@ def enable_password_expiry(self, enable_password_expiry): def enforce_strong_password(self): """ Gets the enforce_strong_password of this IamEndPointPasswordProperties. - Enables a strong password policy + Enables a strong password policy Strong password requirements: A. The password must have a minimum of 8 and a maximum of 20 characters. B. The password must not contain the User's Name. C. The password must contain characters from three of the following four categories. 1) English uppercase characters (A through Z). 2) English lowercase characters (a through z). 3) Base 10 digits (0 through 9). 4) Non-alphabetic characters (!, @, #, $, %, ^, &, *, -, _, +, =). :return: The enforce_strong_password of this IamEndPointPasswordProperties. :rtype: bool @@ -111,7 +111,7 @@ def enforce_strong_password(self): def enforce_strong_password(self, enforce_strong_password): """ Sets the enforce_strong_password of this IamEndPointPasswordProperties. - Enables a strong password policy + Enables a strong password policy Strong password requirements: A. The password must have a minimum of 8 and a maximum of 20 characters. B. The password must not contain the User's Name. C. The password must contain characters from three of the following four categories. 1) English uppercase characters (A through Z). 2) English lowercase characters (a through z). 3) Base 10 digits (0 through 9). 4) Non-alphabetic characters (!, @, #, $, %, ^, &, *, -, _, +, =). :param enforce_strong_password: The enforce_strong_password of this IamEndPointPasswordProperties. :type: bool @@ -169,7 +169,7 @@ def notification_period(self, notification_period): def password_expiry_duration(self): """ Gets the password_expiry_duration of this IamEndPointPasswordProperties. - Set time period for password expiration + Set time period for password expiration. Value should be greater than notification period and grace period. :return: The password_expiry_duration of this IamEndPointPasswordProperties. :rtype: int @@ -180,7 +180,7 @@ def password_expiry_duration(self): def password_expiry_duration(self, password_expiry_duration): """ Sets the password_expiry_duration of this IamEndPointPasswordProperties. - Set time period for password expiration + Set time period for password expiration. Value should be greater than notification period and grace period. :param password_expiry_duration: The password_expiry_duration of this IamEndPointPasswordProperties. :type: int @@ -192,7 +192,7 @@ def password_expiry_duration(self, password_expiry_duration): def password_history(self): """ Gets the password_history of this IamEndPointPasswordProperties. - Tracks password change history. Specifies in number of instances, that the new password was already used + Tracks password change history. Specifies in number of instances, that the new password was already used. :return: The password_history of this IamEndPointPasswordProperties. :rtype: int @@ -203,7 +203,7 @@ def password_history(self): def password_history(self, password_history): """ Sets the password_history of this IamEndPointPasswordProperties. - Tracks password change history. Specifies in number of instances, that the new password was already used + Tracks password change history. Specifies in number of instances, that the new password was already used. :param password_history: The password_history of this IamEndPointPasswordProperties. :type: int diff --git a/intersight/models/iam_end_point_password_properties_ref.py b/intersight/models/iam_end_point_password_properties_ref.py new file mode 100644 index 00000000..960534d7 --- /dev/null +++ b/intersight/models/iam_end_point_password_properties_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamEndPointPasswordPropertiesRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamEndPointPasswordPropertiesRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamEndPointPasswordPropertiesRef. + + :return: The moid of this IamEndPointPasswordPropertiesRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamEndPointPasswordPropertiesRef. + + :param moid: The moid of this IamEndPointPasswordPropertiesRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamEndPointPasswordPropertiesRef. + + :return: The object_type of this IamEndPointPasswordPropertiesRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamEndPointPasswordPropertiesRef. + + :param object_type: The object_type of this IamEndPointPasswordPropertiesRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamEndPointPasswordPropertiesRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_end_point_privilege.py b/intersight/models/iam_end_point_privilege.py index d494cc5f..774c6790 100644 --- a/intersight/models/iam_end_point_privilege.py +++ b/intersight/models/iam_end_point_privilege.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,18 @@ class IamEndPointPrivilege(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'system': 'MoMoRef', + 'system': 'IamSystemRef', 'type': 'str' } @@ -56,13 +57,14 @@ class IamEndPointPrivilege(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'system': 'System', 'type': 'Type' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, system=None, type=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, system=None, type='null'): """ IamEndPointPrivilege - a model defined in Swagger """ @@ -76,6 +78,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._system = None @@ -99,6 +102,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -138,7 +143,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamEndPointPrivilege. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +154,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamEndPointPrivilege. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +281,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamEndPointPrivilege. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +292,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamEndPointPrivilege. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -296,7 +301,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamEndPointPrivilege. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamEndPointPrivilege. :rtype: list[MoTag] @@ -307,7 +312,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamEndPointPrivilege. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamEndPointPrivilege. :type: list[MoTag] @@ -315,11 +320,34 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamEndPointPrivilege. + The versioning info for this managed object + + :return: The version_context of this IamEndPointPrivilege. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamEndPointPrivilege. + The versioning info for this managed object + + :param version_context: The version_context of this IamEndPointPrivilege. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ Gets the description of this IamEndPointPrivilege. - Description about functionality of this privilege + Description about functionality of this privilege. :return: The description of this IamEndPointPrivilege. :rtype: str @@ -330,7 +358,7 @@ def description(self): def description(self, description): """ Sets the description of this IamEndPointPrivilege. - Description about functionality of this privilege + Description about functionality of this privilege. :param description: The description of this IamEndPointPrivilege. :type: str @@ -342,7 +370,7 @@ def description(self, description): def name(self): """ Gets the name of this IamEndPointPrivilege. - Name of the end point privilege + Name of the end point privilege. :return: The name of this IamEndPointPrivilege. :rtype: str @@ -353,7 +381,7 @@ def name(self): def name(self, name): """ Sets the name of this IamEndPointPrivilege. - Name of the end point privilege + Name of the end point privilege. :param name: The name of this IamEndPointPrivilege. :type: str @@ -367,7 +395,7 @@ def system(self): Gets the system of this IamEndPointPrivilege. :return: The system of this IamEndPointPrivilege. - :rtype: MoMoRef + :rtype: IamSystemRef """ return self._system @@ -377,7 +405,7 @@ def system(self, system): Sets the system of this IamEndPointPrivilege. :param system: The system of this IamEndPointPrivilege. - :type: MoMoRef + :type: IamSystemRef """ self._system = system @@ -386,7 +414,7 @@ def system(self, system): def type(self): """ Gets the type of this IamEndPointPrivilege. - Type of the end point + Type of the end point such as UCSFI, IMC, etc. :return: The type of this IamEndPointPrivilege. :rtype: str @@ -397,11 +425,17 @@ def type(self): def type(self, type): """ Sets the type of this IamEndPointPrivilege. - Type of the end point + Type of the end point such as UCSFI, IMC, etc. :param type: The type of this IamEndPointPrivilege. :type: str """ + allowed_values = ["", "APIC", "UCSFI", "IMC", "IMCM4", "IMCM5", "HX", "UCSD", "IntersightAppliance", "PureStorage"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" + .format(type, allowed_values) + ) self._type = type diff --git a/intersight/models/iam_end_point_privilege_list.py b/intersight/models/iam_end_point_privilege_list.py index 72d2f2c1..eab4dc67 100644 --- a/intersight/models/iam_end_point_privilege_list.py +++ b/intersight/models/iam_end_point_privilege_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_end_point_privilege_ref.py b/intersight/models/iam_end_point_privilege_ref.py new file mode 100644 index 00000000..e37a834c --- /dev/null +++ b/intersight/models/iam_end_point_privilege_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamEndPointPrivilegeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamEndPointPrivilegeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamEndPointPrivilegeRef. + + :return: The moid of this IamEndPointPrivilegeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamEndPointPrivilegeRef. + + :param moid: The moid of this IamEndPointPrivilegeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamEndPointPrivilegeRef. + + :return: The object_type of this IamEndPointPrivilegeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamEndPointPrivilegeRef. + + :param object_type: The object_type of this IamEndPointPrivilegeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamEndPointPrivilegeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_end_point_role.py b/intersight/models/iam_end_point_role.py index 051fa7f2..64877dcc 100644 --- a/intersight/models/iam_end_point_role.py +++ b/intersight/models/iam_end_point_role.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,19 +32,20 @@ class IamEndPointRole(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', - 'end_point_privileges': 'list[MoMoRef]', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', + 'end_point_privileges': 'list[IamEndPointPrivilegeRef]', 'name': 'str', 'role_type': 'str', - 'system': 'MoMoRef', + 'system': 'IamSystemRef', 'type': 'str' } @@ -58,6 +59,7 @@ class IamEndPointRole(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account': 'Account', 'end_point_privileges': 'EndPointPrivileges', 'name': 'Name', @@ -66,7 +68,7 @@ class IamEndPointRole(object): 'type': 'Type' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, end_point_privileges=None, name=None, role_type=None, system=None, type=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, end_point_privileges=None, name=None, role_type=None, system=None, type='null'): """ IamEndPointRole - a model defined in Swagger """ @@ -80,6 +82,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account = None self._end_point_privileges = None self._name = None @@ -105,6 +108,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account is not None: self.account = account if end_point_privileges is not None: @@ -148,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamEndPointRole. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamEndPointRole. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamEndPointRole. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamEndPointRole. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -306,7 +311,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamEndPointRole. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamEndPointRole. :rtype: list[MoTag] @@ -317,7 +322,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamEndPointRole. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamEndPointRole. :type: list[MoTag] @@ -325,13 +330,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamEndPointRole. + The versioning info for this managed object + + :return: The version_context of this IamEndPointRole. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamEndPointRole. + The versioning info for this managed object + + :param version_context: The version_context of this IamEndPointRole. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def account(self): """ Gets the account of this IamEndPointRole. :return: The account of this IamEndPointRole. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -341,7 +369,7 @@ def account(self, account): Sets the account of this IamEndPointRole. :param account: The account of this IamEndPointRole. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -350,9 +378,10 @@ def account(self, account): def end_point_privileges(self): """ Gets the end_point_privileges of this IamEndPointRole. + Privileges assigned to this end point role. These privileges are assigned to users using end point roles to perform operations such as GUI/CLI cross launch. :return: The end_point_privileges of this IamEndPointRole. - :rtype: list[MoMoRef] + :rtype: list[IamEndPointPrivilegeRef] """ return self._end_point_privileges @@ -360,9 +389,10 @@ def end_point_privileges(self): def end_point_privileges(self, end_point_privileges): """ Sets the end_point_privileges of this IamEndPointRole. + Privileges assigned to this end point role. These privileges are assigned to users using end point roles to perform operations such as GUI/CLI cross launch. :param end_point_privileges: The end_point_privileges of this IamEndPointRole. - :type: list[MoMoRef] + :type: list[IamEndPointPrivilegeRef] """ self._end_point_privileges = end_point_privileges @@ -371,7 +401,7 @@ def end_point_privileges(self, end_point_privileges): def name(self): """ Gets the name of this IamEndPointRole. - Name of the end point role + Name of the end point role. :return: The name of this IamEndPointRole. :rtype: str @@ -382,7 +412,7 @@ def name(self): def name(self, name): """ Sets the name of this IamEndPointRole. - Name of the end point role + Name of the end point role. :param name: The name of this IamEndPointRole. :type: str @@ -394,7 +424,7 @@ def name(self, name): def role_type(self): """ Gets the role_type of this IamEndPointRole. - Used to tags roles as special default role types common across endpoints + Used to specify tags to roles such as ep-admin, ep-readonly. :return: The role_type of this IamEndPointRole. :rtype: str @@ -405,7 +435,7 @@ def role_type(self): def role_type(self, role_type): """ Sets the role_type of this IamEndPointRole. - Used to tags roles as special default role types common across endpoints + Used to specify tags to roles such as ep-admin, ep-readonly. :param role_type: The role_type of this IamEndPointRole. :type: str @@ -419,7 +449,7 @@ def system(self): Gets the system of this IamEndPointRole. :return: The system of this IamEndPointRole. - :rtype: MoMoRef + :rtype: IamSystemRef """ return self._system @@ -429,7 +459,7 @@ def system(self, system): Sets the system of this IamEndPointRole. :param system: The system of this IamEndPointRole. - :type: MoMoRef + :type: IamSystemRef """ self._system = system @@ -438,7 +468,7 @@ def system(self, system): def type(self): """ Gets the type of this IamEndPointRole. - Type of the end point + Type of the end point such as UCSFI, IMC etc. :return: The type of this IamEndPointRole. :rtype: str @@ -449,11 +479,17 @@ def type(self): def type(self, type): """ Sets the type of this IamEndPointRole. - Type of the end point + Type of the end point such as UCSFI, IMC etc. :param type: The type of this IamEndPointRole. :type: str """ + allowed_values = ["", "APIC", "UCSFI", "IMC", "IMCM4", "IMCM5", "HX", "UCSD", "IntersightAppliance", "PureStorage"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" + .format(type, allowed_values) + ) self._type = type diff --git a/intersight/models/iam_end_point_role_list.py b/intersight/models/iam_end_point_role_list.py index 148e2730..0838caa0 100644 --- a/intersight/models/iam_end_point_role_list.py +++ b/intersight/models/iam_end_point_role_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_end_point_role_ref.py b/intersight/models/iam_end_point_role_ref.py new file mode 100644 index 00000000..26c94361 --- /dev/null +++ b/intersight/models/iam_end_point_role_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamEndPointRoleRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamEndPointRoleRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamEndPointRoleRef. + + :return: The moid of this IamEndPointRoleRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamEndPointRoleRef. + + :param moid: The moid of this IamEndPointRoleRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamEndPointRoleRef. + + :return: The object_type of this IamEndPointRoleRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamEndPointRoleRef. + + :param object_type: The object_type of this IamEndPointRoleRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamEndPointRoleRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_end_point_user.py b/intersight/models/iam_end_point_user.py index b4132a45..08199499 100644 --- a/intersight/models/iam_end_point_user.py +++ b/intersight/models/iam_end_point_user.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,18 @@ class IamEndPointUser(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'end_point_user_role': 'list[MoMoRef]', + 'version_context': 'MoVersionContext', + 'end_point_user_role': 'list[IamEndPointUserRoleRef]', 'name': 'str', - 'organization': 'MoMoRef' + 'organization': 'IamAccountRef' } attribute_map = { @@ -55,12 +56,13 @@ class IamEndPointUser(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'end_point_user_role': 'EndPointUserRole', 'name': 'Name', 'organization': 'Organization' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, end_point_user_role=None, name=None, organization=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, end_point_user_role=None, name=None, organization=None): """ IamEndPointUser - a model defined in Swagger """ @@ -74,6 +76,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._end_point_user_role = None self._name = None self._organization = None @@ -96,6 +99,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if end_point_user_role is not None: self.end_point_user_role = end_point_user_role if name is not None: @@ -133,7 +138,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamEndPointUser. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -144,7 +149,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamEndPointUser. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -271,7 +276,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamEndPointUser. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -282,7 +287,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamEndPointUser. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -291,7 +296,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamEndPointUser. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamEndPointUser. :rtype: list[MoTag] @@ -302,7 +307,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamEndPointUser. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamEndPointUser. :type: list[MoTag] @@ -310,13 +315,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamEndPointUser. + The versioning info for this managed object + + :return: The version_context of this IamEndPointUser. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamEndPointUser. + The versioning info for this managed object + + :param version_context: The version_context of this IamEndPointUser. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def end_point_user_role(self): """ Gets the end_point_user_role of this IamEndPointUser. :return: The end_point_user_role of this IamEndPointUser. - :rtype: list[MoMoRef] + :rtype: list[IamEndPointUserRoleRef] """ return self._end_point_user_role @@ -326,7 +354,7 @@ def end_point_user_role(self, end_point_user_role): Sets the end_point_user_role of this IamEndPointUser. :param end_point_user_role: The end_point_user_role of this IamEndPointUser. - :type: list[MoMoRef] + :type: list[IamEndPointUserRoleRef] """ self._end_point_user_role = end_point_user_role @@ -335,7 +363,7 @@ def end_point_user_role(self, end_point_user_role): def name(self): """ Gets the name of this IamEndPointUser. - Username of the endpoint user + Username :return: The name of this IamEndPointUser. :rtype: str @@ -346,7 +374,7 @@ def name(self): def name(self, name): """ Sets the name of this IamEndPointUser. - Username of the endpoint user + Username :param name: The name of this IamEndPointUser. :type: str @@ -361,7 +389,7 @@ def organization(self): Organization :return: The organization of this IamEndPointUser. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -372,7 +400,7 @@ def organization(self, organization): Organization :param organization: The organization of this IamEndPointUser. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization diff --git a/intersight/models/iam_end_point_user_deploy_task_ref.py b/intersight/models/iam_end_point_user_deploy_task_ref.py new file mode 100644 index 00000000..934133f9 --- /dev/null +++ b/intersight/models/iam_end_point_user_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamEndPointUserDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamEndPointUserDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamEndPointUserDeployTaskRef. + + :return: The moid of this IamEndPointUserDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamEndPointUserDeployTaskRef. + + :param moid: The moid of this IamEndPointUserDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamEndPointUserDeployTaskRef. + + :return: The object_type of this IamEndPointUserDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamEndPointUserDeployTaskRef. + + :param object_type: The object_type of this IamEndPointUserDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamEndPointUserDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_end_point_user_list.py b/intersight/models/iam_end_point_user_list.py index 0d21c532..01b5b489 100644 --- a/intersight/models/iam_end_point_user_list.py +++ b/intersight/models/iam_end_point_user_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_end_point_user_policy.py b/intersight/models/iam_end_point_user_policy.py index 5523d56f..95608ae8 100644 --- a/intersight/models/iam_end_point_user_policy.py +++ b/intersight/models/iam_end_point_user_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,21 @@ class IamEndPointUserPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'end_point_user_roles': 'list[MoMoRef]', - 'organization': 'MoMoRef', + 'end_point_user_roles': 'list[IamEndPointUserRoleRef]', + 'organization': 'IamAccountRef', 'password_properties': 'IamEndPointPasswordProperties', - 'profiles': 'list[MoMoRef]' + 'profiles': 'list[PolicyAbstractConfigProfileRef]' } attribute_map = { @@ -58,6 +59,7 @@ class IamEndPointUserPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'end_point_user_roles': 'EndPointUserRoles', @@ -66,7 +68,7 @@ class IamEndPointUserPolicy(object): 'profiles': 'Profiles' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, end_point_user_roles=None, organization=None, password_properties=None, profiles=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, end_point_user_roles=None, organization=None, password_properties=None, profiles=None): """ IamEndPointUserPolicy - a model defined in Swagger """ @@ -80,6 +82,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._end_point_user_roles = None @@ -105,6 +108,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -148,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamEndPointUserPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamEndPointUserPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamEndPointUserPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamEndPointUserPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -306,7 +311,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamEndPointUserPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamEndPointUserPolicy. :rtype: list[MoTag] @@ -317,7 +322,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamEndPointUserPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamEndPointUserPolicy. :type: list[MoTag] @@ -325,6 +330,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamEndPointUserPolicy. + The versioning info for this managed object + + :return: The version_context of this IamEndPointUserPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamEndPointUserPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this IamEndPointUserPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -378,7 +406,7 @@ def end_point_user_roles(self): Relationship to the collection of Endpoint user roles :return: The end_point_user_roles of this IamEndPointUserPolicy. - :rtype: list[MoMoRef] + :rtype: list[IamEndPointUserRoleRef] """ return self._end_point_user_roles @@ -389,7 +417,7 @@ def end_point_user_roles(self, end_point_user_roles): Relationship to the collection of Endpoint user roles :param end_point_user_roles: The end_point_user_roles of this IamEndPointUserPolicy. - :type: list[MoMoRef] + :type: list[IamEndPointUserRoleRef] """ self._end_point_user_roles = end_point_user_roles @@ -401,7 +429,7 @@ def organization(self): Organization :return: The organization of this IamEndPointUserPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -412,7 +440,7 @@ def organization(self, organization): Organization :param organization: The organization of this IamEndPointUserPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -447,7 +475,7 @@ def profiles(self): Relationship to the server profile object :return: The profiles of this IamEndPointUserPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -458,7 +486,7 @@ def profiles(self, profiles): Relationship to the server profile object :param profiles: The profiles of this IamEndPointUserPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles diff --git a/intersight/models/iam_end_point_user_policy_list.py b/intersight/models/iam_end_point_user_policy_list.py index 69a38eab..188577cd 100644 --- a/intersight/models/iam_end_point_user_policy_list.py +++ b/intersight/models/iam_end_point_user_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_end_point_user_policy_ref.py b/intersight/models/iam_end_point_user_policy_ref.py new file mode 100644 index 00000000..09322a12 --- /dev/null +++ b/intersight/models/iam_end_point_user_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamEndPointUserPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamEndPointUserPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamEndPointUserPolicyRef. + + :return: The moid of this IamEndPointUserPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamEndPointUserPolicyRef. + + :param moid: The moid of this IamEndPointUserPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamEndPointUserPolicyRef. + + :return: The object_type of this IamEndPointUserPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamEndPointUserPolicyRef. + + :param object_type: The object_type of this IamEndPointUserPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamEndPointUserPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_end_point_user_ref.py b/intersight/models/iam_end_point_user_ref.py new file mode 100644 index 00000000..388159c8 --- /dev/null +++ b/intersight/models/iam_end_point_user_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamEndPointUserRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamEndPointUserRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamEndPointUserRef. + + :return: The moid of this IamEndPointUserRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamEndPointUserRef. + + :param moid: The moid of this IamEndPointUserRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamEndPointUserRef. + + :return: The object_type of this IamEndPointUserRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamEndPointUserRef. + + :param object_type: The object_type of this IamEndPointUserRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamEndPointUserRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_end_point_user_role.py b/intersight/models/iam_end_point_user_role.py index f029c7fd..3e98be63 100644 --- a/intersight/models/iam_end_point_user_role.py +++ b/intersight/models/iam_end_point_user_role.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,19 +32,21 @@ class IamEndPointUserRole(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'change_password': 'bool', 'enabled': 'bool', - 'end_point_role': 'list[MoMoRef]', - 'end_point_user': 'MoMoRef', - 'end_point_user_policy': 'MoMoRef', + 'end_point_role': 'list[IamEndPointRoleRef]', + 'end_point_user': 'IamEndPointUserRef', + 'end_point_user_policy': 'IamEndPointUserPolicyRef', + 'is_password_set': 'bool', 'password': 'str' } @@ -58,15 +60,17 @@ class IamEndPointUserRole(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'change_password': 'ChangePassword', 'enabled': 'Enabled', 'end_point_role': 'EndPointRole', 'end_point_user': 'EndPointUser', 'end_point_user_policy': 'EndPointUserPolicy', + 'is_password_set': 'IsPasswordSet', 'password': 'Password' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, change_password=None, enabled=None, end_point_role=None, end_point_user=None, end_point_user_policy=None, password=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, change_password=None, enabled=None, end_point_role=None, end_point_user=None, end_point_user_policy=None, is_password_set=None, password=None): """ IamEndPointUserRole - a model defined in Swagger """ @@ -80,11 +84,13 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._change_password = None self._enabled = None self._end_point_role = None self._end_point_user = None self._end_point_user_policy = None + self._is_password_set = None self._password = None if account_moid is not None: @@ -105,6 +111,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if change_password is not None: self.change_password = change_password if enabled is not None: @@ -115,6 +123,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.end_point_user = end_point_user if end_point_user_policy is not None: self.end_point_user_policy = end_point_user_policy + if is_password_set is not None: + self.is_password_set = is_password_set if password is not None: self.password = password @@ -148,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamEndPointUserRole. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamEndPointUserRole. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamEndPointUserRole. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamEndPointUserRole. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -306,7 +316,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamEndPointUserRole. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamEndPointUserRole. :rtype: list[MoTag] @@ -317,7 +327,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamEndPointUserRole. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamEndPointUserRole. :type: list[MoTag] @@ -325,6 +335,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamEndPointUserRole. + The versioning info for this managed object + + :return: The version_context of this IamEndPointUserRole. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamEndPointUserRole. + The versioning info for this managed object + + :param version_context: The version_context of this IamEndPointUserRole. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def change_password(self): """ @@ -375,10 +408,10 @@ def enabled(self, enabled): def end_point_role(self): """ Gets the end_point_role of this IamEndPointUserRole. - Relationship to the endpoint roles + Roles :return: The end_point_role of this IamEndPointUserRole. - :rtype: list[MoMoRef] + :rtype: list[IamEndPointRoleRef] """ return self._end_point_role @@ -386,10 +419,10 @@ def end_point_role(self): def end_point_role(self, end_point_role): """ Sets the end_point_role of this IamEndPointUserRole. - Relationship to the endpoint roles + Roles :param end_point_role: The end_point_role of this IamEndPointUserRole. - :type: list[MoMoRef] + :type: list[IamEndPointRoleRef] """ self._end_point_role = end_point_role @@ -398,10 +431,10 @@ def end_point_role(self, end_point_role): def end_point_user(self): """ Gets the end_point_user of this IamEndPointUserRole. - Relationship to the Endpoint user + User :return: The end_point_user of this IamEndPointUserRole. - :rtype: MoMoRef + :rtype: IamEndPointUserRef """ return self._end_point_user @@ -409,10 +442,10 @@ def end_point_user(self): def end_point_user(self, end_point_user): """ Sets the end_point_user of this IamEndPointUserRole. - Relationship to the Endpoint user + User :param end_point_user: The end_point_user of this IamEndPointUserRole. - :type: MoMoRef + :type: IamEndPointUserRef """ self._end_point_user = end_point_user @@ -423,7 +456,7 @@ def end_point_user_policy(self): Gets the end_point_user_policy of this IamEndPointUserRole. :return: The end_point_user_policy of this IamEndPointUserRole. - :rtype: MoMoRef + :rtype: IamEndPointUserPolicyRef """ return self._end_point_user_policy @@ -433,16 +466,37 @@ def end_point_user_policy(self, end_point_user_policy): Sets the end_point_user_policy of this IamEndPointUserRole. :param end_point_user_policy: The end_point_user_policy of this IamEndPointUserRole. - :type: MoMoRef + :type: IamEndPointUserPolicyRef """ self._end_point_user_policy = end_point_user_policy + @property + def is_password_set(self): + """ + Gets the is_password_set of this IamEndPointUserRole. + + :return: The is_password_set of this IamEndPointUserRole. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this IamEndPointUserRole. + + :param is_password_set: The is_password_set of this IamEndPointUserRole. + :type: bool + """ + + self._is_password_set = is_password_set + @property def password(self): """ Gets the password of this IamEndPointUserRole. - Password for the endpoint user + Password for the user :return: The password of this IamEndPointUserRole. :rtype: str @@ -453,7 +507,7 @@ def password(self): def password(self, password): """ Sets the password of this IamEndPointUserRole. - Password for the endpoint user + Password for the user :param password: The password of this IamEndPointUserRole. :type: str diff --git a/intersight/models/iam_end_point_user_role_list.py b/intersight/models/iam_end_point_user_role_list.py index bb5ad030..3bf29b4c 100644 --- a/intersight/models/iam_end_point_user_role_list.py +++ b/intersight/models/iam_end_point_user_role_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_end_point_user_role_ref.py b/intersight/models/iam_end_point_user_role_ref.py new file mode 100644 index 00000000..3247827c --- /dev/null +++ b/intersight/models/iam_end_point_user_role_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamEndPointUserRoleRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamEndPointUserRoleRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamEndPointUserRoleRef. + + :return: The moid of this IamEndPointUserRoleRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamEndPointUserRoleRef. + + :param moid: The moid of this IamEndPointUserRoleRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamEndPointUserRoleRef. + + :return: The object_type of this IamEndPointUserRoleRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamEndPointUserRoleRef. + + :param object_type: The object_type of this IamEndPointUserRoleRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamEndPointUserRoleRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_end_point_user_validation_task_ref.py b/intersight/models/iam_end_point_user_validation_task_ref.py new file mode 100644 index 00000000..bf553eeb --- /dev/null +++ b/intersight/models/iam_end_point_user_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamEndPointUserValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamEndPointUserValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamEndPointUserValidationTaskRef. + + :return: The moid of this IamEndPointUserValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamEndPointUserValidationTaskRef. + + :param moid: The moid of this IamEndPointUserValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamEndPointUserValidationTaskRef. + + :return: The object_type of this IamEndPointUserValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamEndPointUserValidationTaskRef. + + :param object_type: The object_type of this IamEndPointUserValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamEndPointUserValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_idp.py b/intersight/models/iam_idp.py index d9a612f3..2eae5184 100644 --- a/intersight/models/iam_idp.py +++ b/intersight/models/iam_idp.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,25 @@ class IamIdp(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', - 'config_state': 'str', - 'idp_connection_name': 'str', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', + 'domain_name': 'str', 'idp_entity_id': 'str', + 'metadata': 'str', 'name': 'str', - 'sp_adapter_name': 'str', - 'system': 'MoMoRef' + 'system': 'IamSystemRef', + 'user_login_time': 'list[IamUserLoginTimeRef]', + 'user_preferences': 'list[IamUserPreferenceRef]', + 'usergroups': 'list[IamUserGroupRef]', + 'users': 'list[IamUserRef]' } attribute_map = { @@ -59,16 +63,20 @@ class IamIdp(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account': 'Account', - 'config_state': 'ConfigState', - 'idp_connection_name': 'IdpConnectionName', + 'domain_name': 'DomainName', 'idp_entity_id': 'IdpEntityId', + 'metadata': 'Metadata', 'name': 'Name', - 'sp_adapter_name': 'SpAdapterName', - 'system': 'System' + 'system': 'System', + 'user_login_time': 'UserLoginTime', + 'user_preferences': 'UserPreferences', + 'usergroups': 'Usergroups', + 'users': 'Users' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, config_state=None, idp_connection_name=None, idp_entity_id=None, name=None, sp_adapter_name=None, system=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, domain_name=None, idp_entity_id=None, metadata=None, name=None, system=None, user_login_time=None, user_preferences=None, usergroups=None, users=None): """ IamIdp - a model defined in Swagger """ @@ -82,13 +90,17 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account = None - self._config_state = None - self._idp_connection_name = None + self._domain_name = None self._idp_entity_id = None + self._metadata = None self._name = None - self._sp_adapter_name = None self._system = None + self._user_login_time = None + self._user_preferences = None + self._usergroups = None + self._users = None if account_moid is not None: self.account_moid = account_moid @@ -108,20 +120,28 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account is not None: self.account = account - if config_state is not None: - self.config_state = config_state - if idp_connection_name is not None: - self.idp_connection_name = idp_connection_name + if domain_name is not None: + self.domain_name = domain_name if idp_entity_id is not None: self.idp_entity_id = idp_entity_id + if metadata is not None: + self.metadata = metadata if name is not None: self.name = name - if sp_adapter_name is not None: - self.sp_adapter_name = sp_adapter_name if system is not None: self.system = system + if user_login_time is not None: + self.user_login_time = user_login_time + if user_preferences is not None: + self.user_preferences = user_preferences + if usergroups is not None: + self.usergroups = usergroups + if users is not None: + self.users = users @property def account_moid(self): @@ -153,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamIdp. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamIdp. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamIdp. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamIdp. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -311,7 +331,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamIdp. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamIdp. :rtype: list[MoTag] @@ -322,7 +342,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamIdp. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamIdp. :type: list[MoTag] @@ -331,72 +351,77 @@ def tags(self, tags): self._tags = tags @property - def account(self): + def version_context(self): """ - Gets the account of this IamIdp. + Gets the version_context of this IamIdp. + The versioning info for this managed object - :return: The account of this IamIdp. - :rtype: MoMoRef + :return: The version_context of this IamIdp. + :rtype: MoVersionContext """ - return self._account + return self._version_context - @account.setter - def account(self, account): + @version_context.setter + def version_context(self, version_context): """ - Sets the account of this IamIdp. + Sets the version_context of this IamIdp. + The versioning info for this managed object - :param account: The account of this IamIdp. - :type: MoMoRef + :param version_context: The version_context of this IamIdp. + :type: MoVersionContext """ - self._account = account + self._version_context = version_context @property - def config_state(self): + def account(self): """ - Gets the config_state of this IamIdp. + Gets the account of this IamIdp. - :return: The config_state of this IamIdp. - :rtype: str + :return: The account of this IamIdp. + :rtype: IamAccountRef """ - return self._config_state + return self._account - @config_state.setter - def config_state(self, config_state): + @account.setter + def account(self, account): """ - Sets the config_state of this IamIdp. + Sets the account of this IamIdp. - :param config_state: The config_state of this IamIdp. - :type: str + :param account: The account of this IamIdp. + :type: IamAccountRef """ - self._config_state = config_state + self._account = account @property - def idp_connection_name(self): + def domain_name(self): """ - Gets the idp_connection_name of this IamIdp. + Gets the domain_name of this IamIdp. + User's email domain name for this IdP. When a user enters an email during login in the Intersight home page, the IdP is picked by matching this domain name with the email domain name for authentication. - :return: The idp_connection_name of this IamIdp. + :return: The domain_name of this IamIdp. :rtype: str """ - return self._idp_connection_name + return self._domain_name - @idp_connection_name.setter - def idp_connection_name(self, idp_connection_name): + @domain_name.setter + def domain_name(self, domain_name): """ - Sets the idp_connection_name of this IamIdp. + Sets the domain_name of this IamIdp. + User's email domain name for this IdP. When a user enters an email during login in the Intersight home page, the IdP is picked by matching this domain name with the email domain name for authentication. - :param idp_connection_name: The idp_connection_name of this IamIdp. + :param domain_name: The domain_name of this IamIdp. :type: str """ - self._idp_connection_name = idp_connection_name + self._domain_name = domain_name @property def idp_entity_id(self): """ Gets the idp_entity_id of this IamIdp. + Entity ID of the IdP. In SAML, the entity ID uniquely identifies IdP/Service Provider. :return: The idp_entity_id of this IamIdp. :rtype: str @@ -407,6 +432,7 @@ def idp_entity_id(self): def idp_entity_id(self, idp_entity_id): """ Sets the idp_entity_id of this IamIdp. + Entity ID of the IdP. In SAML, the entity ID uniquely identifies IdP/Service Provider. :param idp_entity_id: The idp_entity_id of this IamIdp. :type: str @@ -415,46 +441,50 @@ def idp_entity_id(self, idp_entity_id): self._idp_entity_id = idp_entity_id @property - def name(self): + def metadata(self): """ - Gets the name of this IamIdp. + Gets the metadata of this IamIdp. + SAML metadata of the IdP. - :return: The name of this IamIdp. + :return: The metadata of this IamIdp. :rtype: str """ - return self._name + return self._metadata - @name.setter - def name(self, name): + @metadata.setter + def metadata(self, metadata): """ - Sets the name of this IamIdp. + Sets the metadata of this IamIdp. + SAML metadata of the IdP. - :param name: The name of this IamIdp. + :param metadata: The metadata of this IamIdp. :type: str """ - self._name = name + self._metadata = metadata @property - def sp_adapter_name(self): + def name(self): """ - Gets the sp_adapter_name of this IamIdp. + Gets the name of this IamIdp. + Name of the IdP. - :return: The sp_adapter_name of this IamIdp. + :return: The name of this IamIdp. :rtype: str """ - return self._sp_adapter_name + return self._name - @sp_adapter_name.setter - def sp_adapter_name(self, sp_adapter_name): + @name.setter + def name(self, name): """ - Sets the sp_adapter_name of this IamIdp. + Sets the name of this IamIdp. + Name of the IdP. - :param sp_adapter_name: The sp_adapter_name of this IamIdp. + :param name: The name of this IamIdp. :type: str """ - self._sp_adapter_name = sp_adapter_name + self._name = name @property def system(self): @@ -462,7 +492,7 @@ def system(self): Gets the system of this IamIdp. :return: The system of this IamIdp. - :rtype: MoMoRef + :rtype: IamSystemRef """ return self._system @@ -472,11 +502,103 @@ def system(self, system): Sets the system of this IamIdp. :param system: The system of this IamIdp. - :type: MoMoRef + :type: IamSystemRef """ self._system = system + @property + def user_login_time(self): + """ + Gets the user_login_time of this IamIdp. + Represents the last login session details for each logged in user of this IdP. + + :return: The user_login_time of this IamIdp. + :rtype: list[IamUserLoginTimeRef] + """ + return self._user_login_time + + @user_login_time.setter + def user_login_time(self, user_login_time): + """ + Sets the user_login_time of this IamIdp. + Represents the last login session details for each logged in user of this IdP. + + :param user_login_time: The user_login_time of this IamIdp. + :type: list[IamUserLoginTimeRef] + """ + + self._user_login_time = user_login_time + + @property + def user_preferences(self): + """ + Gets the user_preferences of this IamIdp. + Represents the UI preference object for each user logged in through this IdP. + + :return: The user_preferences of this IamIdp. + :rtype: list[IamUserPreferenceRef] + """ + return self._user_preferences + + @user_preferences.setter + def user_preferences(self, user_preferences): + """ + Sets the user_preferences of this IamIdp. + Represents the UI preference object for each user logged in through this IdP. + + :param user_preferences: The user_preferences of this IamIdp. + :type: list[IamUserPreferenceRef] + """ + + self._user_preferences = user_preferences + + @property + def usergroups(self): + """ + Gets the usergroups of this IamIdp. + User groups added in an IdP. User group provides a way to configure permission assignment for a group of users based on IdP attributes received after authentication. + + :return: The usergroups of this IamIdp. + :rtype: list[IamUserGroupRef] + """ + return self._usergroups + + @usergroups.setter + def usergroups(self, usergroups): + """ + Sets the usergroups of this IamIdp. + User groups added in an IdP. User group provides a way to configure permission assignment for a group of users based on IdP attributes received after authentication. + + :param usergroups: The usergroups of this IamIdp. + :type: list[IamUserGroupRef] + """ + + self._usergroups = usergroups + + @property + def users(self): + """ + Gets the users of this IamIdp. + Added or logged in users of an IdP who can access an Intersight account. + + :return: The users of this IamIdp. + :rtype: list[IamUserRef] + """ + return self._users + + @users.setter + def users(self, users): + """ + Sets the users of this IamIdp. + Added or logged in users of an IdP who can access an Intersight account. + + :param users: The users of this IamIdp. + :type: list[IamUserRef] + """ + + self._users = users + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/iam_idp_list.py b/intersight/models/iam_idp_list.py index 25c6adf6..823ae8ed 100644 --- a/intersight/models/iam_idp_list.py +++ b/intersight/models/iam_idp_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_idp_ref.py b/intersight/models/iam_idp_ref.py new file mode 100644 index 00000000..e3736329 --- /dev/null +++ b/intersight/models/iam_idp_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamIdpRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamIdpRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamIdpRef. + + :return: The moid of this IamIdpRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamIdpRef. + + :param moid: The moid of this IamIdpRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamIdpRef. + + :return: The object_type of this IamIdpRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamIdpRef. + + :param object_type: The object_type of this IamIdpRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamIdpRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_idp_reference.py b/intersight/models/iam_idp_reference.py index 9d9a711a..b522e4b7 100644 --- a/intersight/models/iam_idp_reference.py +++ b/intersight/models/iam_idp_reference.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,25 @@ class IamIdpReference(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', - 'idp': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', + 'domain_name': 'str', + 'idp': 'IamIdpRef', + 'idp_entity_id': 'str', + 'multi_factor_authentication': 'bool', 'name': 'str', - 'user_login_time': 'list[MoMoRef]', - 'user_preferences': 'list[MoMoRef]', - 'usergroups': 'list[MoMoRef]', - 'users': 'list[MoMoRef]' + 'user_login_time': 'list[IamUserLoginTimeRef]', + 'user_preferences': 'list[IamUserPreferenceRef]', + 'usergroups': 'list[IamUserGroupRef]', + 'users': 'list[IamUserRef]' } attribute_map = { @@ -59,8 +63,12 @@ class IamIdpReference(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account': 'Account', + 'domain_name': 'DomainName', 'idp': 'Idp', + 'idp_entity_id': 'IdpEntityId', + 'multi_factor_authentication': 'MultiFactorAuthentication', 'name': 'Name', 'user_login_time': 'UserLoginTime', 'user_preferences': 'UserPreferences', @@ -68,7 +76,7 @@ class IamIdpReference(object): 'users': 'Users' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, idp=None, name=None, user_login_time=None, user_preferences=None, usergroups=None, users=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, domain_name=None, idp=None, idp_entity_id=None, multi_factor_authentication=None, name=None, user_login_time=None, user_preferences=None, usergroups=None, users=None): """ IamIdpReference - a model defined in Swagger """ @@ -82,8 +90,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account = None + self._domain_name = None self._idp = None + self._idp_entity_id = None + self._multi_factor_authentication = None self._name = None self._user_login_time = None self._user_preferences = None @@ -108,10 +120,18 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account is not None: self.account = account + if domain_name is not None: + self.domain_name = domain_name if idp is not None: self.idp = idp + if idp_entity_id is not None: + self.idp_entity_id = idp_entity_id + if multi_factor_authentication is not None: + self.multi_factor_authentication = multi_factor_authentication if name is not None: self.name = name if user_login_time is not None: @@ -153,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamIdpReference. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamIdpReference. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamIdpReference. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamIdpReference. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -311,7 +331,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamIdpReference. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamIdpReference. :rtype: list[MoTag] @@ -322,7 +342,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamIdpReference. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamIdpReference. :type: list[MoTag] @@ -330,13 +350,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamIdpReference. + The versioning info for this managed object + + :return: The version_context of this IamIdpReference. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamIdpReference. + The versioning info for this managed object + + :param version_context: The version_context of this IamIdpReference. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def account(self): """ Gets the account of this IamIdpReference. :return: The account of this IamIdpReference. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -346,18 +389,42 @@ def account(self, account): Sets the account of this IamIdpReference. :param account: The account of this IamIdpReference. - :type: MoMoRef + :type: IamAccountRef """ self._account = account + @property + def domain_name(self): + """ + Gets the domain_name of this IamIdpReference. + User's email domain name for this IdP. When a user enters an email during login in the Intersight home page, the IdP is picked by matching this domain name with the email domain name for authentication. + + :return: The domain_name of this IamIdpReference. + :rtype: str + """ + return self._domain_name + + @domain_name.setter + def domain_name(self, domain_name): + """ + Sets the domain_name of this IamIdpReference. + User's email domain name for this IdP. When a user enters an email during login in the Intersight home page, the IdP is picked by matching this domain name with the email domain name for authentication. + + :param domain_name: The domain_name of this IamIdpReference. + :type: str + """ + + self._domain_name = domain_name + @property def idp(self): """ Gets the idp of this IamIdpReference. + Reference to System default Cisco IdP. :return: The idp of this IamIdpReference. - :rtype: MoMoRef + :rtype: IamIdpRef """ return self._idp @@ -365,17 +432,65 @@ def idp(self): def idp(self, idp): """ Sets the idp of this IamIdpReference. + Reference to System default Cisco IdP. :param idp: The idp of this IamIdpReference. - :type: MoMoRef + :type: IamIdpRef """ self._idp = idp + @property + def idp_entity_id(self): + """ + Gets the idp_entity_id of this IamIdpReference. + Entity ID of the IdP. In SAML, the entity ID uniquely identifies the IdP/Service Provider. + + :return: The idp_entity_id of this IamIdpReference. + :rtype: str + """ + return self._idp_entity_id + + @idp_entity_id.setter + def idp_entity_id(self, idp_entity_id): + """ + Sets the idp_entity_id of this IamIdpReference. + Entity ID of the IdP. In SAML, the entity ID uniquely identifies the IdP/Service Provider. + + :param idp_entity_id: The idp_entity_id of this IamIdpReference. + :type: str + """ + + self._idp_entity_id = idp_entity_id + + @property + def multi_factor_authentication(self): + """ + Gets the multi_factor_authentication of this IamIdpReference. + Flag represents if multi factor authentication is required for Cisco IdP users. + + :return: The multi_factor_authentication of this IamIdpReference. + :rtype: bool + """ + return self._multi_factor_authentication + + @multi_factor_authentication.setter + def multi_factor_authentication(self, multi_factor_authentication): + """ + Sets the multi_factor_authentication of this IamIdpReference. + Flag represents if multi factor authentication is required for Cisco IdP users. + + :param multi_factor_authentication: The multi_factor_authentication of this IamIdpReference. + :type: bool + """ + + self._multi_factor_authentication = multi_factor_authentication + @property def name(self): """ Gets the name of this IamIdpReference. + Cisco IdP reference in an account. :return: The name of this IamIdpReference. :rtype: str @@ -386,6 +501,7 @@ def name(self): def name(self, name): """ Sets the name of this IamIdpReference. + Cisco IdP reference in an account. :param name: The name of this IamIdpReference. :type: str @@ -397,9 +513,10 @@ def name(self, name): def user_login_time(self): """ Gets the user_login_time of this IamIdpReference. + Represents the last login session details for each logged in user of this IdP. :return: The user_login_time of this IamIdpReference. - :rtype: list[MoMoRef] + :rtype: list[IamUserLoginTimeRef] """ return self._user_login_time @@ -407,9 +524,10 @@ def user_login_time(self): def user_login_time(self, user_login_time): """ Sets the user_login_time of this IamIdpReference. + Represents the last login session details for each logged in user of this IdP. :param user_login_time: The user_login_time of this IamIdpReference. - :type: list[MoMoRef] + :type: list[IamUserLoginTimeRef] """ self._user_login_time = user_login_time @@ -418,9 +536,10 @@ def user_login_time(self, user_login_time): def user_preferences(self): """ Gets the user_preferences of this IamIdpReference. + Represents the UI preference object for each user logged in through this IdP. :return: The user_preferences of this IamIdpReference. - :rtype: list[MoMoRef] + :rtype: list[IamUserPreferenceRef] """ return self._user_preferences @@ -428,9 +547,10 @@ def user_preferences(self): def user_preferences(self, user_preferences): """ Sets the user_preferences of this IamIdpReference. + Represents the UI preference object for each user logged in through this IdP. :param user_preferences: The user_preferences of this IamIdpReference. - :type: list[MoMoRef] + :type: list[IamUserPreferenceRef] """ self._user_preferences = user_preferences @@ -439,9 +559,10 @@ def user_preferences(self, user_preferences): def usergroups(self): """ Gets the usergroups of this IamIdpReference. + User groups added in an IdP. User group provides a way to configure permission assignment for a group of users based on IdP attributes received after authentication. :return: The usergroups of this IamIdpReference. - :rtype: list[MoMoRef] + :rtype: list[IamUserGroupRef] """ return self._usergroups @@ -449,9 +570,10 @@ def usergroups(self): def usergroups(self, usergroups): """ Sets the usergroups of this IamIdpReference. + User groups added in an IdP. User group provides a way to configure permission assignment for a group of users based on IdP attributes received after authentication. :param usergroups: The usergroups of this IamIdpReference. - :type: list[MoMoRef] + :type: list[IamUserGroupRef] """ self._usergroups = usergroups @@ -460,9 +582,10 @@ def usergroups(self, usergroups): def users(self): """ Gets the users of this IamIdpReference. + Added or logged in users of an IdP who can access an Intersight account. :return: The users of this IamIdpReference. - :rtype: list[MoMoRef] + :rtype: list[IamUserRef] """ return self._users @@ -470,9 +593,10 @@ def users(self): def users(self, users): """ Sets the users of this IamIdpReference. + Added or logged in users of an IdP who can access an Intersight account. :param users: The users of this IamIdpReference. - :type: list[MoMoRef] + :type: list[IamUserRef] """ self._users = users diff --git a/intersight/models/iam_idp_reference_list.py b/intersight/models/iam_idp_reference_list.py index fb041c5d..bf5e6ce2 100644 --- a/intersight/models/iam_idp_reference_list.py +++ b/intersight/models/iam_idp_reference_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_idp_reference_ref.py b/intersight/models/iam_idp_reference_ref.py new file mode 100644 index 00000000..2a0b8cc3 --- /dev/null +++ b/intersight/models/iam_idp_reference_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamIdpReferenceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamIdpReferenceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamIdpReferenceRef. + + :return: The moid of this IamIdpReferenceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamIdpReferenceRef. + + :param moid: The moid of this IamIdpReferenceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamIdpReferenceRef. + + :return: The object_type of this IamIdpReferenceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamIdpReferenceRef. + + :param object_type: The object_type of this IamIdpReferenceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamIdpReferenceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_ldap_base_properties.py b/intersight/models/iam_ldap_base_properties.py index 990a0958..710d184d 100644 --- a/intersight/models/iam_ldap_base_properties.py +++ b/intersight/models/iam_ldap_base_properties.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -40,6 +40,7 @@ class IamLdapBaseProperties(object): 'enable_group_authorization': 'bool', 'filter': 'str', 'group_attribute': 'str', + 'is_password_set': 'bool', 'nested_group_search_depth': 'int', 'password': 'str', 'timeout': 'int' @@ -55,12 +56,13 @@ class IamLdapBaseProperties(object): 'enable_group_authorization': 'EnableGroupAuthorization', 'filter': 'Filter', 'group_attribute': 'GroupAttribute', + 'is_password_set': 'IsPasswordSet', 'nested_group_search_depth': 'NestedGroupSearchDepth', 'password': 'Password', 'timeout': 'Timeout' } - def __init__(self, attribute=None, base_dn=None, bind_dn=None, bind_method='LoginCredentials', domain=None, enable_encryption=None, enable_group_authorization=None, filter=None, group_attribute=None, nested_group_search_depth=None, password=None, timeout=None): + def __init__(self, attribute=None, base_dn=None, bind_dn=None, bind_method='LoginCredentials', domain=None, enable_encryption=None, enable_group_authorization=None, filter=None, group_attribute=None, is_password_set=None, nested_group_search_depth=None, password=None, timeout=None): """ IamLdapBaseProperties - a model defined in Swagger """ @@ -74,6 +76,7 @@ def __init__(self, attribute=None, base_dn=None, bind_dn=None, bind_method='Logi self._enable_group_authorization = None self._filter = None self._group_attribute = None + self._is_password_set = None self._nested_group_search_depth = None self._password = None self._timeout = None @@ -96,6 +99,8 @@ def __init__(self, attribute=None, base_dn=None, bind_dn=None, bind_method='Logi self.filter = filter if group_attribute is not None: self.group_attribute = group_attribute + if is_password_set is not None: + self.is_password_set = is_password_set if nested_group_search_depth is not None: self.nested_group_search_depth = nested_group_search_depth if password is not None: @@ -107,7 +112,7 @@ def __init__(self, attribute=None, base_dn=None, bind_dn=None, bind_method='Logi def attribute(self): """ Gets the attribute of this IamLdapBaseProperties. - An LDAP attribute that contains the role and locale information for the user. This property is always a name-value pair. The system queries the user record for the value that matches this attribute name. For example, CiscoAvPair + Role and locale information of the user :return: The attribute of this IamLdapBaseProperties. :rtype: str @@ -118,7 +123,7 @@ def attribute(self): def attribute(self, attribute): """ Sets the attribute of this IamLdapBaseProperties. - An LDAP attribute that contains the role and locale information for the user. This property is always a name-value pair. The system queries the user record for the value that matches this attribute name. For example, CiscoAvPair + Role and locale information of the user :param attribute: The attribute of this IamLdapBaseProperties. :type: str @@ -130,7 +135,7 @@ def attribute(self, attribute): def base_dn(self): """ Gets the base_dn of this IamLdapBaseProperties. - Base Distinguished Name(DN). This field describes where to load users and groups from. It must be in the dc=domain,dc=com format for Active Directory servers + Base Distinguished Name(DN). Starting point from where server will search for users and groups :return: The base_dn of this IamLdapBaseProperties. :rtype: str @@ -141,7 +146,7 @@ def base_dn(self): def base_dn(self, base_dn): """ Sets the base_dn of this IamLdapBaseProperties. - Base Distinguished Name(DN). This field describes where to load users and groups from. It must be in the dc=domain,dc=com format for Active Directory servers + Base Distinguished Name(DN). Starting point from where server will search for users and groups :param base_dn: The base_dn of this IamLdapBaseProperties. :type: str @@ -153,7 +158,7 @@ def base_dn(self, base_dn): def bind_dn(self): """ Gets the bind_dn of this IamLdapBaseProperties. - Distinguished Name(DN) of the user, that is used to authenticate against LDAP servers. Applicable only when BindMethod='ConfiguredCredentials' + Distinguished Name(DN) of the user, that is used to authenticate against LDAP servers :return: The bind_dn of this IamLdapBaseProperties. :rtype: str @@ -164,7 +169,7 @@ def bind_dn(self): def bind_dn(self, bind_dn): """ Sets the bind_dn of this IamLdapBaseProperties. - Distinguished Name(DN) of the user, that is used to authenticate against LDAP servers. Applicable only when BindMethod='ConfiguredCredentials' + Distinguished Name(DN) of the user, that is used to authenticate against LDAP servers :param bind_dn: The bind_dn of this IamLdapBaseProperties. :type: str @@ -176,7 +181,7 @@ def bind_dn(self, bind_dn): def bind_method(self): """ Gets the bind_method of this IamLdapBaseProperties. - Authentication method to access LDAP servers. By default, it is 'LoginCredentials' + Authentication method to access LDAP servers :return: The bind_method of this IamLdapBaseProperties. :rtype: str @@ -187,7 +192,7 @@ def bind_method(self): def bind_method(self, bind_method): """ Sets the bind_method of this IamLdapBaseProperties. - Authentication method to access LDAP servers. By default, it is 'LoginCredentials' + Authentication method to access LDAP servers :param bind_method: The bind_method of this IamLdapBaseProperties. :type: str @@ -228,7 +233,7 @@ def domain(self, domain): def enable_encryption(self): """ Gets the enable_encryption of this IamLdapBaseProperties. - Endpoint encrypts all information it sends to the LDAP server + If enabled, the endpoint encrypts all information it sends to the LDAP server :return: The enable_encryption of this IamLdapBaseProperties. :rtype: bool @@ -239,7 +244,7 @@ def enable_encryption(self): def enable_encryption(self, enable_encryption): """ Sets the enable_encryption of this IamLdapBaseProperties. - Endpoint encrypts all information it sends to the LDAP server + If enabled, the endpoint encrypts all information it sends to the LDAP server :param enable_encryption: The enable_encryption of this IamLdapBaseProperties. :type: bool @@ -251,7 +256,7 @@ def enable_encryption(self, enable_encryption): def enable_group_authorization(self): """ Gets the enable_group_authorization of this IamLdapBaseProperties. - User authentication is also done on the group level for LDAP users that are not found in the local user database + If enabled, user authorization is also done at the group level for LDAP users not in the local user database :return: The enable_group_authorization of this IamLdapBaseProperties. :rtype: bool @@ -262,7 +267,7 @@ def enable_group_authorization(self): def enable_group_authorization(self, enable_group_authorization): """ Sets the enable_group_authorization of this IamLdapBaseProperties. - User authentication is also done on the group level for LDAP users that are not found in the local user database + If enabled, user authorization is also done at the group level for LDAP users not in the local user database :param enable_group_authorization: The enable_group_authorization of this IamLdapBaseProperties. :type: bool @@ -274,7 +279,7 @@ def enable_group_authorization(self, enable_group_authorization): def filter(self): """ Gets the filter of this IamLdapBaseProperties. - Filter defines the criteria used to identify entries in search requests. This field must match the configured attribute in the schema on the LDAP server + Criteria to identify entries in search requests :return: The filter of this IamLdapBaseProperties. :rtype: str @@ -285,7 +290,7 @@ def filter(self): def filter(self, filter): """ Sets the filter of this IamLdapBaseProperties. - Filter defines the criteria used to identify entries in search requests. This field must match the configured attribute in the schema on the LDAP server + Criteria to identify entries in search requests :param filter: The filter of this IamLdapBaseProperties. :type: str @@ -297,7 +302,7 @@ def filter(self, filter): def group_attribute(self): """ Gets the group_attribute of this IamLdapBaseProperties. - An LDAP attribute that indicates the groups to which an LDAP entry belongs. For example, memberOf is the name of the membership attribute that is used in Active Directory + Groups to which an LDAP entry belongs :return: The group_attribute of this IamLdapBaseProperties. :rtype: str @@ -308,7 +313,7 @@ def group_attribute(self): def group_attribute(self, group_attribute): """ Sets the group_attribute of this IamLdapBaseProperties. - An LDAP attribute that indicates the groups to which an LDAP entry belongs. For example, memberOf is the name of the membership attribute that is used in Active Directory + Groups to which an LDAP entry belongs :param group_attribute: The group_attribute of this IamLdapBaseProperties. :type: str @@ -316,11 +321,32 @@ def group_attribute(self, group_attribute): self._group_attribute = group_attribute + @property + def is_password_set(self): + """ + Gets the is_password_set of this IamLdapBaseProperties. + + :return: The is_password_set of this IamLdapBaseProperties. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this IamLdapBaseProperties. + + :param is_password_set: The is_password_set of this IamLdapBaseProperties. + :type: bool + """ + + self._is_password_set = is_password_set + @property def nested_group_search_depth(self): """ Gets the nested_group_search_depth of this IamLdapBaseProperties. - Parameter to search for an LDAP group nested within another defined group in an LDAP group map. The parameter defines the depth of a nested group search + Search depth to look for a nested LDAP group in an LDAP group map :return: The nested_group_search_depth of this IamLdapBaseProperties. :rtype: int @@ -331,7 +357,7 @@ def nested_group_search_depth(self): def nested_group_search_depth(self, nested_group_search_depth): """ Sets the nested_group_search_depth of this IamLdapBaseProperties. - Parameter to search for an LDAP group nested within another defined group in an LDAP group map. The parameter defines the depth of a nested group search + Search depth to look for a nested LDAP group in an LDAP group map :param nested_group_search_depth: The nested_group_search_depth of this IamLdapBaseProperties. :type: int @@ -343,7 +369,7 @@ def nested_group_search_depth(self, nested_group_search_depth): def password(self): """ Gets the password of this IamLdapBaseProperties. - Password of the user. Applicable only when BindMethod='ConfiguredCredentials' + Password of the user :return: The password of this IamLdapBaseProperties. :rtype: str @@ -354,7 +380,7 @@ def password(self): def password(self, password): """ Sets the password of this IamLdapBaseProperties. - Password of the user. Applicable only when BindMethod='ConfiguredCredentials' + Password of the user :param password: The password of this IamLdapBaseProperties. :type: str @@ -366,7 +392,7 @@ def password(self, password): def timeout(self): """ Gets the timeout of this IamLdapBaseProperties. - Timeout in seconds for LDAP authentication process + LDAP authentication timeout duration, in seconds :return: The timeout of this IamLdapBaseProperties. :rtype: int @@ -377,7 +403,7 @@ def timeout(self): def timeout(self, timeout): """ Sets the timeout of this IamLdapBaseProperties. - Timeout in seconds for LDAP authentication process + LDAP authentication timeout duration, in seconds :param timeout: The timeout of this IamLdapBaseProperties. :type: int diff --git a/intersight/models/iam_ldap_base_properties_ref.py b/intersight/models/iam_ldap_base_properties_ref.py new file mode 100644 index 00000000..041bd22f --- /dev/null +++ b/intersight/models/iam_ldap_base_properties_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamLdapBasePropertiesRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamLdapBasePropertiesRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamLdapBasePropertiesRef. + + :return: The moid of this IamLdapBasePropertiesRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamLdapBasePropertiesRef. + + :param moid: The moid of this IamLdapBasePropertiesRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamLdapBasePropertiesRef. + + :return: The object_type of this IamLdapBasePropertiesRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamLdapBasePropertiesRef. + + :param object_type: The object_type of this IamLdapBasePropertiesRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamLdapBasePropertiesRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_ldap_credentials_ref.py b/intersight/models/iam_ldap_credentials_ref.py new file mode 100644 index 00000000..1554489a --- /dev/null +++ b/intersight/models/iam_ldap_credentials_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamLdapCredentialsRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamLdapCredentialsRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamLdapCredentialsRef. + + :return: The moid of this IamLdapCredentialsRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamLdapCredentialsRef. + + :param moid: The moid of this IamLdapCredentialsRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamLdapCredentialsRef. + + :return: The object_type of this IamLdapCredentialsRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamLdapCredentialsRef. + + :param object_type: The object_type of this IamLdapCredentialsRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamLdapCredentialsRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_ldap_deploy_task_ref.py b/intersight/models/iam_ldap_deploy_task_ref.py new file mode 100644 index 00000000..82f5c3b7 --- /dev/null +++ b/intersight/models/iam_ldap_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamLdapDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamLdapDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamLdapDeployTaskRef. + + :return: The moid of this IamLdapDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamLdapDeployTaskRef. + + :param moid: The moid of this IamLdapDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamLdapDeployTaskRef. + + :return: The object_type of this IamLdapDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamLdapDeployTaskRef. + + :param object_type: The object_type of this IamLdapDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamLdapDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_ldap_dns_parameters.py b/intersight/models/iam_ldap_dns_parameters.py index 9fd532b3..d94d7c01 100644 --- a/intersight/models/iam_ldap_dns_parameters.py +++ b/intersight/models/iam_ldap_dns_parameters.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -108,7 +108,7 @@ def search_forest(self, search_forest): def source(self): """ Gets the source of this IamLdapDnsParameters. - Specifies how to obtain the domain name used for the DNS SRV request + Specifies the source of the domain name used for the DNS SRV request :return: The source of this IamLdapDnsParameters. :rtype: str @@ -119,7 +119,7 @@ def source(self): def source(self, source): """ Sets the source of this IamLdapDnsParameters. - Specifies how to obtain the domain name used for the DNS SRV request + Specifies the source of the domain name used for the DNS SRV request :param source: The source of this IamLdapDnsParameters. :type: str diff --git a/intersight/models/iam_ldap_dns_parameters_ref.py b/intersight/models/iam_ldap_dns_parameters_ref.py new file mode 100644 index 00000000..3394c420 --- /dev/null +++ b/intersight/models/iam_ldap_dns_parameters_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamLdapDnsParametersRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamLdapDnsParametersRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamLdapDnsParametersRef. + + :return: The moid of this IamLdapDnsParametersRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamLdapDnsParametersRef. + + :param moid: The moid of this IamLdapDnsParametersRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamLdapDnsParametersRef. + + :return: The object_type of this IamLdapDnsParametersRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamLdapDnsParametersRef. + + :param object_type: The object_type of this IamLdapDnsParametersRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamLdapDnsParametersRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_ldap_group.py b/intersight/models/iam_ldap_group.py index 4c9c4c72..8f4ea410 100644 --- a/intersight/models/iam_ldap_group.py +++ b/intersight/models/iam_ldap_group.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,18 @@ class IamLdapGroup(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'domain': 'str', - 'end_point_role': 'list[MoMoRef]', - 'ldap_policy': 'MoMoRef', + 'end_point_role': 'list[IamEndPointRoleRef]', + 'ldap_policy': 'IamLdapPolicyRef', 'name': 'str' } @@ -56,13 +57,14 @@ class IamLdapGroup(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'domain': 'Domain', 'end_point_role': 'EndPointRole', 'ldap_policy': 'LdapPolicy', 'name': 'Name' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, domain=None, end_point_role=None, ldap_policy=None, name=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, domain=None, end_point_role=None, ldap_policy=None, name=None): """ IamLdapGroup - a model defined in Swagger """ @@ -76,6 +78,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._domain = None self._end_point_role = None self._ldap_policy = None @@ -99,6 +102,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if domain is not None: self.domain = domain if end_point_role is not None: @@ -138,7 +143,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamLdapGroup. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +154,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamLdapGroup. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +281,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamLdapGroup. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +292,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamLdapGroup. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -296,7 +301,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamLdapGroup. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamLdapGroup. :rtype: list[MoTag] @@ -307,7 +312,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamLdapGroup. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamLdapGroup. :type: list[MoTag] @@ -315,6 +320,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamLdapGroup. + The versioning info for this managed object + + :return: The version_context of this IamLdapGroup. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamLdapGroup. + The versioning info for this managed object + + :param version_context: The version_context of this IamLdapGroup. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def domain(self): """ @@ -342,10 +370,10 @@ def domain(self, domain): def end_point_role(self): """ Gets the end_point_role of this IamLdapGroup. - Relationship to endpoint roles + Roles :return: The end_point_role of this IamLdapGroup. - :rtype: list[MoMoRef] + :rtype: list[IamEndPointRoleRef] """ return self._end_point_role @@ -353,10 +381,10 @@ def end_point_role(self): def end_point_role(self, end_point_role): """ Sets the end_point_role of this IamLdapGroup. - Relationship to endpoint roles + Roles :param end_point_role: The end_point_role of this IamLdapGroup. - :type: list[MoMoRef] + :type: list[IamEndPointRoleRef] """ self._end_point_role = end_point_role @@ -367,7 +395,7 @@ def ldap_policy(self): Gets the ldap_policy of this IamLdapGroup. :return: The ldap_policy of this IamLdapGroup. - :rtype: MoMoRef + :rtype: IamLdapPolicyRef """ return self._ldap_policy @@ -377,7 +405,7 @@ def ldap_policy(self, ldap_policy): Sets the ldap_policy of this IamLdapGroup. :param ldap_policy: The ldap_policy of this IamLdapGroup. - :type: MoMoRef + :type: IamLdapPolicyRef """ self._ldap_policy = ldap_policy diff --git a/intersight/models/iam_ldap_group_list.py b/intersight/models/iam_ldap_group_list.py index c07cbb03..03bb8fe5 100644 --- a/intersight/models/iam_ldap_group_list.py +++ b/intersight/models/iam_ldap_group_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_ldap_group_ref.py b/intersight/models/iam_ldap_group_ref.py new file mode 100644 index 00000000..89f05bd2 --- /dev/null +++ b/intersight/models/iam_ldap_group_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamLdapGroupRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamLdapGroupRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamLdapGroupRef. + + :return: The moid of this IamLdapGroupRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamLdapGroupRef. + + :param moid: The moid of this IamLdapGroupRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamLdapGroupRef. + + :return: The object_type of this IamLdapGroupRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamLdapGroupRef. + + :param object_type: The object_type of this IamLdapGroupRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamLdapGroupRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_ldap_policy.py b/intersight/models/iam_ldap_policy.py index c9ff5d37..c2e2e283 100644 --- a/intersight/models/iam_ldap_policy.py +++ b/intersight/models/iam_ldap_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,24 +32,25 @@ class IamLdapPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', 'base_properties': 'IamLdapBaseProperties', 'dns_parameters': 'IamLdapDnsParameters', 'enable_dns': 'bool', 'enabled': 'bool', - 'groups': 'list[MoMoRef]', - 'organization': 'MoMoRef', - 'profiles': 'list[MoMoRef]', - 'providers': 'list[MoMoRef]', + 'groups': 'list[IamLdapGroupRef]', + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]', + 'providers': 'list[IamLdapProviderRef]', 'user_search_precedence': 'str' } @@ -63,6 +64,7 @@ class IamLdapPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'base_properties': 'BaseProperties', @@ -76,7 +78,7 @@ class IamLdapPolicy(object): 'user_search_precedence': 'UserSearchPrecedence' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, base_properties=None, dns_parameters=None, enable_dns=None, enabled=None, groups=None, organization=None, profiles=None, providers=None, user_search_precedence='LocalUserDb'): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, base_properties=None, dns_parameters=None, enable_dns=None, enabled=None, groups=None, organization=None, profiles=None, providers=None, user_search_precedence='LocalUserDb'): """ IamLdapPolicy - a model defined in Swagger """ @@ -90,6 +92,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._base_properties = None @@ -120,6 +123,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -173,7 +178,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamLdapPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -184,7 +189,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamLdapPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -311,7 +316,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamLdapPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -322,7 +327,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamLdapPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -331,7 +336,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamLdapPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamLdapPolicy. :rtype: list[MoTag] @@ -342,7 +347,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamLdapPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamLdapPolicy. :type: list[MoTag] @@ -350,6 +355,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamLdapPolicy. + The versioning info for this managed object + + :return: The version_context of this IamLdapPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamLdapPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this IamLdapPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -446,7 +474,7 @@ def dns_parameters(self, dns_parameters): def enable_dns(self): """ Gets the enable_dns of this IamLdapPolicy. - DNS can be configured to access LDAP servers + If enabled, DNS can be configured to access LDAP servers :return: The enable_dns of this IamLdapPolicy. :rtype: bool @@ -457,7 +485,7 @@ def enable_dns(self): def enable_dns(self, enable_dns): """ Sets the enable_dns of this IamLdapPolicy. - DNS can be configured to access LDAP servers + If enabled, DNS can be configured to access LDAP servers :param enable_dns: The enable_dns of this IamLdapPolicy. :type: bool @@ -469,7 +497,7 @@ def enable_dns(self, enable_dns): def enabled(self): """ Gets the enabled of this IamLdapPolicy. - User authentication is performed by the LDAP servers specified in the LDAP policy + If enabled, authentication is performed by the LDAP servers mentioned in the policy :return: The enabled of this IamLdapPolicy. :rtype: bool @@ -480,7 +508,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this IamLdapPolicy. - User authentication is performed by the LDAP servers specified in the LDAP policy + If enabled, authentication is performed by the LDAP servers mentioned in the policy :param enabled: The enabled of this IamLdapPolicy. :type: bool @@ -495,7 +523,7 @@ def groups(self): Relationship to collection of LDAP Groups :return: The groups of this IamLdapPolicy. - :rtype: list[MoMoRef] + :rtype: list[IamLdapGroupRef] """ return self._groups @@ -506,7 +534,7 @@ def groups(self, groups): Relationship to collection of LDAP Groups :param groups: The groups of this IamLdapPolicy. - :type: list[MoMoRef] + :type: list[IamLdapGroupRef] """ self._groups = groups @@ -518,7 +546,7 @@ def organization(self): Organization :return: The organization of this IamLdapPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -529,7 +557,7 @@ def organization(self, organization): Organization :param organization: The organization of this IamLdapPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -541,7 +569,7 @@ def profiles(self): Relationship to the profile object :return: The profiles of this IamLdapPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -552,7 +580,7 @@ def profiles(self, profiles): Relationship to the profile object :param profiles: The profiles of this IamLdapPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles @@ -564,7 +592,7 @@ def providers(self): Relationship to collection of LDAP Providers :return: The providers of this IamLdapPolicy. - :rtype: list[MoMoRef] + :rtype: list[IamLdapProviderRef] """ return self._providers @@ -575,7 +603,7 @@ def providers(self, providers): Relationship to collection of LDAP Providers :param providers: The providers of this IamLdapPolicy. - :type: list[MoMoRef] + :type: list[IamLdapProviderRef] """ self._providers = providers @@ -584,7 +612,7 @@ def providers(self, providers): def user_search_precedence(self): """ Gets the user_search_precedence of this IamLdapPolicy. - User search precedence between local user database and LDAP user database + Search precedence between local user database and LDAP user database :return: The user_search_precedence of this IamLdapPolicy. :rtype: str @@ -595,12 +623,12 @@ def user_search_precedence(self): def user_search_precedence(self, user_search_precedence): """ Sets the user_search_precedence of this IamLdapPolicy. - User search precedence between local user database and LDAP user database + Search precedence between local user database and LDAP user database :param user_search_precedence: The user_search_precedence of this IamLdapPolicy. :type: str """ - allowed_values = ["LocalUserDb", "LdapUserDb"] + allowed_values = ["LocalUserDb", "LDAPUserDb"] if user_search_precedence not in allowed_values: raise ValueError( "Invalid value for `user_search_precedence` ({0}), must be one of {1}" diff --git a/intersight/models/iam_ldap_policy_list.py b/intersight/models/iam_ldap_policy_list.py index 1456c62b..b0564231 100644 --- a/intersight/models/iam_ldap_policy_list.py +++ b/intersight/models/iam_ldap_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_ldap_policy_ref.py b/intersight/models/iam_ldap_policy_ref.py new file mode 100644 index 00000000..894e9536 --- /dev/null +++ b/intersight/models/iam_ldap_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamLdapPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamLdapPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamLdapPolicyRef. + + :return: The moid of this IamLdapPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamLdapPolicyRef. + + :param moid: The moid of this IamLdapPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamLdapPolicyRef. + + :return: The object_type of this IamLdapPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamLdapPolicyRef. + + :param object_type: The object_type of this IamLdapPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamLdapPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_ldap_provider.py b/intersight/models/iam_ldap_provider.py index 126530ca..029b16e1 100644 --- a/intersight/models/iam_ldap_provider.py +++ b/intersight/models/iam_ldap_provider.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,16 @@ class IamLdapProvider(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'ldap_policy': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'ldap_policy': 'IamLdapPolicyRef', 'port': 'int', 'server': 'str' } @@ -55,12 +56,13 @@ class IamLdapProvider(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'ldap_policy': 'LdapPolicy', 'port': 'Port', 'server': 'Server' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, ldap_policy=None, port=None, server=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, ldap_policy=None, port=None, server=None): """ IamLdapProvider - a model defined in Swagger """ @@ -74,6 +76,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._ldap_policy = None self._port = None self._server = None @@ -96,6 +99,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if ldap_policy is not None: self.ldap_policy = ldap_policy if port is not None: @@ -133,7 +138,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamLdapProvider. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -144,7 +149,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamLdapProvider. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -271,7 +276,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamLdapProvider. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -282,7 +287,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamLdapProvider. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -291,7 +296,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamLdapProvider. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamLdapProvider. :rtype: list[MoTag] @@ -302,7 +307,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamLdapProvider. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamLdapProvider. :type: list[MoTag] @@ -310,13 +315,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamLdapProvider. + The versioning info for this managed object + + :return: The version_context of this IamLdapProvider. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamLdapProvider. + The versioning info for this managed object + + :param version_context: The version_context of this IamLdapProvider. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def ldap_policy(self): """ Gets the ldap_policy of this IamLdapProvider. :return: The ldap_policy of this IamLdapProvider. - :rtype: MoMoRef + :rtype: IamLdapPolicyRef """ return self._ldap_policy @@ -326,7 +354,7 @@ def ldap_policy(self, ldap_policy): Sets the ldap_policy of this IamLdapProvider. :param ldap_policy: The ldap_policy of this IamLdapProvider. - :type: MoMoRef + :type: IamLdapPolicyRef """ self._ldap_policy = ldap_policy diff --git a/intersight/models/iam_ldap_provider_list.py b/intersight/models/iam_ldap_provider_list.py index b22314e8..0c217be0 100644 --- a/intersight/models/iam_ldap_provider_list.py +++ b/intersight/models/iam_ldap_provider_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_ldap_provider_ref.py b/intersight/models/iam_ldap_provider_ref.py new file mode 100644 index 00000000..ff0152e5 --- /dev/null +++ b/intersight/models/iam_ldap_provider_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamLdapProviderRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamLdapProviderRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamLdapProviderRef. + + :return: The moid of this IamLdapProviderRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamLdapProviderRef. + + :param moid: The moid of this IamLdapProviderRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamLdapProviderRef. + + :return: The object_type of this IamLdapProviderRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamLdapProviderRef. + + :param object_type: The object_type of this IamLdapProviderRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamLdapProviderRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_ldap_validation_task_ref.py b/intersight/models/iam_ldap_validation_task_ref.py new file mode 100644 index 00000000..1c5ee4a2 --- /dev/null +++ b/intersight/models/iam_ldap_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamLdapValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamLdapValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamLdapValidationTaskRef. + + :return: The moid of this IamLdapValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamLdapValidationTaskRef. + + :param moid: The moid of this IamLdapValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamLdapValidationTaskRef. + + :return: The object_type of this IamLdapValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamLdapValidationTaskRef. + + :param object_type: The object_type of this IamLdapValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamLdapValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_permission.py b/intersight/models/iam_permission.py index 3a5afe08..83116106 100644 --- a/intersight/models/iam_permission.py +++ b/intersight/models/iam_permission.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,19 +32,21 @@ class IamPermission(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', - 'end_point_roles': 'list[MoMoRef]', - 'roles': 'list[MoMoRef]', - 'subject': 'str', - 'type': 'str' + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', + 'end_point_roles': 'list[IamEndPointRoleRef]', + 'name': 'str', + 'roles': 'list[IamRoleRef]', + 'user_groups': 'list[IamUserGroupRef]', + 'users': 'list[IamUserRef]' } attribute_map = { @@ -57,14 +59,16 @@ class IamPermission(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account': 'Account', 'end_point_roles': 'EndPointRoles', + 'name': 'Name', 'roles': 'Roles', - 'subject': 'Subject', - 'type': 'Type' + 'user_groups': 'UserGroups', + 'users': 'Users' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, end_point_roles=None, roles=None, subject=None, type=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, end_point_roles=None, name=None, roles=None, user_groups=None, users=None): """ IamPermission - a model defined in Swagger """ @@ -78,11 +82,13 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account = None self._end_point_roles = None + self._name = None self._roles = None - self._subject = None - self._type = None + self._user_groups = None + self._users = None if account_moid is not None: self.account_moid = account_moid @@ -102,16 +108,20 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account is not None: self.account = account if end_point_roles is not None: self.end_point_roles = end_point_roles + if name is not None: + self.name = name if roles is not None: self.roles = roles - if subject is not None: - self.subject = subject - if type is not None: - self.type = type + if user_groups is not None: + self.user_groups = user_groups + if users is not None: + self.users = users @property def account_moid(self): @@ -143,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamPermission. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -154,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamPermission. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -281,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamPermission. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -292,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamPermission. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -301,7 +311,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamPermission. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamPermission. :rtype: list[MoTag] @@ -312,7 +322,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamPermission. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamPermission. :type: list[MoTag] @@ -320,13 +330,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamPermission. + The versioning info for this managed object + + :return: The version_context of this IamPermission. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamPermission. + The versioning info for this managed object + + :param version_context: The version_context of this IamPermission. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def account(self): """ Gets the account of this IamPermission. :return: The account of this IamPermission. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -336,7 +369,7 @@ def account(self, account): Sets the account of this IamPermission. :param account: The account of this IamPermission. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -345,9 +378,10 @@ def account(self, account): def end_point_roles(self): """ Gets the end_point_roles of this IamPermission. + End point roles assigned to this permission. These roles are assigned to a user to perform end point operations such as GUI/CLI cross launch. :return: The end_point_roles of this IamPermission. - :rtype: list[MoMoRef] + :rtype: list[IamEndPointRoleRef] """ return self._end_point_roles @@ -355,20 +389,45 @@ def end_point_roles(self): def end_point_roles(self, end_point_roles): """ Sets the end_point_roles of this IamPermission. + End point roles assigned to this permission. These roles are assigned to a user to perform end point operations such as GUI/CLI cross launch. :param end_point_roles: The end_point_roles of this IamPermission. - :type: list[MoMoRef] + :type: list[IamEndPointRoleRef] """ self._end_point_roles = end_point_roles + @property + def name(self): + """ + Gets the name of this IamPermission. + Name of the permission. + + :return: The name of this IamPermission. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this IamPermission. + Name of the permission. + + :param name: The name of this IamPermission. + :type: str + """ + + self._name = name + @property def roles(self): """ Gets the roles of this IamPermission. + Roles assigned to this permission. Role is a collection of privilege sets. Roles are assigned to a user using permission object. :return: The roles of this IamPermission. - :rtype: list[MoMoRef] + :rtype: list[IamRoleRef] """ return self._roles @@ -376,58 +435,55 @@ def roles(self): def roles(self, roles): """ Sets the roles of this IamPermission. + Roles assigned to this permission. Role is a collection of privilege sets. Roles are assigned to a user using permission object. :param roles: The roles of this IamPermission. - :type: list[MoMoRef] + :type: list[IamRoleRef] """ self._roles = roles @property - def subject(self): + def user_groups(self): """ - Gets the subject of this IamPermission. - Subject represents the entiry to which permissions are being granted - user or user group + Gets the user_groups of this IamPermission. - :return: The subject of this IamPermission. - :rtype: str + :return: The user_groups of this IamPermission. + :rtype: list[IamUserGroupRef] """ - return self._subject + return self._user_groups - @subject.setter - def subject(self, subject): + @user_groups.setter + def user_groups(self, user_groups): """ - Sets the subject of this IamPermission. - Subject represents the entiry to which permissions are being granted - user or user group + Sets the user_groups of this IamPermission. - :param subject: The subject of this IamPermission. - :type: str + :param user_groups: The user_groups of this IamPermission. + :type: list[IamUserGroupRef] """ - self._subject = subject + self._user_groups = user_groups @property - def type(self): + def users(self): """ - Gets the type of this IamPermission. - Type represents type of subject - user or user group + Gets the users of this IamPermission. - :return: The type of this IamPermission. - :rtype: str + :return: The users of this IamPermission. + :rtype: list[IamUserRef] """ - return self._type + return self._users - @type.setter - def type(self, type): + @users.setter + def users(self, users): """ - Sets the type of this IamPermission. - Type represents type of subject - user or user group + Sets the users of this IamPermission. - :param type: The type of this IamPermission. - :type: str + :param users: The users of this IamPermission. + :type: list[IamUserRef] """ - self._type = type + self._users = users def to_dict(self): """ diff --git a/intersight/models/iam_permission_list.py b/intersight/models/iam_permission_list.py index 9a73c74d..5d39ae93 100644 --- a/intersight/models/iam_permission_list.py +++ b/intersight/models/iam_permission_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_permission_ref.py b/intersight/models/iam_permission_ref.py new file mode 100644 index 00000000..e587f8a9 --- /dev/null +++ b/intersight/models/iam_permission_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamPermissionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamPermissionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamPermissionRef. + + :return: The moid of this IamPermissionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamPermissionRef. + + :param moid: The moid of this IamPermissionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamPermissionRef. + + :return: The object_type of this IamPermissionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamPermissionRef. + + :param object_type: The object_type of this IamPermissionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamPermissionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_permission_reference.py b/intersight/models/iam_permission_reference.py new file mode 100644 index 00000000..f9146eea --- /dev/null +++ b/intersight/models/iam_permission_reference.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamPermissionReference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'permission_identifier': 'str', + 'permission_name': 'str' + } + + attribute_map = { + 'permission_identifier': 'PermissionIdentifier', + 'permission_name': 'PermissionName' + } + + def __init__(self, permission_identifier=None, permission_name=None): + """ + IamPermissionReference - a model defined in Swagger + """ + + self._permission_identifier = None + self._permission_name = None + + if permission_identifier is not None: + self.permission_identifier = permission_identifier + if permission_name is not None: + self.permission_name = permission_name + + @property + def permission_identifier(self): + """ + Gets the permission_identifier of this IamPermissionReference. + MOID of the permission. + + :return: The permission_identifier of this IamPermissionReference. + :rtype: str + """ + return self._permission_identifier + + @permission_identifier.setter + def permission_identifier(self, permission_identifier): + """ + Sets the permission_identifier of this IamPermissionReference. + MOID of the permission. + + :param permission_identifier: The permission_identifier of this IamPermissionReference. + :type: str + """ + + self._permission_identifier = permission_identifier + + @property + def permission_name(self): + """ + Gets the permission_name of this IamPermissionReference. + Name of the permission. + + :return: The permission_name of this IamPermissionReference. + :rtype: str + """ + return self._permission_name + + @permission_name.setter + def permission_name(self, permission_name): + """ + Sets the permission_name of this IamPermissionReference. + Name of the permission. + + :param permission_name: The permission_name of this IamPermissionReference. + :type: str + """ + + self._permission_name = permission_name + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamPermissionReference): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_permission_reference_ref.py b/intersight/models/iam_permission_reference_ref.py new file mode 100644 index 00000000..6a51e601 --- /dev/null +++ b/intersight/models/iam_permission_reference_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamPermissionReferenceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamPermissionReferenceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamPermissionReferenceRef. + + :return: The moid of this IamPermissionReferenceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamPermissionReferenceRef. + + :param moid: The moid of this IamPermissionReferenceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamPermissionReferenceRef. + + :return: The object_type of this IamPermissionReferenceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamPermissionReferenceRef. + + :param object_type: The object_type of this IamPermissionReferenceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamPermissionReferenceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_privilege.py b/intersight/models/iam_privilege.py index 611abfc7..c45dd889 100644 --- a/intersight/models/iam_privilege.py +++ b/intersight/models/iam_privilege.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,22 +32,20 @@ class IamPrivilege(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', - 'app': 'str', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', 'method': 'str', 'name': 'str', - 'namespace': 'str', 'rest_path': 'str', - 'system': 'MoMoRef', - 'version': 'str' + 'system': 'IamSystemRef' } attribute_map = { @@ -60,17 +58,15 @@ class IamPrivilege(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account': 'Account', - 'app': 'App', 'method': 'Method', 'name': 'Name', - 'namespace': 'Namespace', 'rest_path': 'RestPath', - 'system': 'System', - 'version': 'Version' + 'system': 'System' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, app=None, method=None, name=None, namespace=None, rest_path=None, system=None, version=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, method=None, name=None, rest_path=None, system=None): """ IamPrivilege - a model defined in Swagger """ @@ -84,14 +80,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account = None - self._app = None self._method = None self._name = None - self._namespace = None self._rest_path = None self._system = None - self._version = None if account_moid is not None: self.account_moid = account_moid @@ -111,22 +105,18 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account is not None: self.account = account - if app is not None: - self.app = app if method is not None: self.method = method if name is not None: self.name = name - if namespace is not None: - self.namespace = namespace if rest_path is not None: self.rest_path = rest_path if system is not None: self.system = system - if version is not None: - self.version = version @property def account_moid(self): @@ -158,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamPrivilege. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamPrivilege. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamPrivilege. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamPrivilege. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -316,7 +306,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamPrivilege. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamPrivilege. :rtype: list[MoTag] @@ -327,7 +317,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamPrivilege. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamPrivilege. :type: list[MoTag] @@ -336,51 +326,54 @@ def tags(self, tags): self._tags = tags @property - def account(self): + def version_context(self): """ - Gets the account of this IamPrivilege. + Gets the version_context of this IamPrivilege. + The versioning info for this managed object - :return: The account of this IamPrivilege. - :rtype: MoMoRef + :return: The version_context of this IamPrivilege. + :rtype: MoVersionContext """ - return self._account + return self._version_context - @account.setter - def account(self, account): + @version_context.setter + def version_context(self, version_context): """ - Sets the account of this IamPrivilege. + Sets the version_context of this IamPrivilege. + The versioning info for this managed object - :param account: The account of this IamPrivilege. - :type: MoMoRef + :param version_context: The version_context of this IamPrivilege. + :type: MoVersionContext """ - self._account = account + self._version_context = version_context @property - def app(self): + def account(self): """ - Gets the app of this IamPrivilege. + Gets the account of this IamPrivilege. - :return: The app of this IamPrivilege. - :rtype: str + :return: The account of this IamPrivilege. + :rtype: IamAccountRef """ - return self._app + return self._account - @app.setter - def app(self, app): + @account.setter + def account(self, account): """ - Sets the app of this IamPrivilege. + Sets the account of this IamPrivilege. - :param app: The app of this IamPrivilege. - :type: str + :param account: The account of this IamPrivilege. + :type: IamAccountRef """ - self._app = app + self._account = account @property def method(self): """ Gets the method of this IamPrivilege. + Represents the API method on the rest resource corresponding to privilege. For example READ, CREATE, UPDATE etc. :return: The method of this IamPrivilege. :rtype: str @@ -391,6 +384,7 @@ def method(self): def method(self, method): """ Sets the method of this IamPrivilege. + Represents the API method on the rest resource corresponding to privilege. For example READ, CREATE, UPDATE etc. :param method: The method of this IamPrivilege. :type: str @@ -402,6 +396,7 @@ def method(self, method): def name(self): """ Gets the name of this IamPrivilege. + Name of the privilege. :return: The name of this IamPrivilege. :rtype: str @@ -412,6 +407,7 @@ def name(self): def name(self, name): """ Sets the name of this IamPrivilege. + Name of the privilege. :param name: The name of this IamPrivilege. :type: str @@ -419,31 +415,11 @@ def name(self, name): self._name = name - @property - def namespace(self): - """ - Gets the namespace of this IamPrivilege. - - :return: The namespace of this IamPrivilege. - :rtype: str - """ - return self._namespace - - @namespace.setter - def namespace(self, namespace): - """ - Sets the namespace of this IamPrivilege. - - :param namespace: The namespace of this IamPrivilege. - :type: str - """ - - self._namespace = namespace - @property def rest_path(self): """ Gets the rest_path of this IamPrivilege. + Represents the rest path of the resource corresponding to this privilege. For example /v1/iam/Accounts, /v1/iam/Sessions etc. :return: The rest_path of this IamPrivilege. :rtype: str @@ -454,6 +430,7 @@ def rest_path(self): def rest_path(self, rest_path): """ Sets the rest_path of this IamPrivilege. + Represents the rest path of the resource corresponding to this privilege. For example /v1/iam/Accounts, /v1/iam/Sessions etc. :param rest_path: The rest_path of this IamPrivilege. :type: str @@ -467,7 +444,7 @@ def system(self): Gets the system of this IamPrivilege. :return: The system of this IamPrivilege. - :rtype: MoMoRef + :rtype: IamSystemRef """ return self._system @@ -477,32 +454,11 @@ def system(self, system): Sets the system of this IamPrivilege. :param system: The system of this IamPrivilege. - :type: MoMoRef + :type: IamSystemRef """ self._system = system - @property - def version(self): - """ - Gets the version of this IamPrivilege. - - :return: The version of this IamPrivilege. - :rtype: str - """ - return self._version - - @version.setter - def version(self, version): - """ - Sets the version of this IamPrivilege. - - :param version: The version of this IamPrivilege. - :type: str - """ - - self._version = version - def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/iam_privilege_list.py b/intersight/models/iam_privilege_list.py index 0e10b4f1..da5ad183 100644 --- a/intersight/models/iam_privilege_list.py +++ b/intersight/models/iam_privilege_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_privilege_ref.py b/intersight/models/iam_privilege_ref.py new file mode 100644 index 00000000..2a7e337d --- /dev/null +++ b/intersight/models/iam_privilege_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamPrivilegeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamPrivilegeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamPrivilegeRef. + + :return: The moid of this IamPrivilegeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamPrivilegeRef. + + :param moid: The moid of this IamPrivilegeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamPrivilegeRef. + + :return: The object_type of this IamPrivilegeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamPrivilegeRef. + + :param object_type: The object_type of this IamPrivilegeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamPrivilegeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_privilege_set.py b/intersight/models/iam_privilege_set.py index 433466fd..c203c9fd 100644 --- a/intersight/models/iam_privilege_set.py +++ b/intersight/models/iam_privilege_set.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,18 +32,19 @@ class IamPrivilegeSet(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', 'name': 'str', - 'privileges': 'list[MoMoRef]', - 'system': 'MoMoRef' + 'privileges': 'list[IamPrivilegeRef]', + 'system': 'IamSystemRef' } attribute_map = { @@ -56,13 +57,14 @@ class IamPrivilegeSet(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account': 'Account', 'name': 'Name', 'privileges': 'Privileges', 'system': 'System' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, name=None, privileges=None, system=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, name=None, privileges=None, system=None): """ IamPrivilegeSet - a model defined in Swagger """ @@ -76,6 +78,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account = None self._name = None self._privileges = None @@ -99,6 +102,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account is not None: self.account = account if name is not None: @@ -138,7 +143,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamPrivilegeSet. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +154,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamPrivilegeSet. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +281,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamPrivilegeSet. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +292,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamPrivilegeSet. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -296,7 +301,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamPrivilegeSet. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamPrivilegeSet. :rtype: list[MoTag] @@ -307,7 +312,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamPrivilegeSet. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamPrivilegeSet. :type: list[MoTag] @@ -315,13 +320,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamPrivilegeSet. + The versioning info for this managed object + + :return: The version_context of this IamPrivilegeSet. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamPrivilegeSet. + The versioning info for this managed object + + :param version_context: The version_context of this IamPrivilegeSet. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def account(self): """ Gets the account of this IamPrivilegeSet. :return: The account of this IamPrivilegeSet. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -331,7 +359,7 @@ def account(self, account): Sets the account of this IamPrivilegeSet. :param account: The account of this IamPrivilegeSet. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -340,6 +368,7 @@ def account(self, account): def name(self): """ Gets the name of this IamPrivilegeSet. + Name of the privilege set. :return: The name of this IamPrivilegeSet. :rtype: str @@ -350,6 +379,7 @@ def name(self): def name(self, name): """ Sets the name of this IamPrivilegeSet. + Name of the privilege set. :param name: The name of this IamPrivilegeSet. :type: str @@ -361,9 +391,10 @@ def name(self, name): def privileges(self): """ Gets the privileges of this IamPrivilegeSet. + Reference to the privileges. Privilege represents an action which can be performed in Intersight such as creating server profile, deleting a user etc. Privileges are assigned to a user using privilege sets and roles. :return: The privileges of this IamPrivilegeSet. - :rtype: list[MoMoRef] + :rtype: list[IamPrivilegeRef] """ return self._privileges @@ -371,9 +402,10 @@ def privileges(self): def privileges(self, privileges): """ Sets the privileges of this IamPrivilegeSet. + Reference to the privileges. Privilege represents an action which can be performed in Intersight such as creating server profile, deleting a user etc. Privileges are assigned to a user using privilege sets and roles. :param privileges: The privileges of this IamPrivilegeSet. - :type: list[MoMoRef] + :type: list[IamPrivilegeRef] """ self._privileges = privileges @@ -384,7 +416,7 @@ def system(self): Gets the system of this IamPrivilegeSet. :return: The system of this IamPrivilegeSet. - :rtype: MoMoRef + :rtype: IamSystemRef """ return self._system @@ -394,7 +426,7 @@ def system(self, system): Sets the system of this IamPrivilegeSet. :param system: The system of this IamPrivilegeSet. - :type: MoMoRef + :type: IamSystemRef """ self._system = system diff --git a/intersight/models/iam_privilege_set_list.py b/intersight/models/iam_privilege_set_list.py index 2352201a..85008f48 100644 --- a/intersight/models/iam_privilege_set_list.py +++ b/intersight/models/iam_privilege_set_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_privilege_set_ref.py b/intersight/models/iam_privilege_set_ref.py new file mode 100644 index 00000000..6bcfb7e9 --- /dev/null +++ b/intersight/models/iam_privilege_set_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamPrivilegeSetRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamPrivilegeSetRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamPrivilegeSetRef. + + :return: The moid of this IamPrivilegeSetRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamPrivilegeSetRef. + + :param moid: The moid of this IamPrivilegeSetRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamPrivilegeSetRef. + + :return: The object_type of this IamPrivilegeSetRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamPrivilegeSetRef. + + :param object_type: The object_type of this IamPrivilegeSetRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamPrivilegeSetRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_qualifier.py b/intersight/models/iam_qualifier.py index 94996bbe..a1ddf5d4 100644 --- a/intersight/models/iam_qualifier.py +++ b/intersight/models/iam_qualifier.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,16 +32,17 @@ class IamQualifier(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'name': 'str', - 'usergroup': 'MoMoRef', + 'usergroup': 'IamUserGroupRef', 'value': 'str' } @@ -55,12 +56,13 @@ class IamQualifier(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'name': 'Name', 'usergroup': 'Usergroup', 'value': 'Value' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, name=None, usergroup=None, value=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, name=None, usergroup=None, value=None): """ IamQualifier - a model defined in Swagger """ @@ -74,6 +76,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._name = None self._usergroup = None self._value = None @@ -96,6 +99,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if name is not None: self.name = name if usergroup is not None: @@ -133,7 +138,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamQualifier. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -144,7 +149,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamQualifier. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -271,7 +276,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamQualifier. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -282,7 +287,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamQualifier. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -291,7 +296,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamQualifier. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamQualifier. :rtype: list[MoTag] @@ -302,7 +307,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamQualifier. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamQualifier. :type: list[MoTag] @@ -310,11 +315,34 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamQualifier. + The versioning info for this managed object + + :return: The version_context of this IamQualifier. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamQualifier. + The versioning info for this managed object + + :param version_context: The version_context of this IamQualifier. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def name(self): """ Gets the name of this IamQualifier. - Name of the SAML attribute used to qualify a user to user group + Name of the SAML attribute used to qualify a user to user group. By default this is memberOf attribute in SAML assertion. :return: The name of this IamQualifier. :rtype: str @@ -325,7 +353,7 @@ def name(self): def name(self, name): """ Sets the name of this IamQualifier. - Name of the SAML attribute used to qualify a user to user group + Name of the SAML attribute used to qualify a user to user group. By default this is memberOf attribute in SAML assertion. :param name: The name of this IamQualifier. :type: str @@ -339,7 +367,7 @@ def usergroup(self): Gets the usergroup of this IamQualifier. :return: The usergroup of this IamQualifier. - :rtype: MoMoRef + :rtype: IamUserGroupRef """ return self._usergroup @@ -349,7 +377,7 @@ def usergroup(self, usergroup): Sets the usergroup of this IamQualifier. :param usergroup: The usergroup of this IamQualifier. - :type: MoMoRef + :type: IamUserGroupRef """ self._usergroup = usergroup @@ -358,7 +386,7 @@ def usergroup(self, usergroup): def value(self): """ Gets the value of this IamQualifier. - Value of SAML attribute + Value of the SAML attribute. :return: The value of this IamQualifier. :rtype: str @@ -369,7 +397,7 @@ def value(self): def value(self, value): """ Sets the value of this IamQualifier. - Value of SAML attribute + Value of the SAML attribute. :param value: The value of this IamQualifier. :type: str diff --git a/intersight/models/iam_qualifier_list.py b/intersight/models/iam_qualifier_list.py index 5313d67e..92d5646d 100644 --- a/intersight/models/iam_qualifier_list.py +++ b/intersight/models/iam_qualifier_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_qualifier_ref.py b/intersight/models/iam_qualifier_ref.py new file mode 100644 index 00000000..56120911 --- /dev/null +++ b/intersight/models/iam_qualifier_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamQualifierRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamQualifierRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamQualifierRef. + + :return: The moid of this IamQualifierRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamQualifierRef. + + :param moid: The moid of this IamQualifierRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamQualifierRef. + + :return: The object_type of this IamQualifierRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamQualifierRef. + + :param object_type: The object_type of this IamQualifierRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamQualifierRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_resource_limits.py b/intersight/models/iam_resource_limits.py index 541abcd0..21dec3bb 100644 --- a/intersight/models/iam_resource_limits.py +++ b/intersight/models/iam_resource_limits.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,16 @@ class IamResourceLimits(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', 'per_account_user_limit': 'int' } @@ -54,11 +55,12 @@ class IamResourceLimits(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account': 'Account', 'per_account_user_limit': 'PerAccountUserLimit' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, per_account_user_limit=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, per_account_user_limit=None): """ IamResourceLimits - a model defined in Swagger """ @@ -72,6 +74,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account = None self._per_account_user_limit = None @@ -93,6 +96,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account is not None: self.account = account if per_account_user_limit is not None: @@ -128,7 +133,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamResourceLimits. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -139,7 +144,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamResourceLimits. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -266,7 +271,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamResourceLimits. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -277,7 +282,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamResourceLimits. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -286,7 +291,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamResourceLimits. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamResourceLimits. :rtype: list[MoTag] @@ -297,7 +302,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamResourceLimits. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamResourceLimits. :type: list[MoTag] @@ -305,13 +310,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamResourceLimits. + The versioning info for this managed object + + :return: The version_context of this IamResourceLimits. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamResourceLimits. + The versioning info for this managed object + + :param version_context: The version_context of this IamResourceLimits. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def account(self): """ Gets the account of this IamResourceLimits. :return: The account of this IamResourceLimits. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -321,7 +349,7 @@ def account(self, account): Sets the account of this IamResourceLimits. :param account: The account of this IamResourceLimits. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -330,6 +358,7 @@ def account(self, account): def per_account_user_limit(self): """ Gets the per_account_user_limit of this IamResourceLimits. + Maximum users allowed in an account. Default value is 200. :return: The per_account_user_limit of this IamResourceLimits. :rtype: int @@ -340,6 +369,7 @@ def per_account_user_limit(self): def per_account_user_limit(self, per_account_user_limit): """ Sets the per_account_user_limit of this IamResourceLimits. + Maximum users allowed in an account. Default value is 200. :param per_account_user_limit: The per_account_user_limit of this IamResourceLimits. :type: int diff --git a/intersight/models/iam_resource_limits_list.py b/intersight/models/iam_resource_limits_list.py index 6dedb40e..e77081e0 100644 --- a/intersight/models/iam_resource_limits_list.py +++ b/intersight/models/iam_resource_limits_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_resource_limits_ref.py b/intersight/models/iam_resource_limits_ref.py new file mode 100644 index 00000000..d0a7d0f7 --- /dev/null +++ b/intersight/models/iam_resource_limits_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamResourceLimitsRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamResourceLimitsRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamResourceLimitsRef. + + :return: The moid of this IamResourceLimitsRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamResourceLimitsRef. + + :param moid: The moid of this IamResourceLimitsRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamResourceLimitsRef. + + :return: The object_type of this IamResourceLimitsRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamResourceLimitsRef. + + :param object_type: The object_type of this IamResourceLimitsRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamResourceLimitsRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_role.py b/intersight/models/iam_role.py index 6dda0d9a..8ace2310 100644 --- a/intersight/models/iam_role.py +++ b/intersight/models/iam_role.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,18 +32,19 @@ class IamRole(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', 'name': 'str', - 'privilege_sets': 'list[MoMoRef]', - 'system': 'MoMoRef' + 'privilege_sets': 'list[IamPrivilegeSetRef]', + 'system': 'IamSystemRef' } attribute_map = { @@ -56,13 +57,14 @@ class IamRole(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account': 'Account', 'name': 'Name', 'privilege_sets': 'PrivilegeSets', 'system': 'System' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, name=None, privilege_sets=None, system=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, name=None, privilege_sets=None, system=None): """ IamRole - a model defined in Swagger """ @@ -76,6 +78,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account = None self._name = None self._privilege_sets = None @@ -99,6 +102,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account is not None: self.account = account if name is not None: @@ -138,7 +143,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamRole. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +154,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamRole. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +281,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamRole. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +292,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamRole. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -296,7 +301,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamRole. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamRole. :rtype: list[MoTag] @@ -307,7 +312,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamRole. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamRole. :type: list[MoTag] @@ -315,13 +320,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamRole. + The versioning info for this managed object + + :return: The version_context of this IamRole. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamRole. + The versioning info for this managed object + + :param version_context: The version_context of this IamRole. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def account(self): """ Gets the account of this IamRole. :return: The account of this IamRole. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -331,7 +359,7 @@ def account(self, account): Sets the account of this IamRole. :param account: The account of this IamRole. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -340,6 +368,7 @@ def account(self, account): def name(self): """ Gets the name of this IamRole. + Name of the role. :return: The name of this IamRole. :rtype: str @@ -350,6 +379,7 @@ def name(self): def name(self, name): """ Sets the name of this IamRole. + Name of the role. :param name: The name of this IamRole. :type: str @@ -361,9 +391,10 @@ def name(self, name): def privilege_sets(self): """ Gets the privilege_sets of this IamRole. + Reference to the privilege sets. Privilege set is a collection of privileges. Privilege sets are assigned to a user using roles. :return: The privilege_sets of this IamRole. - :rtype: list[MoMoRef] + :rtype: list[IamPrivilegeSetRef] """ return self._privilege_sets @@ -371,9 +402,10 @@ def privilege_sets(self): def privilege_sets(self, privilege_sets): """ Sets the privilege_sets of this IamRole. + Reference to the privilege sets. Privilege set is a collection of privileges. Privilege sets are assigned to a user using roles. :param privilege_sets: The privilege_sets of this IamRole. - :type: list[MoMoRef] + :type: list[IamPrivilegeSetRef] """ self._privilege_sets = privilege_sets @@ -384,7 +416,7 @@ def system(self): Gets the system of this IamRole. :return: The system of this IamRole. - :rtype: MoMoRef + :rtype: IamSystemRef """ return self._system @@ -394,7 +426,7 @@ def system(self, system): Sets the system of this IamRole. :param system: The system of this IamRole. - :type: MoMoRef + :type: IamSystemRef """ self._system = system diff --git a/intersight/models/iam_role_list.py b/intersight/models/iam_role_list.py index 2c6ad270..8eb6043c 100644 --- a/intersight/models/iam_role_list.py +++ b/intersight/models/iam_role_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_role_ref.py b/intersight/models/iam_role_ref.py new file mode 100644 index 00000000..dbe87675 --- /dev/null +++ b/intersight/models/iam_role_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamRoleRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamRoleRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamRoleRef. + + :return: The moid of this IamRoleRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamRoleRef. + + :param moid: The moid of this IamRoleRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamRoleRef. + + :return: The object_type of this IamRoleRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamRoleRef. + + :param object_type: The object_type of this IamRoleRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamRoleRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_workflow_task.py b/intersight/models/iam_service_provider.py similarity index 56% rename from intersight/models/workflow_workflow_task.py rename to intersight/models/iam_service_provider.py index cb2dc62f..554c932b 100644 --- a/intersight/models/workflow_workflow_task.py +++ b/intersight/models/iam_service_provider.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class WorkflowWorkflowTask(object): +class IamServiceProvider(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,20 +32,19 @@ class WorkflowWorkflowTask(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'input_params': 'object', + 'version_context': 'MoVersionContext', + 'entity_id': 'str', + 'metadata': 'str', 'name': 'str', - 'optional': 'bool', - 'task_ref_name': 'str', - 'type': 'str', - 'workflowmeta': 'MoMoRef' + 'system': 'IamSystemRef' } attribute_map = { @@ -58,17 +57,16 @@ class WorkflowWorkflowTask(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', - 'input_params': 'InputParams', + 'version_context': 'VersionContext', + 'entity_id': 'EntityId', + 'metadata': 'Metadata', 'name': 'Name', - 'optional': 'Optional', - 'task_ref_name': 'TaskRefName', - 'type': 'Type', - 'workflowmeta': 'Workflowmeta' + 'system': 'System' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, input_params=None, name=None, optional=None, task_ref_name=None, type=None, workflowmeta=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, entity_id=None, metadata=None, name=None, system=None): """ - WorkflowWorkflowTask - a model defined in Swagger + IamServiceProvider - a model defined in Swagger """ self._account_moid = None @@ -80,12 +78,11 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None - self._input_params = None + self._version_context = None + self._entity_id = None + self._metadata = None self._name = None - self._optional = None - self._task_ref_name = None - self._type = None - self._workflowmeta = None + self._system = None if account_moid is not None: self.account_moid = account_moid @@ -105,26 +102,24 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags - if input_params is not None: - self.input_params = input_params + if version_context is not None: + self.version_context = version_context + if entity_id is not None: + self.entity_id = entity_id + if metadata is not None: + self.metadata = metadata if name is not None: self.name = name - if optional is not None: - self.optional = optional - if task_ref_name is not None: - self.task_ref_name = task_ref_name - if type is not None: - self.type = type - if workflowmeta is not None: - self.workflowmeta = workflowmeta + if system is not None: + self.system = system @property def account_moid(self): """ - Gets the account_moid of this WorkflowWorkflowTask. + Gets the account_moid of this IamServiceProvider. The Account ID for this managed object. - :return: The account_moid of this WorkflowWorkflowTask. + :return: The account_moid of this IamServiceProvider. :rtype: str """ return self._account_moid @@ -132,10 +127,10 @@ def account_moid(self): @account_moid.setter def account_moid(self, account_moid): """ - Sets the account_moid of this WorkflowWorkflowTask. + Sets the account_moid of this IamServiceProvider. The Account ID for this managed object. - :param account_moid: The account_moid of this WorkflowWorkflowTask. + :param account_moid: The account_moid of this IamServiceProvider. :type: str """ @@ -144,22 +139,22 @@ def account_moid(self, account_moid): @property def ancestors(self): """ - Gets the ancestors of this WorkflowWorkflowTask. + Gets the ancestors of this IamServiceProvider. Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - :return: The ancestors of this WorkflowWorkflowTask. - :rtype: list[MoMoRef] + :return: The ancestors of this IamServiceProvider. + :rtype: list[MoBaseMoRef] """ return self._ancestors @ancestors.setter def ancestors(self, ancestors): """ - Sets the ancestors of this WorkflowWorkflowTask. + Sets the ancestors of this IamServiceProvider. Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - :param ancestors: The ancestors of this WorkflowWorkflowTask. - :type: list[MoMoRef] + :param ancestors: The ancestors of this IamServiceProvider. + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -167,10 +162,10 @@ def ancestors(self, ancestors): @property def create_time(self): """ - Gets the create_time of this WorkflowWorkflowTask. + Gets the create_time of this IamServiceProvider. The time when this managed object was created. - :return: The create_time of this WorkflowWorkflowTask. + :return: The create_time of this IamServiceProvider. :rtype: datetime """ return self._create_time @@ -178,10 +173,10 @@ def create_time(self): @create_time.setter def create_time(self, create_time): """ - Sets the create_time of this WorkflowWorkflowTask. + Sets the create_time of this IamServiceProvider. The time when this managed object was created. - :param create_time: The create_time of this WorkflowWorkflowTask. + :param create_time: The create_time of this IamServiceProvider. :type: datetime """ @@ -190,10 +185,10 @@ def create_time(self, create_time): @property def mod_time(self): """ - Gets the mod_time of this WorkflowWorkflowTask. + Gets the mod_time of this IamServiceProvider. The time when this managed object was last modified. - :return: The mod_time of this WorkflowWorkflowTask. + :return: The mod_time of this IamServiceProvider. :rtype: datetime """ return self._mod_time @@ -201,10 +196,10 @@ def mod_time(self): @mod_time.setter def mod_time(self, mod_time): """ - Sets the mod_time of this WorkflowWorkflowTask. + Sets the mod_time of this IamServiceProvider. The time when this managed object was last modified. - :param mod_time: The mod_time of this WorkflowWorkflowTask. + :param mod_time: The mod_time of this IamServiceProvider. :type: datetime """ @@ -213,10 +208,10 @@ def mod_time(self, mod_time): @property def moid(self): """ - Gets the moid of this WorkflowWorkflowTask. + Gets the moid of this IamServiceProvider. A unique identifier of this Managed Object instance. - :return: The moid of this WorkflowWorkflowTask. + :return: The moid of this IamServiceProvider. :rtype: str """ return self._moid @@ -224,10 +219,10 @@ def moid(self): @moid.setter def moid(self, moid): """ - Sets the moid of this WorkflowWorkflowTask. + Sets the moid of this IamServiceProvider. A unique identifier of this Managed Object instance. - :param moid: The moid of this WorkflowWorkflowTask. + :param moid: The moid of this IamServiceProvider. :type: str """ @@ -236,10 +231,10 @@ def moid(self, moid): @property def object_type(self): """ - Gets the object_type of this WorkflowWorkflowTask. + Gets the object_type of this IamServiceProvider. The fully-qualified type of this managed object, e.g. the class name. - :return: The object_type of this WorkflowWorkflowTask. + :return: The object_type of this IamServiceProvider. :rtype: str """ return self._object_type @@ -247,10 +242,10 @@ def object_type(self): @object_type.setter def object_type(self, object_type): """ - Sets the object_type of this WorkflowWorkflowTask. + Sets the object_type of this IamServiceProvider. The fully-qualified type of this managed object, e.g. the class name. - :param object_type: The object_type of this WorkflowWorkflowTask. + :param object_type: The object_type of this IamServiceProvider. :type: str """ @@ -259,10 +254,10 @@ def object_type(self, object_type): @property def owners(self): """ - Gets the owners of this WorkflowWorkflowTask. + Gets the owners of this IamServiceProvider. An array of owners which represent effective ownership of this object. - :return: The owners of this WorkflowWorkflowTask. + :return: The owners of this IamServiceProvider. :rtype: list[str] """ return self._owners @@ -270,10 +265,10 @@ def owners(self): @owners.setter def owners(self, owners): """ - Sets the owners of this WorkflowWorkflowTask. + Sets the owners of this IamServiceProvider. An array of owners which represent effective ownership of this object. - :param owners: The owners of this WorkflowWorkflowTask. + :param owners: The owners of this IamServiceProvider. :type: list[str] """ @@ -282,22 +277,22 @@ def owners(self, owners): @property def parent(self): """ - Gets the parent of this WorkflowWorkflowTask. + Gets the parent of this IamServiceProvider. The direct ancestor of this managed object in the containment hierarchy. - :return: The parent of this WorkflowWorkflowTask. - :rtype: MoMoRef + :return: The parent of this IamServiceProvider. + :rtype: MoBaseMoRef """ return self._parent @parent.setter def parent(self, parent): """ - Sets the parent of this WorkflowWorkflowTask. + Sets the parent of this IamServiceProvider. The direct ancestor of this managed object in the containment hierarchy. - :param parent: The parent of this WorkflowWorkflowTask. - :type: MoMoRef + :param parent: The parent of this IamServiceProvider. + :type: MoBaseMoRef """ self._parent = parent @@ -305,10 +300,10 @@ def parent(self, parent): @property def tags(self): """ - Gets the tags of this WorkflowWorkflowTask. - An array of tags, which allow to add key, value meta-data to managed objects. + Gets the tags of this IamServiceProvider. + An array of tags, which allow to add key, value meta-data to managed objects. - :return: The tags of this WorkflowWorkflowTask. + :return: The tags of this IamServiceProvider. :rtype: list[MoTag] """ return self._tags @@ -316,140 +311,127 @@ def tags(self): @tags.setter def tags(self, tags): """ - Sets the tags of this WorkflowWorkflowTask. - An array of tags, which allow to add key, value meta-data to managed objects. + Sets the tags of this IamServiceProvider. + An array of tags, which allow to add key, value meta-data to managed objects. - :param tags: The tags of this WorkflowWorkflowTask. + :param tags: The tags of this IamServiceProvider. :type: list[MoTag] """ self._tags = tags @property - def input_params(self): + def version_context(self): """ - Gets the input_params of this WorkflowWorkflowTask. + Gets the version_context of this IamServiceProvider. + The versioning info for this managed object - :return: The input_params of this WorkflowWorkflowTask. - :rtype: object + :return: The version_context of this IamServiceProvider. + :rtype: MoVersionContext """ - return self._input_params + return self._version_context - @input_params.setter - def input_params(self, input_params): + @version_context.setter + def version_context(self, version_context): """ - Sets the input_params of this WorkflowWorkflowTask. + Sets the version_context of this IamServiceProvider. + The versioning info for this managed object - :param input_params: The input_params of this WorkflowWorkflowTask. - :type: object + :param version_context: The version_context of this IamServiceProvider. + :type: MoVersionContext """ - self._input_params = input_params + self._version_context = version_context @property - def name(self): + def entity_id(self): """ - Gets the name of this WorkflowWorkflowTask. + Gets the entity_id of this IamServiceProvider. + Entity ID of the Intersight Service Provider. In SAML, the entity ID uniquely identifies the IdP/Service Provider. - :return: The name of this WorkflowWorkflowTask. + :return: The entity_id of this IamServiceProvider. :rtype: str """ - return self._name + return self._entity_id - @name.setter - def name(self, name): + @entity_id.setter + def entity_id(self, entity_id): """ - Sets the name of this WorkflowWorkflowTask. + Sets the entity_id of this IamServiceProvider. + Entity ID of the Intersight Service Provider. In SAML, the entity ID uniquely identifies the IdP/Service Provider. - :param name: The name of this WorkflowWorkflowTask. + :param entity_id: The entity_id of this IamServiceProvider. :type: str """ - self._name = name - - @property - def optional(self): - """ - Gets the optional of this WorkflowWorkflowTask. - - :return: The optional of this WorkflowWorkflowTask. - :rtype: bool - """ - return self._optional - - @optional.setter - def optional(self, optional): - """ - Sets the optional of this WorkflowWorkflowTask. - - :param optional: The optional of this WorkflowWorkflowTask. - :type: bool - """ - - self._optional = optional + self._entity_id = entity_id @property - def task_ref_name(self): + def metadata(self): """ - Gets the task_ref_name of this WorkflowWorkflowTask. + Gets the metadata of this IamServiceProvider. + Metadata of the Intersight Service Provider. User downloads the Intersight Service Provider metadata and integrates it with their IdP for authentication. - :return: The task_ref_name of this WorkflowWorkflowTask. + :return: The metadata of this IamServiceProvider. :rtype: str """ - return self._task_ref_name + return self._metadata - @task_ref_name.setter - def task_ref_name(self, task_ref_name): + @metadata.setter + def metadata(self, metadata): """ - Sets the task_ref_name of this WorkflowWorkflowTask. + Sets the metadata of this IamServiceProvider. + Metadata of the Intersight Service Provider. User downloads the Intersight Service Provider metadata and integrates it with their IdP for authentication. - :param task_ref_name: The task_ref_name of this WorkflowWorkflowTask. + :param metadata: The metadata of this IamServiceProvider. :type: str """ - self._task_ref_name = task_ref_name + self._metadata = metadata @property - def type(self): + def name(self): """ - Gets the type of this WorkflowWorkflowTask. + Gets the name of this IamServiceProvider. + Name of the Intersight Service Provider. - :return: The type of this WorkflowWorkflowTask. + :return: The name of this IamServiceProvider. :rtype: str """ - return self._type + return self._name - @type.setter - def type(self, type): + @name.setter + def name(self, name): """ - Sets the type of this WorkflowWorkflowTask. + Sets the name of this IamServiceProvider. + Name of the Intersight Service Provider. - :param type: The type of this WorkflowWorkflowTask. + :param name: The name of this IamServiceProvider. :type: str """ - self._type = type + self._name = name @property - def workflowmeta(self): + def system(self): """ - Gets the workflowmeta of this WorkflowWorkflowTask. + Gets the system of this IamServiceProvider. - :return: The workflowmeta of this WorkflowWorkflowTask. - :rtype: MoMoRef + :return: The system of this IamServiceProvider. + :rtype: IamSystemRef """ - return self._workflowmeta + return self._system - @workflowmeta.setter - def workflowmeta(self, workflowmeta): + @system.setter + def system(self, system): """ - Sets the workflowmeta of this WorkflowWorkflowTask. + Sets the system of this IamServiceProvider. - :param workflowmeta: The workflowmeta of this WorkflowWorkflowTask. - :type: MoMoRef + :param system: The system of this IamServiceProvider. + :type: IamSystemRef """ - self._workflowmeta = workflowmeta + self._system = system def to_dict(self): """ @@ -493,7 +475,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, WorkflowWorkflowTask): + if not isinstance(other, IamServiceProvider): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/iam_service_provider_list.py b/intersight/models/iam_service_provider_list.py new file mode 100644 index 00000000..b72e22d1 --- /dev/null +++ b/intersight/models/iam_service_provider_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamServiceProviderList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[IamServiceProvider]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + IamServiceProviderList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this IamServiceProviderList. + The number of iamServiceProviders matching your request in total for all pages. + + :return: The count of this IamServiceProviderList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this IamServiceProviderList. + The number of iamServiceProviders matching your request in total for all pages. + + :param count: The count of this IamServiceProviderList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this IamServiceProviderList. + The array of iamServiceProviders matching your request. + + :return: The results of this IamServiceProviderList. + :rtype: list[IamServiceProvider] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this IamServiceProviderList. + The array of iamServiceProviders matching your request. + + :param results: The results of this IamServiceProviderList. + :type: list[IamServiceProvider] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamServiceProviderList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_service_provider_ref.py b/intersight/models/iam_service_provider_ref.py new file mode 100644 index 00000000..63016ed5 --- /dev/null +++ b/intersight/models/iam_service_provider_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamServiceProviderRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamServiceProviderRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamServiceProviderRef. + + :return: The moid of this IamServiceProviderRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamServiceProviderRef. + + :param moid: The moid of this IamServiceProviderRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamServiceProviderRef. + + :return: The object_type of this IamServiceProviderRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamServiceProviderRef. + + :param object_type: The object_type of this IamServiceProviderRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamServiceProviderRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_session.py b/intersight/models/iam_session.py index 84a6cc2a..22f42251 100644 --- a/intersight/models/iam_session.py +++ b/intersight/models/iam_session.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,23 @@ class IamSession(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'account_permissions': 'list[IamAccountPermissions]', 'client_ip_address': 'str', 'expiration': 'datetime', 'idle_time_expiration': 'datetime', 'last_login_client': 'str', 'last_login_time': 'datetime', - 'user': 'MoMoRef' + 'permission': 'IamPermissionRef', + 'user': 'IamUserRef' } attribute_map = { @@ -58,15 +61,18 @@ class IamSession(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', + 'account_permissions': 'AccountPermissions', 'client_ip_address': 'ClientIpAddress', 'expiration': 'Expiration', 'idle_time_expiration': 'IdleTimeExpiration', 'last_login_client': 'LastLoginClient', 'last_login_time': 'LastLoginTime', + 'permission': 'Permission', 'user': 'User' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, client_ip_address=None, expiration=None, idle_time_expiration=None, last_login_client=None, last_login_time=None, user=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account_permissions=None, client_ip_address=None, expiration=None, idle_time_expiration=None, last_login_client=None, last_login_time=None, permission=None, user=None): """ IamSession - a model defined in Swagger """ @@ -80,11 +86,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None + self._account_permissions = None self._client_ip_address = None self._expiration = None self._idle_time_expiration = None self._last_login_client = None self._last_login_time = None + self._permission = None self._user = None if account_moid is not None: @@ -105,6 +114,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context + if account_permissions is not None: + self.account_permissions = account_permissions if client_ip_address is not None: self.client_ip_address = client_ip_address if expiration is not None: @@ -115,6 +128,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.last_login_client = last_login_client if last_login_time is not None: self.last_login_time = last_login_time + if permission is not None: + self.permission = permission if user is not None: self.user = user @@ -148,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamSession. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamSession. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamSession. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamSession. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -306,7 +321,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamSession. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamSession. :rtype: list[MoTag] @@ -317,7 +332,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamSession. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamSession. :type: list[MoTag] @@ -325,10 +340,57 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamSession. + The versioning info for this managed object + + :return: The version_context of this IamSession. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamSession. + The versioning info for this managed object + + :param version_context: The version_context of this IamSession. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def account_permissions(self): + """ + Gets the account_permissions of this IamSession. + Specifies the accounts and the permissions within each account which a user can select after authentication. After authentication if user has access to multiple permissions, then user and session object are created in onboarding user account and asked to select one of these permissions. + + :return: The account_permissions of this IamSession. + :rtype: list[IamAccountPermissions] + """ + return self._account_permissions + + @account_permissions.setter + def account_permissions(self, account_permissions): + """ + Sets the account_permissions of this IamSession. + Specifies the accounts and the permissions within each account which a user can select after authentication. After authentication if user has access to multiple permissions, then user and session object are created in onboarding user account and asked to select one of these permissions. + + :param account_permissions: The account_permissions of this IamSession. + :type: list[IamAccountPermissions] + """ + + self._account_permissions = account_permissions + @property def client_ip_address(self): """ Gets the client_ip_address of this IamSession. + Represents the user agent IP address from which the session is launched. :return: The client_ip_address of this IamSession. :rtype: str @@ -339,6 +401,7 @@ def client_ip_address(self): def client_ip_address(self, client_ip_address): """ Sets the client_ip_address of this IamSession. + Represents the user agent IP address from which the session is launched. :param client_ip_address: The client_ip_address of this IamSession. :type: str @@ -350,6 +413,7 @@ def client_ip_address(self, client_ip_address): def expiration(self): """ Gets the expiration of this IamSession. + Expiration time for the session. :return: The expiration of this IamSession. :rtype: datetime @@ -360,6 +424,7 @@ def expiration(self): def expiration(self, expiration): """ Sets the expiration of this IamSession. + Expiration time for the session. :param expiration: The expiration of this IamSession. :type: datetime @@ -371,6 +436,7 @@ def expiration(self, expiration): def idle_time_expiration(self): """ Gets the idle_time_expiration of this IamSession. + Idle time expiration for the session. :return: The idle_time_expiration of this IamSession. :rtype: datetime @@ -381,6 +447,7 @@ def idle_time_expiration(self): def idle_time_expiration(self, idle_time_expiration): """ Sets the idle_time_expiration of this IamSession. + Idle time expiration for the session. :param idle_time_expiration: The idle_time_expiration of this IamSession. :type: datetime @@ -392,7 +459,7 @@ def idle_time_expiration(self, idle_time_expiration): def last_login_client(self): """ Gets the last_login_client of this IamSession. - Specifies client address from where last successful login is initiated + Specifies the client address from which last login is initiated. :return: The last_login_client of this IamSession. :rtype: str @@ -403,7 +470,7 @@ def last_login_client(self): def last_login_client(self, last_login_client): """ Sets the last_login_client of this IamSession. - Specifies client address from where last successful login is initiated + Specifies the client address from which last login is initiated. :param last_login_client: The last_login_client of this IamSession. :type: str @@ -415,7 +482,7 @@ def last_login_client(self, last_login_client): def last_login_time(self): """ Gets the last_login_time of this IamSession. - Specifies last login time for user + Specifies the last login time for user. :return: The last_login_time of this IamSession. :rtype: datetime @@ -426,7 +493,7 @@ def last_login_time(self): def last_login_time(self, last_login_time): """ Sets the last_login_time of this IamSession. - Specifies last login time for user + Specifies the last login time for user. :param last_login_time: The last_login_time of this IamSession. :type: datetime @@ -434,13 +501,36 @@ def last_login_time(self, last_login_time): self._last_login_time = last_login_time + @property + def permission(self): + """ + Gets the permission of this IamSession. + Permissions associated with the web session. Permission provides a way to assign roles to a user or user group to perform operations on object hierarchy. + + :return: The permission of this IamSession. + :rtype: IamPermissionRef + """ + return self._permission + + @permission.setter + def permission(self, permission): + """ + Sets the permission of this IamSession. + Permissions associated with the web session. Permission provides a way to assign roles to a user or user group to perform operations on object hierarchy. + + :param permission: The permission of this IamSession. + :type: IamPermissionRef + """ + + self._permission = permission + @property def user(self): """ Gets the user of this IamSession. :return: The user of this IamSession. - :rtype: MoMoRef + :rtype: IamUserRef """ return self._user @@ -450,7 +540,7 @@ def user(self, user): Sets the user of this IamSession. :param user: The user of this IamSession. - :type: MoMoRef + :type: IamUserRef """ self._user = user diff --git a/intersight/models/iam_session_limits.py b/intersight/models/iam_session_limits.py index 773345d7..882ff186 100644 --- a/intersight/models/iam_session_limits.py +++ b/intersight/models/iam_session_limits.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,16 @@ class IamSessionLimits(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', 'idle_time_out': 'int', 'maximum_limit': 'int', 'per_user_limit': 'int', @@ -57,6 +58,7 @@ class IamSessionLimits(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account': 'Account', 'idle_time_out': 'IdleTimeOut', 'maximum_limit': 'MaximumLimit', @@ -64,7 +66,7 @@ class IamSessionLimits(object): 'session_time_out': 'SessionTimeOut' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, idle_time_out=None, maximum_limit=None, per_user_limit=None, session_time_out=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, idle_time_out=None, maximum_limit=None, per_user_limit=None, session_time_out=None): """ IamSessionLimits - a model defined in Swagger """ @@ -78,6 +80,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account = None self._idle_time_out = None self._maximum_limit = None @@ -102,6 +105,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account is not None: self.account = account if idle_time_out is not None: @@ -143,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamSessionLimits. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -154,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamSessionLimits. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -281,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamSessionLimits. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -292,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamSessionLimits. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -301,7 +306,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamSessionLimits. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamSessionLimits. :rtype: list[MoTag] @@ -312,7 +317,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamSessionLimits. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamSessionLimits. :type: list[MoTag] @@ -320,13 +325,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamSessionLimits. + The versioning info for this managed object + + :return: The version_context of this IamSessionLimits. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamSessionLimits. + The versioning info for this managed object + + :param version_context: The version_context of this IamSessionLimits. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def account(self): """ Gets the account of this IamSessionLimits. :return: The account of this IamSessionLimits. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -336,7 +364,7 @@ def account(self, account): Sets the account of this IamSessionLimits. :param account: The account of this IamSessionLimits. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -345,6 +373,7 @@ def account(self, account): def idle_time_out(self): """ Gets the idle_time_out of this IamSessionLimits. + Duration in seconds specifying the idle timeout interval of web session. Default value is 1800 seconds. When a session is not refreshed for this duration, backend will mark the session as idle and remove the session. :return: The idle_time_out of this IamSessionLimits. :rtype: int @@ -355,6 +384,7 @@ def idle_time_out(self): def idle_time_out(self, idle_time_out): """ Sets the idle_time_out of this IamSessionLimits. + Duration in seconds specifying the idle timeout interval of web session. Default value is 1800 seconds. When a session is not refreshed for this duration, backend will mark the session as idle and remove the session. :param idle_time_out: The idle_time_out of this IamSessionLimits. :type: int @@ -366,6 +396,7 @@ def idle_time_out(self, idle_time_out): def maximum_limit(self): """ Gets the maximum_limit of this IamSessionLimits. + Maximum sessions allowed in an account. Default value is 128. :return: The maximum_limit of this IamSessionLimits. :rtype: int @@ -376,6 +407,7 @@ def maximum_limit(self): def maximum_limit(self, maximum_limit): """ Sets the maximum_limit of this IamSessionLimits. + Maximum sessions allowed in an account. Default value is 128. :param maximum_limit: The maximum_limit of this IamSessionLimits. :type: int @@ -387,6 +419,7 @@ def maximum_limit(self, maximum_limit): def per_user_limit(self): """ Gets the per_user_limit of this IamSessionLimits. + Maximum sessions allowed per user. Default value is 32. :return: The per_user_limit of this IamSessionLimits. :rtype: int @@ -397,6 +430,7 @@ def per_user_limit(self): def per_user_limit(self, per_user_limit): """ Sets the per_user_limit of this IamSessionLimits. + Maximum sessions allowed per user. Default value is 32. :param per_user_limit: The per_user_limit of this IamSessionLimits. :type: int @@ -408,6 +442,7 @@ def per_user_limit(self, per_user_limit): def session_time_out(self): """ Gets the session_time_out of this IamSessionLimits. + Session expiry duration in seconds. Default value is 57600 seconds or 16 hours. :return: The session_time_out of this IamSessionLimits. :rtype: int @@ -418,6 +453,7 @@ def session_time_out(self): def session_time_out(self, session_time_out): """ Sets the session_time_out of this IamSessionLimits. + Session expiry duration in seconds. Default value is 57600 seconds or 16 hours. :param session_time_out: The session_time_out of this IamSessionLimits. :type: int diff --git a/intersight/models/iam_session_limits_list.py b/intersight/models/iam_session_limits_list.py index 3c9fe0d9..2c427389 100644 --- a/intersight/models/iam_session_limits_list.py +++ b/intersight/models/iam_session_limits_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_session_limits_ref.py b/intersight/models/iam_session_limits_ref.py new file mode 100644 index 00000000..ca009b61 --- /dev/null +++ b/intersight/models/iam_session_limits_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamSessionLimitsRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamSessionLimitsRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamSessionLimitsRef. + + :return: The moid of this IamSessionLimitsRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamSessionLimitsRef. + + :param moid: The moid of this IamSessionLimitsRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamSessionLimitsRef. + + :return: The object_type of this IamSessionLimitsRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamSessionLimitsRef. + + :param object_type: The object_type of this IamSessionLimitsRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamSessionLimitsRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_session_list.py b/intersight/models/iam_session_list.py index 1ebd4aa7..a3f33cad 100644 --- a/intersight/models/iam_session_list.py +++ b/intersight/models/iam_session_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_session_ref.py b/intersight/models/iam_session_ref.py new file mode 100644 index 00000000..7891269b --- /dev/null +++ b/intersight/models/iam_session_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamSessionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamSessionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamSessionRef. + + :return: The moid of this IamSessionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamSessionRef. + + :param moid: The moid of this IamSessionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamSessionRef. + + :return: The object_type of this IamSessionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamSessionRef. + + :param object_type: The object_type of this IamSessionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamSessionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_sp_console_ref.py b/intersight/models/iam_sp_console_ref.py new file mode 100644 index 00000000..51cbe889 --- /dev/null +++ b/intersight/models/iam_sp_console_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamSpConsoleRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamSpConsoleRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamSpConsoleRef. + + :return: The moid of this IamSpConsoleRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamSpConsoleRef. + + :param moid: The moid of this IamSpConsoleRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamSpConsoleRef. + + :return: The object_type of this IamSpConsoleRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamSpConsoleRef. + + :param object_type: The object_type of this IamSpConsoleRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamSpConsoleRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_sp_engine_ref.py b/intersight/models/iam_sp_engine_ref.py new file mode 100644 index 00000000..034e2602 --- /dev/null +++ b/intersight/models/iam_sp_engine_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamSpEngineRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamSpEngineRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamSpEngineRef. + + :return: The moid of this IamSpEngineRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamSpEngineRef. + + :param moid: The moid of this IamSpEngineRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamSpEngineRef. + + :return: The object_type of this IamSpEngineRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamSpEngineRef. + + :param object_type: The object_type of this IamSpEngineRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamSpEngineRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_sso_session_attributes.py b/intersight/models/iam_sso_session_attributes.py new file mode 100644 index 00000000..a08d1dd6 --- /dev/null +++ b/intersight/models/iam_sso_session_attributes.py @@ -0,0 +1,125 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamSsoSessionAttributes(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'idp_session_index': 'str' + } + + attribute_map = { + 'idp_session_index': 'IdpSessionIndex' + } + + def __init__(self, idp_session_index=None): + """ + IamSsoSessionAttributes - a model defined in Swagger + """ + + self._idp_session_index = None + + if idp_session_index is not None: + self.idp_session_index = idp_session_index + + @property + def idp_session_index(self): + """ + Gets the idp_session_index of this IamSsoSessionAttributes. + SAML SessionIndex attribute sent by IdP in the assertion. This has to be sent back to IdP in LogoutRequest. + + :return: The idp_session_index of this IamSsoSessionAttributes. + :rtype: str + """ + return self._idp_session_index + + @idp_session_index.setter + def idp_session_index(self, idp_session_index): + """ + Sets the idp_session_index of this IamSsoSessionAttributes. + SAML SessionIndex attribute sent by IdP in the assertion. This has to be sent back to IdP in LogoutRequest. + + :param idp_session_index: The idp_session_index of this IamSsoSessionAttributes. + :type: str + """ + + self._idp_session_index = idp_session_index + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamSsoSessionAttributes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_sso_session_attributes_ref.py b/intersight/models/iam_sso_session_attributes_ref.py new file mode 100644 index 00000000..68e7e138 --- /dev/null +++ b/intersight/models/iam_sso_session_attributes_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamSsoSessionAttributesRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamSsoSessionAttributesRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamSsoSessionAttributesRef. + + :return: The moid of this IamSsoSessionAttributesRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamSsoSessionAttributesRef. + + :param moid: The moid of this IamSsoSessionAttributesRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamSsoSessionAttributesRef. + + :return: The object_type of this IamSsoSessionAttributesRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamSsoSessionAttributesRef. + + :param object_type: The object_type of this IamSsoSessionAttributesRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamSsoSessionAttributesRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_system.py b/intersight/models/iam_system.py index fdbb5bbf..f927927f 100644 --- a/intersight/models/iam_system.py +++ b/intersight/models/iam_system.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,22 @@ class IamSystem(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'end_point_privileges': 'list[MoMoRef]', - 'end_point_roles': 'list[MoMoRef]', - 'idp': 'MoMoRef', - 'privilege_sets': 'list[MoMoRef]', - 'privileges': 'list[MoMoRef]', - 'roles': 'list[MoMoRef]' + 'version_context': 'MoVersionContext', + 'end_point_privileges': 'list[IamEndPointPrivilegeRef]', + 'end_point_roles': 'list[IamEndPointRoleRef]', + 'idp': 'IamIdpRef', + 'privilege_sets': 'list[IamPrivilegeSetRef]', + 'privileges': 'list[IamPrivilegeRef]', + 'roles': 'list[IamRoleRef]', + 'service_provider': 'IamServiceProviderRef' } attribute_map = { @@ -58,15 +60,17 @@ class IamSystem(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'end_point_privileges': 'EndPointPrivileges', 'end_point_roles': 'EndPointRoles', 'idp': 'Idp', 'privilege_sets': 'PrivilegeSets', 'privileges': 'Privileges', - 'roles': 'Roles' + 'roles': 'Roles', + 'service_provider': 'ServiceProvider' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, end_point_privileges=None, end_point_roles=None, idp=None, privilege_sets=None, privileges=None, roles=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, end_point_privileges=None, end_point_roles=None, idp=None, privilege_sets=None, privileges=None, roles=None, service_provider=None): """ IamSystem - a model defined in Swagger """ @@ -80,12 +84,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._end_point_privileges = None self._end_point_roles = None self._idp = None self._privilege_sets = None self._privileges = None self._roles = None + self._service_provider = None if account_moid is not None: self.account_moid = account_moid @@ -105,6 +111,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if end_point_privileges is not None: self.end_point_privileges = end_point_privileges if end_point_roles is not None: @@ -117,6 +125,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.privileges = privileges if roles is not None: self.roles = roles + if service_provider is not None: + self.service_provider = service_provider @property def account_moid(self): @@ -148,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamSystem. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamSystem. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamSystem. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamSystem. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -306,7 +316,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamSystem. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamSystem. :rtype: list[MoTag] @@ -317,7 +327,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamSystem. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamSystem. :type: list[MoTag] @@ -325,13 +335,37 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamSystem. + The versioning info for this managed object + + :return: The version_context of this IamSystem. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamSystem. + The versioning info for this managed object + + :param version_context: The version_context of this IamSystem. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def end_point_privileges(self): """ Gets the end_point_privileges of this IamSystem. + Privileges defined in end point devices such as UCSFI, IMC, HX managed by Intersight. These privileges are assigned to Intersight users using end point roles to perform operations such as GUI/CLI cross launch. :return: The end_point_privileges of this IamSystem. - :rtype: list[MoMoRef] + :rtype: list[IamEndPointPrivilegeRef] """ return self._end_point_privileges @@ -339,9 +373,10 @@ def end_point_privileges(self): def end_point_privileges(self, end_point_privileges): """ Sets the end_point_privileges of this IamSystem. + Privileges defined in end point devices such as UCSFI, IMC, HX managed by Intersight. These privileges are assigned to Intersight users using end point roles to perform operations such as GUI/CLI cross launch. :param end_point_privileges: The end_point_privileges of this IamSystem. - :type: list[MoMoRef] + :type: list[IamEndPointPrivilegeRef] """ self._end_point_privileges = end_point_privileges @@ -350,9 +385,10 @@ def end_point_privileges(self, end_point_privileges): def end_point_roles(self): """ Gets the end_point_roles of this IamSystem. + Roles defined in end point devices such as UCSFI, IMC, HX managed by Intersight. These roles are assigned to Intersight users to perform end point operations such as GUI/CLI cross launch. :return: The end_point_roles of this IamSystem. - :rtype: list[MoMoRef] + :rtype: list[IamEndPointRoleRef] """ return self._end_point_roles @@ -360,9 +396,10 @@ def end_point_roles(self): def end_point_roles(self, end_point_roles): """ Sets the end_point_roles of this IamSystem. + Roles defined in end point devices such as UCSFI, IMC, HX managed by Intersight. These roles are assigned to Intersight users to perform end point operations such as GUI/CLI cross launch. :param end_point_roles: The end_point_roles of this IamSystem. - :type: list[MoMoRef] + :type: list[IamEndPointRoleRef] """ self._end_point_roles = end_point_roles @@ -371,9 +408,10 @@ def end_point_roles(self, end_point_roles): def idp(self): """ Gets the idp of this IamSystem. + Default Cisco IdP used for SAML authentication. :return: The idp of this IamSystem. - :rtype: MoMoRef + :rtype: IamIdpRef """ return self._idp @@ -381,9 +419,10 @@ def idp(self): def idp(self, idp): """ Sets the idp of this IamSystem. + Default Cisco IdP used for SAML authentication. :param idp: The idp of this IamSystem. - :type: MoMoRef + :type: IamIdpRef """ self._idp = idp @@ -392,9 +431,10 @@ def idp(self, idp): def privilege_sets(self): """ Gets the privilege_sets of this IamSystem. + Privilege set is a collection of privileges. Privilege sets are assigned to a user using roles. :return: The privilege_sets of this IamSystem. - :rtype: list[MoMoRef] + :rtype: list[IamPrivilegeSetRef] """ return self._privilege_sets @@ -402,9 +442,10 @@ def privilege_sets(self): def privilege_sets(self, privilege_sets): """ Sets the privilege_sets of this IamSystem. + Privilege set is a collection of privileges. Privilege sets are assigned to a user using roles. :param privilege_sets: The privilege_sets of this IamSystem. - :type: list[MoMoRef] + :type: list[IamPrivilegeSetRef] """ self._privilege_sets = privilege_sets @@ -413,9 +454,10 @@ def privilege_sets(self, privilege_sets): def privileges(self): """ Gets the privileges of this IamSystem. + Privilege represents an action which can be performed in Intersight such as creating server profile, deleting a user etc. Privileges are assigned to a user using privilege sets and roles. :return: The privileges of this IamSystem. - :rtype: list[MoMoRef] + :rtype: list[IamPrivilegeRef] """ return self._privileges @@ -423,9 +465,10 @@ def privileges(self): def privileges(self, privileges): """ Sets the privileges of this IamSystem. + Privilege represents an action which can be performed in Intersight such as creating server profile, deleting a user etc. Privileges are assigned to a user using privilege sets and roles. :param privileges: The privileges of this IamSystem. - :type: list[MoMoRef] + :type: list[IamPrivilegeRef] """ self._privileges = privileges @@ -434,9 +477,10 @@ def privileges(self, privileges): def roles(self): """ Gets the roles of this IamSystem. + Default roles such as Account Administrator and Read-Only roles. A role is a collection of privilege sets that are assigned to a user using a permission object. :return: The roles of this IamSystem. - :rtype: list[MoMoRef] + :rtype: list[IamRoleRef] """ return self._roles @@ -444,13 +488,37 @@ def roles(self): def roles(self, roles): """ Sets the roles of this IamSystem. + Default roles such as Account Administrator and Read-Only roles. A role is a collection of privilege sets that are assigned to a user using a permission object. :param roles: The roles of this IamSystem. - :type: list[MoMoRef] + :type: list[IamRoleRef] """ self._roles = roles + @property + def service_provider(self): + """ + Gets the service_provider of this IamSystem. + SAML service provider which holds the Intersight Service Provider's SAML entity ID and metadata to integrate with the IdPs. + + :return: The service_provider of this IamSystem. + :rtype: IamServiceProviderRef + """ + return self._service_provider + + @service_provider.setter + def service_provider(self, service_provider): + """ + Sets the service_provider of this IamSystem. + SAML service provider which holds the Intersight Service Provider's SAML entity ID and metadata to integrate with the IdPs. + + :param service_provider: The service_provider of this IamSystem. + :type: IamServiceProviderRef + """ + + self._service_provider = service_provider + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/iam_system_list.py b/intersight/models/iam_system_list.py index 26ca4855..026914d1 100644 --- a/intersight/models/iam_system_list.py +++ b/intersight/models/iam_system_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_system_ref.py b/intersight/models/iam_system_ref.py new file mode 100644 index 00000000..27529723 --- /dev/null +++ b/intersight/models/iam_system_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamSystemRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamSystemRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamSystemRef. + + :return: The moid of this IamSystemRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamSystemRef. + + :param moid: The moid of this IamSystemRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamSystemRef. + + :return: The object_type of this IamSystemRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamSystemRef. + + :param object_type: The object_type of this IamSystemRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamSystemRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_user.py b/intersight/models/iam_user.py index b9fa657d..73e5b173 100644 --- a/intersight/models/iam_user.py +++ b/intersight/models/iam_user.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,23 +32,26 @@ class IamUser(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'api_keys': 'list[MoMoRef]', + 'version_context': 'MoVersionContext', + 'api_keys': 'list[IamApiKeyRef]', 'client_ip_address': 'str', 'email': 'str', 'first_name': 'str', - 'idpreference': 'MoMoRef', + 'idp': 'IamIdpRef', + 'idpreference': 'IamIdpReferenceRef', 'last_login_time': 'datetime', 'last_name': 'str', 'name': 'str', - 'sessions': 'list[MoMoRef]', + 'permissions': 'list[IamPermissionRef]', + 'sessions': 'list[IamSessionRef]', 'user_type': 'str' } @@ -62,19 +65,22 @@ class IamUser(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'api_keys': 'ApiKeys', 'client_ip_address': 'ClientIpAddress', 'email': 'Email', 'first_name': 'FirstName', + 'idp': 'Idp', 'idpreference': 'Idpreference', 'last_login_time': 'LastLoginTime', 'last_name': 'LastName', 'name': 'Name', + 'permissions': 'Permissions', 'sessions': 'Sessions', 'user_type': 'UserType' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, api_keys=None, client_ip_address=None, email=None, first_name=None, idpreference=None, last_login_time=None, last_name=None, name=None, sessions=None, user_type=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, api_keys=None, client_ip_address=None, email=None, first_name=None, idp=None, idpreference=None, last_login_time=None, last_name=None, name=None, permissions=None, sessions=None, user_type=None): """ IamUser - a model defined in Swagger """ @@ -88,14 +94,17 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._api_keys = None self._client_ip_address = None self._email = None self._first_name = None + self._idp = None self._idpreference = None self._last_login_time = None self._last_name = None self._name = None + self._permissions = None self._sessions = None self._user_type = None @@ -117,6 +126,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if api_keys is not None: self.api_keys = api_keys if client_ip_address is not None: @@ -125,6 +136,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.email = email if first_name is not None: self.first_name = first_name + if idp is not None: + self.idp = idp if idpreference is not None: self.idpreference = idpreference if last_login_time is not None: @@ -133,6 +146,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.last_name = last_name if name is not None: self.name = name + if permissions is not None: + self.permissions = permissions if sessions is not None: self.sessions = sessions if user_type is not None: @@ -168,7 +183,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamUser. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -179,7 +194,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamUser. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -306,7 +321,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamUser. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -317,7 +332,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamUser. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -326,7 +341,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamUser. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamUser. :rtype: list[MoTag] @@ -337,7 +352,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamUser. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamUser. :type: list[MoTag] @@ -345,13 +360,37 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamUser. + The versioning info for this managed object + + :return: The version_context of this IamUser. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamUser. + The versioning info for this managed object + + :param version_context: The version_context of this IamUser. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def api_keys(self): """ Gets the api_keys of this IamUser. + Current API keys of the user. API keys are used to programatically perform API calls. :return: The api_keys of this IamUser. - :rtype: list[MoMoRef] + :rtype: list[IamApiKeyRef] """ return self._api_keys @@ -359,9 +398,10 @@ def api_keys(self): def api_keys(self, api_keys): """ Sets the api_keys of this IamUser. + Current API keys of the user. API keys are used to programatically perform API calls. :param api_keys: The api_keys of this IamUser. - :type: list[MoMoRef] + :type: list[IamApiKeyRef] """ self._api_keys = api_keys @@ -370,7 +410,7 @@ def api_keys(self, api_keys): def client_ip_address(self): """ Gets the client_ip_address of this IamUser. - Specifies the IP address from where user logged in last time + Specifies the IP address from which the user logged in the last time. :return: The client_ip_address of this IamUser. :rtype: str @@ -381,7 +421,7 @@ def client_ip_address(self): def client_ip_address(self, client_ip_address): """ Sets the client_ip_address of this IamUser. - Specifies the IP address from where user logged in last time + Specifies the IP address from which the user logged in the last time. :param client_ip_address: The client_ip_address of this IamUser. :type: str @@ -393,6 +433,7 @@ def client_ip_address(self, client_ip_address): def email(self): """ Gets the email of this IamUser. + Email of the user. Users are added to Intersight using the email configured in the IdP. :return: The email of this IamUser. :rtype: str @@ -403,6 +444,7 @@ def email(self): def email(self, email): """ Sets the email of this IamUser. + Email of the user. Users are added to Intersight using the email configured in the IdP. :param email: The email of this IamUser. :type: str @@ -414,6 +456,7 @@ def email(self, email): def first_name(self): """ Gets the first_name of this IamUser. + First name of the user. This field is populated from the IdP attributes received after authentication. :return: The first_name of this IamUser. :rtype: str @@ -424,6 +467,7 @@ def first_name(self): def first_name(self, first_name): """ Sets the first_name of this IamUser. + First name of the user. This field is populated from the IdP attributes received after authentication. :param first_name: The first_name of this IamUser. :type: str @@ -431,13 +475,34 @@ def first_name(self, first_name): self._first_name = first_name + @property + def idp(self): + """ + Gets the idp of this IamUser. + + :return: The idp of this IamUser. + :rtype: IamIdpRef + """ + return self._idp + + @idp.setter + def idp(self, idp): + """ + Sets the idp of this IamUser. + + :param idp: The idp of this IamUser. + :type: IamIdpRef + """ + + self._idp = idp + @property def idpreference(self): """ Gets the idpreference of this IamUser. :return: The idpreference of this IamUser. - :rtype: MoMoRef + :rtype: IamIdpReferenceRef """ return self._idpreference @@ -447,7 +512,7 @@ def idpreference(self, idpreference): Sets the idpreference of this IamUser. :param idpreference: The idpreference of this IamUser. - :type: MoMoRef + :type: IamIdpReferenceRef """ self._idpreference = idpreference @@ -456,7 +521,7 @@ def idpreference(self, idpreference): def last_login_time(self): """ Gets the last_login_time of this IamUser. - Specifies last login time for user + Specifies the last login time for user. :return: The last_login_time of this IamUser. :rtype: datetime @@ -467,7 +532,7 @@ def last_login_time(self): def last_login_time(self, last_login_time): """ Sets the last_login_time of this IamUser. - Specifies last login time for user + Specifies the last login time for user. :param last_login_time: The last_login_time of this IamUser. :type: datetime @@ -479,6 +544,7 @@ def last_login_time(self, last_login_time): def last_name(self): """ Gets the last_name of this IamUser. + Last name of the user. This field is populated from the IdP attributes received after authentication. :return: The last_name of this IamUser. :rtype: str @@ -489,6 +555,7 @@ def last_name(self): def last_name(self, last_name): """ Sets the last_name of this IamUser. + Last name of the user. This field is populated from the IdP attributes received after authentication. :param last_name: The last_name of this IamUser. :type: str @@ -500,6 +567,7 @@ def last_name(self, last_name): def name(self): """ Gets the name of this IamUser. + UserID as configured in the IdP. :return: The name of this IamUser. :rtype: str @@ -510,6 +578,7 @@ def name(self): def name(self, name): """ Sets the name of this IamUser. + UserID as configured in the IdP. :param name: The name of this IamUser. :type: str @@ -517,13 +586,37 @@ def name(self, name): self._name = name + @property + def permissions(self): + """ + Gets the permissions of this IamUser. + Permissions assigned to the user. Permission provides a way to assign roles to a user or user group to perform operations on object hierarchy. + + :return: The permissions of this IamUser. + :rtype: list[IamPermissionRef] + """ + return self._permissions + + @permissions.setter + def permissions(self, permissions): + """ + Sets the permissions of this IamUser. + Permissions assigned to the user. Permission provides a way to assign roles to a user or user group to perform operations on object hierarchy. + + :param permissions: The permissions of this IamUser. + :type: list[IamPermissionRef] + """ + + self._permissions = permissions + @property def sessions(self): """ Gets the sessions of this IamUser. + Current web sessions of the user. After a user logs into Intersight, a session object is created. This session object is deleted upon logout, idle timeout, expiry timeout, or manual deletion. :return: The sessions of this IamUser. - :rtype: list[MoMoRef] + :rtype: list[IamSessionRef] """ return self._sessions @@ -531,9 +624,10 @@ def sessions(self): def sessions(self, sessions): """ Sets the sessions of this IamUser. + Current web sessions of the user. After a user logs into Intersight, a session object is created. This session object is deleted upon logout, idle timeout, expiry timeout, or manual deletion. :param sessions: The sessions of this IamUser. - :type: list[MoMoRef] + :type: list[IamSessionRef] """ self._sessions = sessions @@ -542,7 +636,7 @@ def sessions(self, sessions): def user_type(self): """ Gets the user_type of this IamUser. - Specifies if user has logged in via user group or added statically + Specifies if the user is added manually by specifying email, or has logged in using groups, based on IdP attributes received during authentication. If added manually, the user type will be static, otherwise dynamic. :return: The user_type of this IamUser. :rtype: str @@ -553,7 +647,7 @@ def user_type(self): def user_type(self, user_type): """ Sets the user_type of this IamUser. - Specifies if user has logged in via user group or added statically + Specifies if the user is added manually by specifying email, or has logged in using groups, based on IdP attributes received during authentication. If added manually, the user type will be static, otherwise dynamic. :param user_type: The user_type of this IamUser. :type: str diff --git a/intersight/models/iam_user_group.py b/intersight/models/iam_user_group.py index 8dafe6bd..35e4ad55 100644 --- a/intersight/models/iam_user_group.py +++ b/intersight/models/iam_user_group.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,18 +32,21 @@ class IamUserGroup(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'idpreference': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'idp': 'IamIdpRef', + 'idpreference': 'IamIdpReferenceRef', 'name': 'str', - 'qualifier': 'MoMoRef', - 'users': 'list[MoMoRef]' + 'permissions': 'list[IamPermissionRef]', + 'qualifier': 'IamQualifierRef', + 'users': 'list[IamUserRef]' } attribute_map = { @@ -56,13 +59,16 @@ class IamUserGroup(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', + 'idp': 'Idp', 'idpreference': 'Idpreference', 'name': 'Name', + 'permissions': 'Permissions', 'qualifier': 'Qualifier', 'users': 'Users' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, idpreference=None, name=None, qualifier=None, users=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, idp=None, idpreference=None, name=None, permissions=None, qualifier=None, users=None): """ IamUserGroup - a model defined in Swagger """ @@ -76,8 +82,11 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None + self._idp = None self._idpreference = None self._name = None + self._permissions = None self._qualifier = None self._users = None @@ -99,10 +108,16 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context + if idp is not None: + self.idp = idp if idpreference is not None: self.idpreference = idpreference if name is not None: self.name = name + if permissions is not None: + self.permissions = permissions if qualifier is not None: self.qualifier = qualifier if users is not None: @@ -138,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamUserGroup. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamUserGroup. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamUserGroup. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamUserGroup. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -296,7 +311,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamUserGroup. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamUserGroup. :rtype: list[MoTag] @@ -307,7 +322,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamUserGroup. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamUserGroup. :type: list[MoTag] @@ -315,13 +330,57 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamUserGroup. + The versioning info for this managed object + + :return: The version_context of this IamUserGroup. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamUserGroup. + The versioning info for this managed object + + :param version_context: The version_context of this IamUserGroup. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def idp(self): + """ + Gets the idp of this IamUserGroup. + + :return: The idp of this IamUserGroup. + :rtype: IamIdpRef + """ + return self._idp + + @idp.setter + def idp(self, idp): + """ + Sets the idp of this IamUserGroup. + + :param idp: The idp of this IamUserGroup. + :type: IamIdpRef + """ + + self._idp = idp + @property def idpreference(self): """ Gets the idpreference of this IamUserGroup. :return: The idpreference of this IamUserGroup. - :rtype: MoMoRef + :rtype: IamIdpReferenceRef """ return self._idpreference @@ -331,7 +390,7 @@ def idpreference(self, idpreference): Sets the idpreference of this IamUserGroup. :param idpreference: The idpreference of this IamUserGroup. - :type: MoMoRef + :type: IamIdpReferenceRef """ self._idpreference = idpreference @@ -340,6 +399,7 @@ def idpreference(self, idpreference): def name(self): """ Gets the name of this IamUserGroup. + Name of the user group. :return: The name of this IamUserGroup. :rtype: str @@ -350,6 +410,7 @@ def name(self): def name(self, name): """ Sets the name of this IamUserGroup. + Name of the user group. :param name: The name of this IamUserGroup. :type: str @@ -357,13 +418,37 @@ def name(self, name): self._name = name + @property + def permissions(self): + """ + Gets the permissions of this IamUserGroup. + Permissions assigned to the user group. Permission provides a way to assign roles to a user or user group to perform operations on object hierarchy. + + :return: The permissions of this IamUserGroup. + :rtype: list[IamPermissionRef] + """ + return self._permissions + + @permissions.setter + def permissions(self, permissions): + """ + Sets the permissions of this IamUserGroup. + Permissions assigned to the user group. Permission provides a way to assign roles to a user or user group to perform operations on object hierarchy. + + :param permissions: The permissions of this IamUserGroup. + :type: list[IamPermissionRef] + """ + + self._permissions = permissions + @property def qualifier(self): """ Gets the qualifier of this IamUserGroup. + Qualifier defines which Idp attribute qualifies users to be part of a user group. :return: The qualifier of this IamUserGroup. - :rtype: MoMoRef + :rtype: IamQualifierRef """ return self._qualifier @@ -371,9 +456,10 @@ def qualifier(self): def qualifier(self, qualifier): """ Sets the qualifier of this IamUserGroup. + Qualifier defines which Idp attribute qualifies users to be part of a user group. :param qualifier: The qualifier of this IamUserGroup. - :type: MoMoRef + :type: IamQualifierRef """ self._qualifier = qualifier @@ -382,9 +468,10 @@ def qualifier(self, qualifier): def users(self): """ Gets the users of this IamUserGroup. + Users logged in using this user group. :return: The users of this IamUserGroup. - :rtype: list[MoMoRef] + :rtype: list[IamUserRef] """ return self._users @@ -392,9 +479,10 @@ def users(self): def users(self, users): """ Sets the users of this IamUserGroup. + Users logged in using this user group. :param users: The users of this IamUserGroup. - :type: list[MoMoRef] + :type: list[IamUserRef] """ self._users = users diff --git a/intersight/models/iam_user_group_list.py b/intersight/models/iam_user_group_list.py index 04383f9f..04b480cd 100644 --- a/intersight/models/iam_user_group_list.py +++ b/intersight/models/iam_user_group_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_user_group_ref.py b/intersight/models/iam_user_group_ref.py new file mode 100644 index 00000000..b4b9441c --- /dev/null +++ b/intersight/models/iam_user_group_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamUserGroupRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamUserGroupRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamUserGroupRef. + + :return: The moid of this IamUserGroupRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamUserGroupRef. + + :param moid: The moid of this IamUserGroupRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamUserGroupRef. + + :return: The object_type of this IamUserGroupRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamUserGroupRef. + + :param object_type: The object_type of this IamUserGroupRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamUserGroupRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_user_list.py b/intersight/models/iam_user_list.py index a57bc840..37af5c4d 100644 --- a/intersight/models/iam_user_list.py +++ b/intersight/models/iam_user_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_user_login_time_ref.py b/intersight/models/iam_user_login_time_ref.py new file mode 100644 index 00000000..a50d2273 --- /dev/null +++ b/intersight/models/iam_user_login_time_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamUserLoginTimeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamUserLoginTimeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamUserLoginTimeRef. + + :return: The moid of this IamUserLoginTimeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamUserLoginTimeRef. + + :param moid: The moid of this IamUserLoginTimeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamUserLoginTimeRef. + + :return: The object_type of this IamUserLoginTimeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamUserLoginTimeRef. + + :param object_type: The object_type of this IamUserLoginTimeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamUserLoginTimeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_user_preference.py b/intersight/models/iam_user_preference.py index d05133bd..ff125ded 100644 --- a/intersight/models/iam_user_preference.py +++ b/intersight/models/iam_user_preference.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,17 @@ class IamUserPreference(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'idp_reference': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'idp': 'IamIdpRef', + 'idp_reference': 'IamIdpReferenceRef', 'preference': 'object' } @@ -54,11 +56,13 @@ class IamUserPreference(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', + 'idp': 'Idp', 'idp_reference': 'IdpReference', 'preference': 'Preference' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, idp_reference=None, preference=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, idp=None, idp_reference=None, preference=None): """ IamUserPreference - a model defined in Swagger """ @@ -72,6 +76,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None + self._idp = None self._idp_reference = None self._preference = None @@ -93,6 +99,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context + if idp is not None: + self.idp = idp if idp_reference is not None: self.idp_reference = idp_reference if preference is not None: @@ -128,7 +138,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IamUserPreference. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -139,7 +149,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IamUserPreference. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -266,7 +276,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IamUserPreference. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -277,7 +287,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IamUserPreference. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -286,7 +296,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IamUserPreference. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IamUserPreference. :rtype: list[MoTag] @@ -297,7 +307,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IamUserPreference. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IamUserPreference. :type: list[MoTag] @@ -305,13 +315,57 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IamUserPreference. + The versioning info for this managed object + + :return: The version_context of this IamUserPreference. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IamUserPreference. + The versioning info for this managed object + + :param version_context: The version_context of this IamUserPreference. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def idp(self): + """ + Gets the idp of this IamUserPreference. + + :return: The idp of this IamUserPreference. + :rtype: IamIdpRef + """ + return self._idp + + @idp.setter + def idp(self, idp): + """ + Sets the idp of this IamUserPreference. + + :param idp: The idp of this IamUserPreference. + :type: IamIdpRef + """ + + self._idp = idp + @property def idp_reference(self): """ Gets the idp_reference of this IamUserPreference. :return: The idp_reference of this IamUserPreference. - :rtype: MoMoRef + :rtype: IamIdpReferenceRef """ return self._idp_reference @@ -321,7 +375,7 @@ def idp_reference(self, idp_reference): Sets the idp_reference of this IamUserPreference. :param idp_reference: The idp_reference of this IamUserPreference. - :type: MoMoRef + :type: IamIdpReferenceRef """ self._idp_reference = idp_reference @@ -330,7 +384,7 @@ def idp_reference(self, idp_reference): def preference(self): """ Gets the preference of this IamUserPreference. - Specifies users UI preferences + Specifies the user's UI preferences. :return: The preference of this IamUserPreference. :rtype: object @@ -341,7 +395,7 @@ def preference(self): def preference(self, preference): """ Sets the preference of this IamUserPreference. - Specifies users UI preferences + Specifies the user's UI preferences. :param preference: The preference of this IamUserPreference. :type: object diff --git a/intersight/models/iam_user_preference_list.py b/intersight/models/iam_user_preference_list.py index b6ba6f6e..75579d4b 100644 --- a/intersight/models/iam_user_preference_list.py +++ b/intersight/models/iam_user_preference_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/iam_user_preference_ref.py b/intersight/models/iam_user_preference_ref.py new file mode 100644 index 00000000..8eb7b8ca --- /dev/null +++ b/intersight/models/iam_user_preference_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamUserPreferenceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamUserPreferenceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamUserPreferenceRef. + + :return: The moid of this IamUserPreferenceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamUserPreferenceRef. + + :param moid: The moid of this IamUserPreferenceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamUserPreferenceRef. + + :return: The object_type of this IamUserPreferenceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamUserPreferenceRef. + + :param object_type: The object_type of this IamUserPreferenceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamUserPreferenceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/iam_user_ref.py b/intersight/models/iam_user_ref.py new file mode 100644 index 00000000..3f5b03f7 --- /dev/null +++ b/intersight/models/iam_user_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IamUserRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IamUserRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IamUserRef. + + :return: The moid of this IamUserRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IamUserRef. + + :param moid: The moid of this IamUserRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IamUserRef. + + :return: The object_type of this IamUserRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IamUserRef. + + :param object_type: The object_type of this IamUserRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IamUserRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/imcconnector_sd_card_image_download_message_ref.py b/intersight/models/imcconnector_sd_card_image_download_message_ref.py new file mode 100644 index 00000000..dcc7973d --- /dev/null +++ b/intersight/models/imcconnector_sd_card_image_download_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ImcconnectorSdCardImageDownloadMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ImcconnectorSdCardImageDownloadMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ImcconnectorSdCardImageDownloadMessageRef. + + :return: The moid of this ImcconnectorSdCardImageDownloadMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ImcconnectorSdCardImageDownloadMessageRef. + + :param moid: The moid of this ImcconnectorSdCardImageDownloadMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ImcconnectorSdCardImageDownloadMessageRef. + + :return: The object_type of this ImcconnectorSdCardImageDownloadMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ImcconnectorSdCardImageDownloadMessageRef. + + :param object_type: The object_type of this ImcconnectorSdCardImageDownloadMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ImcconnectorSdCardImageDownloadMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_base.py b/intersight/models/inventory_base.py index d9f5ce66..d94f9a9d 100644 --- a/intersight/models/inventory_base.py +++ b/intersight/models/inventory_base.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class InventoryBase(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str' @@ -55,12 +56,13 @@ class InventoryBase(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None): """ InventoryBase - a model defined in Swagger """ @@ -74,6 +76,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -96,6 +99,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -133,7 +138,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this InventoryBase. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -144,7 +149,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this InventoryBase. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -271,7 +276,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this InventoryBase. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -282,7 +287,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this InventoryBase. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -291,7 +296,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this InventoryBase. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this InventoryBase. :rtype: list[MoTag] @@ -302,7 +307,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this InventoryBase. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this InventoryBase. :type: list[MoTag] @@ -310,6 +315,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this InventoryBase. + The versioning info for this managed object + + :return: The version_context of this InventoryBase. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this InventoryBase. + The versioning info for this managed object + + :param version_context: The version_context of this InventoryBase. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ diff --git a/intersight/models/inventory_base_ref.py b/intersight/models/inventory_base_ref.py new file mode 100644 index 00000000..d671d7ac --- /dev/null +++ b/intersight/models/inventory_base_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryBaseRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + InventoryBaseRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this InventoryBaseRef. + + :return: The moid of this InventoryBaseRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryBaseRef. + + :param moid: The moid of this InventoryBaseRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryBaseRef. + + :return: The object_type of this InventoryBaseRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryBaseRef. + + :param object_type: The object_type of this InventoryBaseRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryBaseRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_device_info.py b/intersight/models/inventory_device_info.py index 91082553..366486fd 100644 --- a/intersight/models/inventory_device_info.py +++ b/intersight/models/inventory_device_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,20 @@ class InventoryDeviceInfo(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'event_counter': 'int', 'event_counter_enabled': 'bool', - 'registered_device': 'MoMoRef' + 'interval': 'int', + 'job_info': 'list[InventoryJobInfo]', + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -55,12 +58,15 @@ class InventoryDeviceInfo(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'event_counter': 'EventCounter', 'event_counter_enabled': 'EventCounterEnabled', + 'interval': 'Interval', + 'job_info': 'JobInfo', 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, event_counter=None, event_counter_enabled=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, event_counter=None, event_counter_enabled=None, interval=None, job_info=None, registered_device=None): """ InventoryDeviceInfo - a model defined in Swagger """ @@ -74,8 +80,11 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._event_counter = None self._event_counter_enabled = None + self._interval = None + self._job_info = None self._registered_device = None if account_moid is not None: @@ -96,10 +105,16 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if event_counter is not None: self.event_counter = event_counter if event_counter_enabled is not None: self.event_counter_enabled = event_counter_enabled + if interval is not None: + self.interval = interval + if job_info is not None: + self.job_info = job_info if registered_device is not None: self.registered_device = registered_device @@ -133,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this InventoryDeviceInfo. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -144,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this InventoryDeviceInfo. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -271,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this InventoryDeviceInfo. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -282,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this InventoryDeviceInfo. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -291,7 +306,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this InventoryDeviceInfo. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this InventoryDeviceInfo. :rtype: list[MoTag] @@ -302,7 +317,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this InventoryDeviceInfo. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this InventoryDeviceInfo. :type: list[MoTag] @@ -310,6 +325,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this InventoryDeviceInfo. + The versioning info for this managed object + + :return: The version_context of this InventoryDeviceInfo. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this InventoryDeviceInfo. + The versioning info for this managed object + + :param version_context: The version_context of this InventoryDeviceInfo. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def event_counter(self): """ @@ -352,13 +390,57 @@ def event_counter_enabled(self, event_counter_enabled): self._event_counter_enabled = event_counter_enabled + @property + def interval(self): + """ + Gets the interval of this InventoryDeviceInfo. + The time interval (in hours) between job runs + + :return: The interval of this InventoryDeviceInfo. + :rtype: int + """ + return self._interval + + @interval.setter + def interval(self, interval): + """ + Sets the interval of this InventoryDeviceInfo. + The time interval (in hours) between job runs + + :param interval: The interval of this InventoryDeviceInfo. + :type: int + """ + + self._interval = interval + + @property + def job_info(self): + """ + Gets the job_info of this InventoryDeviceInfo. + + :return: The job_info of this InventoryDeviceInfo. + :rtype: list[InventoryJobInfo] + """ + return self._job_info + + @job_info.setter + def job_info(self, job_info): + """ + Sets the job_info of this InventoryDeviceInfo. + + :param job_info: The job_info of this InventoryDeviceInfo. + :type: list[InventoryJobInfo] + """ + + self._job_info = job_info + @property def registered_device(self): """ Gets the registered_device of this InventoryDeviceInfo. :return: The registered_device of this InventoryDeviceInfo. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -368,7 +450,7 @@ def registered_device(self, registered_device): Sets the registered_device of this InventoryDeviceInfo. :param registered_device: The registered_device of this InventoryDeviceInfo. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/inventory_device_info_list.py b/intersight/models/inventory_device_info_list.py index 6e102dc3..ed26273f 100644 --- a/intersight/models/inventory_device_info_list.py +++ b/intersight/models/inventory_device_info_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/inventory_device_info_ref.py b/intersight/models/inventory_device_info_ref.py new file mode 100644 index 00000000..dcbba1fc --- /dev/null +++ b/intersight/models/inventory_device_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryDeviceInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + InventoryDeviceInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this InventoryDeviceInfoRef. + + :return: The moid of this InventoryDeviceInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryDeviceInfoRef. + + :param moid: The moid of this InventoryDeviceInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryDeviceInfoRef. + + :return: The object_type of this InventoryDeviceInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryDeviceInfoRef. + + :param object_type: The object_type of this InventoryDeviceInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryDeviceInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_dn_mo_binding.py b/intersight/models/inventory_dn_mo_binding.py index 3d7250cc..065ebaba 100644 --- a/intersight/models/inventory_dn_mo_binding.py +++ b/intersight/models/inventory_dn_mo_binding.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,16 +32,17 @@ class InventoryDnMoBinding(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'dn': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'target_mo_id': 'str', 'target_mo_type': 'str' } @@ -56,13 +57,14 @@ class InventoryDnMoBinding(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'dn': 'Dn', 'registered_device': 'RegisteredDevice', 'target_mo_id': 'TargetMoId', 'target_mo_type': 'TargetMoType' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, dn=None, registered_device=None, target_mo_id=None, target_mo_type=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, dn=None, registered_device=None, target_mo_id=None, target_mo_type=None): """ InventoryDnMoBinding - a model defined in Swagger """ @@ -76,6 +78,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._dn = None self._registered_device = None self._target_mo_id = None @@ -99,6 +102,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if dn is not None: self.dn = dn if registered_device is not None: @@ -138,7 +143,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this InventoryDnMoBinding. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +154,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this InventoryDnMoBinding. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +281,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this InventoryDnMoBinding. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +292,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this InventoryDnMoBinding. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -296,7 +301,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this InventoryDnMoBinding. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this InventoryDnMoBinding. :rtype: list[MoTag] @@ -307,7 +312,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this InventoryDnMoBinding. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this InventoryDnMoBinding. :type: list[MoTag] @@ -315,6 +320,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this InventoryDnMoBinding. + The versioning info for this managed object + + :return: The version_context of this InventoryDnMoBinding. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this InventoryDnMoBinding. + The versioning info for this managed object + + :param version_context: The version_context of this InventoryDnMoBinding. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def dn(self): """ @@ -342,7 +370,7 @@ def registered_device(self): Gets the registered_device of this InventoryDnMoBinding. :return: The registered_device of this InventoryDnMoBinding. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -352,7 +380,7 @@ def registered_device(self, registered_device): Sets the registered_device of this InventoryDnMoBinding. :param registered_device: The registered_device of this InventoryDnMoBinding. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/inventory_dn_mo_binding_list.py b/intersight/models/inventory_dn_mo_binding_list.py index 3552e5d7..bfdbab08 100644 --- a/intersight/models/inventory_dn_mo_binding_list.py +++ b/intersight/models/inventory_dn_mo_binding_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/inventory_dn_mo_binding_ref.py b/intersight/models/inventory_dn_mo_binding_ref.py new file mode 100644 index 00000000..b245533a --- /dev/null +++ b/intersight/models/inventory_dn_mo_binding_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryDnMoBindingRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + InventoryDnMoBindingRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this InventoryDnMoBindingRef. + + :return: The moid of this InventoryDnMoBindingRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryDnMoBindingRef. + + :param moid: The moid of this InventoryDnMoBindingRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryDnMoBindingRef. + + :return: The object_type of this InventoryDnMoBindingRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryDnMoBindingRef. + + :param object_type: The object_type of this InventoryDnMoBindingRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryDnMoBindingRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_generic_inventory.py b/intersight/models/inventory_generic_inventory.py index 3a80f195..8c3743cb 100644 --- a/intersight/models/inventory_generic_inventory.py +++ b/intersight/models/inventory_generic_inventory.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,21 @@ class InventoryGenericInventory(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', - 'inventory_generic_inventory_holder': 'MoMoRef', + 'inventory_generic_inventory_holder': 'InventoryGenericInventoryHolderRef', 'key': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'type': 'str', 'value': 'str' } @@ -60,6 +61,7 @@ class InventoryGenericInventory(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -70,7 +72,7 @@ class InventoryGenericInventory(object): 'value': 'Value' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, inventory_generic_inventory_holder=None, key=None, registered_device=None, type=None, value=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, inventory_generic_inventory_holder=None, key=None, registered_device=None, type=None, value=None): """ InventoryGenericInventory - a model defined in Swagger """ @@ -84,6 +86,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -111,6 +114,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -158,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this InventoryGenericInventory. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this InventoryGenericInventory. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this InventoryGenericInventory. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this InventoryGenericInventory. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -316,7 +321,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this InventoryGenericInventory. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this InventoryGenericInventory. :rtype: list[MoTag] @@ -327,7 +332,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this InventoryGenericInventory. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this InventoryGenericInventory. :type: list[MoTag] @@ -335,6 +340,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this InventoryGenericInventory. + The versioning info for this managed object + + :return: The version_context of this InventoryGenericInventory. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this InventoryGenericInventory. + The versioning info for this managed object + + :param version_context: The version_context of this InventoryGenericInventory. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -404,7 +432,7 @@ def inventory_generic_inventory_holder(self): Gets the inventory_generic_inventory_holder of this InventoryGenericInventory. :return: The inventory_generic_inventory_holder of this InventoryGenericInventory. - :rtype: MoMoRef + :rtype: InventoryGenericInventoryHolderRef """ return self._inventory_generic_inventory_holder @@ -414,7 +442,7 @@ def inventory_generic_inventory_holder(self, inventory_generic_inventory_holder) Sets the inventory_generic_inventory_holder of this InventoryGenericInventory. :param inventory_generic_inventory_holder: The inventory_generic_inventory_holder of this InventoryGenericInventory. - :type: MoMoRef + :type: InventoryGenericInventoryHolderRef """ self._inventory_generic_inventory_holder = inventory_generic_inventory_holder @@ -446,7 +474,7 @@ def registered_device(self): Gets the registered_device of this InventoryGenericInventory. :return: The registered_device of this InventoryGenericInventory. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -456,7 +484,7 @@ def registered_device(self, registered_device): Sets the registered_device of this InventoryGenericInventory. :param registered_device: The registered_device of this InventoryGenericInventory. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/inventory_generic_inventory_holder.py b/intersight/models/inventory_generic_inventory_holder.py index 6c57ffc0..1547dda5 100644 --- a/intersight/models/inventory_generic_inventory_holder.py +++ b/intersight/models/inventory_generic_inventory_holder.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,22 +32,23 @@ class InventoryGenericInventoryHolder(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', - 'compute_blade': 'MoMoRef', - 'compute_rack_unit': 'MoMoRef', + 'compute_blade': 'ComputeBladeRef', + 'compute_rack_unit': 'ComputeRackUnitRef', 'endpoint': 'str', - 'generic_inventory': 'list[MoMoRef]', - 'registered_device': 'MoMoRef' + 'generic_inventory': 'list[InventoryGenericInventoryRef]', + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -60,6 +61,7 @@ class InventoryGenericInventoryHolder(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -70,7 +72,7 @@ class InventoryGenericInventoryHolder(object): 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, compute_blade=None, compute_rack_unit=None, endpoint=None, generic_inventory=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, compute_blade=None, compute_rack_unit=None, endpoint=None, generic_inventory=None, registered_device=None): """ InventoryGenericInventoryHolder - a model defined in Swagger """ @@ -84,6 +86,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -111,6 +114,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -158,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this InventoryGenericInventoryHolder. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this InventoryGenericInventoryHolder. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this InventoryGenericInventoryHolder. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this InventoryGenericInventoryHolder. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -316,7 +321,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this InventoryGenericInventoryHolder. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this InventoryGenericInventoryHolder. :rtype: list[MoTag] @@ -327,7 +332,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this InventoryGenericInventoryHolder. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this InventoryGenericInventoryHolder. :type: list[MoTag] @@ -335,6 +340,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this InventoryGenericInventoryHolder. + The versioning info for this managed object + + :return: The version_context of this InventoryGenericInventoryHolder. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this InventoryGenericInventoryHolder. + The versioning info for this managed object + + :param version_context: The version_context of this InventoryGenericInventoryHolder. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -404,7 +432,7 @@ def compute_blade(self): Gets the compute_blade of this InventoryGenericInventoryHolder. :return: The compute_blade of this InventoryGenericInventoryHolder. - :rtype: MoMoRef + :rtype: ComputeBladeRef """ return self._compute_blade @@ -414,7 +442,7 @@ def compute_blade(self, compute_blade): Sets the compute_blade of this InventoryGenericInventoryHolder. :param compute_blade: The compute_blade of this InventoryGenericInventoryHolder. - :type: MoMoRef + :type: ComputeBladeRef """ self._compute_blade = compute_blade @@ -425,7 +453,7 @@ def compute_rack_unit(self): Gets the compute_rack_unit of this InventoryGenericInventoryHolder. :return: The compute_rack_unit of this InventoryGenericInventoryHolder. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._compute_rack_unit @@ -435,7 +463,7 @@ def compute_rack_unit(self, compute_rack_unit): Sets the compute_rack_unit of this InventoryGenericInventoryHolder. :param compute_rack_unit: The compute_rack_unit of this InventoryGenericInventoryHolder. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._compute_rack_unit = compute_rack_unit @@ -467,7 +495,7 @@ def generic_inventory(self): Gets the generic_inventory of this InventoryGenericInventoryHolder. :return: The generic_inventory of this InventoryGenericInventoryHolder. - :rtype: list[MoMoRef] + :rtype: list[InventoryGenericInventoryRef] """ return self._generic_inventory @@ -477,7 +505,7 @@ def generic_inventory(self, generic_inventory): Sets the generic_inventory of this InventoryGenericInventoryHolder. :param generic_inventory: The generic_inventory of this InventoryGenericInventoryHolder. - :type: list[MoMoRef] + :type: list[InventoryGenericInventoryRef] """ self._generic_inventory = generic_inventory @@ -488,7 +516,7 @@ def registered_device(self): Gets the registered_device of this InventoryGenericInventoryHolder. :return: The registered_device of this InventoryGenericInventoryHolder. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -498,7 +526,7 @@ def registered_device(self, registered_device): Sets the registered_device of this InventoryGenericInventoryHolder. :param registered_device: The registered_device of this InventoryGenericInventoryHolder. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/inventory_generic_inventory_holder_list.py b/intersight/models/inventory_generic_inventory_holder_list.py index 86657357..023479f0 100644 --- a/intersight/models/inventory_generic_inventory_holder_list.py +++ b/intersight/models/inventory_generic_inventory_holder_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/inventory_generic_inventory_holder_ref.py b/intersight/models/inventory_generic_inventory_holder_ref.py new file mode 100644 index 00000000..677a3f3c --- /dev/null +++ b/intersight/models/inventory_generic_inventory_holder_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryGenericInventoryHolderRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + InventoryGenericInventoryHolderRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this InventoryGenericInventoryHolderRef. + + :return: The moid of this InventoryGenericInventoryHolderRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryGenericInventoryHolderRef. + + :param moid: The moid of this InventoryGenericInventoryHolderRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryGenericInventoryHolderRef. + + :return: The object_type of this InventoryGenericInventoryHolderRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryGenericInventoryHolderRef. + + :param object_type: The object_type of this InventoryGenericInventoryHolderRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryGenericInventoryHolderRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_generic_inventory_list.py b/intersight/models/inventory_generic_inventory_list.py index 5ecba9e8..f406aa04 100644 --- a/intersight/models/inventory_generic_inventory_list.py +++ b/intersight/models/inventory_generic_inventory_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/inventory_generic_inventory_ref.py b/intersight/models/inventory_generic_inventory_ref.py new file mode 100644 index 00000000..4da01cb7 --- /dev/null +++ b/intersight/models/inventory_generic_inventory_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryGenericInventoryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + InventoryGenericInventoryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this InventoryGenericInventoryRef. + + :return: The moid of this InventoryGenericInventoryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryGenericInventoryRef. + + :param moid: The moid of this InventoryGenericInventoryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryGenericInventoryRef. + + :return: The object_type of this InventoryGenericInventoryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryGenericInventoryRef. + + :param object_type: The object_type of this InventoryGenericInventoryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryGenericInventoryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_inventory_mo.py b/intersight/models/inventory_inventory_mo.py new file mode 100644 index 00000000..5a6ca24d --- /dev/null +++ b/intersight/models/inventory_inventory_mo.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryInventoryMo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'mo_dn': 'str', + 'mo_id': 'str', + 'mo_type': 'str' + } + + attribute_map = { + 'mo_dn': 'MoDn', + 'mo_id': 'MoId', + 'mo_type': 'MoType' + } + + def __init__(self, mo_dn=None, mo_id=None, mo_type=None): + """ + InventoryInventoryMo - a model defined in Swagger + """ + + self._mo_dn = None + self._mo_id = None + self._mo_type = None + + if mo_dn is not None: + self.mo_dn = mo_dn + if mo_id is not None: + self.mo_id = mo_id + if mo_type is not None: + self.mo_type = mo_type + + @property + def mo_dn(self): + """ + Gets the mo_dn of this InventoryInventoryMo. + The UCS DN of the MO for which the latest inventory to be fetched. If this property is empty and moId property has the Moid of the MO to be updated, the Moid will be used. If this property is empty and moId is also empty, all the MOs of the given moType will be updated + + :return: The mo_dn of this InventoryInventoryMo. + :rtype: str + """ + return self._mo_dn + + @mo_dn.setter + def mo_dn(self, mo_dn): + """ + Sets the mo_dn of this InventoryInventoryMo. + The UCS DN of the MO for which the latest inventory to be fetched. If this property is empty and moId property has the Moid of the MO to be updated, the Moid will be used. If this property is empty and moId is also empty, all the MOs of the given moType will be updated + + :param mo_dn: The mo_dn of this InventoryInventoryMo. + :type: str + """ + + self._mo_dn = mo_dn + + @property + def mo_id(self): + """ + Gets the mo_id of this InventoryInventoryMo. + The MO id of an MO for which the latest inventory to be fetched. If this property is empty and moDn property has the UCS DN of the MO to be updated, the DN will be used. If this property is empty and moDn is also empty, all the MOs of the given moType will be updated + + :return: The mo_id of this InventoryInventoryMo. + :rtype: str + """ + return self._mo_id + + @mo_id.setter + def mo_id(self, mo_id): + """ + Sets the mo_id of this InventoryInventoryMo. + The MO id of an MO for which the latest inventory to be fetched. If this property is empty and moDn property has the UCS DN of the MO to be updated, the DN will be used. If this property is empty and moDn is also empty, all the MOs of the given moType will be updated + + :param mo_id: The mo_id of this InventoryInventoryMo. + :type: str + """ + + self._mo_id = mo_id + + @property + def mo_type(self): + """ + Gets the mo_type of this InventoryInventoryMo. + The type of the MO for which the latest inventory to be fetched + + :return: The mo_type of this InventoryInventoryMo. + :rtype: str + """ + return self._mo_type + + @mo_type.setter + def mo_type(self, mo_type): + """ + Sets the mo_type of this InventoryInventoryMo. + The type of the MO for which the latest inventory to be fetched + + :param mo_type: The mo_type of this InventoryInventoryMo. + :type: str + """ + + self._mo_type = mo_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryInventoryMo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_inventory_mo_ref.py b/intersight/models/inventory_inventory_mo_ref.py new file mode 100644 index 00000000..aab0c252 --- /dev/null +++ b/intersight/models/inventory_inventory_mo_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryInventoryMoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + InventoryInventoryMoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this InventoryInventoryMoRef. + + :return: The moid of this InventoryInventoryMoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryInventoryMoRef. + + :param moid: The moid of this InventoryInventoryMoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryInventoryMoRef. + + :return: The object_type of this InventoryInventoryMoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryInventoryMoRef. + + :param object_type: The object_type of this InventoryInventoryMoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryInventoryMoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_job_info.py b/intersight/models/inventory_job_info.py new file mode 100644 index 00000000..9f1c020a --- /dev/null +++ b/intersight/models/inventory_job_info.py @@ -0,0 +1,259 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryJobInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'execution_status': 'str', + 'job_name': 'str', + 'last_processed_time': 'datetime', + 'last_scheduled_time': 'datetime', + 'properties': 'list[str]', + 'regex': 'list[str]' + } + + attribute_map = { + 'execution_status': 'ExecutionStatus', + 'job_name': 'JobName', + 'last_processed_time': 'LastProcessedTime', + 'last_scheduled_time': 'LastScheduledTime', + 'properties': 'Properties', + 'regex': 'Regex' + } + + def __init__(self, execution_status='Unknown', job_name=None, last_processed_time=None, last_scheduled_time=None, properties=None, regex=None): + """ + InventoryJobInfo - a model defined in Swagger + """ + + self._execution_status = None + self._job_name = None + self._last_processed_time = None + self._last_scheduled_time = None + self._properties = None + self._regex = None + + if execution_status is not None: + self.execution_status = execution_status + if job_name is not None: + self.job_name = job_name + if last_processed_time is not None: + self.last_processed_time = last_processed_time + if last_scheduled_time is not None: + self.last_scheduled_time = last_scheduled_time + if properties is not None: + self.properties = properties + if regex is not None: + self.regex = regex + + @property + def execution_status(self): + """ + Gets the execution_status of this InventoryJobInfo. + + :return: The execution_status of this InventoryJobInfo. + :rtype: str + """ + return self._execution_status + + @execution_status.setter + def execution_status(self, execution_status): + """ + Sets the execution_status of this InventoryJobInfo. + + :param execution_status: The execution_status of this InventoryJobInfo. + :type: str + """ + allowed_values = ["Unknown", "Scheduled", "Completed", "Error"] + if execution_status not in allowed_values: + raise ValueError( + "Invalid value for `execution_status` ({0}), must be one of {1}" + .format(execution_status, allowed_values) + ) + + self._execution_status = execution_status + + @property + def job_name(self): + """ + Gets the job_name of this InventoryJobInfo. + + :return: The job_name of this InventoryJobInfo. + :rtype: str + """ + return self._job_name + + @job_name.setter + def job_name(self, job_name): + """ + Sets the job_name of this InventoryJobInfo. + + :param job_name: The job_name of this InventoryJobInfo. + :type: str + """ + + self._job_name = job_name + + @property + def last_processed_time(self): + """ + Gets the last_processed_time of this InventoryJobInfo. + + :return: The last_processed_time of this InventoryJobInfo. + :rtype: datetime + """ + return self._last_processed_time + + @last_processed_time.setter + def last_processed_time(self, last_processed_time): + """ + Sets the last_processed_time of this InventoryJobInfo. + + :param last_processed_time: The last_processed_time of this InventoryJobInfo. + :type: datetime + """ + + self._last_processed_time = last_processed_time + + @property + def last_scheduled_time(self): + """ + Gets the last_scheduled_time of this InventoryJobInfo. + + :return: The last_scheduled_time of this InventoryJobInfo. + :rtype: datetime + """ + return self._last_scheduled_time + + @last_scheduled_time.setter + def last_scheduled_time(self, last_scheduled_time): + """ + Sets the last_scheduled_time of this InventoryJobInfo. + + :param last_scheduled_time: The last_scheduled_time of this InventoryJobInfo. + :type: datetime + """ + + self._last_scheduled_time = last_scheduled_time + + @property + def properties(self): + """ + Gets the properties of this InventoryJobInfo. + + :return: The properties of this InventoryJobInfo. + :rtype: list[str] + """ + return self._properties + + @properties.setter + def properties(self, properties): + """ + Sets the properties of this InventoryJobInfo. + + :param properties: The properties of this InventoryJobInfo. + :type: list[str] + """ + + self._properties = properties + + @property + def regex(self): + """ + Gets the regex of this InventoryJobInfo. + + :return: The regex of this InventoryJobInfo. + :rtype: list[str] + """ + return self._regex + + @regex.setter + def regex(self, regex): + """ + Sets the regex of this InventoryJobInfo. + + :param regex: The regex of this InventoryJobInfo. + :type: list[str] + """ + + self._regex = regex + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryJobInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_job_info_ref.py b/intersight/models/inventory_job_info_ref.py new file mode 100644 index 00000000..45db8ff9 --- /dev/null +++ b/intersight/models/inventory_job_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryJobInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + InventoryJobInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this InventoryJobInfoRef. + + :return: The moid of this InventoryJobInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryJobInfoRef. + + :param moid: The moid of this InventoryJobInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryJobInfoRef. + + :return: The object_type of this InventoryJobInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryJobInfoRef. + + :param object_type: The object_type of this InventoryJobInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryJobInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_request.py b/intersight/models/inventory_request.py new file mode 100644 index 00000000..89b20336 --- /dev/null +++ b/intersight/models/inventory_request.py @@ -0,0 +1,431 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryRequest(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'device': 'AssetDeviceRegistrationRef', + 'mos': 'list[InventoryInventoryMo]' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'device': 'Device', + 'mos': 'Mos' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device=None, mos=None): + """ + InventoryRequest - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._device = None + self._mos = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if device is not None: + self.device = device + if mos is not None: + self.mos = mos + + @property + def account_moid(self): + """ + Gets the account_moid of this InventoryRequest. + The Account ID for this managed object. + + :return: The account_moid of this InventoryRequest. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this InventoryRequest. + The Account ID for this managed object. + + :param account_moid: The account_moid of this InventoryRequest. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this InventoryRequest. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this InventoryRequest. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this InventoryRequest. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this InventoryRequest. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this InventoryRequest. + The time when this managed object was created. + + :return: The create_time of this InventoryRequest. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this InventoryRequest. + The time when this managed object was created. + + :param create_time: The create_time of this InventoryRequest. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this InventoryRequest. + The time when this managed object was last modified. + + :return: The mod_time of this InventoryRequest. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this InventoryRequest. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this InventoryRequest. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this InventoryRequest. + A unique identifier of this Managed Object instance. + + :return: The moid of this InventoryRequest. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryRequest. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this InventoryRequest. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryRequest. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this InventoryRequest. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryRequest. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this InventoryRequest. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this InventoryRequest. + An array of owners which represent effective ownership of this object. + + :return: The owners of this InventoryRequest. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this InventoryRequest. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this InventoryRequest. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this InventoryRequest. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this InventoryRequest. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this InventoryRequest. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this InventoryRequest. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this InventoryRequest. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this InventoryRequest. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this InventoryRequest. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this InventoryRequest. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this InventoryRequest. + The versioning info for this managed object + + :return: The version_context of this InventoryRequest. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this InventoryRequest. + The versioning info for this managed object + + :param version_context: The version_context of this InventoryRequest. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def device(self): + """ + Gets the device of this InventoryRequest. + + :return: The device of this InventoryRequest. + :rtype: AssetDeviceRegistrationRef + """ + return self._device + + @device.setter + def device(self, device): + """ + Sets the device of this InventoryRequest. + + :param device: The device of this InventoryRequest. + :type: AssetDeviceRegistrationRef + """ + + self._device = device + + @property + def mos(self): + """ + Gets the mos of this InventoryRequest. + The collection of specific inventory MOs that need to be fetched. This is an optional property and if not present all the MOs of the given device will be fetched + + :return: The mos of this InventoryRequest. + :rtype: list[InventoryInventoryMo] + """ + return self._mos + + @mos.setter + def mos(self, mos): + """ + Sets the mos of this InventoryRequest. + The collection of specific inventory MOs that need to be fetched. This is an optional property and if not present all the MOs of the given device will be fetched + + :param mos: The mos of this InventoryRequest. + :type: list[InventoryInventoryMo] + """ + + self._mos = mos + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_request_ref.py b/intersight/models/inventory_request_ref.py new file mode 100644 index 00000000..52d22664 --- /dev/null +++ b/intersight/models/inventory_request_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryRequestRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + InventoryRequestRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this InventoryRequestRef. + + :return: The moid of this InventoryRequestRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryRequestRef. + + :param moid: The moid of this InventoryRequestRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryRequestRef. + + :return: The object_type of this InventoryRequestRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryRequestRef. + + :param object_type: The object_type of this InventoryRequestRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryRequestRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/inventory_scoped_inventory_task_ref.py b/intersight/models/inventory_scoped_inventory_task_ref.py new file mode 100644 index 00000000..08a19a90 --- /dev/null +++ b/intersight/models/inventory_scoped_inventory_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class InventoryScopedInventoryTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + InventoryScopedInventoryTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this InventoryScopedInventoryTaskRef. + + :return: The moid of this InventoryScopedInventoryTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this InventoryScopedInventoryTaskRef. + + :param moid: The moid of this InventoryScopedInventoryTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this InventoryScopedInventoryTaskRef. + + :return: The object_type of this InventoryScopedInventoryTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this InventoryScopedInventoryTaskRef. + + :param object_type: The object_type of this InventoryScopedInventoryTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, InventoryScopedInventoryTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ipmioverlan_deploy_task_ref.py b/intersight/models/ipmioverlan_deploy_task_ref.py new file mode 100644 index 00000000..64a13254 --- /dev/null +++ b/intersight/models/ipmioverlan_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IpmioverlanDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IpmioverlanDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IpmioverlanDeployTaskRef. + + :return: The moid of this IpmioverlanDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IpmioverlanDeployTaskRef. + + :param moid: The moid of this IpmioverlanDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IpmioverlanDeployTaskRef. + + :return: The object_type of this IpmioverlanDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IpmioverlanDeployTaskRef. + + :param object_type: The object_type of this IpmioverlanDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IpmioverlanDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ipmioverlan_policy.py b/intersight/models/ipmioverlan_policy.py index 8b9fd4a9..81ca982f 100644 --- a/intersight/models/ipmioverlan_policy.py +++ b/intersight/models/ipmioverlan_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,23 @@ class IpmioverlanPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', 'enabled': 'bool', 'encryption_key': 'str', - 'organization': 'MoMoRef', + 'is_encryption_key_set': 'bool', + 'organization': 'IamAccountRef', 'privilege': 'str', - 'profiles': 'list[MoMoRef]' + 'profiles': 'list[PolicyAbstractConfigProfileRef]' } attribute_map = { @@ -59,16 +61,18 @@ class IpmioverlanPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'enabled': 'Enabled', 'encryption_key': 'EncryptionKey', + 'is_encryption_key_set': 'IsEncryptionKeySet', 'organization': 'Organization', 'privilege': 'Privilege', 'profiles': 'Profiles' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, enabled=None, encryption_key=None, organization=None, privilege='admin', profiles=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, enabled=None, encryption_key=None, is_encryption_key_set=None, organization=None, privilege='admin', profiles=None): """ IpmioverlanPolicy - a model defined in Swagger """ @@ -82,10 +86,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._enabled = None self._encryption_key = None + self._is_encryption_key_set = None self._organization = None self._privilege = None self._profiles = None @@ -108,6 +114,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -116,6 +124,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.enabled = enabled if encryption_key is not None: self.encryption_key = encryption_key + if is_encryption_key_set is not None: + self.is_encryption_key_set = is_encryption_key_set if organization is not None: self.organization = organization if privilege is not None: @@ -153,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this IpmioverlanPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this IpmioverlanPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this IpmioverlanPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this IpmioverlanPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -311,7 +321,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this IpmioverlanPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this IpmioverlanPolicy. :rtype: list[MoTag] @@ -322,7 +332,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this IpmioverlanPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this IpmioverlanPolicy. :type: list[MoTag] @@ -330,6 +340,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this IpmioverlanPolicy. + The versioning info for this managed object + + :return: The version_context of this IpmioverlanPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this IpmioverlanPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this IpmioverlanPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -403,7 +436,7 @@ def enabled(self, enabled): def encryption_key(self): """ Gets the encryption_key of this IpmioverlanPolicy. - The encryption key to use for IPMI communications + The encryption key to use for IPMI communication. It should have an even number of hexadecimal characters and not exceed 40 characters. :return: The encryption_key of this IpmioverlanPolicy. :rtype: str @@ -414,7 +447,7 @@ def encryption_key(self): def encryption_key(self, encryption_key): """ Sets the encryption_key of this IpmioverlanPolicy. - The encryption key to use for IPMI communications + The encryption key to use for IPMI communication. It should have an even number of hexadecimal characters and not exceed 40 characters. :param encryption_key: The encryption_key of this IpmioverlanPolicy. :type: str @@ -422,6 +455,27 @@ def encryption_key(self, encryption_key): self._encryption_key = encryption_key + @property + def is_encryption_key_set(self): + """ + Gets the is_encryption_key_set of this IpmioverlanPolicy. + + :return: The is_encryption_key_set of this IpmioverlanPolicy. + :rtype: bool + """ + return self._is_encryption_key_set + + @is_encryption_key_set.setter + def is_encryption_key_set(self, is_encryption_key_set): + """ + Sets the is_encryption_key_set of this IpmioverlanPolicy. + + :param is_encryption_key_set: The is_encryption_key_set of this IpmioverlanPolicy. + :type: bool + """ + + self._is_encryption_key_set = is_encryption_key_set + @property def organization(self): """ @@ -429,7 +483,7 @@ def organization(self): Organization :return: The organization of this IpmioverlanPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -440,7 +494,7 @@ def organization(self, organization): Organization :param organization: The organization of this IpmioverlanPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -481,7 +535,7 @@ def profiles(self): Relationship to the profile object :return: The profiles of this IpmioverlanPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -492,7 +546,7 @@ def profiles(self, profiles): Relationship to the profile object :param profiles: The profiles of this IpmioverlanPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles diff --git a/intersight/models/ipmioverlan_policy_list.py b/intersight/models/ipmioverlan_policy_list.py index 7d93e729..3917e0cb 100644 --- a/intersight/models/ipmioverlan_policy_list.py +++ b/intersight/models/ipmioverlan_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/ipmioverlan_policy_ref.py b/intersight/models/ipmioverlan_policy_ref.py new file mode 100644 index 00000000..800e081b --- /dev/null +++ b/intersight/models/ipmioverlan_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IpmioverlanPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IpmioverlanPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IpmioverlanPolicyRef. + + :return: The moid of this IpmioverlanPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IpmioverlanPolicyRef. + + :param moid: The moid of this IpmioverlanPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IpmioverlanPolicyRef. + + :return: The object_type of this IpmioverlanPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IpmioverlanPolicyRef. + + :param object_type: The object_type of this IpmioverlanPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IpmioverlanPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ipmioverlan_validation_task_ref.py b/intersight/models/ipmioverlan_validation_task_ref.py new file mode 100644 index 00000000..753bdd7b --- /dev/null +++ b/intersight/models/ipmioverlan_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class IpmioverlanValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + IpmioverlanValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this IpmioverlanValidationTaskRef. + + :return: The moid of this IpmioverlanValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this IpmioverlanValidationTaskRef. + + :param moid: The moid of this IpmioverlanValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this IpmioverlanValidationTaskRef. + + :return: The object_type of this IpmioverlanValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this IpmioverlanValidationTaskRef. + + :param object_type: The object_type of this IpmioverlanValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, IpmioverlanValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/kvm_deploy_task_ref.py b/intersight/models/kvm_deploy_task_ref.py new file mode 100644 index 00000000..5b47ba6b --- /dev/null +++ b/intersight/models/kvm_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class KvmDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + KvmDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this KvmDeployTaskRef. + + :return: The moid of this KvmDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this KvmDeployTaskRef. + + :param moid: The moid of this KvmDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this KvmDeployTaskRef. + + :return: The object_type of this KvmDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this KvmDeployTaskRef. + + :param object_type: The object_type of this KvmDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, KvmDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/kvm_policy.py b/intersight/models/kvm_policy.py index 5b385fff..298ba09b 100644 --- a/intersight/models/kvm_policy.py +++ b/intersight/models/kvm_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,22 +32,23 @@ class KvmPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', 'enable_local_server_video': 'bool', 'enable_video_encryption': 'bool', 'enabled': 'bool', 'maximum_sessions': 'int', - 'organization': 'MoMoRef', - 'profiles': 'list[MoMoRef]', + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]', 'remote_port': 'int' } @@ -61,6 +62,7 @@ class KvmPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'enable_local_server_video': 'EnableLocalServerVideo', @@ -72,7 +74,7 @@ class KvmPolicy(object): 'remote_port': 'RemotePort' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, enable_local_server_video=None, enable_video_encryption=None, enabled=None, maximum_sessions=None, organization=None, profiles=None, remote_port=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, enable_local_server_video=None, enable_video_encryption=None, enabled=None, maximum_sessions=None, organization=None, profiles=None, remote_port=None): """ KvmPolicy - a model defined in Swagger """ @@ -86,6 +88,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._enable_local_server_video = None @@ -114,6 +117,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -163,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this KvmPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this KvmPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this KvmPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this KvmPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -321,7 +326,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this KvmPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this KvmPolicy. :rtype: list[MoTag] @@ -332,7 +337,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this KvmPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this KvmPolicy. :type: list[MoTag] @@ -340,6 +345,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this KvmPolicy. + The versioning info for this managed object + + :return: The version_context of this KvmPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this KvmPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this KvmPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -459,7 +487,7 @@ def enabled(self, enabled): def maximum_sessions(self): """ Gets the maximum_sessions of this KvmPolicy. - The maximum number of concurrent KVM sessions allowed. Accepted values range from 1 to 4 + The maximum number of concurrent KVM sessions allowed :return: The maximum_sessions of this KvmPolicy. :rtype: int @@ -470,7 +498,7 @@ def maximum_sessions(self): def maximum_sessions(self, maximum_sessions): """ Sets the maximum_sessions of this KvmPolicy. - The maximum number of concurrent KVM sessions allowed. Accepted values range from 1 to 4 + The maximum number of concurrent KVM sessions allowed :param maximum_sessions: The maximum_sessions of this KvmPolicy. :type: int @@ -485,7 +513,7 @@ def organization(self): Organization :return: The organization of this KvmPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -496,7 +524,7 @@ def organization(self, organization): Organization :param organization: The organization of this KvmPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -508,7 +536,7 @@ def profiles(self): Relationship to the profile object :return: The profiles of this KvmPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -519,7 +547,7 @@ def profiles(self, profiles): Relationship to the profile object :param profiles: The profiles of this KvmPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles diff --git a/intersight/models/kvm_policy_list.py b/intersight/models/kvm_policy_list.py index 4a9d828d..5719f829 100644 --- a/intersight/models/kvm_policy_list.py +++ b/intersight/models/kvm_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/kvm_policy_ref.py b/intersight/models/kvm_policy_ref.py new file mode 100644 index 00000000..b74c183a --- /dev/null +++ b/intersight/models/kvm_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class KvmPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + KvmPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this KvmPolicyRef. + + :return: The moid of this KvmPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this KvmPolicyRef. + + :param moid: The moid of this KvmPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this KvmPolicyRef. + + :return: The object_type of this KvmPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this KvmPolicyRef. + + :param object_type: The object_type of this KvmPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, KvmPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/kvm_validation_task_ref.py b/intersight/models/kvm_validation_task_ref.py new file mode 100644 index 00000000..5c00a19b --- /dev/null +++ b/intersight/models/kvm_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class KvmValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + KvmValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this KvmValidationTaskRef. + + :return: The moid of this KvmValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this KvmValidationTaskRef. + + :param moid: The moid of this KvmValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this KvmValidationTaskRef. + + :return: The object_type of this KvmValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this KvmValidationTaskRef. + + :param object_type: The object_type of this KvmValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, KvmValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/license_account_license_data.py b/intersight/models/license_account_license_data.py index fcf3a0a7..67550387 100644 --- a/intersight/models/license_account_license_data.py +++ b/intersight/models/license_account_license_data.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,35 +32,36 @@ class LicenseAccountLicenseData(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', 'account_id': 'str', 'agent_data': 'str', 'auth_expire_time': 'str', 'auth_initial_time': 'str', 'auth_next_time': 'str', 'category': 'str', - 'customer_op': 'MoMoRef', + 'customer_op': 'LicenseCustomerOpRef', 'group': 'str', 'last_sync': 'datetime', 'last_updated_time': 'datetime', 'license_state': 'str', 'license_tech_support_info': 'str', - 'licenseinfos': 'list[MoMoRef]', + 'licenseinfos': 'list[LicenseLicenseInfoRef]', 'register_expire_time': 'str', 'register_initial_time': 'str', 'register_next_time': 'str', 'registration_status': 'str', 'renew_failure_string': 'str', 'smart_account': 'str', - 'smartlicense_token': 'MoMoRef', + 'smartlicense_token': 'LicenseSmartlicenseTokenRef', 'sync_status': 'str', 'virtual_account': 'str' } @@ -75,6 +76,7 @@ class LicenseAccountLicenseData(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account': 'Account', 'account_id': 'AccountId', 'agent_data': 'AgentData', @@ -100,7 +102,7 @@ class LicenseAccountLicenseData(object): 'virtual_account': 'VirtualAccount' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, account_id=None, agent_data=None, auth_expire_time=None, auth_initial_time=None, auth_next_time=None, category=None, customer_op=None, group=None, last_sync=None, last_updated_time=None, license_state=None, license_tech_support_info=None, licenseinfos=None, register_expire_time=None, register_initial_time=None, register_next_time=None, registration_status=None, renew_failure_string=None, smart_account=None, smartlicense_token=None, sync_status=None, virtual_account=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, account_id=None, agent_data=None, auth_expire_time=None, auth_initial_time=None, auth_next_time=None, category=None, customer_op=None, group=None, last_sync=None, last_updated_time=None, license_state=None, license_tech_support_info=None, licenseinfos=None, register_expire_time=None, register_initial_time=None, register_next_time=None, registration_status=None, renew_failure_string=None, smart_account=None, smartlicense_token=None, sync_status=None, virtual_account=None): """ LicenseAccountLicenseData - a model defined in Swagger """ @@ -114,6 +116,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account = None self._account_id = None self._agent_data = None @@ -156,6 +159,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account is not None: self.account = account if account_id is not None: @@ -233,7 +238,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this LicenseAccountLicenseData. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -244,7 +249,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this LicenseAccountLicenseData. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -371,7 +376,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this LicenseAccountLicenseData. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -382,7 +387,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this LicenseAccountLicenseData. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -391,7 +396,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this LicenseAccountLicenseData. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this LicenseAccountLicenseData. :rtype: list[MoTag] @@ -402,7 +407,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this LicenseAccountLicenseData. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this LicenseAccountLicenseData. :type: list[MoTag] @@ -410,13 +415,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this LicenseAccountLicenseData. + The versioning info for this managed object + + :return: The version_context of this LicenseAccountLicenseData. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this LicenseAccountLicenseData. + The versioning info for this managed object + + :param version_context: The version_context of this LicenseAccountLicenseData. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def account(self): """ Gets the account of this LicenseAccountLicenseData. :return: The account of this LicenseAccountLicenseData. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -426,7 +454,7 @@ def account(self, account): Sets the account of this LicenseAccountLicenseData. :param account: The account of this LicenseAccountLicenseData. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -550,7 +578,7 @@ def auth_next_time(self, auth_next_time): def category(self): """ Gets the category of this LicenseAccountLicenseData. - license category + License category :return: The category of this LicenseAccountLicenseData. :rtype: str @@ -561,7 +589,7 @@ def category(self): def category(self, category): """ Sets the category of this LicenseAccountLicenseData. - license category + License category :param category: The category of this LicenseAccountLicenseData. :type: str @@ -575,7 +603,7 @@ def customer_op(self): Gets the customer_op of this LicenseAccountLicenseData. :return: The customer_op of this LicenseAccountLicenseData. - :rtype: MoMoRef + :rtype: LicenseCustomerOpRef """ return self._customer_op @@ -585,7 +613,7 @@ def customer_op(self, customer_op): Sets the customer_op of this LicenseAccountLicenseData. :param customer_op: The customer_op of this LicenseAccountLicenseData. - :type: MoMoRef + :type: LicenseCustomerOpRef """ self._customer_op = customer_op @@ -594,7 +622,7 @@ def customer_op(self, customer_op): def group(self): """ Gets the group of this LicenseAccountLicenseData. - group + Group :return: The group of this LicenseAccountLicenseData. :rtype: str @@ -605,7 +633,7 @@ def group(self): def group(self, group): """ Sets the group of this LicenseAccountLicenseData. - group + Group :param group: The group of this LicenseAccountLicenseData. :type: str @@ -663,7 +691,7 @@ def last_updated_time(self, last_updated_time): def license_state(self): """ Gets the license_state of this LicenseAccountLicenseData. - aggregrated mode for the agent + Aggregrated mode for the agent :return: The license_state of this LicenseAccountLicenseData. :rtype: str @@ -674,7 +702,7 @@ def license_state(self): def license_state(self, license_state): """ Sets the license_state of this LicenseAccountLicenseData. - aggregrated mode for the agent + Aggregrated mode for the agent :param license_state: The license_state of this LicenseAccountLicenseData. :type: str @@ -711,7 +739,7 @@ def licenseinfos(self): Gets the licenseinfos of this LicenseAccountLicenseData. :return: The licenseinfos of this LicenseAccountLicenseData. - :rtype: list[MoMoRef] + :rtype: list[LicenseLicenseInfoRef] """ return self._licenseinfos @@ -721,7 +749,7 @@ def licenseinfos(self, licenseinfos): Sets the licenseinfos of this LicenseAccountLicenseData. :param licenseinfos: The licenseinfos of this LicenseAccountLicenseData. - :type: list[MoMoRef] + :type: list[LicenseLicenseInfoRef] """ self._licenseinfos = licenseinfos @@ -870,7 +898,7 @@ def smartlicense_token(self): Gets the smartlicense_token of this LicenseAccountLicenseData. :return: The smartlicense_token of this LicenseAccountLicenseData. - :rtype: MoMoRef + :rtype: LicenseSmartlicenseTokenRef """ return self._smartlicense_token @@ -880,7 +908,7 @@ def smartlicense_token(self, smartlicense_token): Sets the smartlicense_token of this LicenseAccountLicenseData. :param smartlicense_token: The smartlicense_token of this LicenseAccountLicenseData. - :type: MoMoRef + :type: LicenseSmartlicenseTokenRef """ self._smartlicense_token = smartlicense_token diff --git a/intersight/models/license_account_license_data_list.py b/intersight/models/license_account_license_data_list.py index 73ec287c..de62acb3 100644 --- a/intersight/models/license_account_license_data_list.py +++ b/intersight/models/license_account_license_data_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/license_account_license_data_ref.py b/intersight/models/license_account_license_data_ref.py new file mode 100644 index 00000000..c4203793 --- /dev/null +++ b/intersight/models/license_account_license_data_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class LicenseAccountLicenseDataRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + LicenseAccountLicenseDataRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this LicenseAccountLicenseDataRef. + + :return: The moid of this LicenseAccountLicenseDataRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this LicenseAccountLicenseDataRef. + + :param moid: The moid of this LicenseAccountLicenseDataRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this LicenseAccountLicenseDataRef. + + :return: The object_type of this LicenseAccountLicenseDataRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this LicenseAccountLicenseDataRef. + + :param object_type: The object_type of this LicenseAccountLicenseDataRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, LicenseAccountLicenseDataRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/license_customer_op.py b/intersight/models/license_customer_op.py index 7a2642a3..d715fd7f 100644 --- a/intersight/models/license_customer_op.py +++ b/intersight/models/license_customer_op.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,16 @@ class LicenseCustomerOp(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account_license_data': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'account_license_data': 'LicenseAccountLicenseDataRef', 'deregister_device': 'bool', 'renew_authorization': 'bool', 'renew_id_certificate': 'bool', @@ -57,6 +58,7 @@ class LicenseCustomerOp(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account_license_data': 'AccountLicenseData', 'deregister_device': 'DeregisterDevice', 'renew_authorization': 'RenewAuthorization', @@ -64,7 +66,7 @@ class LicenseCustomerOp(object): 'show_agent_tech_support': 'ShowAgentTechSupport' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account_license_data=None, deregister_device=None, renew_authorization=None, renew_id_certificate=None, show_agent_tech_support=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account_license_data=None, deregister_device=None, renew_authorization=None, renew_id_certificate=None, show_agent_tech_support=None): """ LicenseCustomerOp - a model defined in Swagger """ @@ -78,6 +80,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account_license_data = None self._deregister_device = None self._renew_authorization = None @@ -102,6 +105,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account_license_data is not None: self.account_license_data = account_license_data if deregister_device is not None: @@ -143,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this LicenseCustomerOp. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -154,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this LicenseCustomerOp. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -281,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this LicenseCustomerOp. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -292,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this LicenseCustomerOp. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -301,7 +306,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this LicenseCustomerOp. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this LicenseCustomerOp. :rtype: list[MoTag] @@ -312,7 +317,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this LicenseCustomerOp. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this LicenseCustomerOp. :type: list[MoTag] @@ -320,13 +325,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this LicenseCustomerOp. + The versioning info for this managed object + + :return: The version_context of this LicenseCustomerOp. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this LicenseCustomerOp. + The versioning info for this managed object + + :param version_context: The version_context of this LicenseCustomerOp. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def account_license_data(self): """ Gets the account_license_data of this LicenseCustomerOp. :return: The account_license_data of this LicenseCustomerOp. - :rtype: MoMoRef + :rtype: LicenseAccountLicenseDataRef """ return self._account_license_data @@ -336,7 +364,7 @@ def account_license_data(self, account_license_data): Sets the account_license_data of this LicenseCustomerOp. :param account_license_data: The account_license_data of this LicenseCustomerOp. - :type: MoMoRef + :type: LicenseAccountLicenseDataRef """ self._account_license_data = account_license_data @@ -345,7 +373,7 @@ def account_license_data(self, account_license_data): def deregister_device(self): """ Gets the deregister_device of this LicenseCustomerOp. - trigger de-registration/disable + Trigger de-registration/disable :return: The deregister_device of this LicenseCustomerOp. :rtype: bool @@ -356,7 +384,7 @@ def deregister_device(self): def deregister_device(self, deregister_device): """ Sets the deregister_device of this LicenseCustomerOp. - trigger de-registration/disable + Trigger de-registration/disable :param deregister_device: The deregister_device of this LicenseCustomerOp. :type: bool @@ -368,7 +396,7 @@ def deregister_device(self, deregister_device): def renew_authorization(self): """ Gets the renew_authorization of this LicenseCustomerOp. - trigger authorization renew + Trigger renew authorization :return: The renew_authorization of this LicenseCustomerOp. :rtype: bool @@ -379,7 +407,7 @@ def renew_authorization(self): def renew_authorization(self, renew_authorization): """ Sets the renew_authorization of this LicenseCustomerOp. - trigger authorization renew + Trigger renew authorization :param renew_authorization: The renew_authorization of this LicenseCustomerOp. :type: bool @@ -391,7 +419,7 @@ def renew_authorization(self, renew_authorization): def renew_id_certificate(self): """ Gets the renew_id_certificate of this LicenseCustomerOp. - trigger renew registration + Trigger renew registration :return: The renew_id_certificate of this LicenseCustomerOp. :rtype: bool @@ -402,7 +430,7 @@ def renew_id_certificate(self): def renew_id_certificate(self, renew_id_certificate): """ Sets the renew_id_certificate of this LicenseCustomerOp. - trigger renew registration + Trigger renew registration :param renew_id_certificate: The renew_id_certificate of this LicenseCustomerOp. :type: bool @@ -414,7 +442,7 @@ def renew_id_certificate(self, renew_id_certificate): def show_agent_tech_support(self): """ Gets the show_agent_tech_support of this LicenseCustomerOp. - trigger show tech support + Trigger show tech support :return: The show_agent_tech_support of this LicenseCustomerOp. :rtype: bool @@ -425,7 +453,7 @@ def show_agent_tech_support(self): def show_agent_tech_support(self, show_agent_tech_support): """ Sets the show_agent_tech_support of this LicenseCustomerOp. - trigger show tech support + Trigger show tech support :param show_agent_tech_support: The show_agent_tech_support of this LicenseCustomerOp. :type: bool diff --git a/intersight/models/license_customer_op_list.py b/intersight/models/license_customer_op_list.py index 175df605..c4998d9d 100644 --- a/intersight/models/license_customer_op_list.py +++ b/intersight/models/license_customer_op_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/license_customer_op_ref.py b/intersight/models/license_customer_op_ref.py new file mode 100644 index 00000000..67e6ab50 --- /dev/null +++ b/intersight/models/license_customer_op_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class LicenseCustomerOpRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + LicenseCustomerOpRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this LicenseCustomerOpRef. + + :return: The moid of this LicenseCustomerOpRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this LicenseCustomerOpRef. + + :param moid: The moid of this LicenseCustomerOpRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this LicenseCustomerOpRef. + + :return: The object_type of this LicenseCustomerOpRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this LicenseCustomerOpRef. + + :param object_type: The object_type of this LicenseCustomerOpRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, LicenseCustomerOpRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/license_license_info.py b/intersight/models/license_license_info.py index bc3e8cf8..af6439d0 100644 --- a/intersight/models/license_license_info.py +++ b/intersight/models/license_license_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,25 +32,26 @@ class LicenseLicenseInfo(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account_license_data': 'MoMoRef', - 'activate_admin': 'bool', + 'version_context': 'MoVersionContext', + 'account_license_data': 'LicenseAccountLicenseDataRef', + 'active_admin': 'bool', 'days_left': 'int', 'end_time': 'datetime', 'enforce_mode': 'str', 'error_desc': 'str', - 'eval_period': 'int', - 'ext_eval': 'int', - 'lic_count': 'int', - 'lic_type': 'str', + 'evaluation_period': 'int', + 'extra_evaluation': 'int', + 'license_count': 'int', 'license_state': 'str', + 'license_type': 'str', 'start_time': 'datetime', 'trial_admin': 'bool' } @@ -65,22 +66,23 @@ class LicenseLicenseInfo(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account_license_data': 'AccountLicenseData', - 'activate_admin': 'ActivateAdmin', + 'active_admin': 'ActiveAdmin', 'days_left': 'DaysLeft', 'end_time': 'EndTime', 'enforce_mode': 'EnforceMode', 'error_desc': 'ErrorDesc', - 'eval_period': 'EvalPeriod', - 'ext_eval': 'ExtEval', - 'lic_count': 'LicCount', - 'lic_type': 'LicType', + 'evaluation_period': 'EvaluationPeriod', + 'extra_evaluation': 'ExtraEvaluation', + 'license_count': 'LicenseCount', 'license_state': 'LicenseState', + 'license_type': 'LicenseType', 'start_time': 'StartTime', 'trial_admin': 'TrialAdmin' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account_license_data=None, activate_admin=None, days_left=None, end_time=None, enforce_mode=None, error_desc=None, eval_period=None, ext_eval=None, lic_count=None, lic_type=None, license_state=None, start_time=None, trial_admin=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account_license_data=None, active_admin=None, days_left=None, end_time=None, enforce_mode=None, error_desc=None, evaluation_period=None, extra_evaluation=None, license_count=None, license_state=None, license_type=None, start_time=None, trial_admin=None): """ LicenseLicenseInfo - a model defined in Swagger """ @@ -94,17 +96,18 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account_license_data = None - self._activate_admin = None + self._active_admin = None self._days_left = None self._end_time = None self._enforce_mode = None self._error_desc = None - self._eval_period = None - self._ext_eval = None - self._lic_count = None - self._lic_type = None + self._evaluation_period = None + self._extra_evaluation = None + self._license_count = None self._license_state = None + self._license_type = None self._start_time = None self._trial_admin = None @@ -126,10 +129,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account_license_data is not None: self.account_license_data = account_license_data - if activate_admin is not None: - self.activate_admin = activate_admin + if active_admin is not None: + self.active_admin = active_admin if days_left is not None: self.days_left = days_left if end_time is not None: @@ -138,16 +143,16 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.enforce_mode = enforce_mode if error_desc is not None: self.error_desc = error_desc - if eval_period is not None: - self.eval_period = eval_period - if ext_eval is not None: - self.ext_eval = ext_eval - if lic_count is not None: - self.lic_count = lic_count - if lic_type is not None: - self.lic_type = lic_type + if evaluation_period is not None: + self.evaluation_period = evaluation_period + if extra_evaluation is not None: + self.extra_evaluation = extra_evaluation + if license_count is not None: + self.license_count = license_count if license_state is not None: self.license_state = license_state + if license_type is not None: + self.license_type = license_type if start_time is not None: self.start_time = start_time if trial_admin is not None: @@ -183,7 +188,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this LicenseLicenseInfo. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -194,7 +199,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this LicenseLicenseInfo. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -321,7 +326,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this LicenseLicenseInfo. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -332,7 +337,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this LicenseLicenseInfo. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -341,7 +346,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this LicenseLicenseInfo. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this LicenseLicenseInfo. :rtype: list[MoTag] @@ -352,7 +357,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this LicenseLicenseInfo. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this LicenseLicenseInfo. :type: list[MoTag] @@ -360,13 +365,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this LicenseLicenseInfo. + The versioning info for this managed object + + :return: The version_context of this LicenseLicenseInfo. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this LicenseLicenseInfo. + The versioning info for this managed object + + :param version_context: The version_context of this LicenseLicenseInfo. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def account_license_data(self): """ Gets the account_license_data of this LicenseLicenseInfo. :return: The account_license_data of this LicenseLicenseInfo. - :rtype: MoMoRef + :rtype: LicenseAccountLicenseDataRef """ return self._account_license_data @@ -376,33 +404,33 @@ def account_license_data(self, account_license_data): Sets the account_license_data of this LicenseLicenseInfo. :param account_license_data: The account_license_data of this LicenseLicenseInfo. - :type: MoMoRef + :type: LicenseAccountLicenseDataRef """ self._account_license_data = account_license_data @property - def activate_admin(self): + def active_admin(self): """ - Gets the activate_admin of this LicenseLicenseInfo. + Gets the active_admin of this LicenseLicenseInfo. the customer needs to set this attribute to activate license entitlement - :return: The activate_admin of this LicenseLicenseInfo. + :return: The active_admin of this LicenseLicenseInfo. :rtype: bool """ - return self._activate_admin + return self._active_admin - @activate_admin.setter - def activate_admin(self, activate_admin): + @active_admin.setter + def active_admin(self, active_admin): """ - Sets the activate_admin of this LicenseLicenseInfo. + Sets the active_admin of this LicenseLicenseInfo. the customer needs to set this attribute to activate license entitlement - :param activate_admin: The activate_admin of this LicenseLicenseInfo. + :param active_admin: The active_admin of this LicenseLicenseInfo. :type: bool """ - self._activate_admin = activate_admin + self._active_admin = active_admin @property def days_left(self): @@ -497,119 +525,119 @@ def error_desc(self, error_desc): self._error_desc = error_desc @property - def eval_period(self): + def evaluation_period(self): """ - Gets the eval_period of this LicenseLicenseInfo. + Gets the evaluation_period of this LicenseLicenseInfo. Default Trial or Grace period customer is entitled to. - :return: The eval_period of this LicenseLicenseInfo. + :return: The evaluation_period of this LicenseLicenseInfo. :rtype: int """ - return self._eval_period + return self._evaluation_period - @eval_period.setter - def eval_period(self, eval_period): + @evaluation_period.setter + def evaluation_period(self, evaluation_period): """ - Sets the eval_period of this LicenseLicenseInfo. + Sets the evaluation_period of this LicenseLicenseInfo. Default Trial or Grace period customer is entitled to. - :param eval_period: The eval_period of this LicenseLicenseInfo. + :param evaluation_period: The evaluation_period of this LicenseLicenseInfo. :type: int """ - self._eval_period = eval_period + self._evaluation_period = evaluation_period @property - def ext_eval(self): + def extra_evaluation(self): """ - Gets the ext_eval of this LicenseLicenseInfo. - extend Trial or Grace period customer is entitled to. + Gets the extra_evaluation of this LicenseLicenseInfo. + one time extend Trial or Grace period customer is entitled to. - :return: The ext_eval of this LicenseLicenseInfo. + :return: The extra_evaluation of this LicenseLicenseInfo. :rtype: int """ - return self._ext_eval + return self._extra_evaluation - @ext_eval.setter - def ext_eval(self, ext_eval): + @extra_evaluation.setter + def extra_evaluation(self, extra_evaluation): """ - Sets the ext_eval of this LicenseLicenseInfo. - extend Trial or Grace period customer is entitled to. + Sets the extra_evaluation of this LicenseLicenseInfo. + one time extend Trial or Grace period customer is entitled to. - :param ext_eval: The ext_eval of this LicenseLicenseInfo. + :param extra_evaluation: The extra_evaluation of this LicenseLicenseInfo. :type: int """ - self._ext_eval = ext_eval + self._extra_evaluation = extra_evaluation @property - def lic_count(self): + def license_count(self): """ - Gets the lic_count of this LicenseLicenseInfo. + Gets the license_count of this LicenseLicenseInfo. the total number of servers claimed by the account - :return: The lic_count of this LicenseLicenseInfo. + :return: The license_count of this LicenseLicenseInfo. :rtype: int """ - return self._lic_count + return self._license_count - @lic_count.setter - def lic_count(self, lic_count): + @license_count.setter + def license_count(self, license_count): """ - Sets the lic_count of this LicenseLicenseInfo. + Sets the license_count of this LicenseLicenseInfo. the total number of servers claimed by the account - :param lic_count: The lic_count of this LicenseLicenseInfo. + :param license_count: The license_count of this LicenseLicenseInfo. :type: int """ - self._lic_count = lic_count + self._license_count = license_count @property - def lic_type(self): + def license_state(self): """ - Gets the lic_type of this LicenseLicenseInfo. - Starship license entitlement name. It is set to be Essentials. + Gets the license_state of this LicenseLicenseInfo. + the license state defined by Starship. Can be one of NotLicensed, TrialPeriod, OutOfCompliance, Compliance,GraceExpired,TrialExpired. - :return: The lic_type of this LicenseLicenseInfo. + :return: The license_state of this LicenseLicenseInfo. :rtype: str """ - return self._lic_type + return self._license_state - @lic_type.setter - def lic_type(self, lic_type): + @license_state.setter + def license_state(self, license_state): """ - Sets the lic_type of this LicenseLicenseInfo. - Starship license entitlement name. It is set to be Essentials. + Sets the license_state of this LicenseLicenseInfo. + the license state defined by Starship. Can be one of NotLicensed, TrialPeriod, OutOfCompliance, Compliance,GraceExpired,TrialExpired. - :param lic_type: The lic_type of this LicenseLicenseInfo. + :param license_state: The license_state of this LicenseLicenseInfo. :type: str """ - self._lic_type = lic_type + self._license_state = license_state @property - def license_state(self): + def license_type(self): """ - Gets the license_state of this LicenseLicenseInfo. - the license state defined by Starship. Can be one of NotLicensed, TrialPeriod, OutOfCompliance, Compliance,GraceExpired,TrialExpired. + Gets the license_type of this LicenseLicenseInfo. + Starship license entitlement name. It is set to be Essentials. - :return: The license_state of this LicenseLicenseInfo. + :return: The license_type of this LicenseLicenseInfo. :rtype: str """ - return self._license_state + return self._license_type - @license_state.setter - def license_state(self, license_state): + @license_type.setter + def license_type(self, license_type): """ - Sets the license_state of this LicenseLicenseInfo. - the license state defined by Starship. Can be one of NotLicensed, TrialPeriod, OutOfCompliance, Compliance,GraceExpired,TrialExpired. + Sets the license_type of this LicenseLicenseInfo. + Starship license entitlement name. It is set to be Essentials. - :param license_state: The license_state of this LicenseLicenseInfo. + :param license_type: The license_type of this LicenseLicenseInfo. :type: str """ - self._license_state = license_state + self._license_type = license_type @property def start_time(self): diff --git a/intersight/models/license_license_info_list.py b/intersight/models/license_license_info_list.py index 93b1a3d5..fad8d220 100644 --- a/intersight/models/license_license_info_list.py +++ b/intersight/models/license_license_info_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/license_license_info_ref.py b/intersight/models/license_license_info_ref.py new file mode 100644 index 00000000..4bede5ae --- /dev/null +++ b/intersight/models/license_license_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class LicenseLicenseInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + LicenseLicenseInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this LicenseLicenseInfoRef. + + :return: The moid of this LicenseLicenseInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this LicenseLicenseInfoRef. + + :param moid: The moid of this LicenseLicenseInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this LicenseLicenseInfoRef. + + :return: The object_type of this LicenseLicenseInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this LicenseLicenseInfoRef. + + :param object_type: The object_type of this LicenseLicenseInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, LicenseLicenseInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/license_smartlicense_token.py b/intersight/models/license_smartlicense_token.py index 168bde9f..6c121834 100644 --- a/intersight/models/license_smartlicense_token.py +++ b/intersight/models/license_smartlicense_token.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,16 @@ class LicenseSmartlicenseToken(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account_license_data': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'account_license_data': 'LicenseAccountLicenseDataRef', 'token': 'str' } @@ -54,11 +55,12 @@ class LicenseSmartlicenseToken(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account_license_data': 'AccountLicenseData', 'token': 'Token' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account_license_data=None, token=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account_license_data=None, token=None): """ LicenseSmartlicenseToken - a model defined in Swagger """ @@ -72,6 +74,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account_license_data = None self._token = None @@ -93,6 +96,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account_license_data is not None: self.account_license_data = account_license_data if token is not None: @@ -128,7 +133,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this LicenseSmartlicenseToken. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -139,7 +144,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this LicenseSmartlicenseToken. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -266,7 +271,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this LicenseSmartlicenseToken. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -277,7 +282,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this LicenseSmartlicenseToken. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -286,7 +291,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this LicenseSmartlicenseToken. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this LicenseSmartlicenseToken. :rtype: list[MoTag] @@ -297,7 +302,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this LicenseSmartlicenseToken. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this LicenseSmartlicenseToken. :type: list[MoTag] @@ -305,13 +310,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this LicenseSmartlicenseToken. + The versioning info for this managed object + + :return: The version_context of this LicenseSmartlicenseToken. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this LicenseSmartlicenseToken. + The versioning info for this managed object + + :param version_context: The version_context of this LicenseSmartlicenseToken. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def account_license_data(self): """ Gets the account_license_data of this LicenseSmartlicenseToken. :return: The account_license_data of this LicenseSmartlicenseToken. - :rtype: MoMoRef + :rtype: LicenseAccountLicenseDataRef """ return self._account_license_data @@ -321,7 +349,7 @@ def account_license_data(self, account_license_data): Sets the account_license_data of this LicenseSmartlicenseToken. :param account_license_data: The account_license_data of this LicenseSmartlicenseToken. - :type: MoMoRef + :type: LicenseAccountLicenseDataRef """ self._account_license_data = account_license_data @@ -330,7 +358,7 @@ def account_license_data(self, account_license_data): def token(self): """ Gets the token of this LicenseSmartlicenseToken. - smart license registration token + Smart license registration token :return: The token of this LicenseSmartlicenseToken. :rtype: str @@ -341,7 +369,7 @@ def token(self): def token(self, token): """ Sets the token of this LicenseSmartlicenseToken. - smart license registration token + Smart license registration token :param token: The token of this LicenseSmartlicenseToken. :type: str diff --git a/intersight/models/license_smartlicense_token_list.py b/intersight/models/license_smartlicense_token_list.py index da035c42..071d8f27 100644 --- a/intersight/models/license_smartlicense_token_list.py +++ b/intersight/models/license_smartlicense_token_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/license_smartlicense_token_ref.py b/intersight/models/license_smartlicense_token_ref.py new file mode 100644 index 00000000..5bfaab07 --- /dev/null +++ b/intersight/models/license_smartlicense_token_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class LicenseSmartlicenseTokenRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + LicenseSmartlicenseTokenRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this LicenseSmartlicenseTokenRef. + + :return: The moid of this LicenseSmartlicenseTokenRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this LicenseSmartlicenseTokenRef. + + :param moid: The moid of this LicenseSmartlicenseTokenRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this LicenseSmartlicenseTokenRef. + + :return: The object_type of this LicenseSmartlicenseTokenRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this LicenseSmartlicenseTokenRef. + + :param object_type: The object_type of this LicenseSmartlicenseTokenRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, LicenseSmartlicenseTokenRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/license_sync_response_ref.py b/intersight/models/license_sync_response_ref.py new file mode 100644 index 00000000..0e765b30 --- /dev/null +++ b/intersight/models/license_sync_response_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class LicenseSyncResponseRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + LicenseSyncResponseRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this LicenseSyncResponseRef. + + :return: The moid of this LicenseSyncResponseRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this LicenseSyncResponseRef. + + :param moid: The moid of this LicenseSyncResponseRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this LicenseSyncResponseRef. + + :return: The object_type of this LicenseSyncResponseRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this LicenseSyncResponseRef. + + :param object_type: The object_type of this LicenseSyncResponseRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, LicenseSyncResponseRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ls_service_profile.py b/intersight/models/ls_service_profile.py index 0751fdfc..84c49dc3 100644 --- a/intersight/models/ls_service_profile.py +++ b/intersight/models/ls_service_profile.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,25 @@ class LsServiceProfile(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', + 'assign_state': 'str', + 'assoc_state': 'str', 'associated_server': 'str', + 'config_state': 'str', 'name': 'str', - 'registered_device': 'MoMoRef' + 'oper_state': 'str', + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -58,15 +63,20 @@ class LsServiceProfile(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', + 'assign_state': 'AssignState', + 'assoc_state': 'AssocState', 'associated_server': 'AssociatedServer', + 'config_state': 'ConfigState', 'name': 'Name', + 'oper_state': 'OperState', 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, associated_server=None, name=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, assign_state=None, assoc_state=None, associated_server=None, config_state=None, name=None, oper_state=None, registered_device=None): """ LsServiceProfile - a model defined in Swagger """ @@ -80,11 +90,16 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None + self._assign_state = None + self._assoc_state = None self._associated_server = None + self._config_state = None self._name = None + self._oper_state = None self._registered_device = None if account_moid is not None: @@ -105,16 +120,26 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: self.dn = dn if rn is not None: self.rn = rn + if assign_state is not None: + self.assign_state = assign_state + if assoc_state is not None: + self.assoc_state = assoc_state if associated_server is not None: self.associated_server = associated_server + if config_state is not None: + self.config_state = config_state if name is not None: self.name = name + if oper_state is not None: + self.oper_state = oper_state if registered_device is not None: self.registered_device = registered_device @@ -148,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this LsServiceProfile. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this LsServiceProfile. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this LsServiceProfile. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this LsServiceProfile. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -306,7 +331,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this LsServiceProfile. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this LsServiceProfile. :rtype: list[MoTag] @@ -317,7 +342,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this LsServiceProfile. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this LsServiceProfile. :type: list[MoTag] @@ -325,6 +350,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this LsServiceProfile. + The versioning info for this managed object + + :return: The version_context of this LsServiceProfile. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this LsServiceProfile. + The versioning info for this managed object + + :param version_context: The version_context of this LsServiceProfile. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -388,6 +436,48 @@ def rn(self, rn): self._rn = rn + @property + def assign_state(self): + """ + Gets the assign_state of this LsServiceProfile. + + :return: The assign_state of this LsServiceProfile. + :rtype: str + """ + return self._assign_state + + @assign_state.setter + def assign_state(self, assign_state): + """ + Sets the assign_state of this LsServiceProfile. + + :param assign_state: The assign_state of this LsServiceProfile. + :type: str + """ + + self._assign_state = assign_state + + @property + def assoc_state(self): + """ + Gets the assoc_state of this LsServiceProfile. + + :return: The assoc_state of this LsServiceProfile. + :rtype: str + """ + return self._assoc_state + + @assoc_state.setter + def assoc_state(self, assoc_state): + """ + Sets the assoc_state of this LsServiceProfile. + + :param assoc_state: The assoc_state of this LsServiceProfile. + :type: str + """ + + self._assoc_state = assoc_state + @property def associated_server(self): """ @@ -409,6 +499,27 @@ def associated_server(self, associated_server): self._associated_server = associated_server + @property + def config_state(self): + """ + Gets the config_state of this LsServiceProfile. + + :return: The config_state of this LsServiceProfile. + :rtype: str + """ + return self._config_state + + @config_state.setter + def config_state(self, config_state): + """ + Sets the config_state of this LsServiceProfile. + + :param config_state: The config_state of this LsServiceProfile. + :type: str + """ + + self._config_state = config_state + @property def name(self): """ @@ -430,13 +541,34 @@ def name(self, name): self._name = name + @property + def oper_state(self): + """ + Gets the oper_state of this LsServiceProfile. + + :return: The oper_state of this LsServiceProfile. + :rtype: str + """ + return self._oper_state + + @oper_state.setter + def oper_state(self, oper_state): + """ + Sets the oper_state of this LsServiceProfile. + + :param oper_state: The oper_state of this LsServiceProfile. + :type: str + """ + + self._oper_state = oper_state + @property def registered_device(self): """ Gets the registered_device of this LsServiceProfile. :return: The registered_device of this LsServiceProfile. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -446,7 +578,7 @@ def registered_device(self, registered_device): Sets the registered_device of this LsServiceProfile. :param registered_device: The registered_device of this LsServiceProfile. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/ls_service_profile_list.py b/intersight/models/ls_service_profile_list.py index dd2dbefa..9f7b61de 100644 --- a/intersight/models/ls_service_profile_list.py +++ b/intersight/models/ls_service_profile_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/ls_service_profile_ref.py b/intersight/models/ls_service_profile_ref.py new file mode 100644 index 00000000..e86bca5e --- /dev/null +++ b/intersight/models/ls_service_profile_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class LsServiceProfileRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + LsServiceProfileRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this LsServiceProfileRef. + + :return: The moid of this LsServiceProfileRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this LsServiceProfileRef. + + :param moid: The moid of this LsServiceProfileRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this LsServiceProfileRef. + + :return: The object_type of this LsServiceProfileRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this LsServiceProfileRef. + + :param object_type: The object_type of this LsServiceProfileRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, LsServiceProfileRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/management_controller.py b/intersight/models/management_controller.py index d09f32f2..9b7dea8a 100644 --- a/intersight/models/management_controller.py +++ b/intersight/models/management_controller.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,27 +32,28 @@ class ManagementController(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', - 'adapter_unit': 'MoMoRef', - 'compute_blade': 'MoMoRef', - 'compute_rack_unit': 'MoMoRef', - 'management_interfaces': 'list[MoMoRef]', + 'adapter_unit': 'AdapterUnitRef', + 'compute_blade': 'ComputeBladeRef', + 'compute_rack_unit': 'ComputeRackUnitRef', + 'management_interfaces': 'list[ManagementInterfaceRef]', 'model': 'str', - 'network_element': 'MoMoRef', - 'registered_device': 'MoMoRef', - 'running_firmware': 'list[MoMoRef]', - 'storage_sas_expander': 'MoMoRef', - 'top_system': 'MoMoRef' + 'network_element': 'NetworkElementRef', + 'registered_device': 'AssetDeviceRegistrationRef', + 'running_firmware': 'list[FirmwareRunningFirmwareRef]', + 'storage_sas_expander': 'StorageSasExpanderRef', + 'top_system': 'TopSystemRef' } attribute_map = { @@ -65,6 +66,7 @@ class ManagementController(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -80,7 +82,7 @@ class ManagementController(object): 'top_system': 'TopSystem' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, adapter_unit=None, compute_blade=None, compute_rack_unit=None, management_interfaces=None, model=None, network_element=None, registered_device=None, running_firmware=None, storage_sas_expander=None, top_system=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, adapter_unit=None, compute_blade=None, compute_rack_unit=None, management_interfaces=None, model=None, network_element=None, registered_device=None, running_firmware=None, storage_sas_expander=None, top_system=None): """ ManagementController - a model defined in Swagger """ @@ -94,6 +96,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -126,6 +129,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -183,7 +188,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ManagementController. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -194,7 +199,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ManagementController. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -321,7 +326,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ManagementController. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -332,7 +337,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ManagementController. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -341,7 +346,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this ManagementController. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this ManagementController. :rtype: list[MoTag] @@ -352,7 +357,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this ManagementController. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this ManagementController. :type: list[MoTag] @@ -360,6 +365,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this ManagementController. + The versioning info for this managed object + + :return: The version_context of this ManagementController. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this ManagementController. + The versioning info for this managed object + + :param version_context: The version_context of this ManagementController. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -429,7 +457,7 @@ def adapter_unit(self): Gets the adapter_unit of this ManagementController. :return: The adapter_unit of this ManagementController. - :rtype: MoMoRef + :rtype: AdapterUnitRef """ return self._adapter_unit @@ -439,7 +467,7 @@ def adapter_unit(self, adapter_unit): Sets the adapter_unit of this ManagementController. :param adapter_unit: The adapter_unit of this ManagementController. - :type: MoMoRef + :type: AdapterUnitRef """ self._adapter_unit = adapter_unit @@ -450,7 +478,7 @@ def compute_blade(self): Gets the compute_blade of this ManagementController. :return: The compute_blade of this ManagementController. - :rtype: MoMoRef + :rtype: ComputeBladeRef """ return self._compute_blade @@ -460,7 +488,7 @@ def compute_blade(self, compute_blade): Sets the compute_blade of this ManagementController. :param compute_blade: The compute_blade of this ManagementController. - :type: MoMoRef + :type: ComputeBladeRef """ self._compute_blade = compute_blade @@ -471,7 +499,7 @@ def compute_rack_unit(self): Gets the compute_rack_unit of this ManagementController. :return: The compute_rack_unit of this ManagementController. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._compute_rack_unit @@ -481,7 +509,7 @@ def compute_rack_unit(self, compute_rack_unit): Sets the compute_rack_unit of this ManagementController. :param compute_rack_unit: The compute_rack_unit of this ManagementController. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._compute_rack_unit = compute_rack_unit @@ -492,7 +520,7 @@ def management_interfaces(self): Gets the management_interfaces of this ManagementController. :return: The management_interfaces of this ManagementController. - :rtype: list[MoMoRef] + :rtype: list[ManagementInterfaceRef] """ return self._management_interfaces @@ -502,7 +530,7 @@ def management_interfaces(self, management_interfaces): Sets the management_interfaces of this ManagementController. :param management_interfaces: The management_interfaces of this ManagementController. - :type: list[MoMoRef] + :type: list[ManagementInterfaceRef] """ self._management_interfaces = management_interfaces @@ -534,7 +562,7 @@ def network_element(self): Gets the network_element of this ManagementController. :return: The network_element of this ManagementController. - :rtype: MoMoRef + :rtype: NetworkElementRef """ return self._network_element @@ -544,7 +572,7 @@ def network_element(self, network_element): Sets the network_element of this ManagementController. :param network_element: The network_element of this ManagementController. - :type: MoMoRef + :type: NetworkElementRef """ self._network_element = network_element @@ -555,7 +583,7 @@ def registered_device(self): Gets the registered_device of this ManagementController. :return: The registered_device of this ManagementController. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -565,7 +593,7 @@ def registered_device(self, registered_device): Sets the registered_device of this ManagementController. :param registered_device: The registered_device of this ManagementController. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -576,7 +604,7 @@ def running_firmware(self): Gets the running_firmware of this ManagementController. :return: The running_firmware of this ManagementController. - :rtype: list[MoMoRef] + :rtype: list[FirmwareRunningFirmwareRef] """ return self._running_firmware @@ -586,7 +614,7 @@ def running_firmware(self, running_firmware): Sets the running_firmware of this ManagementController. :param running_firmware: The running_firmware of this ManagementController. - :type: list[MoMoRef] + :type: list[FirmwareRunningFirmwareRef] """ self._running_firmware = running_firmware @@ -597,7 +625,7 @@ def storage_sas_expander(self): Gets the storage_sas_expander of this ManagementController. :return: The storage_sas_expander of this ManagementController. - :rtype: MoMoRef + :rtype: StorageSasExpanderRef """ return self._storage_sas_expander @@ -607,7 +635,7 @@ def storage_sas_expander(self, storage_sas_expander): Sets the storage_sas_expander of this ManagementController. :param storage_sas_expander: The storage_sas_expander of this ManagementController. - :type: MoMoRef + :type: StorageSasExpanderRef """ self._storage_sas_expander = storage_sas_expander @@ -618,7 +646,7 @@ def top_system(self): Gets the top_system of this ManagementController. :return: The top_system of this ManagementController. - :rtype: MoMoRef + :rtype: TopSystemRef """ return self._top_system @@ -628,7 +656,7 @@ def top_system(self, top_system): Sets the top_system of this ManagementController. :param top_system: The top_system of this ManagementController. - :type: MoMoRef + :type: TopSystemRef """ self._top_system = top_system diff --git a/intersight/models/management_controller_list.py b/intersight/models/management_controller_list.py index 66a78054..96498567 100644 --- a/intersight/models/management_controller_list.py +++ b/intersight/models/management_controller_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/management_controller_ref.py b/intersight/models/management_controller_ref.py new file mode 100644 index 00000000..c596177f --- /dev/null +++ b/intersight/models/management_controller_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ManagementControllerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ManagementControllerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ManagementControllerRef. + + :return: The moid of this ManagementControllerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ManagementControllerRef. + + :param moid: The moid of this ManagementControllerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ManagementControllerRef. + + :return: The object_type of this ManagementControllerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ManagementControllerRef. + + :param object_type: The object_type of this ManagementControllerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ManagementControllerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/management_entity.py b/intersight/models/management_entity.py index 18fed38a..a94855a9 100644 --- a/intersight/models/management_entity.py +++ b/intersight/models/management_entity.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,22 @@ class ManagementEntity(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', 'entity_id': 'str', 'leadership': 'str', - 'network_element': 'MoMoRef', - 'registered_device': 'MoMoRef' + 'network_element': 'NetworkElementRef', + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -59,6 +60,7 @@ class ManagementEntity(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -68,7 +70,7 @@ class ManagementEntity(object): 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, entity_id=None, leadership=None, network_element=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, entity_id=None, leadership=None, network_element=None, registered_device=None): """ ManagementEntity - a model defined in Swagger """ @@ -82,6 +84,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -108,6 +111,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -153,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ManagementEntity. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ManagementEntity. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ManagementEntity. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ManagementEntity. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -311,7 +316,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this ManagementEntity. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this ManagementEntity. :rtype: list[MoTag] @@ -322,7 +327,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this ManagementEntity. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this ManagementEntity. :type: list[MoTag] @@ -330,6 +335,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this ManagementEntity. + The versioning info for this managed object + + :return: The version_context of this ManagementEntity. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this ManagementEntity. + The versioning info for this managed object + + :param version_context: The version_context of this ManagementEntity. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -441,7 +469,7 @@ def network_element(self): Gets the network_element of this ManagementEntity. :return: The network_element of this ManagementEntity. - :rtype: MoMoRef + :rtype: NetworkElementRef """ return self._network_element @@ -451,7 +479,7 @@ def network_element(self, network_element): Sets the network_element of this ManagementEntity. :param network_element: The network_element of this ManagementEntity. - :type: MoMoRef + :type: NetworkElementRef """ self._network_element = network_element @@ -462,7 +490,7 @@ def registered_device(self): Gets the registered_device of this ManagementEntity. :return: The registered_device of this ManagementEntity. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -472,7 +500,7 @@ def registered_device(self, registered_device): Sets the registered_device of this ManagementEntity. :param registered_device: The registered_device of this ManagementEntity. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/management_entity_list.py b/intersight/models/management_entity_list.py index f3cdd441..2c6c4b67 100644 --- a/intersight/models/management_entity_list.py +++ b/intersight/models/management_entity_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/management_entity_ref.py b/intersight/models/management_entity_ref.py new file mode 100644 index 00000000..83f23de3 --- /dev/null +++ b/intersight/models/management_entity_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ManagementEntityRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ManagementEntityRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ManagementEntityRef. + + :return: The moid of this ManagementEntityRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ManagementEntityRef. + + :param moid: The moid of this ManagementEntityRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ManagementEntityRef. + + :return: The object_type of this ManagementEntityRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ManagementEntityRef. + + :param object_type: The object_type of this ManagementEntityRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ManagementEntityRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/management_interface.py b/intersight/models/management_interface.py index 03bafa90..116b9584 100644 --- a/intersight/models/management_interface.py +++ b/intersight/models/management_interface.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,23 +32,24 @@ class ManagementInterface(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', 'gateway': 'str', 'ip_address': 'str', 'mac_address': 'str', - 'management_controller': 'MoMoRef', + 'management_controller': 'ManagementControllerRef', 'mask': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -61,6 +62,7 @@ class ManagementInterface(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -72,7 +74,7 @@ class ManagementInterface(object): 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, gateway=None, ip_address=None, mac_address=None, management_controller=None, mask=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, gateway=None, ip_address=None, mac_address=None, management_controller=None, mask=None, registered_device=None): """ ManagementInterface - a model defined in Swagger """ @@ -86,6 +88,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -114,6 +117,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -163,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ManagementInterface. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ManagementInterface. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ManagementInterface. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ManagementInterface. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -321,7 +326,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this ManagementInterface. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this ManagementInterface. :rtype: list[MoTag] @@ -332,7 +337,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this ManagementInterface. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this ManagementInterface. :type: list[MoTag] @@ -340,6 +345,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this ManagementInterface. + The versioning info for this managed object + + :return: The version_context of this ManagementInterface. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this ManagementInterface. + The versioning info for this managed object + + :param version_context: The version_context of this ManagementInterface. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -472,7 +500,7 @@ def management_controller(self): Gets the management_controller of this ManagementInterface. :return: The management_controller of this ManagementInterface. - :rtype: MoMoRef + :rtype: ManagementControllerRef """ return self._management_controller @@ -482,7 +510,7 @@ def management_controller(self, management_controller): Sets the management_controller of this ManagementInterface. :param management_controller: The management_controller of this ManagementInterface. - :type: MoMoRef + :type: ManagementControllerRef """ self._management_controller = management_controller @@ -514,7 +542,7 @@ def registered_device(self): Gets the registered_device of this ManagementInterface. :return: The registered_device of this ManagementInterface. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -524,7 +552,7 @@ def registered_device(self, registered_device): Sets the registered_device of this ManagementInterface. :param registered_device: The registered_device of this ManagementInterface. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/management_interface_list.py b/intersight/models/management_interface_list.py index 6452fe7b..12405f78 100644 --- a/intersight/models/management_interface_list.py +++ b/intersight/models/management_interface_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/management_interface_ref.py b/intersight/models/management_interface_ref.py new file mode 100644 index 00000000..12c2a7f3 --- /dev/null +++ b/intersight/models/management_interface_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ManagementInterfaceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ManagementInterfaceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ManagementInterfaceRef. + + :return: The moid of this ManagementInterfaceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ManagementInterfaceRef. + + :param moid: The moid of this ManagementInterfaceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ManagementInterfaceRef. + + :return: The object_type of this ManagementInterfaceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ManagementInterfaceRef. + + :param object_type: The object_type of this ManagementInterfaceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ManagementInterfaceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/memory_array.py b/intersight/models/memory_array.py index b63d1953..db488d41 100644 --- a/intersight/models/memory_array.py +++ b/intersight/models/memory_array.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class MemoryArray(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -48,7 +49,7 @@ class MemoryArray(object): 'serial': 'str', 'vendor': 'str', 'array_id': 'int', - 'compute_board': 'MoMoRef', + 'compute_board': 'ComputeBoardRef', 'cpu_id': 'int', 'current_capacity': 'str', 'error_correction': 'str', @@ -56,8 +57,8 @@ class MemoryArray(object): 'max_devices': 'str', 'oper_power_state': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef', - 'units': 'list[MoMoRef]' + 'registered_device': 'AssetDeviceRegistrationRef', + 'units': 'list[MemoryUnitRef]' } attribute_map = { @@ -70,6 +71,7 @@ class MemoryArray(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -90,7 +92,7 @@ class MemoryArray(object): 'units': 'Units' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, array_id=None, compute_board=None, cpu_id=None, current_capacity=None, error_correction=None, max_capacity=None, max_devices=None, oper_power_state=None, presence=None, registered_device=None, units=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, array_id=None, compute_board=None, cpu_id=None, current_capacity=None, error_correction=None, max_capacity=None, max_devices=None, oper_power_state=None, presence=None, registered_device=None, units=None): """ MemoryArray - a model defined in Swagger """ @@ -104,6 +106,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -141,6 +144,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -208,7 +213,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this MemoryArray. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -219,7 +224,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this MemoryArray. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -346,7 +351,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this MemoryArray. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -357,7 +362,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this MemoryArray. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -366,7 +371,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this MemoryArray. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this MemoryArray. :rtype: list[MoTag] @@ -377,7 +382,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this MemoryArray. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this MemoryArray. :type: list[MoTag] @@ -385,6 +390,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this MemoryArray. + The versioning info for this managed object + + :return: The version_context of this MemoryArray. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this MemoryArray. + The versioning info for this managed object + + :param version_context: The version_context of this MemoryArray. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -559,7 +587,7 @@ def compute_board(self): Gets the compute_board of this MemoryArray. :return: The compute_board of this MemoryArray. - :rtype: MoMoRef + :rtype: ComputeBoardRef """ return self._compute_board @@ -569,7 +597,7 @@ def compute_board(self, compute_board): Sets the compute_board of this MemoryArray. :param compute_board: The compute_board of this MemoryArray. - :type: MoMoRef + :type: ComputeBoardRef """ self._compute_board = compute_board @@ -727,7 +755,7 @@ def registered_device(self): Gets the registered_device of this MemoryArray. :return: The registered_device of this MemoryArray. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -737,7 +765,7 @@ def registered_device(self, registered_device): Sets the registered_device of this MemoryArray. :param registered_device: The registered_device of this MemoryArray. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -748,7 +776,7 @@ def units(self): Gets the units of this MemoryArray. :return: The units of this MemoryArray. - :rtype: list[MoMoRef] + :rtype: list[MemoryUnitRef] """ return self._units @@ -758,7 +786,7 @@ def units(self, units): Sets the units of this MemoryArray. :param units: The units of this MemoryArray. - :type: list[MoMoRef] + :type: list[MemoryUnitRef] """ self._units = units diff --git a/intersight/models/memory_array_list.py b/intersight/models/memory_array_list.py index cf50ee5b..974f2658 100644 --- a/intersight/models/memory_array_list.py +++ b/intersight/models/memory_array_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/memory_array_ref.py b/intersight/models/memory_array_ref.py new file mode 100644 index 00000000..798c7443 --- /dev/null +++ b/intersight/models/memory_array_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MemoryArrayRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MemoryArrayRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MemoryArrayRef. + + :return: The moid of this MemoryArrayRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MemoryArrayRef. + + :param moid: The moid of this MemoryArrayRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MemoryArrayRef. + + :return: The object_type of this MemoryArrayRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MemoryArrayRef. + + :param object_type: The object_type of this MemoryArrayRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MemoryArrayRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/memory_unit.py b/intersight/models/memory_unit.py index ca42b1a7..412e0ed4 100644 --- a/intersight/models/memory_unit.py +++ b/intersight/models/memory_unit.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class MemoryUnit(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -55,13 +56,13 @@ class MemoryUnit(object): 'form_factor': 'str', 'latency': 'str', 'location': 'str', - 'memory_array': 'MoMoRef', + 'memory_array': 'MemoryArrayRef', 'memory_id': 'int', 'oper_power_state': 'str', 'oper_state': 'str', 'operability': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'set': 'int', 'speed': 'str', 'thermal': 'str', @@ -80,6 +81,7 @@ class MemoryUnit(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -110,7 +112,7 @@ class MemoryUnit(object): 'width': 'Width' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, admin_state=None, array_id=None, bank=None, capacity=None, clock=None, form_factor=None, latency=None, location=None, memory_array=None, memory_id=None, oper_power_state=None, oper_state=None, operability=None, presence=None, registered_device=None, set=None, speed=None, thermal=None, type=None, visibility=None, width=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, admin_state=None, array_id=None, bank=None, capacity=None, clock=None, form_factor=None, latency=None, location=None, memory_array=None, memory_id=None, oper_power_state=None, oper_state=None, operability=None, presence=None, registered_device=None, set=None, speed=None, thermal=None, type=None, visibility=None, width=None): """ MemoryUnit - a model defined in Swagger """ @@ -124,6 +126,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -171,6 +174,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -258,7 +263,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this MemoryUnit. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -269,7 +274,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this MemoryUnit. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -396,7 +401,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this MemoryUnit. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -407,7 +412,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this MemoryUnit. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -416,7 +421,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this MemoryUnit. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this MemoryUnit. :rtype: list[MoTag] @@ -427,7 +432,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this MemoryUnit. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this MemoryUnit. :type: list[MoTag] @@ -435,6 +440,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this MemoryUnit. + The versioning info for this managed object + + :return: The version_context of this MemoryUnit. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this MemoryUnit. + The versioning info for this managed object + + :param version_context: The version_context of this MemoryUnit. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -756,7 +784,7 @@ def memory_array(self): Gets the memory_array of this MemoryUnit. :return: The memory_array of this MemoryUnit. - :rtype: MoMoRef + :rtype: MemoryArrayRef """ return self._memory_array @@ -766,7 +794,7 @@ def memory_array(self, memory_array): Sets the memory_array of this MemoryUnit. :param memory_array: The memory_array of this MemoryUnit. - :type: MoMoRef + :type: MemoryArrayRef """ self._memory_array = memory_array @@ -882,7 +910,7 @@ def registered_device(self): Gets the registered_device of this MemoryUnit. :return: The registered_device of this MemoryUnit. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -892,7 +920,7 @@ def registered_device(self, registered_device): Sets the registered_device of this MemoryUnit. :param registered_device: The registered_device of this MemoryUnit. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/memory_unit_list.py b/intersight/models/memory_unit_list.py index 3f6a1d5c..2c523e03 100644 --- a/intersight/models/memory_unit_list.py +++ b/intersight/models/memory_unit_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/memory_unit_ref.py b/intersight/models/memory_unit_ref.py new file mode 100644 index 00000000..5e1a7dc8 --- /dev/null +++ b/intersight/models/memory_unit_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MemoryUnitRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MemoryUnitRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MemoryUnitRef. + + :return: The moid of this MemoryUnitRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MemoryUnitRef. + + :param moid: The moid of this MemoryUnitRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MemoryUnitRef. + + :return: The object_type of this MemoryUnitRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MemoryUnitRef. + + :param object_type: The object_type of this MemoryUnitRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MemoryUnitRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/meta_definition.py b/intersight/models/meta_definition.py index bf008a9c..727681b7 100644 --- a/intersight/models/meta_definition.py +++ b/intersight/models/meta_definition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,19 @@ class MetaDefinition(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'ancestor_classes': 'list[str]', - 'external_type': 'bool', 'is_concrete': 'bool', 'name': 'str', 'namespace': 'str', - 'observe': 'bool', 'parent_class': 'str', 'properties': 'list[MetaPropDefinition]', 'relationships': 'list[MetaRelationshipDefinition]', @@ -63,12 +62,11 @@ class MetaDefinition(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'ancestor_classes': 'AncestorClasses', - 'external_type': 'ExternalType', 'is_concrete': 'IsConcrete', 'name': 'Name', 'namespace': 'Namespace', - 'observe': 'Observe', 'parent_class': 'ParentClass', 'properties': 'Properties', 'relationships': 'Relationships', @@ -76,7 +74,7 @@ class MetaDefinition(object): 'version': 'Version' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, ancestor_classes=None, external_type=None, is_concrete=None, name=None, namespace=None, observe=None, parent_class=None, properties=None, relationships=None, rest_path=None, version=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, ancestor_classes=None, is_concrete=None, name=None, namespace=None, parent_class=None, properties=None, relationships=None, rest_path=None, version=None): """ MetaDefinition - a model defined in Swagger """ @@ -90,12 +88,11 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._ancestor_classes = None - self._external_type = None self._is_concrete = None self._name = None self._namespace = None - self._observe = None self._parent_class = None self._properties = None self._relationships = None @@ -120,18 +117,16 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if ancestor_classes is not None: self.ancestor_classes = ancestor_classes - if external_type is not None: - self.external_type = external_type if is_concrete is not None: self.is_concrete = is_concrete if name is not None: self.name = name if namespace is not None: self.namespace = namespace - if observe is not None: - self.observe = observe if parent_class is not None: self.parent_class = parent_class if properties is not None: @@ -173,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this MetaDefinition. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -184,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this MetaDefinition. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -311,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this MetaDefinition. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -322,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this MetaDefinition. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -331,7 +326,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this MetaDefinition. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this MetaDefinition. :rtype: list[MoTag] @@ -342,7 +337,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this MetaDefinition. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this MetaDefinition. :type: list[MoTag] @@ -350,6 +345,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this MetaDefinition. + The versioning info for this managed object + + :return: The version_context of this MetaDefinition. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this MetaDefinition. + The versioning info for this managed object + + :param version_context: The version_context of this MetaDefinition. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def ancestor_classes(self): """ @@ -373,34 +391,11 @@ def ancestor_classes(self, ancestor_classes): self._ancestor_classes = ancestor_classes - @property - def external_type(self): - """ - Gets the external_type of this MetaDefinition. - Boolean flag to specify whether the meta class is defined in a separate micro-service. - - :return: The external_type of this MetaDefinition. - :rtype: bool - """ - return self._external_type - - @external_type.setter - def external_type(self, external_type): - """ - Sets the external_type of this MetaDefinition. - Boolean flag to specify whether the meta class is defined in a separate micro-service. - - :param external_type: The external_type of this MetaDefinition. - :type: bool - """ - - self._external_type = external_type - @property def is_concrete(self): """ Gets the is_concrete of this MetaDefinition. - Boolean flag to specify whether this class is a concrete class or not. + Boolean flag to specify whether the meta class is a concrete class or not. :return: The is_concrete of this MetaDefinition. :rtype: bool @@ -411,7 +406,7 @@ def is_concrete(self): def is_concrete(self, is_concrete): """ Sets the is_concrete of this MetaDefinition. - Boolean flag to specify whether this class is a concrete class or not. + Boolean flag to specify whether the meta class is a concrete class or not. :param is_concrete: The is_concrete of this MetaDefinition. :type: bool @@ -423,7 +418,7 @@ def is_concrete(self, is_concrete): def name(self): """ Gets the name of this MetaDefinition. - The fully-qualified name of the meta class. For example, \"compute:Blade\" where the Managed Object is \"Blade\" and the package is 'compute'. + The fully-qualified name of the meta. For example, \"compute:Blade\" where the Managed Object is \"Blade\" and the package is 'compute'. :return: The name of this MetaDefinition. :rtype: str @@ -434,7 +429,7 @@ def name(self): def name(self, name): """ Sets the name of this MetaDefinition. - The fully-qualified name of the meta class. For example, \"compute:Blade\" where the Managed Object is \"Blade\" and the package is 'compute'. + The fully-qualified name of the meta. For example, \"compute:Blade\" where the Managed Object is \"Blade\" and the package is 'compute'. :param name: The name of this MetaDefinition. :type: str @@ -446,7 +441,7 @@ def name(self, name): def namespace(self): """ Gets the namespace of this MetaDefinition. - Namespace of the meta class. + Namespace of the meta. :return: The namespace of this MetaDefinition. :rtype: str @@ -457,7 +452,7 @@ def namespace(self): def namespace(self, namespace): """ Sets the namespace of this MetaDefinition. - Namespace of the meta class. + Namespace of the meta. :param namespace: The namespace of this MetaDefinition. :type: str @@ -465,29 +460,6 @@ def namespace(self, namespace): self._namespace = namespace - @property - def observe(self): - """ - Gets the observe of this MetaDefinition. - Boolean flag to subscribe for mo change notifications if this meta class is an external type. - - :return: The observe of this MetaDefinition. - :rtype: bool - """ - return self._observe - - @observe.setter - def observe(self, observe): - """ - Sets the observe of this MetaDefinition. - Boolean flag to subscribe for mo change notifications if this meta class is an external type. - - :param observe: The observe of this MetaDefinition. - :type: bool - """ - - self._observe = observe - @property def parent_class(self): """ @@ -561,7 +533,7 @@ def relationships(self, relationships): def rest_path(self): """ Gets the rest_path of this MetaDefinition. - Restful URL path for the meta class. + Restful URL path for the meta. :return: The rest_path of this MetaDefinition. :rtype: str @@ -572,7 +544,7 @@ def rest_path(self): def rest_path(self, rest_path): """ Sets the rest_path of this MetaDefinition. - Restful URL path for the meta class. + Restful URL path for the meta. :param rest_path: The rest_path of this MetaDefinition. :type: str @@ -584,7 +556,7 @@ def rest_path(self, rest_path): def version(self): """ Gets the version of this MetaDefinition. - Version of the service that defines the meta class. + Version of the service that defines the meta. :return: The version of this MetaDefinition. :rtype: str @@ -595,7 +567,7 @@ def version(self): def version(self, version): """ Sets the version of this MetaDefinition. - Version of the service that defines the meta class. + Version of the service that defines the meta. :param version: The version of this MetaDefinition. :type: str diff --git a/intersight/models/meta_definition_list.py b/intersight/models/meta_definition_list.py index 74812ed5..8b3c4a4c 100644 --- a/intersight/models/meta_definition_list.py +++ b/intersight/models/meta_definition_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/meta_definition_ref.py b/intersight/models/meta_definition_ref.py new file mode 100644 index 00000000..9b394ce3 --- /dev/null +++ b/intersight/models/meta_definition_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MetaDefinitionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MetaDefinitionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MetaDefinitionRef. + + :return: The moid of this MetaDefinitionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MetaDefinitionRef. + + :param moid: The moid of this MetaDefinitionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MetaDefinitionRef. + + :return: The object_type of this MetaDefinitionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MetaDefinitionRef. + + :param object_type: The object_type of this MetaDefinitionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MetaDefinitionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/meta_prop_definition.py b/intersight/models/meta_prop_definition.py index db017b8c..aea645e0 100644 --- a/intersight/models/meta_prop_definition.py +++ b/intersight/models/meta_prop_definition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -67,7 +67,7 @@ def __init__(self, api_access='NoAccess', name=None, op_security='ClearText', se def api_access(self): """ Gets the api_access of this MetaPropDefinition. - Api access definition for the property. + Api access control for the property. Examples are NoAccess, ReadOnly, CreateOnly etc. :return: The api_access of this MetaPropDefinition. :rtype: str @@ -78,7 +78,7 @@ def api_access(self): def api_access(self, api_access): """ Sets the api_access of this MetaPropDefinition. - Api access definition for the property. + Api access control for the property. Examples are NoAccess, ReadOnly, CreateOnly etc. :param api_access: The api_access of this MetaPropDefinition. :type: str @@ -96,7 +96,7 @@ def api_access(self, api_access): def name(self): """ Gets the name of this MetaPropDefinition. - Name of the property as defined in the model.yaml + Name of the property. :return: The name of this MetaPropDefinition. :rtype: str @@ -107,7 +107,7 @@ def name(self): def name(self, name): """ Sets the name of this MetaPropDefinition. - Name of the property as defined in the model.yaml + Name of the property. :param name: The name of this MetaPropDefinition. :type: str @@ -119,7 +119,7 @@ def name(self, name): def op_security(self): """ Gets the op_security of this MetaPropDefinition. - Operational Security definition. + Specifies the security aspects of the property when persisting the property; for example, Encrypted or in Cleartext. :return: The op_security of this MetaPropDefinition. :rtype: str @@ -130,7 +130,7 @@ def op_security(self): def op_security(self, op_security): """ Sets the op_security of this MetaPropDefinition. - Operational Security definition. + Specifies the security aspects of the property when persisting the property; for example, Encrypted or in Cleartext. :param op_security: The op_security of this MetaPropDefinition. :type: str @@ -148,7 +148,7 @@ def op_security(self, op_security): def search_weight(self): """ Gets the search_weight of this MetaPropDefinition. - Api access definition. + Enables the property to be searchable from global search. A value of 0 means this property is not globally searchable. :return: The search_weight of this MetaPropDefinition. :rtype: float @@ -159,7 +159,7 @@ def search_weight(self): def search_weight(self, search_weight): """ Sets the search_weight of this MetaPropDefinition. - Api access definition. + Enables the property to be searchable from global search. A value of 0 means this property is not globally searchable. :param search_weight: The search_weight of this MetaPropDefinition. :type: float diff --git a/intersight/models/meta_prop_definition_ref.py b/intersight/models/meta_prop_definition_ref.py new file mode 100644 index 00000000..85d76662 --- /dev/null +++ b/intersight/models/meta_prop_definition_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MetaPropDefinitionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MetaPropDefinitionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MetaPropDefinitionRef. + + :return: The moid of this MetaPropDefinitionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MetaPropDefinitionRef. + + :param moid: The moid of this MetaPropDefinitionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MetaPropDefinitionRef. + + :return: The object_type of this MetaPropDefinitionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MetaPropDefinitionRef. + + :param object_type: The object_type of this MetaPropDefinitionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MetaPropDefinitionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/meta_relationship_definition.py b/intersight/models/meta_relationship_definition.py index 45405037..4ee70742 100644 --- a/intersight/models/meta_relationship_definition.py +++ b/intersight/models/meta_relationship_definition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -119,7 +119,7 @@ def collection(self, collection): def name(self): """ Gets the name of this MetaRelationshipDefinition. - Name of the relationship as defined in the model.yaml + Name of the relationship :return: The name of this MetaRelationshipDefinition. :rtype: str @@ -130,7 +130,7 @@ def name(self): def name(self, name): """ Sets the name of this MetaRelationshipDefinition. - Name of the relationship as defined in the model.yaml + Name of the relationship :param name: The name of this MetaRelationshipDefinition. :type: str @@ -142,7 +142,7 @@ def name(self, name): def type(self): """ Gets the type of this MetaRelationshipDefinition. - Fully qualified type of the foreign MO + Fully qualified type of the foreign managed object. :return: The type of this MetaRelationshipDefinition. :rtype: str @@ -153,7 +153,7 @@ def type(self): def type(self, type): """ Sets the type of this MetaRelationshipDefinition. - Fully qualified type of the foreign MO + Fully qualified type of the foreign managed object. :param type: The type of this MetaRelationshipDefinition. :type: str diff --git a/intersight/models/meta_relationship_definition_ref.py b/intersight/models/meta_relationship_definition_ref.py new file mode 100644 index 00000000..a4cbc5a1 --- /dev/null +++ b/intersight/models/meta_relationship_definition_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MetaRelationshipDefinitionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MetaRelationshipDefinitionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MetaRelationshipDefinitionRef. + + :return: The moid of this MetaRelationshipDefinitionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MetaRelationshipDefinitionRef. + + :param moid: The moid of this MetaRelationshipDefinitionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MetaRelationshipDefinitionRef. + + :return: The object_type of this MetaRelationshipDefinitionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MetaRelationshipDefinitionRef. + + :param object_type: The object_type of this MetaRelationshipDefinitionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MetaRelationshipDefinitionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/mo_base_complex_type.py b/intersight/models/mo_base_complex_type.py index 87ce7b58..1e001c74 100644 --- a/intersight/models/mo_base_complex_type.py +++ b/intersight/models/mo_base_complex_type.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/mo_base_complex_type_ref.py b/intersight/models/mo_base_complex_type_ref.py new file mode 100644 index 00000000..4efa4531 --- /dev/null +++ b/intersight/models/mo_base_complex_type_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MoBaseComplexTypeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MoBaseComplexTypeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MoBaseComplexTypeRef. + + :return: The moid of this MoBaseComplexTypeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MoBaseComplexTypeRef. + + :param moid: The moid of this MoBaseComplexTypeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MoBaseComplexTypeRef. + + :return: The object_type of this MoBaseComplexTypeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MoBaseComplexTypeRef. + + :param object_type: The object_type of this MoBaseComplexTypeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MoBaseComplexTypeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/mo_base_mo.py b/intersight/models/mo_base_mo.py index 8c1ea43e..87ac4bec 100644 --- a/intersight/models/mo_base_mo.py +++ b/intersight/models/mo_base_mo.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class MoBaseMo(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', - 'tags': 'list[MoTag]' + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext' } attribute_map = { @@ -51,10 +52,11 @@ class MoBaseMo(object): 'object_type': 'ObjectType', 'owners': 'Owners', 'parent': 'Parent', - 'tags': 'Tags' + 'tags': 'Tags', + 'version_context': 'VersionContext' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None): """ MoBaseMo - a model defined in Swagger """ @@ -68,6 +70,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None if account_moid is not None: self.account_moid = account_moid @@ -87,6 +90,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context @property def account_moid(self): @@ -118,7 +123,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this MoBaseMo. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -129,7 +134,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this MoBaseMo. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -256,7 +261,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this MoBaseMo. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -267,7 +272,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this MoBaseMo. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -276,7 +281,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this MoBaseMo. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this MoBaseMo. :rtype: list[MoTag] @@ -287,7 +292,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this MoBaseMo. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this MoBaseMo. :type: list[MoTag] @@ -295,6 +300,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this MoBaseMo. + The versioning info for this managed object + + :return: The version_context of this MoBaseMo. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this MoBaseMo. + The versioning info for this managed object + + :param version_context: The version_context of this MoBaseMo. + :type: MoVersionContext + """ + + self._version_context = version_context + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/mo_base_mo_ref.py b/intersight/models/mo_base_mo_ref.py new file mode 100644 index 00000000..08941b81 --- /dev/null +++ b/intersight/models/mo_base_mo_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MoBaseMoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MoBaseMoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MoBaseMoRef. + + :return: The moid of this MoBaseMoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MoBaseMoRef. + + :param moid: The moid of this MoBaseMoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MoBaseMoRef. + + :return: The object_type of this MoBaseMoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MoBaseMoRef. + + :param object_type: The object_type of this MoBaseMoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MoBaseMoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/mo_interest_registration_ref.py b/intersight/models/mo_interest_registration_ref.py new file mode 100644 index 00000000..a9fd55ed --- /dev/null +++ b/intersight/models/mo_interest_registration_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MoInterestRegistrationRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MoInterestRegistrationRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MoInterestRegistrationRef. + + :return: The moid of this MoInterestRegistrationRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MoInterestRegistrationRef. + + :param moid: The moid of this MoInterestRegistrationRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MoInterestRegistrationRef. + + :return: The object_type of this MoInterestRegistrationRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MoInterestRegistrationRef. + + :param object_type: The object_type of this MoInterestRegistrationRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MoInterestRegistrationRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/mo_mo_ref.py b/intersight/models/mo_mo_ref.py index 463be9f0..c074b90a 100644 --- a/intersight/models/mo_mo_ref.py +++ b/intersight/models/mo_mo_ref.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/mo_mo_ref_ref.py b/intersight/models/mo_mo_ref_ref.py new file mode 100644 index 00000000..439e9f87 --- /dev/null +++ b/intersight/models/mo_mo_ref_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MoMoRefRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MoMoRefRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MoMoRefRef. + + :return: The moid of this MoMoRefRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MoMoRefRef. + + :param moid: The moid of this MoMoRefRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MoMoRefRef. + + :return: The object_type of this MoMoRefRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MoMoRefRef. + + :param object_type: The object_type of this MoMoRefRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MoMoRefRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/mo_tag.py b/intersight/models/mo_tag.py index 5f87b474..5db022e8 100644 --- a/intersight/models/mo_tag.py +++ b/intersight/models/mo_tag.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/mo_tag_ref.py b/intersight/models/mo_tag_ref.py new file mode 100644 index 00000000..de3f2b94 --- /dev/null +++ b/intersight/models/mo_tag_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MoTagRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MoTagRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MoTagRef. + + :return: The moid of this MoTagRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MoTagRef. + + :param moid: The moid of this MoTagRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MoTagRef. + + :return: The object_type of this MoTagRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MoTagRef. + + :param object_type: The object_type of this MoTagRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MoTagRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/mo_version_context.py b/intersight/models/mo_version_context.py new file mode 100644 index 00000000..b54748b6 --- /dev/null +++ b/intersight/models/mo_version_context.py @@ -0,0 +1,243 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MoVersionContext(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'interested_mos': 'list[MoMoRef]', + 'ref_mo': 'MoMoRef', + 'timestamp': 'datetime', + 'version': 'str', + 'version_type': 'str' + } + + attribute_map = { + 'interested_mos': 'InterestedMos', + 'ref_mo': 'RefMo', + 'timestamp': 'Timestamp', + 'version': 'Version', + 'version_type': 'VersionType' + } + + def __init__(self, interested_mos=None, ref_mo=None, timestamp=None, version=None, version_type='Modified'): + """ + MoVersionContext - a model defined in Swagger + """ + + self._interested_mos = None + self._ref_mo = None + self._timestamp = None + self._version = None + self._version_type = None + + if interested_mos is not None: + self.interested_mos = interested_mos + if ref_mo is not None: + self.ref_mo = ref_mo + if timestamp is not None: + self.timestamp = timestamp + if version is not None: + self.version = version + if version_type is not None: + self.version_type = version_type + + @property + def interested_mos(self): + """ + Gets the interested_mos of this MoVersionContext. + A collection of objects that have reference to this versioned object. The lifecycle of the versioned object is based on the interestedMos list; the versioned object will be purged when interestedMos is empty. + + :return: The interested_mos of this MoVersionContext. + :rtype: list[MoMoRef] + """ + return self._interested_mos + + @interested_mos.setter + def interested_mos(self, interested_mos): + """ + Sets the interested_mos of this MoVersionContext. + A collection of objects that have reference to this versioned object. The lifecycle of the versioned object is based on the interestedMos list; the versioned object will be purged when interestedMos is empty. + + :param interested_mos: The interested_mos of this MoVersionContext. + :type: list[MoMoRef] + """ + + self._interested_mos = interested_mos + + @property + def ref_mo(self): + """ + Gets the ref_mo of this MoVersionContext. + A reference to the original mo. + + :return: The ref_mo of this MoVersionContext. + :rtype: MoMoRef + """ + return self._ref_mo + + @ref_mo.setter + def ref_mo(self, ref_mo): + """ + Sets the ref_mo of this MoVersionContext. + A reference to the original mo. + + :param ref_mo: The ref_mo of this MoVersionContext. + :type: MoMoRef + """ + + self._ref_mo = ref_mo + + @property + def timestamp(self): + """ + Gets the timestamp of this MoVersionContext. + The time this versioned mo was created. + + :return: The timestamp of this MoVersionContext. + :rtype: datetime + """ + return self._timestamp + + @timestamp.setter + def timestamp(self, timestamp): + """ + Sets the timestamp of this MoVersionContext. + The time this versioned mo was created. + + :param timestamp: The timestamp of this MoVersionContext. + :type: datetime + """ + + self._timestamp = timestamp + + @property + def version(self): + """ + Gets the version of this MoVersionContext. + The version of the mo, eg an incrementing number or a hash id. + + :return: The version of this MoVersionContext. + :rtype: str + """ + return self._version + + @version.setter + def version(self, version): + """ + Sets the version of this MoVersionContext. + The version of the mo, eg an incrementing number or a hash id. + + :param version: The version of this MoVersionContext. + :type: str + """ + + self._version = version + + @property + def version_type(self): + """ + Gets the version_type of this MoVersionContext. + Specifies type of version. Currently the only supported value is ”Configured\" that is used to keep track of snapshots of policies and profiles that are intended to be configured to target endpoints. + + :return: The version_type of this MoVersionContext. + :rtype: str + """ + return self._version_type + + @version_type.setter + def version_type(self, version_type): + """ + Sets the version_type of this MoVersionContext. + Specifies type of version. Currently the only supported value is ”Configured\" that is used to keep track of snapshots of policies and profiles that are intended to be configured to target endpoints. + + :param version_type: The version_type of this MoVersionContext. + :type: str + """ + allowed_values = ["Modified", "Configured", "Deployed"] + if version_type not in allowed_values: + raise ValueError( + "Invalid value for `version_type` ({0}), must be one of {1}" + .format(version_type, allowed_values) + ) + + self._version_type = version_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MoVersionContext): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/mo_version_context_ref.py b/intersight/models/mo_version_context_ref.py new file mode 100644 index 00000000..995b995f --- /dev/null +++ b/intersight/models/mo_version_context_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class MoVersionContextRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + MoVersionContextRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this MoVersionContextRef. + + :return: The moid of this MoVersionContextRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this MoVersionContextRef. + + :param moid: The moid of this MoVersionContextRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this MoVersionContextRef. + + :return: The object_type of this MoVersionContextRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this MoVersionContextRef. + + :param object_type: The object_type of this MoVersionContextRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, MoVersionContextRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/network_element.py b/intersight/models/network_element.py index 1c78a15d..85333efa 100644 --- a/intersight/models/network_element.py +++ b/intersight/models/network_element.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class NetworkElement(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -48,24 +49,24 @@ class NetworkElement(object): 'serial': 'str', 'vendor': 'str', 'admin_inband_interface_state': 'str', - 'cards': 'list[MoMoRef]', - 'fanmodules': 'list[MoMoRef]', + 'cards': 'list[EquipmentSwitchCardRef]', + 'fanmodules': 'list[EquipmentFanModuleRef]', 'fault_summary': 'int', 'inband_ip_address': 'str', 'inband_ip_gateway': 'str', 'inband_ip_mask': 'str', 'inband_vlan': 'int', - 'management_contoller': 'MoMoRef', - 'management_entity': 'MoMoRef', + 'management_contoller': 'ManagementControllerRef', + 'management_entity': 'ManagementEntityRef', 'out_of_band_ip_address': 'str', 'out_of_band_ip_gateway': 'str', 'out_of_band_ip_mask': 'str', 'out_of_band_mac': 'str', - 'psus': 'list[MoMoRef]', - 'registered_device': 'MoMoRef', + 'psus': 'list[EquipmentPsuRef]', + 'registered_device': 'AssetDeviceRegistrationRef', 'switch_id': 'str', - 'top_system': 'MoMoRef', - 'ucsm_running_firmware': 'MoMoRef' + 'top_system': 'TopSystemRef', + 'ucsm_running_firmware': 'FirmwareRunningFirmwareRef' } attribute_map = { @@ -78,6 +79,7 @@ class NetworkElement(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -106,7 +108,7 @@ class NetworkElement(object): 'ucsm_running_firmware': 'UcsmRunningFirmware' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, admin_inband_interface_state=None, cards=None, fanmodules=None, fault_summary=None, inband_ip_address=None, inband_ip_gateway=None, inband_ip_mask=None, inband_vlan=None, management_contoller=None, management_entity=None, out_of_band_ip_address=None, out_of_band_ip_gateway=None, out_of_band_ip_mask=None, out_of_band_mac=None, psus=None, registered_device=None, switch_id=None, top_system=None, ucsm_running_firmware=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, admin_inband_interface_state=None, cards=None, fanmodules=None, fault_summary=None, inband_ip_address=None, inband_ip_gateway=None, inband_ip_mask=None, inband_vlan=None, management_contoller=None, management_entity=None, out_of_band_ip_address=None, out_of_band_ip_gateway=None, out_of_band_ip_mask=None, out_of_band_mac=None, psus=None, registered_device=None, switch_id=None, top_system=None, ucsm_running_firmware=None): """ NetworkElement - a model defined in Swagger """ @@ -120,6 +122,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -165,6 +168,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -248,7 +253,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this NetworkElement. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -259,7 +264,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this NetworkElement. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -386,7 +391,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this NetworkElement. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -397,7 +402,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this NetworkElement. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -406,7 +411,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this NetworkElement. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this NetworkElement. :rtype: list[MoTag] @@ -417,7 +422,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this NetworkElement. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this NetworkElement. :type: list[MoTag] @@ -425,6 +430,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this NetworkElement. + The versioning info for this managed object + + :return: The version_context of this NetworkElement. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this NetworkElement. + The versioning info for this managed object + + :param version_context: The version_context of this NetworkElement. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -599,7 +627,7 @@ def cards(self): Gets the cards of this NetworkElement. :return: The cards of this NetworkElement. - :rtype: list[MoMoRef] + :rtype: list[EquipmentSwitchCardRef] """ return self._cards @@ -609,7 +637,7 @@ def cards(self, cards): Sets the cards of this NetworkElement. :param cards: The cards of this NetworkElement. - :type: list[MoMoRef] + :type: list[EquipmentSwitchCardRef] """ self._cards = cards @@ -620,7 +648,7 @@ def fanmodules(self): Gets the fanmodules of this NetworkElement. :return: The fanmodules of this NetworkElement. - :rtype: list[MoMoRef] + :rtype: list[EquipmentFanModuleRef] """ return self._fanmodules @@ -630,7 +658,7 @@ def fanmodules(self, fanmodules): Sets the fanmodules of this NetworkElement. :param fanmodules: The fanmodules of this NetworkElement. - :type: list[MoMoRef] + :type: list[EquipmentFanModuleRef] """ self._fanmodules = fanmodules @@ -746,7 +774,7 @@ def management_contoller(self): Gets the management_contoller of this NetworkElement. :return: The management_contoller of this NetworkElement. - :rtype: MoMoRef + :rtype: ManagementControllerRef """ return self._management_contoller @@ -756,7 +784,7 @@ def management_contoller(self, management_contoller): Sets the management_contoller of this NetworkElement. :param management_contoller: The management_contoller of this NetworkElement. - :type: MoMoRef + :type: ManagementControllerRef """ self._management_contoller = management_contoller @@ -767,7 +795,7 @@ def management_entity(self): Gets the management_entity of this NetworkElement. :return: The management_entity of this NetworkElement. - :rtype: MoMoRef + :rtype: ManagementEntityRef """ return self._management_entity @@ -777,7 +805,7 @@ def management_entity(self, management_entity): Sets the management_entity of this NetworkElement. :param management_entity: The management_entity of this NetworkElement. - :type: MoMoRef + :type: ManagementEntityRef """ self._management_entity = management_entity @@ -872,7 +900,7 @@ def psus(self): Gets the psus of this NetworkElement. :return: The psus of this NetworkElement. - :rtype: list[MoMoRef] + :rtype: list[EquipmentPsuRef] """ return self._psus @@ -882,7 +910,7 @@ def psus(self, psus): Sets the psus of this NetworkElement. :param psus: The psus of this NetworkElement. - :type: list[MoMoRef] + :type: list[EquipmentPsuRef] """ self._psus = psus @@ -893,7 +921,7 @@ def registered_device(self): Gets the registered_device of this NetworkElement. :return: The registered_device of this NetworkElement. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -903,7 +931,7 @@ def registered_device(self, registered_device): Sets the registered_device of this NetworkElement. :param registered_device: The registered_device of this NetworkElement. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -935,7 +963,7 @@ def top_system(self): Gets the top_system of this NetworkElement. :return: The top_system of this NetworkElement. - :rtype: MoMoRef + :rtype: TopSystemRef """ return self._top_system @@ -945,7 +973,7 @@ def top_system(self, top_system): Sets the top_system of this NetworkElement. :param top_system: The top_system of this NetworkElement. - :type: MoMoRef + :type: TopSystemRef """ self._top_system = top_system @@ -956,7 +984,7 @@ def ucsm_running_firmware(self): Gets the ucsm_running_firmware of this NetworkElement. :return: The ucsm_running_firmware of this NetworkElement. - :rtype: MoMoRef + :rtype: FirmwareRunningFirmwareRef """ return self._ucsm_running_firmware @@ -966,7 +994,7 @@ def ucsm_running_firmware(self, ucsm_running_firmware): Sets the ucsm_running_firmware of this NetworkElement. :param ucsm_running_firmware: The ucsm_running_firmware of this NetworkElement. - :type: MoMoRef + :type: FirmwareRunningFirmwareRef """ self._ucsm_running_firmware = ucsm_running_firmware diff --git a/intersight/models/network_element_list.py b/intersight/models/network_element_list.py index 2042e4fe..79f19e71 100644 --- a/intersight/models/network_element_list.py +++ b/intersight/models/network_element_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/network_element_ref.py b/intersight/models/network_element_ref.py new file mode 100644 index 00000000..85af20d5 --- /dev/null +++ b/intersight/models/network_element_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NetworkElementRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NetworkElementRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NetworkElementRef. + + :return: The moid of this NetworkElementRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NetworkElementRef. + + :param moid: The moid of this NetworkElementRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NetworkElementRef. + + :return: The object_type of this NetworkElementRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NetworkElementRef. + + :param object_type: The object_type of this NetworkElementRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NetworkElementRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/network_element_summary.py b/intersight/models/network_element_summary.py index 759366d7..a64a3414 100644 --- a/intersight/models/network_element_summary.py +++ b/intersight/models/network_element_summary.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class NetworkElementSummary(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'admin_inband_interface_state': 'str', 'device_mo_id': 'str', 'dn': 'str', @@ -50,8 +51,6 @@ class NetworkElementSummary(object): 'inband_ip_mask': 'str', 'inband_vlan': 'int', 'ipv4_address': 'str', - 'leadership': 'str', - 'management_entity': 'str', 'model': 'str', 'name': 'str', 'num_ether_ports': 'int', @@ -65,7 +64,7 @@ class NetworkElementSummary(object): 'out_of_band_ip_gateway': 'str', 'out_of_band_ip_mask': 'str', 'out_of_band_mac': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'revision': 'str', 'rn': 'str', 'serial': 'str', @@ -85,6 +84,7 @@ class NetworkElementSummary(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'admin_inband_interface_state': 'AdminInbandInterfaceState', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', @@ -95,8 +95,6 @@ class NetworkElementSummary(object): 'inband_ip_mask': 'InbandIpMask', 'inband_vlan': 'InbandVlan', 'ipv4_address': 'Ipv4Address', - 'leadership': 'Leadership', - 'management_entity': 'ManagementEntity', 'model': 'Model', 'name': 'Name', 'num_ether_ports': 'NumEtherPorts', @@ -120,7 +118,7 @@ class NetworkElementSummary(object): 'version': 'Version' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, admin_inband_interface_state=None, device_mo_id=None, dn=None, fault_summary=None, firmware=None, inband_ip_address=None, inband_ip_gateway=None, inband_ip_mask=None, inband_vlan=None, ipv4_address=None, leadership=None, management_entity=None, model=None, name=None, num_ether_ports=None, num_ether_ports_configured=None, num_ether_ports_link_up=None, num_expansion_modules=None, num_fc_ports=None, num_fc_ports_configured=None, num_fc_ports_link_up=None, out_of_band_ip_address=None, out_of_band_ip_gateway=None, out_of_band_ip_mask=None, out_of_band_mac=None, registered_device=None, revision=None, rn=None, serial=None, source_object_type=None, switch_id=None, vendor=None, version=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, admin_inband_interface_state=None, device_mo_id=None, dn=None, fault_summary=None, firmware=None, inband_ip_address=None, inband_ip_gateway=None, inband_ip_mask=None, inband_vlan=None, ipv4_address=None, model=None, name=None, num_ether_ports=None, num_ether_ports_configured=None, num_ether_ports_link_up=None, num_expansion_modules=None, num_fc_ports=None, num_fc_ports_configured=None, num_fc_ports_link_up=None, out_of_band_ip_address=None, out_of_band_ip_gateway=None, out_of_band_ip_mask=None, out_of_band_mac=None, registered_device=None, revision=None, rn=None, serial=None, source_object_type=None, switch_id=None, vendor=None, version=None): """ NetworkElementSummary - a model defined in Swagger """ @@ -134,6 +132,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._admin_inband_interface_state = None self._device_mo_id = None self._dn = None @@ -144,8 +143,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._inband_ip_mask = None self._inband_vlan = None self._ipv4_address = None - self._leadership = None - self._management_entity = None self._model = None self._name = None self._num_ether_ports = None @@ -186,6 +183,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if admin_inband_interface_state is not None: self.admin_inband_interface_state = admin_inband_interface_state if device_mo_id is not None: @@ -206,10 +205,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.inband_vlan = inband_vlan if ipv4_address is not None: self.ipv4_address = ipv4_address - if leadership is not None: - self.leadership = leadership - if management_entity is not None: - self.management_entity = management_entity if model is not None: self.model = model if name is not None: @@ -283,7 +278,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this NetworkElementSummary. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -294,7 +289,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this NetworkElementSummary. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -421,7 +416,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this NetworkElementSummary. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -432,7 +427,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this NetworkElementSummary. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -441,7 +436,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this NetworkElementSummary. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this NetworkElementSummary. :rtype: list[MoTag] @@ -452,7 +447,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this NetworkElementSummary. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this NetworkElementSummary. :type: list[MoTag] @@ -460,6 +455,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this NetworkElementSummary. + The versioning info for this managed object + + :return: The version_context of this NetworkElementSummary. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this NetworkElementSummary. + The versioning info for this managed object + + :param version_context: The version_context of this NetworkElementSummary. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def admin_inband_interface_state(self): """ @@ -672,52 +690,6 @@ def ipv4_address(self, ipv4_address): self._ipv4_address = ipv4_address - @property - def leadership(self): - """ - Gets the leadership of this NetworkElementSummary. - Role of the Fi - primary or subordinate - - :return: The leadership of this NetworkElementSummary. - :rtype: str - """ - return self._leadership - - @leadership.setter - def leadership(self, leadership): - """ - Sets the leadership of this NetworkElementSummary. - Role of the Fi - primary or subordinate - - :param leadership: The leadership of this NetworkElementSummary. - :type: str - """ - - self._leadership = leadership - - @property - def management_entity(self): - """ - Gets the management_entity of this NetworkElementSummary. - The MoId of entity to associated to FI - - :return: The management_entity of this NetworkElementSummary. - :rtype: str - """ - return self._management_entity - - @management_entity.setter - def management_entity(self, management_entity): - """ - Sets the management_entity of this NetworkElementSummary. - The MoId of entity to associated to FI - - :param management_entity: The management_entity of this NetworkElementSummary. - :type: str - """ - - self._management_entity = management_entity - @property def model(self): """ @@ -1011,7 +983,7 @@ def registered_device(self): Gets the registered_device of this NetworkElementSummary. :return: The registered_device of this NetworkElementSummary. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -1021,7 +993,7 @@ def registered_device(self, registered_device): Sets the registered_device of this NetworkElementSummary. :param registered_device: The registered_device of this NetworkElementSummary. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/network_element_summary_list.py b/intersight/models/network_element_summary_list.py index 7f4079b3..82dc80bd 100644 --- a/intersight/models/network_element_summary_list.py +++ b/intersight/models/network_element_summary_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/network_element_summary_ref.py b/intersight/models/network_element_summary_ref.py new file mode 100644 index 00000000..de84ae9d --- /dev/null +++ b/intersight/models/network_element_summary_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NetworkElementSummaryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NetworkElementSummaryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NetworkElementSummaryRef. + + :return: The moid of this NetworkElementSummaryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NetworkElementSummaryRef. + + :param moid: The moid of this NetworkElementSummaryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NetworkElementSummaryRef. + + :return: The object_type of this NetworkElementSummaryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NetworkElementSummaryRef. + + :param object_type: The object_type of this NetworkElementSummaryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NetworkElementSummaryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/networkconfig_deploy_task_ref.py b/intersight/models/networkconfig_deploy_task_ref.py new file mode 100644 index 00000000..7c679c6c --- /dev/null +++ b/intersight/models/networkconfig_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NetworkconfigDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NetworkconfigDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NetworkconfigDeployTaskRef. + + :return: The moid of this NetworkconfigDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NetworkconfigDeployTaskRef. + + :param moid: The moid of this NetworkconfigDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NetworkconfigDeployTaskRef. + + :return: The object_type of this NetworkconfigDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NetworkconfigDeployTaskRef. + + :param object_type: The object_type of this NetworkconfigDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NetworkconfigDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/networkconfig_policy.py b/intersight/models/networkconfig_policy.py index c5236fbf..7ae65ac1 100644 --- a/intersight/models/networkconfig_policy.py +++ b/intersight/models/networkconfig_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class NetworkconfigPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', 'alternate_ipv4dns_server': 'str', @@ -49,13 +50,10 @@ class NetworkconfigPolicy(object): 'enable_ipv4dns_from_dhcp': 'bool', 'enable_ipv6': 'bool', 'enable_ipv6dns_from_dhcp': 'bool', - 'enable_vlan': 'bool', - 'organization': 'MoMoRef', + 'organization': 'IamAccountRef', 'preferred_ipv4dns_server': 'str', 'preferred_ipv6dns_server': 'str', - 'priority': 'int', - 'profiles': 'list[MoMoRef]', - 'vlan_id': 'int' + 'profiles': 'list[PolicyAbstractConfigProfileRef]' } attribute_map = { @@ -68,6 +66,7 @@ class NetworkconfigPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'alternate_ipv4dns_server': 'AlternateIpv4dnsServer', @@ -77,16 +76,13 @@ class NetworkconfigPolicy(object): 'enable_ipv4dns_from_dhcp': 'EnableIpv4dnsFromDhcp', 'enable_ipv6': 'EnableIpv6', 'enable_ipv6dns_from_dhcp': 'EnableIpv6dnsFromDhcp', - 'enable_vlan': 'EnableVlan', 'organization': 'Organization', 'preferred_ipv4dns_server': 'PreferredIpv4dnsServer', 'preferred_ipv6dns_server': 'PreferredIpv6dnsServer', - 'priority': 'Priority', - 'profiles': 'Profiles', - 'vlan_id': 'VlanId' + 'profiles': 'Profiles' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, alternate_ipv4dns_server=None, alternate_ipv6dns_server=None, dynamic_dns_domain=None, enable_dynamic_dns=None, enable_ipv4dns_from_dhcp=None, enable_ipv6=None, enable_ipv6dns_from_dhcp=None, enable_vlan=None, organization=None, preferred_ipv4dns_server=None, preferred_ipv6dns_server=None, priority=None, profiles=None, vlan_id=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, alternate_ipv4dns_server=None, alternate_ipv6dns_server=None, dynamic_dns_domain=None, enable_dynamic_dns=None, enable_ipv4dns_from_dhcp=None, enable_ipv6=None, enable_ipv6dns_from_dhcp=None, organization=None, preferred_ipv4dns_server=None, preferred_ipv6dns_server=None, profiles=None): """ NetworkconfigPolicy - a model defined in Swagger """ @@ -100,6 +96,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._alternate_ipv4dns_server = None @@ -109,13 +106,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._enable_ipv4dns_from_dhcp = None self._enable_ipv6 = None self._enable_ipv6dns_from_dhcp = None - self._enable_vlan = None self._organization = None self._preferred_ipv4dns_server = None self._preferred_ipv6dns_server = None - self._priority = None self._profiles = None - self._vlan_id = None if account_moid is not None: self.account_moid = account_moid @@ -135,6 +129,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -153,20 +149,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.enable_ipv6 = enable_ipv6 if enable_ipv6dns_from_dhcp is not None: self.enable_ipv6dns_from_dhcp = enable_ipv6dns_from_dhcp - if enable_vlan is not None: - self.enable_vlan = enable_vlan if organization is not None: self.organization = organization if preferred_ipv4dns_server is not None: self.preferred_ipv4dns_server = preferred_ipv4dns_server if preferred_ipv6dns_server is not None: self.preferred_ipv6dns_server = preferred_ipv6dns_server - if priority is not None: - self.priority = priority if profiles is not None: self.profiles = profiles - if vlan_id is not None: - self.vlan_id = vlan_id @property def account_moid(self): @@ -198,7 +188,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this NetworkconfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -209,7 +199,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this NetworkconfigPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -336,7 +326,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this NetworkconfigPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -347,7 +337,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this NetworkconfigPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -356,7 +346,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this NetworkconfigPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this NetworkconfigPolicy. :rtype: list[MoTag] @@ -367,7 +357,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this NetworkconfigPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this NetworkconfigPolicy. :type: list[MoTag] @@ -375,6 +365,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this NetworkconfigPolicy. + The versioning info for this managed object + + :return: The version_context of this NetworkconfigPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this NetworkconfigPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this NetworkconfigPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -425,7 +438,7 @@ def name(self, name): def alternate_ipv4dns_server(self): """ Gets the alternate_ipv4dns_server of this NetworkconfigPolicy. - IP address of the secondary DNS server. + IP address of the secondary DNS server :return: The alternate_ipv4dns_server of this NetworkconfigPolicy. :rtype: str @@ -436,7 +449,7 @@ def alternate_ipv4dns_server(self): def alternate_ipv4dns_server(self, alternate_ipv4dns_server): """ Sets the alternate_ipv4dns_server of this NetworkconfigPolicy. - IP address of the secondary DNS server. + IP address of the secondary DNS server :param alternate_ipv4dns_server: The alternate_ipv4dns_server of this NetworkconfigPolicy. :type: str @@ -448,7 +461,7 @@ def alternate_ipv4dns_server(self, alternate_ipv4dns_server): def alternate_ipv6dns_server(self): """ Gets the alternate_ipv6dns_server of this NetworkconfigPolicy. - IP address of the secondary DNS server. + IP address of the secondary DNS server :return: The alternate_ipv6dns_server of this NetworkconfigPolicy. :rtype: str @@ -459,7 +472,7 @@ def alternate_ipv6dns_server(self): def alternate_ipv6dns_server(self, alternate_ipv6dns_server): """ Sets the alternate_ipv6dns_server of this NetworkconfigPolicy. - IP address of the secondary DNS server. + IP address of the secondary DNS server :param alternate_ipv6dns_server: The alternate_ipv6dns_server of this NetworkconfigPolicy. :type: str @@ -494,7 +507,7 @@ def dynamic_dns_domain(self, dynamic_dns_domain): def enable_dynamic_dns(self): """ Gets the enable_dynamic_dns of this NetworkconfigPolicy. - If enabled, updates the resource records to the DNS from Cisco IMC. + If enabled, updates the resource records to the DNS from Cisco IMC :return: The enable_dynamic_dns of this NetworkconfigPolicy. :rtype: bool @@ -505,7 +518,7 @@ def enable_dynamic_dns(self): def enable_dynamic_dns(self, enable_dynamic_dns): """ Sets the enable_dynamic_dns of this NetworkconfigPolicy. - If enabled, updates the resource records to the DNS from Cisco IMC. + If enabled, updates the resource records to the DNS from Cisco IMC :param enable_dynamic_dns: The enable_dynamic_dns of this NetworkconfigPolicy. :type: bool @@ -517,7 +530,7 @@ def enable_dynamic_dns(self, enable_dynamic_dns): def enable_ipv4dns_from_dhcp(self): """ Gets the enable_ipv4dns_from_dhcp of this NetworkconfigPolicy. - If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. + If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. Use DHCP field must be enabled for IPv4 in Cisco IMC to enable it. :return: The enable_ipv4dns_from_dhcp of this NetworkconfigPolicy. :rtype: bool @@ -528,7 +541,7 @@ def enable_ipv4dns_from_dhcp(self): def enable_ipv4dns_from_dhcp(self, enable_ipv4dns_from_dhcp): """ Sets the enable_ipv4dns_from_dhcp of this NetworkconfigPolicy. - If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. + If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. Use DHCP field must be enabled for IPv4 in Cisco IMC to enable it. :param enable_ipv4dns_from_dhcp: The enable_ipv4dns_from_dhcp of this NetworkconfigPolicy. :type: bool @@ -540,7 +553,7 @@ def enable_ipv4dns_from_dhcp(self, enable_ipv4dns_from_dhcp): def enable_ipv6(self): """ Gets the enable_ipv6 of this NetworkconfigPolicy. - If enabled, allows to configure IPv6 properties. + If enabled, allows to configure IPv6 properties :return: The enable_ipv6 of this NetworkconfigPolicy. :rtype: bool @@ -551,7 +564,7 @@ def enable_ipv6(self): def enable_ipv6(self, enable_ipv6): """ Sets the enable_ipv6 of this NetworkconfigPolicy. - If enabled, allows to configure IPv6 properties. + If enabled, allows to configure IPv6 properties :param enable_ipv6: The enable_ipv6 of this NetworkconfigPolicy. :type: bool @@ -563,7 +576,7 @@ def enable_ipv6(self, enable_ipv6): def enable_ipv6dns_from_dhcp(self): """ Gets the enable_ipv6dns_from_dhcp of this NetworkconfigPolicy. - If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. + If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. Use DHCP field must be enabled for IPv6 in Cisco IMC to enable it. :return: The enable_ipv6dns_from_dhcp of this NetworkconfigPolicy. :rtype: bool @@ -574,7 +587,7 @@ def enable_ipv6dns_from_dhcp(self): def enable_ipv6dns_from_dhcp(self, enable_ipv6dns_from_dhcp): """ Sets the enable_ipv6dns_from_dhcp of this NetworkconfigPolicy. - If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. + If enabled, Cisco IMC retrieves the DNS server addresses from DHCP. Use DHCP field must be enabled for IPv6 in Cisco IMC to enable it. :param enable_ipv6dns_from_dhcp: The enable_ipv6dns_from_dhcp of this NetworkconfigPolicy. :type: bool @@ -582,29 +595,6 @@ def enable_ipv6dns_from_dhcp(self, enable_ipv6dns_from_dhcp): self._enable_ipv6dns_from_dhcp = enable_ipv6dns_from_dhcp - @property - def enable_vlan(self): - """ - Gets the enable_vlan of this NetworkconfigPolicy. - If enabled, Cisco IMC is connected to a virtual LAN. - - :return: The enable_vlan of this NetworkconfigPolicy. - :rtype: bool - """ - return self._enable_vlan - - @enable_vlan.setter - def enable_vlan(self, enable_vlan): - """ - Sets the enable_vlan of this NetworkconfigPolicy. - If enabled, Cisco IMC is connected to a virtual LAN. - - :param enable_vlan: The enable_vlan of this NetworkconfigPolicy. - :type: bool - """ - - self._enable_vlan = enable_vlan - @property def organization(self): """ @@ -612,7 +602,7 @@ def organization(self): Organization :return: The organization of this NetworkconfigPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -623,7 +613,7 @@ def organization(self, organization): Organization :param organization: The organization of this NetworkconfigPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -632,7 +622,7 @@ def organization(self, organization): def preferred_ipv4dns_server(self): """ Gets the preferred_ipv4dns_server of this NetworkconfigPolicy. - IP address of the primary DNS server. + IP address of the primary DNS server :return: The preferred_ipv4dns_server of this NetworkconfigPolicy. :rtype: str @@ -643,7 +633,7 @@ def preferred_ipv4dns_server(self): def preferred_ipv4dns_server(self, preferred_ipv4dns_server): """ Sets the preferred_ipv4dns_server of this NetworkconfigPolicy. - IP address of the primary DNS server. + IP address of the primary DNS server :param preferred_ipv4dns_server: The preferred_ipv4dns_server of this NetworkconfigPolicy. :type: str @@ -655,7 +645,7 @@ def preferred_ipv4dns_server(self, preferred_ipv4dns_server): def preferred_ipv6dns_server(self): """ Gets the preferred_ipv6dns_server of this NetworkconfigPolicy. - IP address of the primary DNS server. + IP address of the primary DNS server :return: The preferred_ipv6dns_server of this NetworkconfigPolicy. :rtype: str @@ -666,7 +656,7 @@ def preferred_ipv6dns_server(self): def preferred_ipv6dns_server(self, preferred_ipv6dns_server): """ Sets the preferred_ipv6dns_server of this NetworkconfigPolicy. - IP address of the primary DNS server. + IP address of the primary DNS server :param preferred_ipv6dns_server: The preferred_ipv6dns_server of this NetworkconfigPolicy. :type: str @@ -674,37 +664,14 @@ def preferred_ipv6dns_server(self, preferred_ipv6dns_server): self._preferred_ipv6dns_server = preferred_ipv6dns_server - @property - def priority(self): - """ - Gets the priority of this NetworkconfigPolicy. - Priority associated with the specified VLAN ID. Allowed values range from 0 to 7. - - :return: The priority of this NetworkconfigPolicy. - :rtype: int - """ - return self._priority - - @priority.setter - def priority(self, priority): - """ - Sets the priority of this NetworkconfigPolicy. - Priority associated with the specified VLAN ID. Allowed values range from 0 to 7. - - :param priority: The priority of this NetworkconfigPolicy. - :type: int - """ - - self._priority = priority - @property def profiles(self): """ Gets the profiles of this NetworkconfigPolicy. - Relationship to the profile object. + Relationship to the profile object :return: The profiles of this NetworkconfigPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -712,37 +679,14 @@ def profiles(self): def profiles(self, profiles): """ Sets the profiles of this NetworkconfigPolicy. - Relationship to the profile object. + Relationship to the profile object :param profiles: The profiles of this NetworkconfigPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles - @property - def vlan_id(self): - """ - Gets the vlan_id of this NetworkconfigPolicy. - VLAN ID assigned to Cisco IMC. - - :return: The vlan_id of this NetworkconfigPolicy. - :rtype: int - """ - return self._vlan_id - - @vlan_id.setter - def vlan_id(self, vlan_id): - """ - Sets the vlan_id of this NetworkconfigPolicy. - VLAN ID assigned to Cisco IMC. - - :param vlan_id: The vlan_id of this NetworkconfigPolicy. - :type: int - """ - - self._vlan_id = vlan_id - def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/networkconfig_policy_list.py b/intersight/models/networkconfig_policy_list.py index a9afa565..f9981d48 100644 --- a/intersight/models/networkconfig_policy_list.py +++ b/intersight/models/networkconfig_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/networkconfig_policy_ref.py b/intersight/models/networkconfig_policy_ref.py new file mode 100644 index 00000000..fdb43b5b --- /dev/null +++ b/intersight/models/networkconfig_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NetworkconfigPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NetworkconfigPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NetworkconfigPolicyRef. + + :return: The moid of this NetworkconfigPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NetworkconfigPolicyRef. + + :param moid: The moid of this NetworkconfigPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NetworkconfigPolicyRef. + + :return: The object_type of this NetworkconfigPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NetworkconfigPolicyRef. + + :param object_type: The object_type of this NetworkconfigPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NetworkconfigPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/networkconfig_validation_task_ref.py b/intersight/models/networkconfig_validation_task_ref.py new file mode 100644 index 00000000..1ad8126e --- /dev/null +++ b/intersight/models/networkconfig_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NetworkconfigValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NetworkconfigValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NetworkconfigValidationTaskRef. + + :return: The moid of this NetworkconfigValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NetworkconfigValidationTaskRef. + + :param moid: The moid of this NetworkconfigValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NetworkconfigValidationTaskRef. + + :return: The object_type of this NetworkconfigValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NetworkconfigValidationTaskRef. + + :param object_type: The object_type of this NetworkconfigValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NetworkconfigValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/notifs_condition.py b/intersight/models/notifs_condition.py new file mode 100644 index 00000000..b28cd97c --- /dev/null +++ b/intersight/models/notifs_condition.py @@ -0,0 +1,187 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NotifsCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'change_set': 'list[str]', + 'change_type': 'str', + 'filter': 'str' + } + + attribute_map = { + 'change_set': 'ChangeSet', + 'change_type': 'ChangeType', + 'filter': 'Filter' + } + + def __init__(self, change_set=None, change_type='Update', filter=None): + """ + NotifsCondition - a model defined in Swagger + """ + + self._change_set = None + self._change_type = None + self._filter = None + + if change_set is not None: + self.change_set = change_set + if change_type is not None: + self.change_type = change_type + if filter is not None: + self.filter = filter + + @property + def change_set(self): + """ + Gets the change_set of this NotifsCondition. + A list of properties which have been modified on an MO in a transaction. Applicable only for MO updates, ignored for creation/deletion. Evaluates to True if any of the listed properties has changed or if the list is empty. Eg: ConnectorStatus,ConnectorVersion + + :return: The change_set of this NotifsCondition. + :rtype: list[str] + """ + return self._change_set + + @change_set.setter + def change_set(self, change_set): + """ + Sets the change_set of this NotifsCondition. + A list of properties which have been modified on an MO in a transaction. Applicable only for MO updates, ignored for creation/deletion. Evaluates to True if any of the listed properties has changed or if the list is empty. Eg: ConnectorStatus,ConnectorVersion + + :param change_set: The change_set of this NotifsCondition. + :type: list[str] + """ + + self._change_set = change_set + + @property + def change_type(self): + """ + Gets the change_type of this NotifsCondition. + Indicates the type of change (create, update, delete) performed on the MO. + + :return: The change_type of this NotifsCondition. + :rtype: str + """ + return self._change_type + + @change_type.setter + def change_type(self, change_type): + """ + Sets the change_type of this NotifsCondition. + Indicates the type of change (create, update, delete) performed on the MO. + + :param change_type: The change_type of this NotifsCondition. + :type: str + """ + allowed_values = ["Update", "Create", "Delete"] + if change_type not in allowed_values: + raise ValueError( + "Invalid value for `change_type` ({0}), must be one of {1}" + .format(change_type, allowed_values) + ) + + self._change_type = change_type + + @property + def filter(self): + """ + Gets the filter of this NotifsCondition. + An Odata-style filter which is evaluated against the state of an MO at the time of transaction commit. An empty filter string evaluates to True. Eg: ConnectionStatus eq 'Connected' + + :return: The filter of this NotifsCondition. + :rtype: str + """ + return self._filter + + @filter.setter + def filter(self, filter): + """ + Sets the filter of this NotifsCondition. + An Odata-style filter which is evaluated against the state of an MO at the time of transaction commit. An empty filter string evaluates to True. Eg: ConnectionStatus eq 'Connected' + + :param filter: The filter of this NotifsCondition. + :type: str + """ + + self._filter = filter + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NotifsCondition): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/notifs_condition_ref.py b/intersight/models/notifs_condition_ref.py new file mode 100644 index 00000000..787982b5 --- /dev/null +++ b/intersight/models/notifs_condition_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NotifsConditionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NotifsConditionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NotifsConditionRef. + + :return: The moid of this NotifsConditionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NotifsConditionRef. + + :param moid: The moid of this NotifsConditionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NotifsConditionRef. + + :return: The object_type of this NotifsConditionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NotifsConditionRef. + + :param object_type: The object_type of this NotifsConditionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NotifsConditionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/notifs_mo_subscription_ref.py b/intersight/models/notifs_mo_subscription_ref.py new file mode 100644 index 00000000..8de7ddb0 --- /dev/null +++ b/intersight/models/notifs_mo_subscription_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NotifsMoSubscriptionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NotifsMoSubscriptionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NotifsMoSubscriptionRef. + + :return: The moid of this NotifsMoSubscriptionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NotifsMoSubscriptionRef. + + :param moid: The moid of this NotifsMoSubscriptionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NotifsMoSubscriptionRef. + + :return: The object_type of this NotifsMoSubscriptionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NotifsMoSubscriptionRef. + + :param object_type: The object_type of this NotifsMoSubscriptionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NotifsMoSubscriptionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ntp_deploy_task_ref.py b/intersight/models/ntp_deploy_task_ref.py new file mode 100644 index 00000000..4b21b489 --- /dev/null +++ b/intersight/models/ntp_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NtpDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NtpDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NtpDeployTaskRef. + + :return: The moid of this NtpDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NtpDeployTaskRef. + + :param moid: The moid of this NtpDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NtpDeployTaskRef. + + :return: The object_type of this NtpDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NtpDeployTaskRef. + + :param object_type: The object_type of this NtpDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NtpDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ntp_policy.py b/intersight/models/ntp_policy.py index 21202fdf..3cb7e106 100644 --- a/intersight/models/ntp_policy.py +++ b/intersight/models/ntp_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,21 @@ class NtpPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', 'enabled': 'bool', 'ntp_servers': 'list[str]', - 'organization': 'MoMoRef', - 'profiles': 'list[MoMoRef]' + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]' } attribute_map = { @@ -58,6 +59,7 @@ class NtpPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'enabled': 'Enabled', @@ -66,7 +68,7 @@ class NtpPolicy(object): 'profiles': 'Profiles' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, enabled=None, ntp_servers=None, organization=None, profiles=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, enabled=None, ntp_servers=None, organization=None, profiles=None): """ NtpPolicy - a model defined in Swagger """ @@ -80,6 +82,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._enabled = None @@ -105,6 +108,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -148,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this NtpPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this NtpPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this NtpPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this NtpPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -306,7 +311,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this NtpPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this NtpPolicy. :rtype: list[MoTag] @@ -317,7 +322,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this NtpPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this NtpPolicy. :type: list[MoTag] @@ -325,6 +330,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this NtpPolicy. + The versioning info for this managed object + + :return: The version_context of this NtpPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this NtpPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this NtpPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -424,7 +452,7 @@ def organization(self): Organization :return: The organization of this NtpPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -435,7 +463,7 @@ def organization(self, organization): Organization :param organization: The organization of this NtpPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -447,7 +475,7 @@ def profiles(self): Relationship to the profile objects :return: The profiles of this NtpPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -458,7 +486,7 @@ def profiles(self, profiles): Relationship to the profile objects :param profiles: The profiles of this NtpPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles diff --git a/intersight/models/ntp_policy_list.py b/intersight/models/ntp_policy_list.py index 09242196..71b6478d 100644 --- a/intersight/models/ntp_policy_list.py +++ b/intersight/models/ntp_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/ntp_policy_ref.py b/intersight/models/ntp_policy_ref.py new file mode 100644 index 00000000..127ac7bf --- /dev/null +++ b/intersight/models/ntp_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NtpPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NtpPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NtpPolicyRef. + + :return: The moid of this NtpPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NtpPolicyRef. + + :param moid: The moid of this NtpPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NtpPolicyRef. + + :return: The object_type of this NtpPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NtpPolicyRef. + + :param object_type: The object_type of this NtpPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NtpPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ntp_validation_task_ref.py b/intersight/models/ntp_validation_task_ref.py new file mode 100644 index 00000000..00bc7ad5 --- /dev/null +++ b/intersight/models/ntp_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class NtpValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + NtpValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this NtpValidationTaskRef. + + :return: The moid of this NtpValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this NtpValidationTaskRef. + + :param moid: The moid of this NtpValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this NtpValidationTaskRef. + + :return: The object_type of this NtpValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this NtpValidationTaskRef. + + :param object_type: The object_type of this NtpValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, NtpValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/oauth2_auth_token_ref.py b/intersight/models/oauth2_auth_token_ref.py new file mode 100644 index 00000000..402eed06 --- /dev/null +++ b/intersight/models/oauth2_auth_token_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class Oauth2AuthTokenRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + Oauth2AuthTokenRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this Oauth2AuthTokenRef. + + :return: The moid of this Oauth2AuthTokenRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this Oauth2AuthTokenRef. + + :param moid: The moid of this Oauth2AuthTokenRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this Oauth2AuthTokenRef. + + :return: The object_type of this Oauth2AuthTokenRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this Oauth2AuthTokenRef. + + :param object_type: The object_type of this Oauth2AuthTokenRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, Oauth2AuthTokenRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/oauth_access_token.py b/intersight/models/oauth_access_token.py new file mode 100644 index 00000000..65f4e469 --- /dev/null +++ b/intersight/models/oauth_access_token.py @@ -0,0 +1,221 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class OauthAccessToken(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_type': 'str', + 'expiry_time': 'datetime', + 'status': 'str', + 'token': 'str' + } + + attribute_map = { + 'api_type': 'ApiType', + 'expiry_time': 'ExpiryTime', + 'status': 'Status', + 'token': 'Token' + } + + def __init__(self, api_type='Unknown', expiry_time=None, status='Inactive', token=None): + """ + OauthAccessToken - a model defined in Swagger + """ + + self._api_type = None + self._expiry_time = None + self._status = None + self._token = None + + if api_type is not None: + self.api_type = api_type + if expiry_time is not None: + self.expiry_time = expiry_time + if status is not None: + self.status = status + if token is not None: + self.token = token + + @property + def api_type(self): + """ + Gets the api_type of this OauthAccessToken. + Oauth api type + + :return: The api_type of this OauthAccessToken. + :rtype: str + """ + return self._api_type + + @api_type.setter + def api_type(self, api_type): + """ + Sets the api_type of this OauthAccessToken. + Oauth api type + + :param api_type: The api_type of this OauthAccessToken. + :type: str + """ + allowed_values = ["Unknown", "License"] + if api_type not in allowed_values: + raise ValueError( + "Invalid value for `api_type` ({0}), must be one of {1}" + .format(api_type, allowed_values) + ) + + self._api_type = api_type + + @property + def expiry_time(self): + """ + Gets the expiry_time of this OauthAccessToken. + Access token expiry time + + :return: The expiry_time of this OauthAccessToken. + :rtype: datetime + """ + return self._expiry_time + + @expiry_time.setter + def expiry_time(self, expiry_time): + """ + Sets the expiry_time of this OauthAccessToken. + Access token expiry time + + :param expiry_time: The expiry_time of this OauthAccessToken. + :type: datetime + """ + + self._expiry_time = expiry_time + + @property + def status(self): + """ + Gets the status of this OauthAccessToken. + Access token status + + :return: The status of this OauthAccessToken. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this OauthAccessToken. + Access token status + + :param status: The status of this OauthAccessToken. + :type: str + """ + allowed_values = ["Inactive", "Active", "Expired"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def token(self): + """ + Gets the token of this OauthAccessToken. + Access token + + :return: The token of this OauthAccessToken. + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """ + Sets the token of this OauthAccessToken. + Access token + + :param token: The token of this OauthAccessToken. + :type: str + """ + + self._token = token + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, OauthAccessToken): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/oauth_access_token_ref.py b/intersight/models/oauth_access_token_ref.py new file mode 100644 index 00000000..57e8d135 --- /dev/null +++ b/intersight/models/oauth_access_token_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class OauthAccessTokenRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + OauthAccessTokenRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this OauthAccessTokenRef. + + :return: The moid of this OauthAccessTokenRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this OauthAccessTokenRef. + + :param moid: The moid of this OauthAccessTokenRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this OauthAccessTokenRef. + + :return: The object_type of this OauthAccessTokenRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this OauthAccessTokenRef. + + :param object_type: The object_type of this OauthAccessTokenRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, OauthAccessTokenRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/oauth_oauth_user.py b/intersight/models/oauth_oauth_user.py new file mode 100644 index 00000000..bcd61bed --- /dev/null +++ b/intersight/models/oauth_oauth_user.py @@ -0,0 +1,459 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class OauthOauthUser(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'access_tokens': 'list[OauthAccessToken]', + 'account': 'IamAccountRef', + 'user_id': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'access_tokens': 'AccessTokens', + 'account': 'Account', + 'user_id': 'UserId' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, access_tokens=None, account=None, user_id=None): + """ + OauthOauthUser - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._access_tokens = None + self._account = None + self._user_id = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if access_tokens is not None: + self.access_tokens = access_tokens + if account is not None: + self.account = account + if user_id is not None: + self.user_id = user_id + + @property + def account_moid(self): + """ + Gets the account_moid of this OauthOauthUser. + The Account ID for this managed object. + + :return: The account_moid of this OauthOauthUser. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this OauthOauthUser. + The Account ID for this managed object. + + :param account_moid: The account_moid of this OauthOauthUser. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this OauthOauthUser. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this OauthOauthUser. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this OauthOauthUser. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this OauthOauthUser. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this OauthOauthUser. + The time when this managed object was created. + + :return: The create_time of this OauthOauthUser. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this OauthOauthUser. + The time when this managed object was created. + + :param create_time: The create_time of this OauthOauthUser. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this OauthOauthUser. + The time when this managed object was last modified. + + :return: The mod_time of this OauthOauthUser. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this OauthOauthUser. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this OauthOauthUser. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this OauthOauthUser. + A unique identifier of this Managed Object instance. + + :return: The moid of this OauthOauthUser. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this OauthOauthUser. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this OauthOauthUser. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this OauthOauthUser. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this OauthOauthUser. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this OauthOauthUser. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this OauthOauthUser. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this OauthOauthUser. + An array of owners which represent effective ownership of this object. + + :return: The owners of this OauthOauthUser. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this OauthOauthUser. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this OauthOauthUser. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this OauthOauthUser. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this OauthOauthUser. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this OauthOauthUser. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this OauthOauthUser. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this OauthOauthUser. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this OauthOauthUser. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this OauthOauthUser. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this OauthOauthUser. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this OauthOauthUser. + The versioning info for this managed object + + :return: The version_context of this OauthOauthUser. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this OauthOauthUser. + The versioning info for this managed object + + :param version_context: The version_context of this OauthOauthUser. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def access_tokens(self): + """ + Gets the access_tokens of this OauthOauthUser. + List of api access tokens + + :return: The access_tokens of this OauthOauthUser. + :rtype: list[OauthAccessToken] + """ + return self._access_tokens + + @access_tokens.setter + def access_tokens(self, access_tokens): + """ + Sets the access_tokens of this OauthOauthUser. + List of api access tokens + + :param access_tokens: The access_tokens of this OauthOauthUser. + :type: list[OauthAccessToken] + """ + + self._access_tokens = access_tokens + + @property + def account(self): + """ + Gets the account of this OauthOauthUser. + + :return: The account of this OauthOauthUser. + :rtype: IamAccountRef + """ + return self._account + + @account.setter + def account(self, account): + """ + Sets the account of this OauthOauthUser. + + :param account: The account of this OauthOauthUser. + :type: IamAccountRef + """ + + self._account = account + + @property + def user_id(self): + """ + Gets the user_id of this OauthOauthUser. + User name + + :return: The user_id of this OauthOauthUser. + :rtype: str + """ + return self._user_id + + @user_id.setter + def user_id(self, user_id): + """ + Sets the user_id of this OauthOauthUser. + User name + + :param user_id: The user_id of this OauthOauthUser. + :type: str + """ + + self._user_id = user_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, OauthOauthUser): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/oauth_oauth_user_list.py b/intersight/models/oauth_oauth_user_list.py new file mode 100644 index 00000000..23599624 --- /dev/null +++ b/intersight/models/oauth_oauth_user_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class OauthOauthUserList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[OauthOauthUser]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + OauthOauthUserList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this OauthOauthUserList. + The number of oauthOauthUsers matching your request in total for all pages. + + :return: The count of this OauthOauthUserList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this OauthOauthUserList. + The number of oauthOauthUsers matching your request in total for all pages. + + :param count: The count of this OauthOauthUserList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this OauthOauthUserList. + The array of oauthOauthUsers matching your request. + + :return: The results of this OauthOauthUserList. + :rtype: list[OauthOauthUser] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this OauthOauthUserList. + The array of oauthOauthUsers matching your request. + + :param results: The results of this OauthOauthUserList. + :type: list[OauthOauthUser] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, OauthOauthUserList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/oauth_oauth_user_ref.py b/intersight/models/oauth_oauth_user_ref.py new file mode 100644 index 00000000..89df59be --- /dev/null +++ b/intersight/models/oauth_oauth_user_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class OauthOauthUserRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + OauthOauthUserRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this OauthOauthUserRef. + + :return: The moid of this OauthOauthUserRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this OauthOauthUserRef. + + :param moid: The moid of this OauthOauthUserRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this OauthOauthUserRef. + + :return: The object_type of this OauthOauthUserRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this OauthOauthUserRef. + + :param object_type: The object_type of this OauthOauthUserRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, OauthOauthUserRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/packagemanagement_connector_deploy_policy.py b/intersight/models/packagemanagement_connector_deploy_policy.py deleted file mode 100644 index 477995c5..00000000 --- a/intersight/models/packagemanagement_connector_deploy_policy.py +++ /dev/null @@ -1,547 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class PackagemanagementConnectorDeployPolicy(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', - 'create_time': 'datetime', - 'mod_time': 'datetime', - 'moid': 'str', - 'object_type': 'str', - 'owners': 'list[str]', - 'parent': 'MoMoRef', - 'tags': 'list[MoTag]', - 'account': 'MoMoRef', - 'concurrency': 'int', - 'deploy_tag_value': 'str', - 'deployed_count': 'int', - 'image': 'MoMoRef', - 'soak_time': 'int', - 'status': 'str' - } - - attribute_map = { - 'account_moid': 'AccountMoid', - 'ancestors': 'Ancestors', - 'create_time': 'CreateTime', - 'mod_time': 'ModTime', - 'moid': 'Moid', - 'object_type': 'ObjectType', - 'owners': 'Owners', - 'parent': 'Parent', - 'tags': 'Tags', - 'account': 'Account', - 'concurrency': 'Concurrency', - 'deploy_tag_value': 'DeployTagValue', - 'deployed_count': 'DeployedCount', - 'image': 'Image', - 'soak_time': 'SoakTime', - 'status': 'Status' - } - - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, concurrency=None, deploy_tag_value=None, deployed_count=None, image=None, soak_time=None, status='Idle'): - """ - PackagemanagementConnectorDeployPolicy - a model defined in Swagger - """ - - self._account_moid = None - self._ancestors = None - self._create_time = None - self._mod_time = None - self._moid = None - self._object_type = None - self._owners = None - self._parent = None - self._tags = None - self._account = None - self._concurrency = None - self._deploy_tag_value = None - self._deployed_count = None - self._image = None - self._soak_time = None - self._status = None - - if account_moid is not None: - self.account_moid = account_moid - if ancestors is not None: - self.ancestors = ancestors - if create_time is not None: - self.create_time = create_time - if mod_time is not None: - self.mod_time = mod_time - if moid is not None: - self.moid = moid - if object_type is not None: - self.object_type = object_type - if owners is not None: - self.owners = owners - if parent is not None: - self.parent = parent - if tags is not None: - self.tags = tags - if account is not None: - self.account = account - if concurrency is not None: - self.concurrency = concurrency - if deploy_tag_value is not None: - self.deploy_tag_value = deploy_tag_value - if deployed_count is not None: - self.deployed_count = deployed_count - if image is not None: - self.image = image - if soak_time is not None: - self.soak_time = soak_time - if status is not None: - self.status = status - - @property - def account_moid(self): - """ - Gets the account_moid of this PackagemanagementConnectorDeployPolicy. - The Account ID for this managed object. - - :return: The account_moid of this PackagemanagementConnectorDeployPolicy. - :rtype: str - """ - return self._account_moid - - @account_moid.setter - def account_moid(self, account_moid): - """ - Sets the account_moid of this PackagemanagementConnectorDeployPolicy. - The Account ID for this managed object. - - :param account_moid: The account_moid of this PackagemanagementConnectorDeployPolicy. - :type: str - """ - - self._account_moid = account_moid - - @property - def ancestors(self): - """ - Gets the ancestors of this PackagemanagementConnectorDeployPolicy. - Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - - :return: The ancestors of this PackagemanagementConnectorDeployPolicy. - :rtype: list[MoMoRef] - """ - return self._ancestors - - @ancestors.setter - def ancestors(self, ancestors): - """ - Sets the ancestors of this PackagemanagementConnectorDeployPolicy. - Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - - :param ancestors: The ancestors of this PackagemanagementConnectorDeployPolicy. - :type: list[MoMoRef] - """ - - self._ancestors = ancestors - - @property - def create_time(self): - """ - Gets the create_time of this PackagemanagementConnectorDeployPolicy. - The time when this managed object was created. - - :return: The create_time of this PackagemanagementConnectorDeployPolicy. - :rtype: datetime - """ - return self._create_time - - @create_time.setter - def create_time(self, create_time): - """ - Sets the create_time of this PackagemanagementConnectorDeployPolicy. - The time when this managed object was created. - - :param create_time: The create_time of this PackagemanagementConnectorDeployPolicy. - :type: datetime - """ - - self._create_time = create_time - - @property - def mod_time(self): - """ - Gets the mod_time of this PackagemanagementConnectorDeployPolicy. - The time when this managed object was last modified. - - :return: The mod_time of this PackagemanagementConnectorDeployPolicy. - :rtype: datetime - """ - return self._mod_time - - @mod_time.setter - def mod_time(self, mod_time): - """ - Sets the mod_time of this PackagemanagementConnectorDeployPolicy. - The time when this managed object was last modified. - - :param mod_time: The mod_time of this PackagemanagementConnectorDeployPolicy. - :type: datetime - """ - - self._mod_time = mod_time - - @property - def moid(self): - """ - Gets the moid of this PackagemanagementConnectorDeployPolicy. - A unique identifier of this Managed Object instance. - - :return: The moid of this PackagemanagementConnectorDeployPolicy. - :rtype: str - """ - return self._moid - - @moid.setter - def moid(self, moid): - """ - Sets the moid of this PackagemanagementConnectorDeployPolicy. - A unique identifier of this Managed Object instance. - - :param moid: The moid of this PackagemanagementConnectorDeployPolicy. - :type: str - """ - - self._moid = moid - - @property - def object_type(self): - """ - Gets the object_type of this PackagemanagementConnectorDeployPolicy. - The fully-qualified type of this managed object, e.g. the class name. - - :return: The object_type of this PackagemanagementConnectorDeployPolicy. - :rtype: str - """ - return self._object_type - - @object_type.setter - def object_type(self, object_type): - """ - Sets the object_type of this PackagemanagementConnectorDeployPolicy. - The fully-qualified type of this managed object, e.g. the class name. - - :param object_type: The object_type of this PackagemanagementConnectorDeployPolicy. - :type: str - """ - - self._object_type = object_type - - @property - def owners(self): - """ - Gets the owners of this PackagemanagementConnectorDeployPolicy. - An array of owners which represent effective ownership of this object. - - :return: The owners of this PackagemanagementConnectorDeployPolicy. - :rtype: list[str] - """ - return self._owners - - @owners.setter - def owners(self, owners): - """ - Sets the owners of this PackagemanagementConnectorDeployPolicy. - An array of owners which represent effective ownership of this object. - - :param owners: The owners of this PackagemanagementConnectorDeployPolicy. - :type: list[str] - """ - - self._owners = owners - - @property - def parent(self): - """ - Gets the parent of this PackagemanagementConnectorDeployPolicy. - The direct ancestor of this managed object in the containment hierarchy. - - :return: The parent of this PackagemanagementConnectorDeployPolicy. - :rtype: MoMoRef - """ - return self._parent - - @parent.setter - def parent(self, parent): - """ - Sets the parent of this PackagemanagementConnectorDeployPolicy. - The direct ancestor of this managed object in the containment hierarchy. - - :param parent: The parent of this PackagemanagementConnectorDeployPolicy. - :type: MoMoRef - """ - - self._parent = parent - - @property - def tags(self): - """ - Gets the tags of this PackagemanagementConnectorDeployPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. - - :return: The tags of this PackagemanagementConnectorDeployPolicy. - :rtype: list[MoTag] - """ - return self._tags - - @tags.setter - def tags(self, tags): - """ - Sets the tags of this PackagemanagementConnectorDeployPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. - - :param tags: The tags of this PackagemanagementConnectorDeployPolicy. - :type: list[MoTag] - """ - - self._tags = tags - - @property - def account(self): - """ - Gets the account of this PackagemanagementConnectorDeployPolicy. - - :return: The account of this PackagemanagementConnectorDeployPolicy. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this PackagemanagementConnectorDeployPolicy. - - :param account: The account of this PackagemanagementConnectorDeployPolicy. - :type: MoMoRef - """ - - self._account = account - - @property - def concurrency(self): - """ - Gets the concurrency of this PackagemanagementConnectorDeployPolicy. - Number of concurrent device installs to perform for this policy - - :return: The concurrency of this PackagemanagementConnectorDeployPolicy. - :rtype: int - """ - return self._concurrency - - @concurrency.setter - def concurrency(self, concurrency): - """ - Sets the concurrency of this PackagemanagementConnectorDeployPolicy. - Number of concurrent device installs to perform for this policy - - :param concurrency: The concurrency of this PackagemanagementConnectorDeployPolicy. - :type: int - """ - - self._concurrency = concurrency - - @property - def deploy_tag_value(self): - """ - Gets the deploy_tag_value of this PackagemanagementConnectorDeployPolicy. - Value of \"cisco.devops.ConnectorDeployPolicy\" tag key of device registration objects to apply this policy to. Devops scripts will tag devices with this value to apply this policy to a set of devices. - - :return: The deploy_tag_value of this PackagemanagementConnectorDeployPolicy. - :rtype: str - """ - return self._deploy_tag_value - - @deploy_tag_value.setter - def deploy_tag_value(self, deploy_tag_value): - """ - Sets the deploy_tag_value of this PackagemanagementConnectorDeployPolicy. - Value of \"cisco.devops.ConnectorDeployPolicy\" tag key of device registration objects to apply this policy to. Devops scripts will tag devices with this value to apply this policy to a set of devices. - - :param deploy_tag_value: The deploy_tag_value of this PackagemanagementConnectorDeployPolicy. - :type: str - """ - - self._deploy_tag_value = deploy_tag_value - - @property - def deployed_count(self): - """ - Gets the deployed_count of this PackagemanagementConnectorDeployPolicy. - Number of installs performed by this policy for a given image. Count is reset on image relation change - - :return: The deployed_count of this PackagemanagementConnectorDeployPolicy. - :rtype: int - """ - return self._deployed_count - - @deployed_count.setter - def deployed_count(self, deployed_count): - """ - Sets the deployed_count of this PackagemanagementConnectorDeployPolicy. - Number of installs performed by this policy for a given image. Count is reset on image relation change - - :param deployed_count: The deployed_count of this PackagemanagementConnectorDeployPolicy. - :type: int - """ - - self._deployed_count = deployed_count - - @property - def image(self): - """ - Gets the image of this PackagemanagementConnectorDeployPolicy. - - :return: The image of this PackagemanagementConnectorDeployPolicy. - :rtype: MoMoRef - """ - return self._image - - @image.setter - def image(self, image): - """ - Sets the image of this PackagemanagementConnectorDeployPolicy. - - :param image: The image of this PackagemanagementConnectorDeployPolicy. - :type: MoMoRef - """ - - self._image = image - - @property - def soak_time(self): - """ - Gets the soak_time of this PackagemanagementConnectorDeployPolicy. - Minutes to soak the device connector image to ensure device returns to a good state after upgrade, with no impact to existing features - - :return: The soak_time of this PackagemanagementConnectorDeployPolicy. - :rtype: int - """ - return self._soak_time - - @soak_time.setter - def soak_time(self, soak_time): - """ - Sets the soak_time of this PackagemanagementConnectorDeployPolicy. - Minutes to soak the device connector image to ensure device returns to a good state after upgrade, with no impact to existing features - - :param soak_time: The soak_time of this PackagemanagementConnectorDeployPolicy. - :type: int - """ - - self._soak_time = soak_time - - @property - def status(self): - """ - Gets the status of this PackagemanagementConnectorDeployPolicy. - Overall status of this deploy policy. In case of install failures this property can be updated to retry and continue policy device installs. Devops can also mark status as 'Failed' to stop the deploy, in case it has been determined the image is not healthy and electron has not caught the failure. - - :return: The status of this PackagemanagementConnectorDeployPolicy. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this PackagemanagementConnectorDeployPolicy. - Overall status of this deploy policy. In case of install failures this property can be updated to retry and continue policy device installs. Devops can also mark status as 'Failed' to stop the deploy, in case it has been determined the image is not healthy and electron has not caught the failure. - - :param status: The status of this PackagemanagementConnectorDeployPolicy. - :type: str - """ - allowed_values = ["Idle", "Failed", "Retry", "Deploying"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, PackagemanagementConnectorDeployPolicy): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/packagemanagement_connector_deploy_policy_list.py b/intersight/models/packagemanagement_connector_deploy_policy_list.py deleted file mode 100644 index 9f0c7253..00000000 --- a/intersight/models/packagemanagement_connector_deploy_policy_list.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class PackagemanagementConnectorDeployPolicyList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'count': 'int', - 'results': 'list[PackagemanagementConnectorDeployPolicy]' - } - - attribute_map = { - 'count': 'Count', - 'results': 'Results' - } - - def __init__(self, count=None, results=None): - """ - PackagemanagementConnectorDeployPolicyList - a model defined in Swagger - """ - - self._count = None - self._results = None - - if count is not None: - self.count = count - if results is not None: - self.results = results - - @property - def count(self): - """ - Gets the count of this PackagemanagementConnectorDeployPolicyList. - The number of packagemanagementConnectorDeployPolicies matching your request in total for all pages. - - :return: The count of this PackagemanagementConnectorDeployPolicyList. - :rtype: int - """ - return self._count - - @count.setter - def count(self, count): - """ - Sets the count of this PackagemanagementConnectorDeployPolicyList. - The number of packagemanagementConnectorDeployPolicies matching your request in total for all pages. - - :param count: The count of this PackagemanagementConnectorDeployPolicyList. - :type: int - """ - - self._count = count - - @property - def results(self): - """ - Gets the results of this PackagemanagementConnectorDeployPolicyList. - The array of packagemanagementConnectorDeployPolicies matching your request. - - :return: The results of this PackagemanagementConnectorDeployPolicyList. - :rtype: list[PackagemanagementConnectorDeployPolicy] - """ - return self._results - - @results.setter - def results(self, results): - """ - Sets the results of this PackagemanagementConnectorDeployPolicyList. - The array of packagemanagementConnectorDeployPolicies matching your request. - - :param results: The results of this PackagemanagementConnectorDeployPolicyList. - :type: list[PackagemanagementConnectorDeployPolicy] - """ - - self._results = results - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, PackagemanagementConnectorDeployPolicyList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/packagemanagement_connector_install.py b/intersight/models/packagemanagement_connector_install.py deleted file mode 100644 index 8789b815..00000000 --- a/intersight/models/packagemanagement_connector_install.py +++ /dev/null @@ -1,573 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class PackagemanagementConnectorInstall(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', - 'create_time': 'datetime', - 'mod_time': 'datetime', - 'moid': 'str', - 'object_type': 'str', - 'owners': 'list[str]', - 'parent': 'MoMoRef', - 'tags': 'list[MoTag]', - 'deploy_policy': 'MoMoRef', - 'device_registration': 'MoMoRef', - 'image': 'MoMoRef', - 'last_transition_time': 'datetime', - 'pinned': 'bool', - 'reason': 'str', - 'soak_time': 'int', - 'status': 'str' - } - - attribute_map = { - 'account_moid': 'AccountMoid', - 'ancestors': 'Ancestors', - 'create_time': 'CreateTime', - 'mod_time': 'ModTime', - 'moid': 'Moid', - 'object_type': 'ObjectType', - 'owners': 'Owners', - 'parent': 'Parent', - 'tags': 'Tags', - 'deploy_policy': 'DeployPolicy', - 'device_registration': 'DeviceRegistration', - 'image': 'Image', - 'last_transition_time': 'LastTransitionTime', - 'pinned': 'Pinned', - 'reason': 'Reason', - 'soak_time': 'SoakTime', - 'status': 'Status' - } - - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, deploy_policy=None, device_registration=None, image=None, last_transition_time=None, pinned=None, reason=None, soak_time=None, status='Idle'): - """ - PackagemanagementConnectorInstall - a model defined in Swagger - """ - - self._account_moid = None - self._ancestors = None - self._create_time = None - self._mod_time = None - self._moid = None - self._object_type = None - self._owners = None - self._parent = None - self._tags = None - self._deploy_policy = None - self._device_registration = None - self._image = None - self._last_transition_time = None - self._pinned = None - self._reason = None - self._soak_time = None - self._status = None - - if account_moid is not None: - self.account_moid = account_moid - if ancestors is not None: - self.ancestors = ancestors - if create_time is not None: - self.create_time = create_time - if mod_time is not None: - self.mod_time = mod_time - if moid is not None: - self.moid = moid - if object_type is not None: - self.object_type = object_type - if owners is not None: - self.owners = owners - if parent is not None: - self.parent = parent - if tags is not None: - self.tags = tags - if deploy_policy is not None: - self.deploy_policy = deploy_policy - if device_registration is not None: - self.device_registration = device_registration - if image is not None: - self.image = image - if last_transition_time is not None: - self.last_transition_time = last_transition_time - if pinned is not None: - self.pinned = pinned - if reason is not None: - self.reason = reason - if soak_time is not None: - self.soak_time = soak_time - if status is not None: - self.status = status - - @property - def account_moid(self): - """ - Gets the account_moid of this PackagemanagementConnectorInstall. - The Account ID for this managed object. - - :return: The account_moid of this PackagemanagementConnectorInstall. - :rtype: str - """ - return self._account_moid - - @account_moid.setter - def account_moid(self, account_moid): - """ - Sets the account_moid of this PackagemanagementConnectorInstall. - The Account ID for this managed object. - - :param account_moid: The account_moid of this PackagemanagementConnectorInstall. - :type: str - """ - - self._account_moid = account_moid - - @property - def ancestors(self): - """ - Gets the ancestors of this PackagemanagementConnectorInstall. - Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - - :return: The ancestors of this PackagemanagementConnectorInstall. - :rtype: list[MoMoRef] - """ - return self._ancestors - - @ancestors.setter - def ancestors(self, ancestors): - """ - Sets the ancestors of this PackagemanagementConnectorInstall. - Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - - :param ancestors: The ancestors of this PackagemanagementConnectorInstall. - :type: list[MoMoRef] - """ - - self._ancestors = ancestors - - @property - def create_time(self): - """ - Gets the create_time of this PackagemanagementConnectorInstall. - The time when this managed object was created. - - :return: The create_time of this PackagemanagementConnectorInstall. - :rtype: datetime - """ - return self._create_time - - @create_time.setter - def create_time(self, create_time): - """ - Sets the create_time of this PackagemanagementConnectorInstall. - The time when this managed object was created. - - :param create_time: The create_time of this PackagemanagementConnectorInstall. - :type: datetime - """ - - self._create_time = create_time - - @property - def mod_time(self): - """ - Gets the mod_time of this PackagemanagementConnectorInstall. - The time when this managed object was last modified. - - :return: The mod_time of this PackagemanagementConnectorInstall. - :rtype: datetime - """ - return self._mod_time - - @mod_time.setter - def mod_time(self, mod_time): - """ - Sets the mod_time of this PackagemanagementConnectorInstall. - The time when this managed object was last modified. - - :param mod_time: The mod_time of this PackagemanagementConnectorInstall. - :type: datetime - """ - - self._mod_time = mod_time - - @property - def moid(self): - """ - Gets the moid of this PackagemanagementConnectorInstall. - A unique identifier of this Managed Object instance. - - :return: The moid of this PackagemanagementConnectorInstall. - :rtype: str - """ - return self._moid - - @moid.setter - def moid(self, moid): - """ - Sets the moid of this PackagemanagementConnectorInstall. - A unique identifier of this Managed Object instance. - - :param moid: The moid of this PackagemanagementConnectorInstall. - :type: str - """ - - self._moid = moid - - @property - def object_type(self): - """ - Gets the object_type of this PackagemanagementConnectorInstall. - The fully-qualified type of this managed object, e.g. the class name. - - :return: The object_type of this PackagemanagementConnectorInstall. - :rtype: str - """ - return self._object_type - - @object_type.setter - def object_type(self, object_type): - """ - Sets the object_type of this PackagemanagementConnectorInstall. - The fully-qualified type of this managed object, e.g. the class name. - - :param object_type: The object_type of this PackagemanagementConnectorInstall. - :type: str - """ - - self._object_type = object_type - - @property - def owners(self): - """ - Gets the owners of this PackagemanagementConnectorInstall. - An array of owners which represent effective ownership of this object. - - :return: The owners of this PackagemanagementConnectorInstall. - :rtype: list[str] - """ - return self._owners - - @owners.setter - def owners(self, owners): - """ - Sets the owners of this PackagemanagementConnectorInstall. - An array of owners which represent effective ownership of this object. - - :param owners: The owners of this PackagemanagementConnectorInstall. - :type: list[str] - """ - - self._owners = owners - - @property - def parent(self): - """ - Gets the parent of this PackagemanagementConnectorInstall. - The direct ancestor of this managed object in the containment hierarchy. - - :return: The parent of this PackagemanagementConnectorInstall. - :rtype: MoMoRef - """ - return self._parent - - @parent.setter - def parent(self, parent): - """ - Sets the parent of this PackagemanagementConnectorInstall. - The direct ancestor of this managed object in the containment hierarchy. - - :param parent: The parent of this PackagemanagementConnectorInstall. - :type: MoMoRef - """ - - self._parent = parent - - @property - def tags(self): - """ - Gets the tags of this PackagemanagementConnectorInstall. - An array of tags, which allow to add key, value meta-data to managed objects. - - :return: The tags of this PackagemanagementConnectorInstall. - :rtype: list[MoTag] - """ - return self._tags - - @tags.setter - def tags(self, tags): - """ - Sets the tags of this PackagemanagementConnectorInstall. - An array of tags, which allow to add key, value meta-data to managed objects. - - :param tags: The tags of this PackagemanagementConnectorInstall. - :type: list[MoTag] - """ - - self._tags = tags - - @property - def deploy_policy(self): - """ - Gets the deploy_policy of this PackagemanagementConnectorInstall. - - :return: The deploy_policy of this PackagemanagementConnectorInstall. - :rtype: MoMoRef - """ - return self._deploy_policy - - @deploy_policy.setter - def deploy_policy(self, deploy_policy): - """ - Sets the deploy_policy of this PackagemanagementConnectorInstall. - - :param deploy_policy: The deploy_policy of this PackagemanagementConnectorInstall. - :type: MoMoRef - """ - - self._deploy_policy = deploy_policy - - @property - def device_registration(self): - """ - Gets the device_registration of this PackagemanagementConnectorInstall. - - :return: The device_registration of this PackagemanagementConnectorInstall. - :rtype: MoMoRef - """ - return self._device_registration - - @device_registration.setter - def device_registration(self, device_registration): - """ - Sets the device_registration of this PackagemanagementConnectorInstall. - - :param device_registration: The device_registration of this PackagemanagementConnectorInstall. - :type: MoMoRef - """ - - self._device_registration = device_registration - - @property - def image(self): - """ - Gets the image of this PackagemanagementConnectorInstall. - - :return: The image of this PackagemanagementConnectorInstall. - :rtype: MoMoRef - """ - return self._image - - @image.setter - def image(self, image): - """ - Sets the image of this PackagemanagementConnectorInstall. - - :param image: The image of this PackagemanagementConnectorInstall. - :type: MoMoRef - """ - - self._image = image - - @property - def last_transition_time(self): - """ - Gets the last_transition_time of this PackagemanagementConnectorInstall. - Timestamp of last install status transition - - :return: The last_transition_time of this PackagemanagementConnectorInstall. - :rtype: datetime - """ - return self._last_transition_time - - @last_transition_time.setter - def last_transition_time(self, last_transition_time): - """ - Sets the last_transition_time of this PackagemanagementConnectorInstall. - Timestamp of last install status transition - - :param last_transition_time: The last_transition_time of this PackagemanagementConnectorInstall. - :type: datetime - """ - - self._last_transition_time = last_transition_time - - @property - def pinned(self): - """ - Gets the pinned of this PackagemanagementConnectorInstall. - Flag to specify this install was manually created by a devops user and should not be overwritten by a deploy policy - - :return: The pinned of this PackagemanagementConnectorInstall. - :rtype: bool - """ - return self._pinned - - @pinned.setter - def pinned(self, pinned): - """ - Sets the pinned of this PackagemanagementConnectorInstall. - Flag to specify this install was manually created by a devops user and should not be overwritten by a deploy policy - - :param pinned: The pinned of this PackagemanagementConnectorInstall. - :type: bool - """ - - self._pinned = pinned - - @property - def reason(self): - """ - Gets the reason of this PackagemanagementConnectorInstall. - Error reported by device if applicable - - :return: The reason of this PackagemanagementConnectorInstall. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this PackagemanagementConnectorInstall. - Error reported by device if applicable - - :param reason: The reason of this PackagemanagementConnectorInstall. - :type: str - """ - - self._reason = reason - - @property - def soak_time(self): - """ - Gets the soak_time of this PackagemanagementConnectorInstall. - Time to soak the device connector install to ensure device returns to a good state after upgrade, with no impact to existing features - - :return: The soak_time of this PackagemanagementConnectorInstall. - :rtype: int - """ - return self._soak_time - - @soak_time.setter - def soak_time(self, soak_time): - """ - Sets the soak_time of this PackagemanagementConnectorInstall. - Time to soak the device connector install to ensure device returns to a good state after upgrade, with no impact to existing features - - :param soak_time: The soak_time of this PackagemanagementConnectorInstall. - :type: int - """ - - self._soak_time = soak_time - - @property - def status(self): - """ - Gets the status of this PackagemanagementConnectorInstall. - Status of install - - :return: The status of this PackagemanagementConnectorInstall. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this PackagemanagementConnectorInstall. - Status of install - - :param status: The status of this PackagemanagementConnectorInstall. - :type: str - """ - allowed_values = ["Idle", "Complete", "InProgress", "Soaking", "Failed"] - if status not in allowed_values: - raise ValueError( - "Invalid value for `status` ({0}), must be one of {1}" - .format(status, allowed_values) - ) - - self._status = status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, PackagemanagementConnectorInstall): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/packagemanagement_connector_install_list.py b/intersight/models/packagemanagement_connector_install_list.py deleted file mode 100644 index 0fa01c32..00000000 --- a/intersight/models/packagemanagement_connector_install_list.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class PackagemanagementConnectorInstallList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'count': 'int', - 'results': 'list[PackagemanagementConnectorInstall]' - } - - attribute_map = { - 'count': 'Count', - 'results': 'Results' - } - - def __init__(self, count=None, results=None): - """ - PackagemanagementConnectorInstallList - a model defined in Swagger - """ - - self._count = None - self._results = None - - if count is not None: - self.count = count - if results is not None: - self.results = results - - @property - def count(self): - """ - Gets the count of this PackagemanagementConnectorInstallList. - The number of packagemanagementConnectorInstalls matching your request in total for all pages. - - :return: The count of this PackagemanagementConnectorInstallList. - :rtype: int - """ - return self._count - - @count.setter - def count(self, count): - """ - Sets the count of this PackagemanagementConnectorInstallList. - The number of packagemanagementConnectorInstalls matching your request in total for all pages. - - :param count: The count of this PackagemanagementConnectorInstallList. - :type: int - """ - - self._count = count - - @property - def results(self): - """ - Gets the results of this PackagemanagementConnectorInstallList. - The array of packagemanagementConnectorInstalls matching your request. - - :return: The results of this PackagemanagementConnectorInstallList. - :rtype: list[PackagemanagementConnectorInstall] - """ - return self._results - - @results.setter - def results(self, results): - """ - Sets the results of this PackagemanagementConnectorInstallList. - The array of packagemanagementConnectorInstalls matching your request. - - :param results: The results of this PackagemanagementConnectorInstallList. - :type: list[PackagemanagementConnectorInstall] - """ - - self._results = results - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, PackagemanagementConnectorInstallList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/pci_device.py b/intersight/models/pci_device.py new file mode 100644 index 00000000..6fade2b8 --- /dev/null +++ b/intersight/models/pci_device.py @@ -0,0 +1,663 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PciDevice(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'device_mo_id': 'str', + 'dn': 'str', + 'rn': 'str', + 'model': 'str', + 'revision': 'str', + 'serial': 'str', + 'vendor': 'str', + 'compute_rack_unit': 'ComputeRackUnitRef', + 'firmware_version': 'str', + 'registered_device': 'AssetDeviceRegistrationRef', + 'slot_id': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'device_mo_id': 'DeviceMoId', + 'dn': 'Dn', + 'rn': 'Rn', + 'model': 'Model', + 'revision': 'Revision', + 'serial': 'Serial', + 'vendor': 'Vendor', + 'compute_rack_unit': 'ComputeRackUnit', + 'firmware_version': 'FirmwareVersion', + 'registered_device': 'RegisteredDevice', + 'slot_id': 'SlotId' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_rack_unit=None, firmware_version=None, registered_device=None, slot_id=None): + """ + PciDevice - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._device_mo_id = None + self._dn = None + self._rn = None + self._model = None + self._revision = None + self._serial = None + self._vendor = None + self._compute_rack_unit = None + self._firmware_version = None + self._registered_device = None + self._slot_id = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if device_mo_id is not None: + self.device_mo_id = device_mo_id + if dn is not None: + self.dn = dn + if rn is not None: + self.rn = rn + if model is not None: + self.model = model + if revision is not None: + self.revision = revision + if serial is not None: + self.serial = serial + if vendor is not None: + self.vendor = vendor + if compute_rack_unit is not None: + self.compute_rack_unit = compute_rack_unit + if firmware_version is not None: + self.firmware_version = firmware_version + if registered_device is not None: + self.registered_device = registered_device + if slot_id is not None: + self.slot_id = slot_id + + @property + def account_moid(self): + """ + Gets the account_moid of this PciDevice. + The Account ID for this managed object. + + :return: The account_moid of this PciDevice. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this PciDevice. + The Account ID for this managed object. + + :param account_moid: The account_moid of this PciDevice. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this PciDevice. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this PciDevice. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this PciDevice. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this PciDevice. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this PciDevice. + The time when this managed object was created. + + :return: The create_time of this PciDevice. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this PciDevice. + The time when this managed object was created. + + :param create_time: The create_time of this PciDevice. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this PciDevice. + The time when this managed object was last modified. + + :return: The mod_time of this PciDevice. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this PciDevice. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this PciDevice. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this PciDevice. + A unique identifier of this Managed Object instance. + + :return: The moid of this PciDevice. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PciDevice. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this PciDevice. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PciDevice. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this PciDevice. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PciDevice. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this PciDevice. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this PciDevice. + An array of owners which represent effective ownership of this object. + + :return: The owners of this PciDevice. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this PciDevice. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this PciDevice. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this PciDevice. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this PciDevice. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this PciDevice. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this PciDevice. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this PciDevice. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this PciDevice. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this PciDevice. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this PciDevice. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this PciDevice. + The versioning info for this managed object + + :return: The version_context of this PciDevice. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this PciDevice. + The versioning info for this managed object + + :param version_context: The version_context of this PciDevice. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def device_mo_id(self): + """ + Gets the device_mo_id of this PciDevice. + + :return: The device_mo_id of this PciDevice. + :rtype: str + """ + return self._device_mo_id + + @device_mo_id.setter + def device_mo_id(self, device_mo_id): + """ + Sets the device_mo_id of this PciDevice. + + :param device_mo_id: The device_mo_id of this PciDevice. + :type: str + """ + + self._device_mo_id = device_mo_id + + @property + def dn(self): + """ + Gets the dn of this PciDevice. + + :return: The dn of this PciDevice. + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """ + Sets the dn of this PciDevice. + + :param dn: The dn of this PciDevice. + :type: str + """ + + self._dn = dn + + @property + def rn(self): + """ + Gets the rn of this PciDevice. + + :return: The rn of this PciDevice. + :rtype: str + """ + return self._rn + + @rn.setter + def rn(self, rn): + """ + Sets the rn of this PciDevice. + + :param rn: The rn of this PciDevice. + :type: str + """ + + self._rn = rn + + @property + def model(self): + """ + Gets the model of this PciDevice. + + :return: The model of this PciDevice. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this PciDevice. + + :param model: The model of this PciDevice. + :type: str + """ + + self._model = model + + @property + def revision(self): + """ + Gets the revision of this PciDevice. + + :return: The revision of this PciDevice. + :rtype: str + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this PciDevice. + + :param revision: The revision of this PciDevice. + :type: str + """ + + self._revision = revision + + @property + def serial(self): + """ + Gets the serial of this PciDevice. + + :return: The serial of this PciDevice. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this PciDevice. + + :param serial: The serial of this PciDevice. + :type: str + """ + + self._serial = serial + + @property + def vendor(self): + """ + Gets the vendor of this PciDevice. + + :return: The vendor of this PciDevice. + :rtype: str + """ + return self._vendor + + @vendor.setter + def vendor(self, vendor): + """ + Sets the vendor of this PciDevice. + + :param vendor: The vendor of this PciDevice. + :type: str + """ + + self._vendor = vendor + + @property + def compute_rack_unit(self): + """ + Gets the compute_rack_unit of this PciDevice. + + :return: The compute_rack_unit of this PciDevice. + :rtype: ComputeRackUnitRef + """ + return self._compute_rack_unit + + @compute_rack_unit.setter + def compute_rack_unit(self, compute_rack_unit): + """ + Sets the compute_rack_unit of this PciDevice. + + :param compute_rack_unit: The compute_rack_unit of this PciDevice. + :type: ComputeRackUnitRef + """ + + self._compute_rack_unit = compute_rack_unit + + @property + def firmware_version(self): + """ + Gets the firmware_version of this PciDevice. + + :return: The firmware_version of this PciDevice. + :rtype: str + """ + return self._firmware_version + + @firmware_version.setter + def firmware_version(self, firmware_version): + """ + Sets the firmware_version of this PciDevice. + + :param firmware_version: The firmware_version of this PciDevice. + :type: str + """ + + self._firmware_version = firmware_version + + @property + def registered_device(self): + """ + Gets the registered_device of this PciDevice. + + :return: The registered_device of this PciDevice. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this PciDevice. + + :param registered_device: The registered_device of this PciDevice. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + @property + def slot_id(self): + """ + Gets the slot_id of this PciDevice. + + :return: The slot_id of this PciDevice. + :rtype: str + """ + return self._slot_id + + @slot_id.setter + def slot_id(self, slot_id): + """ + Sets the slot_id of this PciDevice. + + :param slot_id: The slot_id of this PciDevice. + :type: str + """ + + self._slot_id = slot_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PciDevice): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_note_list.py b/intersight/models/pci_device_list.py similarity index 73% rename from intersight/models/hcl_note_list.py rename to intersight/models/pci_device_list.py index 45fe5e6e..f7fca212 100644 --- a/intersight/models/hcl_note_list.py +++ b/intersight/models/pci_device_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class HclNoteList(object): +class PciDeviceList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class HclNoteList(object): """ swagger_types = { 'count': 'int', - 'results': 'list[HclNote]' + 'results': 'list[PciDevice]' } attribute_map = { @@ -42,7 +42,7 @@ class HclNoteList(object): def __init__(self, count=None, results=None): """ - HclNoteList - a model defined in Swagger + PciDeviceList - a model defined in Swagger """ self._count = None @@ -56,10 +56,10 @@ def __init__(self, count=None, results=None): @property def count(self): """ - Gets the count of this HclNoteList. - The number of hclNotes matching your request in total for all pages. + Gets the count of this PciDeviceList. + The number of pciDevices matching your request in total for all pages. - :return: The count of this HclNoteList. + :return: The count of this PciDeviceList. :rtype: int """ return self._count @@ -67,10 +67,10 @@ def count(self): @count.setter def count(self, count): """ - Sets the count of this HclNoteList. - The number of hclNotes matching your request in total for all pages. + Sets the count of this PciDeviceList. + The number of pciDevices matching your request in total for all pages. - :param count: The count of this HclNoteList. + :param count: The count of this PciDeviceList. :type: int """ @@ -79,22 +79,22 @@ def count(self, count): @property def results(self): """ - Gets the results of this HclNoteList. - The array of hclNotes matching your request. + Gets the results of this PciDeviceList. + The array of pciDevices matching your request. - :return: The results of this HclNoteList. - :rtype: list[HclNote] + :return: The results of this PciDeviceList. + :rtype: list[PciDevice] """ return self._results @results.setter def results(self, results): """ - Sets the results of this HclNoteList. - The array of hclNotes matching your request. + Sets the results of this PciDeviceList. + The array of pciDevices matching your request. - :param results: The results of this HclNoteList. - :type: list[HclNote] + :param results: The results of this PciDeviceList. + :type: list[PciDevice] """ self._results = results @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, HclNoteList): + if not isinstance(other, PciDeviceList): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/pci_device_ref.py b/intersight/models/pci_device_ref.py new file mode 100644 index 00000000..afd7f298 --- /dev/null +++ b/intersight/models/pci_device_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PciDeviceRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PciDeviceRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PciDeviceRef. + + :return: The moid of this PciDeviceRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PciDeviceRef. + + :param moid: The moid of this PciDeviceRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PciDeviceRef. + + :return: The object_type of this PciDeviceRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PciDeviceRef. + + :param object_type: The object_type of this PciDeviceRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PciDeviceRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_abstract_config_change_detail.py b/intersight/models/policy_abstract_config_change_detail.py new file mode 100644 index 00000000..f1f901a2 --- /dev/null +++ b/intersight/models/policy_abstract_config_change_detail.py @@ -0,0 +1,523 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyAbstractConfigChangeDetail(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'changes': 'list[str]', + 'config_change_context': 'PolicyConfigResultContext', + 'disruptions': 'list[str]', + 'message': 'str', + 'mod_status': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'changes': 'Changes', + 'config_change_context': 'ConfigChangeContext', + 'disruptions': 'Disruptions', + 'message': 'Message', + 'mod_status': 'ModStatus' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, changes=None, config_change_context=None, disruptions=None, message=None, mod_status='None'): + """ + PolicyAbstractConfigChangeDetail - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._changes = None + self._config_change_context = None + self._disruptions = None + self._message = None + self._mod_status = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if changes is not None: + self.changes = changes + if config_change_context is not None: + self.config_change_context = config_change_context + if disruptions is not None: + self.disruptions = disruptions + if message is not None: + self.message = message + if mod_status is not None: + self.mod_status = mod_status + + @property + def account_moid(self): + """ + Gets the account_moid of this PolicyAbstractConfigChangeDetail. + The Account ID for this managed object. + + :return: The account_moid of this PolicyAbstractConfigChangeDetail. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this PolicyAbstractConfigChangeDetail. + The Account ID for this managed object. + + :param account_moid: The account_moid of this PolicyAbstractConfigChangeDetail. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this PolicyAbstractConfigChangeDetail. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this PolicyAbstractConfigChangeDetail. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this PolicyAbstractConfigChangeDetail. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this PolicyAbstractConfigChangeDetail. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this PolicyAbstractConfigChangeDetail. + The time when this managed object was created. + + :return: The create_time of this PolicyAbstractConfigChangeDetail. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this PolicyAbstractConfigChangeDetail. + The time when this managed object was created. + + :param create_time: The create_time of this PolicyAbstractConfigChangeDetail. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this PolicyAbstractConfigChangeDetail. + The time when this managed object was last modified. + + :return: The mod_time of this PolicyAbstractConfigChangeDetail. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this PolicyAbstractConfigChangeDetail. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this PolicyAbstractConfigChangeDetail. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this PolicyAbstractConfigChangeDetail. + A unique identifier of this Managed Object instance. + + :return: The moid of this PolicyAbstractConfigChangeDetail. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyAbstractConfigChangeDetail. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this PolicyAbstractConfigChangeDetail. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyAbstractConfigChangeDetail. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this PolicyAbstractConfigChangeDetail. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyAbstractConfigChangeDetail. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this PolicyAbstractConfigChangeDetail. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this PolicyAbstractConfigChangeDetail. + An array of owners which represent effective ownership of this object. + + :return: The owners of this PolicyAbstractConfigChangeDetail. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this PolicyAbstractConfigChangeDetail. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this PolicyAbstractConfigChangeDetail. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this PolicyAbstractConfigChangeDetail. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this PolicyAbstractConfigChangeDetail. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this PolicyAbstractConfigChangeDetail. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this PolicyAbstractConfigChangeDetail. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this PolicyAbstractConfigChangeDetail. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this PolicyAbstractConfigChangeDetail. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this PolicyAbstractConfigChangeDetail. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this PolicyAbstractConfigChangeDetail. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this PolicyAbstractConfigChangeDetail. + The versioning info for this managed object + + :return: The version_context of this PolicyAbstractConfigChangeDetail. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this PolicyAbstractConfigChangeDetail. + The versioning info for this managed object + + :param version_context: The version_context of this PolicyAbstractConfigChangeDetail. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def changes(self): + """ + Gets the changes of this PolicyAbstractConfigChangeDetail. + Type of the configuration change + + :return: The changes of this PolicyAbstractConfigChangeDetail. + :rtype: list[str] + """ + return self._changes + + @changes.setter + def changes(self, changes): + """ + Sets the changes of this PolicyAbstractConfigChangeDetail. + Type of the configuration change + + :param changes: The changes of this PolicyAbstractConfigChangeDetail. + :type: list[str] + """ + + self._changes = changes + + @property + def config_change_context(self): + """ + Gets the config_change_context of this PolicyAbstractConfigChangeDetail. + Context information on the change. + + :return: The config_change_context of this PolicyAbstractConfigChangeDetail. + :rtype: PolicyConfigResultContext + """ + return self._config_change_context + + @config_change_context.setter + def config_change_context(self, config_change_context): + """ + Sets the config_change_context of this PolicyAbstractConfigChangeDetail. + Context information on the change. + + :param config_change_context: The config_change_context of this PolicyAbstractConfigChangeDetail. + :type: PolicyConfigResultContext + """ + + self._config_change_context = config_change_context + + @property + def disruptions(self): + """ + Gets the disruptions of this PolicyAbstractConfigChangeDetail. + Possible discrution the configuration change might cause + + :return: The disruptions of this PolicyAbstractConfigChangeDetail. + :rtype: list[str] + """ + return self._disruptions + + @disruptions.setter + def disruptions(self, disruptions): + """ + Sets the disruptions of this PolicyAbstractConfigChangeDetail. + Possible discrution the configuration change might cause + + :param disruptions: The disruptions of this PolicyAbstractConfigChangeDetail. + :type: list[str] + """ + + self._disruptions = disruptions + + @property + def message(self): + """ + Gets the message of this PolicyAbstractConfigChangeDetail. + Detailed description of the config change + + :return: The message of this PolicyAbstractConfigChangeDetail. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this PolicyAbstractConfigChangeDetail. + Detailed description of the config change + + :param message: The message of this PolicyAbstractConfigChangeDetail. + :type: str + """ + + self._message = message + + @property + def mod_status(self): + """ + Gets the mod_status of this PolicyAbstractConfigChangeDetail. + Modification status of the mo in this config change + + :return: The mod_status of this PolicyAbstractConfigChangeDetail. + :rtype: str + """ + return self._mod_status + + @mod_status.setter + def mod_status(self, mod_status): + """ + Sets the mod_status of this PolicyAbstractConfigChangeDetail. + Modification status of the mo in this config change + + :param mod_status: The mod_status of this PolicyAbstractConfigChangeDetail. + :type: str + """ + allowed_values = ["None", "Created", "Modified", "Deleted"] + if mod_status not in allowed_values: + raise ValueError( + "Invalid value for `mod_status` ({0}), must be one of {1}" + .format(mod_status, allowed_values) + ) + + self._mod_status = mod_status + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyAbstractConfigChangeDetail): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_abstract_config_change_detail_ref.py b/intersight/models/policy_abstract_config_change_detail_ref.py new file mode 100644 index 00000000..5432a885 --- /dev/null +++ b/intersight/models/policy_abstract_config_change_detail_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyAbstractConfigChangeDetailRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyAbstractConfigChangeDetailRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyAbstractConfigChangeDetailRef. + + :return: The moid of this PolicyAbstractConfigChangeDetailRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyAbstractConfigChangeDetailRef. + + :param moid: The moid of this PolicyAbstractConfigChangeDetailRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyAbstractConfigChangeDetailRef. + + :return: The object_type of this PolicyAbstractConfigChangeDetailRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyAbstractConfigChangeDetailRef. + + :param object_type: The object_type of this PolicyAbstractConfigChangeDetailRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyAbstractConfigChangeDetailRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_abstract_config_profile.py b/intersight/models/policy_abstract_config_profile.py index e43baa87..7382b41b 100644 --- a/intersight/models/policy_abstract_config_profile.py +++ b/intersight/models/policy_abstract_config_profile.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,18 @@ class PolicyAbstractConfigProfile(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'src_template': 'MoMoRef', + 'src_template': 'PolicyAbstractProfileRef', 'type': 'str', 'action': 'str', 'config_context': 'PolicyConfigContext' @@ -58,6 +59,7 @@ class PolicyAbstractConfigProfile(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'src_template': 'SrcTemplate', @@ -66,7 +68,7 @@ class PolicyAbstractConfigProfile(object): 'config_context': 'ConfigContext' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, src_template=None, type='instance', action=None, config_context=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, src_template=None, type='instance', action=None, config_context=None): """ PolicyAbstractConfigProfile - a model defined in Swagger """ @@ -80,6 +82,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._src_template = None @@ -105,6 +108,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -148,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this PolicyAbstractConfigProfile. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this PolicyAbstractConfigProfile. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this PolicyAbstractConfigProfile. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this PolicyAbstractConfigProfile. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -306,7 +311,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this PolicyAbstractConfigProfile. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this PolicyAbstractConfigProfile. :rtype: list[MoTag] @@ -317,7 +322,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this PolicyAbstractConfigProfile. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this PolicyAbstractConfigProfile. :type: list[MoTag] @@ -325,6 +330,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this PolicyAbstractConfigProfile. + The versioning info for this managed object + + :return: The version_context of this PolicyAbstractConfigProfile. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this PolicyAbstractConfigProfile. + The versioning info for this managed object + + :param version_context: The version_context of this PolicyAbstractConfigProfile. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -377,7 +405,7 @@ def src_template(self): Gets the src_template of this PolicyAbstractConfigProfile. :return: The src_template of this PolicyAbstractConfigProfile. - :rtype: MoMoRef + :rtype: PolicyAbstractProfileRef """ return self._src_template @@ -387,7 +415,7 @@ def src_template(self, src_template): Sets the src_template of this PolicyAbstractConfigProfile. :param src_template: The src_template of this PolicyAbstractConfigProfile. - :type: MoMoRef + :type: PolicyAbstractProfileRef """ self._src_template = src_template @@ -425,7 +453,7 @@ def type(self, type): def action(self): """ Gets the action of this PolicyAbstractConfigProfile. - User/system triggered action like \"NoOp\", \"Deploy\", \"Undeploy\", \"DryRun\", \"ComplianceCheck\", \"AnalyzeImpact\" + User initiated action. Each profile type has its own supported actions. For hyperflex cluster profile, the supported actions are -- Validate, Deploy, Continue, Retry, Abort, Unassign For server profile, the support actions are -- Deploy, Unassign :return: The action of this PolicyAbstractConfigProfile. :rtype: str @@ -436,7 +464,7 @@ def action(self): def action(self, action): """ Sets the action of this PolicyAbstractConfigProfile. - User/system triggered action like \"NoOp\", \"Deploy\", \"Undeploy\", \"DryRun\", \"ComplianceCheck\", \"AnalyzeImpact\" + User initiated action. Each profile type has its own supported actions. For hyperflex cluster profile, the supported actions are -- Validate, Deploy, Continue, Retry, Abort, Unassign For server profile, the support actions are -- Deploy, Unassign :param action: The action of this PolicyAbstractConfigProfile. :type: str diff --git a/intersight/models/policy_abstract_config_profile_ref.py b/intersight/models/policy_abstract_config_profile_ref.py new file mode 100644 index 00000000..8e8298e1 --- /dev/null +++ b/intersight/models/policy_abstract_config_profile_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyAbstractConfigProfileRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyAbstractConfigProfileRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyAbstractConfigProfileRef. + + :return: The moid of this PolicyAbstractConfigProfileRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyAbstractConfigProfileRef. + + :param moid: The moid of this PolicyAbstractConfigProfileRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyAbstractConfigProfileRef. + + :return: The object_type of this PolicyAbstractConfigProfileRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyAbstractConfigProfileRef. + + :param object_type: The object_type of this PolicyAbstractConfigProfileRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyAbstractConfigProfileRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_abstract_config_result.py b/intersight/models/policy_abstract_config_result.py index 1688cdd1..350a67fe 100644 --- a/intersight/models/policy_abstract_config_result.py +++ b/intersight/models/policy_abstract_config_result.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,17 @@ class PolicyAbstractConfigResult(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'config_stage': 'str', 'config_state': 'str', - 'result_entries': 'list[PolicyConfigResultEntry]', 'validation_state': 'str' } @@ -56,13 +56,13 @@ class PolicyAbstractConfigResult(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'config_stage': 'ConfigStage', 'config_state': 'ConfigState', - 'result_entries': 'ResultEntries', 'validation_state': 'ValidationState' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, config_stage=None, config_state=None, result_entries=None, validation_state=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, config_stage=None, config_state=None, validation_state=None): """ PolicyAbstractConfigResult - a model defined in Swagger """ @@ -76,9 +76,9 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._config_stage = None self._config_state = None - self._result_entries = None self._validation_state = None if account_moid is not None: @@ -99,12 +99,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if config_stage is not None: self.config_stage = config_stage if config_state is not None: self.config_state = config_state - if result_entries is not None: - self.result_entries = result_entries if validation_state is not None: self.validation_state = validation_state @@ -138,7 +138,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this PolicyAbstractConfigResult. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +149,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this PolicyAbstractConfigResult. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +276,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this PolicyAbstractConfigResult. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +287,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this PolicyAbstractConfigResult. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -296,7 +296,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this PolicyAbstractConfigResult. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this PolicyAbstractConfigResult. :rtype: list[MoTag] @@ -307,7 +307,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this PolicyAbstractConfigResult. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this PolicyAbstractConfigResult. :type: list[MoTag] @@ -315,6 +315,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this PolicyAbstractConfigResult. + The versioning info for this managed object + + :return: The version_context of this PolicyAbstractConfigResult. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this PolicyAbstractConfigResult. + The versioning info for this managed object + + :param version_context: The version_context of this PolicyAbstractConfigResult. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def config_stage(self): """ @@ -361,29 +384,6 @@ def config_state(self, config_state): self._config_state = config_state - @property - def result_entries(self): - """ - Gets the result_entries of this PolicyAbstractConfigResult. - Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. - - :return: The result_entries of this PolicyAbstractConfigResult. - :rtype: list[PolicyConfigResultEntry] - """ - return self._result_entries - - @result_entries.setter - def result_entries(self, result_entries): - """ - Sets the result_entries of this PolicyAbstractConfigResult. - Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. - - :param result_entries: The result_entries of this PolicyAbstractConfigResult. - :type: list[PolicyConfigResultEntry] - """ - - self._result_entries = result_entries - @property def validation_state(self): """ diff --git a/intersight/models/policy_abstract_config_result_entry.py b/intersight/models/policy_abstract_config_result_entry.py new file mode 100644 index 00000000..842494ad --- /dev/null +++ b/intersight/models/policy_abstract_config_result_entry.py @@ -0,0 +1,541 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyAbstractConfigResultEntry(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'completed_time': 'str', + 'context': 'PolicyConfigResultContext', + 'message': 'str', + 'owner_id': 'str', + 'state': 'str', + 'type': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'completed_time': 'CompletedTime', + 'context': 'Context', + 'message': 'Message', + 'owner_id': 'OwnerId', + 'state': 'State', + 'type': 'Type' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, completed_time=None, context=None, message=None, owner_id=None, state=None, type=None): + """ + PolicyAbstractConfigResultEntry - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._completed_time = None + self._context = None + self._message = None + self._owner_id = None + self._state = None + self._type = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if completed_time is not None: + self.completed_time = completed_time + if context is not None: + self.context = context + if message is not None: + self.message = message + if owner_id is not None: + self.owner_id = owner_id + if state is not None: + self.state = state + if type is not None: + self.type = type + + @property + def account_moid(self): + """ + Gets the account_moid of this PolicyAbstractConfigResultEntry. + The Account ID for this managed object. + + :return: The account_moid of this PolicyAbstractConfigResultEntry. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this PolicyAbstractConfigResultEntry. + The Account ID for this managed object. + + :param account_moid: The account_moid of this PolicyAbstractConfigResultEntry. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this PolicyAbstractConfigResultEntry. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this PolicyAbstractConfigResultEntry. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this PolicyAbstractConfigResultEntry. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this PolicyAbstractConfigResultEntry. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this PolicyAbstractConfigResultEntry. + The time when this managed object was created. + + :return: The create_time of this PolicyAbstractConfigResultEntry. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this PolicyAbstractConfigResultEntry. + The time when this managed object was created. + + :param create_time: The create_time of this PolicyAbstractConfigResultEntry. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this PolicyAbstractConfigResultEntry. + The time when this managed object was last modified. + + :return: The mod_time of this PolicyAbstractConfigResultEntry. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this PolicyAbstractConfigResultEntry. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this PolicyAbstractConfigResultEntry. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this PolicyAbstractConfigResultEntry. + A unique identifier of this Managed Object instance. + + :return: The moid of this PolicyAbstractConfigResultEntry. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyAbstractConfigResultEntry. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this PolicyAbstractConfigResultEntry. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyAbstractConfigResultEntry. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this PolicyAbstractConfigResultEntry. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyAbstractConfigResultEntry. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this PolicyAbstractConfigResultEntry. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this PolicyAbstractConfigResultEntry. + An array of owners which represent effective ownership of this object. + + :return: The owners of this PolicyAbstractConfigResultEntry. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this PolicyAbstractConfigResultEntry. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this PolicyAbstractConfigResultEntry. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this PolicyAbstractConfigResultEntry. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this PolicyAbstractConfigResultEntry. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this PolicyAbstractConfigResultEntry. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this PolicyAbstractConfigResultEntry. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this PolicyAbstractConfigResultEntry. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this PolicyAbstractConfigResultEntry. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this PolicyAbstractConfigResultEntry. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this PolicyAbstractConfigResultEntry. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this PolicyAbstractConfigResultEntry. + The versioning info for this managed object + + :return: The version_context of this PolicyAbstractConfigResultEntry. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this PolicyAbstractConfigResultEntry. + The versioning info for this managed object + + :param version_context: The version_context of this PolicyAbstractConfigResultEntry. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def completed_time(self): + """ + Gets the completed_time of this PolicyAbstractConfigResultEntry. + The completed time of the task in installer + + :return: The completed_time of this PolicyAbstractConfigResultEntry. + :rtype: str + """ + return self._completed_time + + @completed_time.setter + def completed_time(self, completed_time): + """ + Sets the completed_time of this PolicyAbstractConfigResultEntry. + The completed time of the task in installer + + :param completed_time: The completed_time of this PolicyAbstractConfigResultEntry. + :type: str + """ + + self._completed_time = completed_time + + @property + def context(self): + """ + Gets the context of this PolicyAbstractConfigResultEntry. + + :return: The context of this PolicyAbstractConfigResultEntry. + :rtype: PolicyConfigResultContext + """ + return self._context + + @context.setter + def context(self, context): + """ + Sets the context of this PolicyAbstractConfigResultEntry. + + :param context: The context of this PolicyAbstractConfigResultEntry. + :type: PolicyConfigResultContext + """ + + self._context = context + + @property + def message(self): + """ + Gets the message of this PolicyAbstractConfigResultEntry. + Localized message based on the locale setting of the user's context + + :return: The message of this PolicyAbstractConfigResultEntry. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this PolicyAbstractConfigResultEntry. + Localized message based on the locale setting of the user's context + + :param message: The message of this PolicyAbstractConfigResultEntry. + :type: str + """ + + self._message = message + + @property + def owner_id(self): + """ + Gets the owner_id of this PolicyAbstractConfigResultEntry. + + :return: The owner_id of this PolicyAbstractConfigResultEntry. + :rtype: str + """ + return self._owner_id + + @owner_id.setter + def owner_id(self, owner_id): + """ + Sets the owner_id of this PolicyAbstractConfigResultEntry. + + :param owner_id: The owner_id of this PolicyAbstractConfigResultEntry. + :type: str + """ + + self._owner_id = owner_id + + @property + def state(self): + """ + Gets the state of this PolicyAbstractConfigResultEntry. + Values -- ok, ok-with-warning, errored + + :return: The state of this PolicyAbstractConfigResultEntry. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this PolicyAbstractConfigResultEntry. + Values -- ok, ok-with-warning, errored + + :param state: The state of this PolicyAbstractConfigResultEntry. + :type: str + """ + + self._state = state + + @property + def type(self): + """ + Gets the type of this PolicyAbstractConfigResultEntry. + Indicates if the result is reported during the logical model validation/resource allocation phase or the configuration applying phase. Values -- validation, config + + :return: The type of this PolicyAbstractConfigResultEntry. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this PolicyAbstractConfigResultEntry. + Indicates if the result is reported during the logical model validation/resource allocation phase or the configuration applying phase. Values -- validation, config + + :param type: The type of this PolicyAbstractConfigResultEntry. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyAbstractConfigResultEntry): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_abstract_config_result_entry_ref.py b/intersight/models/policy_abstract_config_result_entry_ref.py new file mode 100644 index 00000000..5344139f --- /dev/null +++ b/intersight/models/policy_abstract_config_result_entry_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyAbstractConfigResultEntryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyAbstractConfigResultEntryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyAbstractConfigResultEntryRef. + + :return: The moid of this PolicyAbstractConfigResultEntryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyAbstractConfigResultEntryRef. + + :param moid: The moid of this PolicyAbstractConfigResultEntryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyAbstractConfigResultEntryRef. + + :return: The object_type of this PolicyAbstractConfigResultEntryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyAbstractConfigResultEntryRef. + + :param object_type: The object_type of this PolicyAbstractConfigResultEntryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyAbstractConfigResultEntryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_abstract_config_result_ref.py b/intersight/models/policy_abstract_config_result_ref.py new file mode 100644 index 00000000..d9bd3de3 --- /dev/null +++ b/intersight/models/policy_abstract_config_result_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyAbstractConfigResultRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyAbstractConfigResultRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyAbstractConfigResultRef. + + :return: The moid of this PolicyAbstractConfigResultRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyAbstractConfigResultRef. + + :param moid: The moid of this PolicyAbstractConfigResultRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyAbstractConfigResultRef. + + :return: The object_type of this PolicyAbstractConfigResultRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyAbstractConfigResultRef. + + :param object_type: The object_type of this PolicyAbstractConfigResultRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyAbstractConfigResultRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_abstract_policy.py b/intersight/models/policy_abstract_policy.py index b9296030..3762eebf 100644 --- a/intersight/models/policy_abstract_policy.py +++ b/intersight/models/policy_abstract_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class PolicyAbstractPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str' } @@ -54,11 +55,12 @@ class PolicyAbstractPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None): """ PolicyAbstractPolicy - a model defined in Swagger """ @@ -72,6 +74,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None @@ -93,6 +96,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -128,7 +133,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this PolicyAbstractPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -139,7 +144,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this PolicyAbstractPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -266,7 +271,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this PolicyAbstractPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -277,7 +282,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this PolicyAbstractPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -286,7 +291,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this PolicyAbstractPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this PolicyAbstractPolicy. :rtype: list[MoTag] @@ -297,7 +302,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this PolicyAbstractPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this PolicyAbstractPolicy. :type: list[MoTag] @@ -305,6 +310,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this PolicyAbstractPolicy. + The versioning info for this managed object + + :return: The version_context of this PolicyAbstractPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this PolicyAbstractPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this PolicyAbstractPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ diff --git a/intersight/models/policy_abstract_policy_ref.py b/intersight/models/policy_abstract_policy_ref.py new file mode 100644 index 00000000..85766150 --- /dev/null +++ b/intersight/models/policy_abstract_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyAbstractPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyAbstractPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyAbstractPolicyRef. + + :return: The moid of this PolicyAbstractPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyAbstractPolicyRef. + + :param moid: The moid of this PolicyAbstractPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyAbstractPolicyRef. + + :return: The object_type of this PolicyAbstractPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyAbstractPolicyRef. + + :param object_type: The object_type of this PolicyAbstractPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyAbstractPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_abstract_profile.py b/intersight/models/policy_abstract_profile.py index 1f5cf29d..7f0535b0 100644 --- a/intersight/models/policy_abstract_profile.py +++ b/intersight/models/policy_abstract_profile.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,17 +32,18 @@ class PolicyAbstractProfile(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'src_template': 'MoMoRef', + 'src_template': 'PolicyAbstractProfileRef', 'type': 'str' } @@ -56,13 +57,14 @@ class PolicyAbstractProfile(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'src_template': 'SrcTemplate', 'type': 'Type' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, src_template=None, type='instance'): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, src_template=None, type='instance'): """ PolicyAbstractProfile - a model defined in Swagger """ @@ -76,6 +78,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._src_template = None @@ -99,6 +102,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -138,7 +143,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this PolicyAbstractProfile. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +154,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this PolicyAbstractProfile. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +281,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this PolicyAbstractProfile. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +292,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this PolicyAbstractProfile. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -296,7 +301,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this PolicyAbstractProfile. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this PolicyAbstractProfile. :rtype: list[MoTag] @@ -307,7 +312,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this PolicyAbstractProfile. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this PolicyAbstractProfile. :type: list[MoTag] @@ -315,6 +320,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this PolicyAbstractProfile. + The versioning info for this managed object + + :return: The version_context of this PolicyAbstractProfile. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this PolicyAbstractProfile. + The versioning info for this managed object + + :param version_context: The version_context of this PolicyAbstractProfile. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -367,7 +395,7 @@ def src_template(self): Gets the src_template of this PolicyAbstractProfile. :return: The src_template of this PolicyAbstractProfile. - :rtype: MoMoRef + :rtype: PolicyAbstractProfileRef """ return self._src_template @@ -377,7 +405,7 @@ def src_template(self, src_template): Sets the src_template of this PolicyAbstractProfile. :param src_template: The src_template of this PolicyAbstractProfile. - :type: MoMoRef + :type: PolicyAbstractProfileRef """ self._src_template = src_template diff --git a/intersight/models/policy_abstract_profile_ref.py b/intersight/models/policy_abstract_profile_ref.py new file mode 100644 index 00000000..9375e71b --- /dev/null +++ b/intersight/models/policy_abstract_profile_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyAbstractProfileRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyAbstractProfileRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyAbstractProfileRef. + + :return: The moid of this PolicyAbstractProfileRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyAbstractProfileRef. + + :param moid: The moid of this PolicyAbstractProfileRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyAbstractProfileRef. + + :return: The object_type of this PolicyAbstractProfileRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyAbstractProfileRef. + + :param object_type: The object_type of this PolicyAbstractProfileRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyAbstractProfileRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_analyze_impact_task_ref.py b/intersight/models/policy_analyze_impact_task_ref.py new file mode 100644 index 00000000..fa4f315e --- /dev/null +++ b/intersight/models/policy_analyze_impact_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyAnalyzeImpactTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyAnalyzeImpactTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyAnalyzeImpactTaskRef. + + :return: The moid of this PolicyAnalyzeImpactTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyAnalyzeImpactTaskRef. + + :param moid: The moid of this PolicyAnalyzeImpactTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyAnalyzeImpactTaskRef. + + :return: The object_type of this PolicyAnalyzeImpactTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyAnalyzeImpactTaskRef. + + :param object_type: The object_type of this PolicyAnalyzeImpactTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyAnalyzeImpactTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_config_change.py b/intersight/models/policy_config_change.py new file mode 100644 index 00000000..99fbfa59 --- /dev/null +++ b/intersight/models/policy_config_change.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyConfigChange(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'changes': 'list[str]', + 'disruptions': 'list[str]' + } + + attribute_map = { + 'changes': 'Changes', + 'disruptions': 'Disruptions' + } + + def __init__(self, changes=None, disruptions=None): + """ + PolicyConfigChange - a model defined in Swagger + """ + + self._changes = None + self._disruptions = None + + if changes is not None: + self.changes = changes + if disruptions is not None: + self.disruptions = disruptions + + @property + def changes(self): + """ + Gets the changes of this PolicyConfigChange. + Configuration changes + + :return: The changes of this PolicyConfigChange. + :rtype: list[str] + """ + return self._changes + + @changes.setter + def changes(self, changes): + """ + Sets the changes of this PolicyConfigChange. + Configuration changes + + :param changes: The changes of this PolicyConfigChange. + :type: list[str] + """ + + self._changes = changes + + @property + def disruptions(self): + """ + Gets the disruptions of this PolicyConfigChange. + Configuration disruptions + + :return: The disruptions of this PolicyConfigChange. + :rtype: list[str] + """ + return self._disruptions + + @disruptions.setter + def disruptions(self, disruptions): + """ + Sets the disruptions of this PolicyConfigChange. + Configuration disruptions + + :param disruptions: The disruptions of this PolicyConfigChange. + :type: list[str] + """ + + self._disruptions = disruptions + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyConfigChange): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_config_change_detail_type_ref.py b/intersight/models/policy_config_change_detail_type_ref.py new file mode 100644 index 00000000..3ffe4a4f --- /dev/null +++ b/intersight/models/policy_config_change_detail_type_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyConfigChangeDetailTypeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyConfigChangeDetailTypeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyConfigChangeDetailTypeRef. + + :return: The moid of this PolicyConfigChangeDetailTypeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyConfigChangeDetailTypeRef. + + :param moid: The moid of this PolicyConfigChangeDetailTypeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyConfigChangeDetailTypeRef. + + :return: The object_type of this PolicyConfigChangeDetailTypeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyConfigChangeDetailTypeRef. + + :param object_type: The object_type of this PolicyConfigChangeDetailTypeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyConfigChangeDetailTypeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_config_change_ref.py b/intersight/models/policy_config_change_ref.py new file mode 100644 index 00000000..bd01baa7 --- /dev/null +++ b/intersight/models/policy_config_change_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyConfigChangeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyConfigChangeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyConfigChangeRef. + + :return: The moid of this PolicyConfigChangeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyConfigChangeRef. + + :param moid: The moid of this PolicyConfigChangeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyConfigChangeRef. + + :return: The object_type of this PolicyConfigChangeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyConfigChangeRef. + + :param object_type: The object_type of this PolicyConfigChangeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyConfigChangeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_config_context.py b/intersight/models/policy_config_context.py index bc7e3bf6..9061e59f 100644 --- a/intersight/models/policy_config_context.py +++ b/intersight/models/policy_config_context.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -67,7 +67,7 @@ def __init__(self, config_state=None, control_action=None, error_state=None, ope def config_state(self): """ Gets the config_state of this PolicyConfigContext. - Indicates a profile's configuration deploying state Values -- Assigned, Not-assigned, Associated, Pending-changes, Validating, Configuring, Errored + Indicates a profile's configuration deploying state Values -- Assigned, Not-assigned, Associated, Pending-changes, Validating, Configuring, Failed :return: The config_state of this PolicyConfigContext. :rtype: str @@ -78,7 +78,7 @@ def config_state(self): def config_state(self, config_state): """ Sets the config_state of this PolicyConfigContext. - Indicates a profile's configuration deploying state Values -- Assigned, Not-assigned, Associated, Pending-changes, Validating, Configuring, Errored + Indicates a profile's configuration deploying state Values -- Assigned, Not-assigned, Associated, Pending-changes, Validating, Configuring, Failed :param config_state: The config_state of this PolicyConfigContext. :type: str @@ -90,7 +90,7 @@ def config_state(self, config_state): def control_action(self): """ Gets the control_action of this PolicyConfigContext. - Internal action to trigger the appropriate workflow. Values -- No_op, ConfigChange, Deploy, Unbind + System action to trigger the appropriate workflow. Values -- No_op, ConfigChange, Deploy, Unbind :return: The control_action of this PolicyConfigContext. :rtype: str @@ -101,7 +101,7 @@ def control_action(self): def control_action(self, control_action): """ Sets the control_action of this PolicyConfigContext. - Internal action to trigger the appropriate workflow. Values -- No_op, ConfigChange, Deploy, Unbind + System action to trigger the appropriate workflow. Values -- No_op, ConfigChange, Deploy, Unbind :param control_action: The control_action of this PolicyConfigContext. :type: str @@ -113,7 +113,7 @@ def control_action(self, control_action): def error_state(self): """ Gets the error_state of this PolicyConfigContext. - Indicates a profile's error state Values -- validation-error (Profile side validation error), pre-config-error (installer runtime validation error), config-error (installer configuration error) + Indicates a profile's error state. Values -- Validation-error (Static validation error), Pre-config-error (Runtime validation error), Config-error (Runtime configuration error) :return: The error_state of this PolicyConfigContext. :rtype: str @@ -124,7 +124,7 @@ def error_state(self): def error_state(self, error_state): """ Sets the error_state of this PolicyConfigContext. - Indicates a profile's error state Values -- validation-error (Profile side validation error), pre-config-error (installer runtime validation error), config-error (installer configuration error) + Indicates a profile's error state. Values -- Validation-error (Static validation error), Pre-config-error (Runtime validation error), Config-error (Runtime configuration error) :param error_state: The error_state of this PolicyConfigContext. :type: str @@ -136,7 +136,7 @@ def error_state(self, error_state): def oper_state(self): """ Gets the oper_state of this PolicyConfigContext. - Combined state (configState, and operational state of the associated physical resource) to indicate the current state of the profile. Values -- n/a, power-off, pending-changes, configuring, ok, ok-with-warning, errored + Combined state (configState, and operational state of the associated physical resource) to indicate the current state of the profile. Values -- n/a, Power-off, Pending-changes, Configuring, Ok, Failed :return: The oper_state of this PolicyConfigContext. :rtype: str @@ -147,7 +147,7 @@ def oper_state(self): def oper_state(self, oper_state): """ Sets the oper_state of this PolicyConfigContext. - Combined state (configState, and operational state of the associated physical resource) to indicate the current state of the profile. Values -- n/a, power-off, pending-changes, configuring, ok, ok-with-warning, errored + Combined state (configState, and operational state of the associated physical resource) to indicate the current state of the profile. Values -- n/a, Power-off, Pending-changes, Configuring, Ok, Failed :param oper_state: The oper_state of this PolicyConfigContext. :type: str diff --git a/intersight/models/policy_config_context_ref.py b/intersight/models/policy_config_context_ref.py new file mode 100644 index 00000000..31f01e17 --- /dev/null +++ b/intersight/models/policy_config_context_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyConfigContextRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyConfigContextRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyConfigContextRef. + + :return: The moid of this PolicyConfigContextRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyConfigContextRef. + + :param moid: The moid of this PolicyConfigContextRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyConfigContextRef. + + :return: The object_type of this PolicyConfigContextRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyConfigContextRef. + + :param object_type: The object_type of this PolicyConfigContextRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyConfigContextRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_config_result_context.py b/intersight/models/policy_config_result_context.py index 5e1a038c..532218db 100644 --- a/intersight/models/policy_config_result_context.py +++ b/intersight/models/policy_config_result_context.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/policy_config_result_context_ref.py b/intersight/models/policy_config_result_context_ref.py new file mode 100644 index 00000000..3ea07cda --- /dev/null +++ b/intersight/models/policy_config_result_context_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyConfigResultContextRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyConfigResultContextRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyConfigResultContextRef. + + :return: The moid of this PolicyConfigResultContextRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyConfigResultContextRef. + + :param moid: The moid of this PolicyConfigResultContextRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyConfigResultContextRef. + + :return: The object_type of this PolicyConfigResultContextRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyConfigResultContextRef. + + :param object_type: The object_type of this PolicyConfigResultContextRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyConfigResultContextRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_config_result_entry.py b/intersight/models/policy_config_result_entry.py deleted file mode 100644 index 66c319e1..00000000 --- a/intersight/models/policy_config_result_entry.py +++ /dev/null @@ -1,259 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class PolicyConfigResultEntry(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'context': 'PolicyConfigResultContext', - 'message': 'str', - 'message_params': 'object', - 'owner_id': 'str', - 'state': 'str', - 'type': 'str' - } - - attribute_map = { - 'context': 'Context', - 'message': 'Message', - 'message_params': 'MessageParams', - 'owner_id': 'OwnerId', - 'state': 'State', - 'type': 'Type' - } - - def __init__(self, context=None, message=None, message_params=None, owner_id=None, state=None, type=None): - """ - PolicyConfigResultEntry - a model defined in Swagger - """ - - self._context = None - self._message = None - self._message_params = None - self._owner_id = None - self._state = None - self._type = None - - if context is not None: - self.context = context - if message is not None: - self.message = message - if message_params is not None: - self.message_params = message_params - if owner_id is not None: - self.owner_id = owner_id - if state is not None: - self.state = state - if type is not None: - self.type = type - - @property - def context(self): - """ - Gets the context of this PolicyConfigResultEntry. - - :return: The context of this PolicyConfigResultEntry. - :rtype: PolicyConfigResultContext - """ - return self._context - - @context.setter - def context(self, context): - """ - Sets the context of this PolicyConfigResultEntry. - - :param context: The context of this PolicyConfigResultEntry. - :type: PolicyConfigResultContext - """ - - self._context = context - - @property - def message(self): - """ - Gets the message of this PolicyConfigResultEntry. - - :return: The message of this PolicyConfigResultEntry. - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """ - Sets the message of this PolicyConfigResultEntry. - - :param message: The message of this PolicyConfigResultEntry. - :type: str - """ - - self._message = message - - @property - def message_params(self): - """ - Gets the message_params of this PolicyConfigResultEntry. - Values for parameterized message. Need to be in json format to cover different parameter order for localized message. - - :return: The message_params of this PolicyConfigResultEntry. - :rtype: object - """ - return self._message_params - - @message_params.setter - def message_params(self, message_params): - """ - Sets the message_params of this PolicyConfigResultEntry. - Values for parameterized message. Need to be in json format to cover different parameter order for localized message. - - :param message_params: The message_params of this PolicyConfigResultEntry. - :type: object - """ - - self._message_params = message_params - - @property - def owner_id(self): - """ - Gets the owner_id of this PolicyConfigResultEntry. - - :return: The owner_id of this PolicyConfigResultEntry. - :rtype: str - """ - return self._owner_id - - @owner_id.setter - def owner_id(self, owner_id): - """ - Sets the owner_id of this PolicyConfigResultEntry. - - :param owner_id: The owner_id of this PolicyConfigResultEntry. - :type: str - """ - - self._owner_id = owner_id - - @property - def state(self): - """ - Gets the state of this PolicyConfigResultEntry. - Values -- ok, ok-with-warning, errored - - :return: The state of this PolicyConfigResultEntry. - :rtype: str - """ - return self._state - - @state.setter - def state(self, state): - """ - Sets the state of this PolicyConfigResultEntry. - Values -- ok, ok-with-warning, errored - - :param state: The state of this PolicyConfigResultEntry. - :type: str - """ - - self._state = state - - @property - def type(self): - """ - Gets the type of this PolicyConfigResultEntry. - Indicates if the result is reported during the logical model validation/resource allocation phase or the configuration applying phase. Values -- validation, config - - :return: The type of this PolicyConfigResultEntry. - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """ - Sets the type of this PolicyConfigResultEntry. - Indicates if the result is reported during the logical model validation/resource allocation phase or the configuration applying phase. Values -- validation, config - - :param type: The type of this PolicyConfigResultEntry. - :type: str - """ - - self._type = type - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, PolicyConfigResultEntry): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/policy_hardware_platform.py b/intersight/models/policy_hardware_platform.py deleted file mode 100644 index 5e5da586..00000000 --- a/intersight/models/policy_hardware_platform.py +++ /dev/null @@ -1,181 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class PolicyHardwarePlatform(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'display_label': 'str', - 'model_pattern': 'str', - 'name': 'str' - } - - attribute_map = { - 'display_label': 'DisplayLabel', - 'model_pattern': 'ModelPattern', - 'name': 'Name' - } - - def __init__(self, display_label=None, model_pattern=None, name=None): - """ - PolicyHardwarePlatform - a model defined in Swagger - """ - - self._display_label = None - self._model_pattern = None - self._name = None - - if display_label is not None: - self.display_label = display_label - if model_pattern is not None: - self.model_pattern = model_pattern - if name is not None: - self.name = name - - @property - def display_label(self): - """ - Gets the display_label of this PolicyHardwarePlatform. - Display Label for Hardware Platform Constraint - - :return: The display_label of this PolicyHardwarePlatform. - :rtype: str - """ - return self._display_label - - @display_label.setter - def display_label(self, display_label): - """ - Sets the display_label of this PolicyHardwarePlatform. - Display Label for Hardware Platform Constraint - - :param display_label: The display_label of this PolicyHardwarePlatform. - :type: str - """ - - self._display_label = display_label - - @property - def model_pattern(self): - """ - Gets the model_pattern of this PolicyHardwarePlatform. - Regex expression of applicable models - - :return: The model_pattern of this PolicyHardwarePlatform. - :rtype: str - """ - return self._model_pattern - - @model_pattern.setter - def model_pattern(self, model_pattern): - """ - Sets the model_pattern of this PolicyHardwarePlatform. - Regex expression of applicable models - - :param model_pattern: The model_pattern of this PolicyHardwarePlatform. - :type: str - """ - - self._model_pattern = model_pattern - - @property - def name(self): - """ - Gets the name of this PolicyHardwarePlatform. - Name of Hardware Platform Constraint - - :return: The name of this PolicyHardwarePlatform. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this PolicyHardwarePlatform. - Name of Hardware Platform Constraint - - :param name: The name of this PolicyHardwarePlatform. - :type: str - """ - - self._name = name - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, PolicyHardwarePlatform): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/policy_take_snapshot_task_ref.py b/intersight/models/policy_take_snapshot_task_ref.py new file mode 100644 index 00000000..a9357f54 --- /dev/null +++ b/intersight/models/policy_take_snapshot_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PolicyTakeSnapshotTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PolicyTakeSnapshotTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PolicyTakeSnapshotTaskRef. + + :return: The moid of this PolicyTakeSnapshotTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PolicyTakeSnapshotTaskRef. + + :param moid: The moid of this PolicyTakeSnapshotTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PolicyTakeSnapshotTaskRef. + + :return: The object_type of this PolicyTakeSnapshotTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PolicyTakeSnapshotTaskRef. + + :param object_type: The object_type of this PolicyTakeSnapshotTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PolicyTakeSnapshotTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/port_group.py b/intersight/models/port_group.py index 28c5afd6..4ab22c8d 100644 --- a/intersight/models/port_group.py +++ b/intersight/models/port_group.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,22 +32,23 @@ class PortGroup(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', - 'equipment_switch_card': 'MoMoRef', - 'ethernet_ports': 'list[MoMoRef]', - 'fc_ports': 'list[MoMoRef]', - 'registered_device': 'MoMoRef', - 'sub_groups': 'list[MoMoRef]', + 'equipment_switch_card': 'EquipmentSwitchCardRef', + 'ethernet_ports': 'list[EtherPhysicalPortRef]', + 'fc_ports': 'list[FcPhysicalPortRef]', + 'registered_device': 'AssetDeviceRegistrationRef', + 'sub_groups': 'list[PortSubGroupRef]', 'transport': 'str' } @@ -61,6 +62,7 @@ class PortGroup(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -72,7 +74,7 @@ class PortGroup(object): 'transport': 'Transport' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, equipment_switch_card=None, ethernet_ports=None, fc_ports=None, registered_device=None, sub_groups=None, transport=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, equipment_switch_card=None, ethernet_ports=None, fc_ports=None, registered_device=None, sub_groups=None, transport=None): """ PortGroup - a model defined in Swagger """ @@ -86,6 +88,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -114,6 +117,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -163,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this PortGroup. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this PortGroup. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this PortGroup. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this PortGroup. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -321,7 +326,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this PortGroup. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this PortGroup. :rtype: list[MoTag] @@ -332,7 +337,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this PortGroup. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this PortGroup. :type: list[MoTag] @@ -340,6 +345,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this PortGroup. + The versioning info for this managed object + + :return: The version_context of this PortGroup. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this PortGroup. + The versioning info for this managed object + + :param version_context: The version_context of this PortGroup. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -409,7 +437,7 @@ def equipment_switch_card(self): Gets the equipment_switch_card of this PortGroup. :return: The equipment_switch_card of this PortGroup. - :rtype: MoMoRef + :rtype: EquipmentSwitchCardRef """ return self._equipment_switch_card @@ -419,7 +447,7 @@ def equipment_switch_card(self, equipment_switch_card): Sets the equipment_switch_card of this PortGroup. :param equipment_switch_card: The equipment_switch_card of this PortGroup. - :type: MoMoRef + :type: EquipmentSwitchCardRef """ self._equipment_switch_card = equipment_switch_card @@ -430,7 +458,7 @@ def ethernet_ports(self): Gets the ethernet_ports of this PortGroup. :return: The ethernet_ports of this PortGroup. - :rtype: list[MoMoRef] + :rtype: list[EtherPhysicalPortRef] """ return self._ethernet_ports @@ -440,7 +468,7 @@ def ethernet_ports(self, ethernet_ports): Sets the ethernet_ports of this PortGroup. :param ethernet_ports: The ethernet_ports of this PortGroup. - :type: list[MoMoRef] + :type: list[EtherPhysicalPortRef] """ self._ethernet_ports = ethernet_ports @@ -451,7 +479,7 @@ def fc_ports(self): Gets the fc_ports of this PortGroup. :return: The fc_ports of this PortGroup. - :rtype: list[MoMoRef] + :rtype: list[FcPhysicalPortRef] """ return self._fc_ports @@ -461,7 +489,7 @@ def fc_ports(self, fc_ports): Sets the fc_ports of this PortGroup. :param fc_ports: The fc_ports of this PortGroup. - :type: list[MoMoRef] + :type: list[FcPhysicalPortRef] """ self._fc_ports = fc_ports @@ -472,7 +500,7 @@ def registered_device(self): Gets the registered_device of this PortGroup. :return: The registered_device of this PortGroup. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -482,7 +510,7 @@ def registered_device(self, registered_device): Sets the registered_device of this PortGroup. :param registered_device: The registered_device of this PortGroup. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -493,7 +521,7 @@ def sub_groups(self): Gets the sub_groups of this PortGroup. :return: The sub_groups of this PortGroup. - :rtype: list[MoMoRef] + :rtype: list[PortSubGroupRef] """ return self._sub_groups @@ -503,7 +531,7 @@ def sub_groups(self, sub_groups): Sets the sub_groups of this PortGroup. :param sub_groups: The sub_groups of this PortGroup. - :type: list[MoMoRef] + :type: list[PortSubGroupRef] """ self._sub_groups = sub_groups diff --git a/intersight/models/port_group_list.py b/intersight/models/port_group_list.py index f20e236e..01fe35b5 100644 --- a/intersight/models/port_group_list.py +++ b/intersight/models/port_group_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/port_group_ref.py b/intersight/models/port_group_ref.py new file mode 100644 index 00000000..3cb53e45 --- /dev/null +++ b/intersight/models/port_group_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PortGroupRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PortGroupRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PortGroupRef. + + :return: The moid of this PortGroupRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PortGroupRef. + + :param moid: The moid of this PortGroupRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PortGroupRef. + + :return: The object_type of this PortGroupRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PortGroupRef. + + :param object_type: The object_type of this PortGroupRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PortGroupRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/port_physical.py b/intersight/models/port_physical.py index 5b57086f..5ab66b84 100644 --- a/intersight/models/port_physical.py +++ b/intersight/models/port_physical.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class PortPhysical(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -57,6 +58,7 @@ class PortPhysical(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -64,7 +66,7 @@ class PortPhysical(object): 'role': 'Role' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, oper_state=None, role=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, oper_state=None, role=None): """ PortPhysical - a model defined in Swagger """ @@ -78,6 +80,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -102,6 +105,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -143,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this PortPhysical. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -154,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this PortPhysical. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -281,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this PortPhysical. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -292,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this PortPhysical. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -301,7 +306,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this PortPhysical. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this PortPhysical. :rtype: list[MoTag] @@ -312,7 +317,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this PortPhysical. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this PortPhysical. :type: list[MoTag] @@ -320,6 +325,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this PortPhysical. + The versioning info for this managed object + + :return: The version_context of this PortPhysical. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this PortPhysical. + The versioning info for this managed object + + :param version_context: The version_context of this PortPhysical. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ diff --git a/intersight/models/port_physical_ref.py b/intersight/models/port_physical_ref.py new file mode 100644 index 00000000..37e035c3 --- /dev/null +++ b/intersight/models/port_physical_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PortPhysicalRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PortPhysicalRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PortPhysicalRef. + + :return: The moid of this PortPhysicalRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PortPhysicalRef. + + :param moid: The moid of this PortPhysicalRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PortPhysicalRef. + + :return: The object_type of this PortPhysicalRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PortPhysicalRef. + + :param object_type: The object_type of this PortPhysicalRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PortPhysicalRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/port_sub_group.py b/intersight/models/port_sub_group.py index d49ef8ce..be072abb 100644 --- a/intersight/models/port_sub_group.py +++ b/intersight/models/port_sub_group.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,21 @@ class PortSubGroup(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', - 'ethernet_ports': 'list[MoMoRef]', - 'port_group': 'MoMoRef', - 'registered_device': 'MoMoRef', + 'ethernet_ports': 'list[EtherPhysicalPortRef]', + 'port_group': 'PortGroupRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'transport': 'str' } @@ -59,6 +60,7 @@ class PortSubGroup(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -68,7 +70,7 @@ class PortSubGroup(object): 'transport': 'Transport' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, ethernet_ports=None, port_group=None, registered_device=None, transport=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, ethernet_ports=None, port_group=None, registered_device=None, transport=None): """ PortSubGroup - a model defined in Swagger """ @@ -82,6 +84,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -108,6 +111,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -153,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this PortSubGroup. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this PortSubGroup. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this PortSubGroup. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this PortSubGroup. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -311,7 +316,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this PortSubGroup. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this PortSubGroup. :rtype: list[MoTag] @@ -322,7 +327,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this PortSubGroup. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this PortSubGroup. :type: list[MoTag] @@ -330,6 +335,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this PortSubGroup. + The versioning info for this managed object + + :return: The version_context of this PortSubGroup. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this PortSubGroup. + The versioning info for this managed object + + :param version_context: The version_context of this PortSubGroup. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -399,7 +427,7 @@ def ethernet_ports(self): Gets the ethernet_ports of this PortSubGroup. :return: The ethernet_ports of this PortSubGroup. - :rtype: list[MoMoRef] + :rtype: list[EtherPhysicalPortRef] """ return self._ethernet_ports @@ -409,7 +437,7 @@ def ethernet_ports(self, ethernet_ports): Sets the ethernet_ports of this PortSubGroup. :param ethernet_ports: The ethernet_ports of this PortSubGroup. - :type: list[MoMoRef] + :type: list[EtherPhysicalPortRef] """ self._ethernet_ports = ethernet_ports @@ -420,7 +448,7 @@ def port_group(self): Gets the port_group of this PortSubGroup. :return: The port_group of this PortSubGroup. - :rtype: MoMoRef + :rtype: PortGroupRef """ return self._port_group @@ -430,7 +458,7 @@ def port_group(self, port_group): Sets the port_group of this PortSubGroup. :param port_group: The port_group of this PortSubGroup. - :type: MoMoRef + :type: PortGroupRef """ self._port_group = port_group @@ -441,7 +469,7 @@ def registered_device(self): Gets the registered_device of this PortSubGroup. :return: The registered_device of this PortSubGroup. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -451,7 +479,7 @@ def registered_device(self, registered_device): Sets the registered_device of this PortSubGroup. :param registered_device: The registered_device of this PortSubGroup. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/port_sub_group_list.py b/intersight/models/port_sub_group_list.py index 1dc4e612..4067ebf2 100644 --- a/intersight/models/port_sub_group_list.py +++ b/intersight/models/port_sub_group_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/port_sub_group_ref.py b/intersight/models/port_sub_group_ref.py new file mode 100644 index 00000000..5a882545 --- /dev/null +++ b/intersight/models/port_sub_group_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class PortSubGroupRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + PortSubGroupRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this PortSubGroupRef. + + :return: The moid of this PortSubGroupRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this PortSubGroupRef. + + :param moid: The moid of this PortSubGroupRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this PortSubGroupRef. + + :return: The object_type of this PortSubGroupRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this PortSubGroupRef. + + :param object_type: The object_type of this PortSubGroupRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, PortSubGroupRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/processor_unit.py b/intersight/models/processor_unit.py index 8f3f9b31..16170386 100644 --- a/intersight/models/processor_unit.py +++ b/intersight/models/processor_unit.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class ProcessorUnit(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -48,7 +49,7 @@ class ProcessorUnit(object): 'serial': 'str', 'vendor': 'str', 'architecture': 'str', - 'compute_board': 'MoMoRef', + 'compute_board': 'ComputeBoardRef', 'num_cores': 'int', 'num_cores_enabled': 'str', 'num_threads': 'str', @@ -57,7 +58,7 @@ class ProcessorUnit(object): 'operability': 'str', 'presence': 'str', 'processor_id': 'int', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'socket_designation': 'str', 'speed': 'float', 'stepping': 'str', @@ -74,6 +75,7 @@ class ProcessorUnit(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -98,7 +100,7 @@ class ProcessorUnit(object): 'thermal': 'Thermal' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, architecture=None, compute_board=None, num_cores=None, num_cores_enabled=None, num_threads=None, oper_power_state=None, oper_state=None, operability=None, presence=None, processor_id=None, registered_device=None, socket_designation=None, speed=None, stepping=None, thermal=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, architecture=None, compute_board=None, num_cores=None, num_cores_enabled=None, num_threads=None, oper_power_state=None, oper_state=None, operability=None, presence=None, processor_id=None, registered_device=None, socket_designation=None, speed=None, stepping=None, thermal=None): """ ProcessorUnit - a model defined in Swagger """ @@ -112,6 +114,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -153,6 +156,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -228,7 +233,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ProcessorUnit. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -239,7 +244,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ProcessorUnit. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -366,7 +371,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ProcessorUnit. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -377,7 +382,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ProcessorUnit. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -386,7 +391,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this ProcessorUnit. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this ProcessorUnit. :rtype: list[MoTag] @@ -397,7 +402,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this ProcessorUnit. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this ProcessorUnit. :type: list[MoTag] @@ -405,6 +410,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this ProcessorUnit. + The versioning info for this managed object + + :return: The version_context of this ProcessorUnit. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this ProcessorUnit. + The versioning info for this managed object + + :param version_context: The version_context of this ProcessorUnit. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -579,7 +607,7 @@ def compute_board(self): Gets the compute_board of this ProcessorUnit. :return: The compute_board of this ProcessorUnit. - :rtype: MoMoRef + :rtype: ComputeBoardRef """ return self._compute_board @@ -589,7 +617,7 @@ def compute_board(self, compute_board): Sets the compute_board of this ProcessorUnit. :param compute_board: The compute_board of this ProcessorUnit. - :type: MoMoRef + :type: ComputeBoardRef """ self._compute_board = compute_board @@ -768,7 +796,7 @@ def registered_device(self): Gets the registered_device of this ProcessorUnit. :return: The registered_device of this ProcessorUnit. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -778,7 +806,7 @@ def registered_device(self, registered_device): Sets the registered_device of this ProcessorUnit. :param registered_device: The registered_device of this ProcessorUnit. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/processor_unit_list.py b/intersight/models/processor_unit_list.py index ee4e9a0f..dab4762b 100644 --- a/intersight/models/processor_unit_list.py +++ b/intersight/models/processor_unit_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/processor_unit_ref.py b/intersight/models/processor_unit_ref.py new file mode 100644 index 00000000..04a27408 --- /dev/null +++ b/intersight/models/processor_unit_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ProcessorUnitRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ProcessorUnitRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ProcessorUnitRef. + + :return: The moid of this ProcessorUnitRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ProcessorUnitRef. + + :param moid: The moid of this ProcessorUnitRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ProcessorUnitRef. + + :return: The object_type of this ProcessorUnitRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ProcessorUnitRef. + + :param object_type: The object_type of this ProcessorUnitRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ProcessorUnitRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_execution_status_task_ref.py b/intersight/models/qatask_execution_status_task_ref.py new file mode 100644 index 00000000..93cb371e --- /dev/null +++ b/intersight/models/qatask_execution_status_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskExecutionStatusTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskExecutionStatusTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskExecutionStatusTaskRef. + + :return: The moid of this QataskExecutionStatusTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskExecutionStatusTaskRef. + + :param moid: The moid of this QataskExecutionStatusTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskExecutionStatusTaskRef. + + :return: The object_type of this QataskExecutionStatusTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskExecutionStatusTaskRef. + + :param object_type: The object_type of this QataskExecutionStatusTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskExecutionStatusTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_expobackoff_retry_ref.py b/intersight/models/qatask_expobackoff_retry_ref.py new file mode 100644 index 00000000..6ca82764 --- /dev/null +++ b/intersight/models/qatask_expobackoff_retry_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskExpobackoffRetryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskExpobackoffRetryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskExpobackoffRetryRef. + + :return: The moid of this QataskExpobackoffRetryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskExpobackoffRetryRef. + + :param moid: The moid of this QataskExpobackoffRetryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskExpobackoffRetryRef. + + :return: The object_type of this QataskExpobackoffRetryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskExpobackoffRetryRef. + + :param object_type: The object_type of this QataskExpobackoffRetryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskExpobackoffRetryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_fail_async_task_ref.py b/intersight/models/qatask_fail_async_task_ref.py new file mode 100644 index 00000000..be33c9d0 --- /dev/null +++ b/intersight/models/qatask_fail_async_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskFailAsyncTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskFailAsyncTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskFailAsyncTaskRef. + + :return: The moid of this QataskFailAsyncTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskFailAsyncTaskRef. + + :param moid: The moid of this QataskFailAsyncTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskFailAsyncTaskRef. + + :return: The object_type of this QataskFailAsyncTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskFailAsyncTaskRef. + + :param object_type: The object_type of this QataskFailAsyncTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskFailAsyncTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_failed_no_retry_ref.py b/intersight/models/qatask_failed_no_retry_ref.py new file mode 100644 index 00000000..a3a387ca --- /dev/null +++ b/intersight/models/qatask_failed_no_retry_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskFailedNoRetryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskFailedNoRetryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskFailedNoRetryRef. + + :return: The moid of this QataskFailedNoRetryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskFailedNoRetryRef. + + :param moid: The moid of this QataskFailedNoRetryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskFailedNoRetryRef. + + :return: The object_type of this QataskFailedNoRetryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskFailedNoRetryRef. + + :param object_type: The object_type of this QataskFailedNoRetryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskFailedNoRetryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_huu_firmware_upgrade_ref.py b/intersight/models/qatask_huu_firmware_upgrade_ref.py new file mode 100644 index 00000000..f00177be --- /dev/null +++ b/intersight/models/qatask_huu_firmware_upgrade_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskHuuFirmwareUpgradeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskHuuFirmwareUpgradeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskHuuFirmwareUpgradeRef. + + :return: The moid of this QataskHuuFirmwareUpgradeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskHuuFirmwareUpgradeRef. + + :param moid: The moid of this QataskHuuFirmwareUpgradeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskHuuFirmwareUpgradeRef. + + :return: The object_type of this QataskHuuFirmwareUpgradeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskHuuFirmwareUpgradeRef. + + :param object_type: The object_type of this QataskHuuFirmwareUpgradeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskHuuFirmwareUpgradeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_initiate_download_ref.py b/intersight/models/qatask_initiate_download_ref.py new file mode 100644 index 00000000..057c062b --- /dev/null +++ b/intersight/models/qatask_initiate_download_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskInitiateDownloadRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskInitiateDownloadRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskInitiateDownloadRef. + + :return: The moid of this QataskInitiateDownloadRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskInitiateDownloadRef. + + :param moid: The moid of this QataskInitiateDownloadRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskInitiateDownloadRef. + + :return: The object_type of this QataskInitiateDownloadRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskInitiateDownloadRef. + + :param object_type: The object_type of this QataskInitiateDownloadRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskInitiateDownloadRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_retry30timeout60task_ref.py b/intersight/models/qatask_retry30timeout60task_ref.py new file mode 100644 index 00000000..deab6c2b --- /dev/null +++ b/intersight/models/qatask_retry30timeout60task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskRetry30timeout60taskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskRetry30timeout60taskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskRetry30timeout60taskRef. + + :return: The moid of this QataskRetry30timeout60taskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskRetry30timeout60taskRef. + + :param moid: The moid of this QataskRetry30timeout60taskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskRetry30timeout60taskRef. + + :return: The object_type of this QataskRetry30timeout60taskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskRetry30timeout60taskRef. + + :param object_type: The object_type of this QataskRetry30timeout60taskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskRetry30timeout60taskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_retry_fixed_ref.py b/intersight/models/qatask_retry_fixed_ref.py new file mode 100644 index 00000000..98abe6be --- /dev/null +++ b/intersight/models/qatask_retry_fixed_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskRetryFixedRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskRetryFixedRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskRetryFixedRef. + + :return: The moid of this QataskRetryFixedRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskRetryFixedRef. + + :param moid: The moid of this QataskRetryFixedRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskRetryFixedRef. + + :return: The object_type of this QataskRetryFixedRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskRetryFixedRef. + + :param object_type: The object_type of this QataskRetryFixedRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskRetryFixedRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_success_async_task_ref.py b/intersight/models/qatask_success_async_task_ref.py new file mode 100644 index 00000000..35fe3b99 --- /dev/null +++ b/intersight/models/qatask_success_async_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskSuccessAsyncTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskSuccessAsyncTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskSuccessAsyncTaskRef. + + :return: The moid of this QataskSuccessAsyncTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskSuccessAsyncTaskRef. + + :param moid: The moid of this QataskSuccessAsyncTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskSuccessAsyncTaskRef. + + :return: The object_type of this QataskSuccessAsyncTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskSuccessAsyncTaskRef. + + :param object_type: The object_type of this QataskSuccessAsyncTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskSuccessAsyncTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_taskin_scheuled_ref.py b/intersight/models/qatask_taskin_scheuled_ref.py new file mode 100644 index 00000000..641afc01 --- /dev/null +++ b/intersight/models/qatask_taskin_scheuled_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskTaskinScheuledRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskTaskinScheuledRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskTaskinScheuledRef. + + :return: The moid of this QataskTaskinScheuledRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskTaskinScheuledRef. + + :param moid: The moid of this QataskTaskinScheuledRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskTaskinScheuledRef. + + :return: The object_type of this QataskTaskinScheuledRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskTaskinScheuledRef. + + :param object_type: The object_type of this QataskTaskinScheuledRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskTaskinScheuledRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_timeoutwf_exponential_ref.py b/intersight/models/qatask_timeoutwf_exponential_ref.py new file mode 100644 index 00000000..f3e73896 --- /dev/null +++ b/intersight/models/qatask_timeoutwf_exponential_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskTimeoutwfExponentialRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskTimeoutwfExponentialRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskTimeoutwfExponentialRef. + + :return: The moid of this QataskTimeoutwfExponentialRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskTimeoutwfExponentialRef. + + :param moid: The moid of this QataskTimeoutwfExponentialRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskTimeoutwfExponentialRef. + + :return: The object_type of this QataskTimeoutwfExponentialRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskTimeoutwfExponentialRef. + + :param object_type: The object_type of this QataskTimeoutwfExponentialRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskTimeoutwfExponentialRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_timeoutwf_fixed_ref.py b/intersight/models/qatask_timeoutwf_fixed_ref.py new file mode 100644 index 00000000..b2619e4b --- /dev/null +++ b/intersight/models/qatask_timeoutwf_fixed_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskTimeoutwfFixedRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskTimeoutwfFixedRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskTimeoutwfFixedRef. + + :return: The moid of this QataskTimeoutwfFixedRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskTimeoutwfFixedRef. + + :param moid: The moid of this QataskTimeoutwfFixedRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskTimeoutwfFixedRef. + + :return: The object_type of this QataskTimeoutwfFixedRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskTimeoutwfFixedRef. + + :param object_type: The object_type of this QataskTimeoutwfFixedRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskTimeoutwfFixedRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_ucs_task1_ref.py b/intersight/models/qatask_ucs_task1_ref.py new file mode 100644 index 00000000..7df89635 --- /dev/null +++ b/intersight/models/qatask_ucs_task1_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskUcsTask1Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskUcsTask1Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskUcsTask1Ref. + + :return: The moid of this QataskUcsTask1Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskUcsTask1Ref. + + :param moid: The moid of this QataskUcsTask1Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskUcsTask1Ref. + + :return: The object_type of this QataskUcsTask1Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskUcsTask1Ref. + + :param object_type: The object_type of this QataskUcsTask1Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskUcsTask1Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_ucs_task2_ref.py b/intersight/models/qatask_ucs_task2_ref.py new file mode 100644 index 00000000..fcce019f --- /dev/null +++ b/intersight/models/qatask_ucs_task2_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskUcsTask2Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskUcsTask2Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskUcsTask2Ref. + + :return: The moid of this QataskUcsTask2Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskUcsTask2Ref. + + :param moid: The moid of this QataskUcsTask2Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskUcsTask2Ref. + + :return: The object_type of this QataskUcsTask2Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskUcsTask2Ref. + + :param object_type: The object_type of this QataskUcsTask2Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskUcsTask2Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_ucs_task3_ref.py b/intersight/models/qatask_ucs_task3_ref.py new file mode 100644 index 00000000..ad494627 --- /dev/null +++ b/intersight/models/qatask_ucs_task3_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskUcsTask3Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskUcsTask3Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskUcsTask3Ref. + + :return: The moid of this QataskUcsTask3Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskUcsTask3Ref. + + :param moid: The moid of this QataskUcsTask3Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskUcsTask3Ref. + + :return: The object_type of this QataskUcsTask3Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskUcsTask3Ref. + + :param object_type: The object_type of this QataskUcsTask3Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskUcsTask3Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_ucs_task4_ref.py b/intersight/models/qatask_ucs_task4_ref.py new file mode 100644 index 00000000..51c60bfa --- /dev/null +++ b/intersight/models/qatask_ucs_task4_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskUcsTask4Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskUcsTask4Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskUcsTask4Ref. + + :return: The moid of this QataskUcsTask4Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskUcsTask4Ref. + + :param moid: The moid of this QataskUcsTask4Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskUcsTask4Ref. + + :return: The object_type of this QataskUcsTask4Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskUcsTask4Ref. + + :param object_type: The object_type of this QataskUcsTask4Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskUcsTask4Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_ucs_task5_ref.py b/intersight/models/qatask_ucs_task5_ref.py new file mode 100644 index 00000000..e6c5b3fe --- /dev/null +++ b/intersight/models/qatask_ucs_task5_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskUcsTask5Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskUcsTask5Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskUcsTask5Ref. + + :return: The moid of this QataskUcsTask5Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskUcsTask5Ref. + + :param moid: The moid of this QataskUcsTask5Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskUcsTask5Ref. + + :return: The object_type of this QataskUcsTask5Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskUcsTask5Ref. + + :param object_type: The object_type of this QataskUcsTask5Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskUcsTask5Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_ucs_task6_ref.py b/intersight/models/qatask_ucs_task6_ref.py new file mode 100644 index 00000000..d6a8e598 --- /dev/null +++ b/intersight/models/qatask_ucs_task6_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskUcsTask6Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskUcsTask6Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskUcsTask6Ref. + + :return: The moid of this QataskUcsTask6Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskUcsTask6Ref. + + :param moid: The moid of this QataskUcsTask6Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskUcsTask6Ref. + + :return: The object_type of this QataskUcsTask6Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskUcsTask6Ref. + + :param object_type: The object_type of this QataskUcsTask6Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskUcsTask6Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_ucs_task7_ref.py b/intersight/models/qatask_ucs_task7_ref.py new file mode 100644 index 00000000..ad883369 --- /dev/null +++ b/intersight/models/qatask_ucs_task7_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskUcsTask7Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskUcsTask7Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskUcsTask7Ref. + + :return: The moid of this QataskUcsTask7Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskUcsTask7Ref. + + :param moid: The moid of this QataskUcsTask7Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskUcsTask7Ref. + + :return: The object_type of this QataskUcsTask7Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskUcsTask7Ref. + + :param object_type: The object_type of this QataskUcsTask7Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskUcsTask7Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_ucs_task8_ref.py b/intersight/models/qatask_ucs_task8_ref.py new file mode 100644 index 00000000..00736b74 --- /dev/null +++ b/intersight/models/qatask_ucs_task8_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskUcsTask8Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskUcsTask8Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskUcsTask8Ref. + + :return: The moid of this QataskUcsTask8Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskUcsTask8Ref. + + :param moid: The moid of this QataskUcsTask8Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskUcsTask8Ref. + + :return: The object_type of this QataskUcsTask8Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskUcsTask8Ref. + + :param object_type: The object_type of this QataskUcsTask8Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskUcsTask8Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_ucs_task9_ref.py b/intersight/models/qatask_ucs_task9_ref.py new file mode 100644 index 00000000..2edf5654 --- /dev/null +++ b/intersight/models/qatask_ucs_task9_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskUcsTask9Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskUcsTask9Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskUcsTask9Ref. + + :return: The moid of this QataskUcsTask9Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskUcsTask9Ref. + + :param moid: The moid of this QataskUcsTask9Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskUcsTask9Ref. + + :return: The object_type of this QataskUcsTask9Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskUcsTask9Ref. + + :param object_type: The object_type of this QataskUcsTask9Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskUcsTask9Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_wait_for_download_ref.py b/intersight/models/qatask_wait_for_download_ref.py new file mode 100644 index 00000000..ce722687 --- /dev/null +++ b/intersight/models/qatask_wait_for_download_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskWaitForDownloadRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskWaitForDownloadRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskWaitForDownloadRef. + + :return: The moid of this QataskWaitForDownloadRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskWaitForDownloadRef. + + :param moid: The moid of this QataskWaitForDownloadRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskWaitForDownloadRef. + + :return: The object_type of this QataskWaitForDownloadRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskWaitForDownloadRef. + + :param object_type: The object_type of this QataskWaitForDownloadRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskWaitForDownloadRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/qatask_wait_for_firmware_upgrade_ref.py b/intersight/models/qatask_wait_for_firmware_upgrade_ref.py new file mode 100644 index 00000000..01d6111b --- /dev/null +++ b/intersight/models/qatask_wait_for_firmware_upgrade_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class QataskWaitForFirmwareUpgradeRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + QataskWaitForFirmwareUpgradeRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this QataskWaitForFirmwareUpgradeRef. + + :return: The moid of this QataskWaitForFirmwareUpgradeRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this QataskWaitForFirmwareUpgradeRef. + + :param moid: The moid of this QataskWaitForFirmwareUpgradeRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this QataskWaitForFirmwareUpgradeRef. + + :return: The object_type of this QataskWaitForFirmwareUpgradeRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this QataskWaitForFirmwareUpgradeRef. + + :param object_type: The object_type of this QataskWaitForFirmwareUpgradeRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, QataskWaitForFirmwareUpgradeRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/resource_group.py b/intersight/models/resource_group.py new file mode 100644 index 00000000..457be0ea --- /dev/null +++ b/intersight/models/resource_group.py @@ -0,0 +1,489 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ResourceGroup(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'name': 'str', + 'organization': 'IamAccountRef', + 'resources': 'list[MoBaseMoRef]', + 'selectors': 'list[str]' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'name': 'Name', + 'organization': 'Organization', + 'resources': 'Resources', + 'selectors': 'Selectors' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, name=None, organization=None, resources=None, selectors=None): + """ + ResourceGroup - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._name = None + self._organization = None + self._resources = None + self._selectors = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if name is not None: + self.name = name + if organization is not None: + self.organization = organization + if resources is not None: + self.resources = resources + if selectors is not None: + self.selectors = selectors + + @property + def account_moid(self): + """ + Gets the account_moid of this ResourceGroup. + The Account ID for this managed object. + + :return: The account_moid of this ResourceGroup. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this ResourceGroup. + The Account ID for this managed object. + + :param account_moid: The account_moid of this ResourceGroup. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this ResourceGroup. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this ResourceGroup. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this ResourceGroup. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this ResourceGroup. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this ResourceGroup. + The time when this managed object was created. + + :return: The create_time of this ResourceGroup. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this ResourceGroup. + The time when this managed object was created. + + :param create_time: The create_time of this ResourceGroup. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this ResourceGroup. + The time when this managed object was last modified. + + :return: The mod_time of this ResourceGroup. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this ResourceGroup. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this ResourceGroup. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this ResourceGroup. + A unique identifier of this Managed Object instance. + + :return: The moid of this ResourceGroup. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ResourceGroup. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this ResourceGroup. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ResourceGroup. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this ResourceGroup. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ResourceGroup. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this ResourceGroup. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this ResourceGroup. + An array of owners which represent effective ownership of this object. + + :return: The owners of this ResourceGroup. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this ResourceGroup. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this ResourceGroup. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this ResourceGroup. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this ResourceGroup. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this ResourceGroup. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this ResourceGroup. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this ResourceGroup. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this ResourceGroup. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this ResourceGroup. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this ResourceGroup. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this ResourceGroup. + The versioning info for this managed object + + :return: The version_context of this ResourceGroup. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this ResourceGroup. + The versioning info for this managed object + + :param version_context: The version_context of this ResourceGroup. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def name(self): + """ + Gets the name of this ResourceGroup. + The name of this resource group + + :return: The name of this ResourceGroup. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this ResourceGroup. + The name of this resource group + + :param name: The name of this ResourceGroup. + :type: str + """ + + self._name = name + + @property + def organization(self): + """ + Gets the organization of this ResourceGroup. + Organization + + :return: The organization of this ResourceGroup. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this ResourceGroup. + Organization + + :param organization: The organization of this ResourceGroup. + :type: IamAccountRef + """ + + self._organization = organization + + @property + def resources(self): + """ + Gets the resources of this ResourceGroup. + The list of all resources contained in this resource group. + + :return: The resources of this ResourceGroup. + :rtype: list[MoBaseMoRef] + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this ResourceGroup. + The list of all resources contained in this resource group. + + :param resources: The resources of this ResourceGroup. + :type: list[MoBaseMoRef] + """ + + self._resources = resources + + @property + def selectors(self): + """ + Gets the selectors of this ResourceGroup. + A list of ODATA filters to select resources. The group selectors may be include URLs of individual resources, or OData query with filters that match multiple queries. The URLs must be relative (i.e. do not include the host) and start with \"/api/v1/\" + + :return: The selectors of this ResourceGroup. + :rtype: list[str] + """ + return self._selectors + + @selectors.setter + def selectors(self, selectors): + """ + Sets the selectors of this ResourceGroup. + A list of ODATA filters to select resources. The group selectors may be include URLs of individual resources, or OData query with filters that match multiple queries. The URLs must be relative (i.e. do not include the host) and start with \"/api/v1/\" + + :param selectors: The selectors of this ResourceGroup. + :type: list[str] + """ + + self._selectors = selectors + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ResourceGroup): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/resource_group_list.py b/intersight/models/resource_group_list.py new file mode 100644 index 00000000..89a77e7f --- /dev/null +++ b/intersight/models/resource_group_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ResourceGroupList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[ResourceGroup]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + ResourceGroupList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this ResourceGroupList. + The number of resourceGroups matching your request in total for all pages. + + :return: The count of this ResourceGroupList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this ResourceGroupList. + The number of resourceGroups matching your request in total for all pages. + + :param count: The count of this ResourceGroupList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this ResourceGroupList. + The array of resourceGroups matching your request. + + :return: The results of this ResourceGroupList. + :rtype: list[ResourceGroup] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this ResourceGroupList. + The array of resourceGroups matching your request. + + :param results: The results of this ResourceGroupList. + :type: list[ResourceGroup] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ResourceGroupList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/resource_group_ref.py b/intersight/models/resource_group_ref.py new file mode 100644 index 00000000..5cd50b5b --- /dev/null +++ b/intersight/models/resource_group_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ResourceGroupRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ResourceGroupRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ResourceGroupRef. + + :return: The moid of this ResourceGroupRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ResourceGroupRef. + + :param moid: The moid of this ResourceGroupRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ResourceGroupRef. + + :return: The object_type of this ResourceGroupRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ResourceGroupRef. + + :param object_type: The object_type of this ResourceGroupRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ResourceGroupRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/sdcard_deploy_task_ref.py b/intersight/models/sdcard_deploy_task_ref.py new file mode 100644 index 00000000..47594bdd --- /dev/null +++ b/intersight/models/sdcard_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SdcardDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SdcardDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SdcardDeployTaskRef. + + :return: The moid of this SdcardDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SdcardDeployTaskRef. + + :param moid: The moid of this SdcardDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SdcardDeployTaskRef. + + :return: The object_type of this SdcardDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SdcardDeployTaskRef. + + :param object_type: The object_type of this SdcardDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SdcardDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/sdcard_diagnostics_ref.py b/intersight/models/sdcard_diagnostics_ref.py new file mode 100644 index 00000000..70d79ab7 --- /dev/null +++ b/intersight/models/sdcard_diagnostics_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SdcardDiagnosticsRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SdcardDiagnosticsRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SdcardDiagnosticsRef. + + :return: The moid of this SdcardDiagnosticsRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SdcardDiagnosticsRef. + + :param moid: The moid of this SdcardDiagnosticsRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SdcardDiagnosticsRef. + + :return: The object_type of this SdcardDiagnosticsRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SdcardDiagnosticsRef. + + :param object_type: The object_type of this SdcardDiagnosticsRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SdcardDiagnosticsRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/sdcard_drivers_ref.py b/intersight/models/sdcard_drivers_ref.py new file mode 100644 index 00000000..8f844ec0 --- /dev/null +++ b/intersight/models/sdcard_drivers_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SdcardDriversRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SdcardDriversRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SdcardDriversRef. + + :return: The moid of this SdcardDriversRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SdcardDriversRef. + + :param moid: The moid of this SdcardDriversRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SdcardDriversRef. + + :return: The object_type of this SdcardDriversRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SdcardDriversRef. + + :param object_type: The object_type of this SdcardDriversRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SdcardDriversRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/sdcard_host_upgrade_utility_ref.py b/intersight/models/sdcard_host_upgrade_utility_ref.py new file mode 100644 index 00000000..c11c6c14 --- /dev/null +++ b/intersight/models/sdcard_host_upgrade_utility_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SdcardHostUpgradeUtilityRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SdcardHostUpgradeUtilityRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SdcardHostUpgradeUtilityRef. + + :return: The moid of this SdcardHostUpgradeUtilityRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SdcardHostUpgradeUtilityRef. + + :param moid: The moid of this SdcardHostUpgradeUtilityRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SdcardHostUpgradeUtilityRef. + + :return: The object_type of this SdcardHostUpgradeUtilityRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SdcardHostUpgradeUtilityRef. + + :param object_type: The object_type of this SdcardHostUpgradeUtilityRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SdcardHostUpgradeUtilityRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/sdcard_operating_system_ref.py b/intersight/models/sdcard_operating_system_ref.py new file mode 100644 index 00000000..8f9a5e0e --- /dev/null +++ b/intersight/models/sdcard_operating_system_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SdcardOperatingSystemRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SdcardOperatingSystemRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SdcardOperatingSystemRef. + + :return: The moid of this SdcardOperatingSystemRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SdcardOperatingSystemRef. + + :param moid: The moid of this SdcardOperatingSystemRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SdcardOperatingSystemRef. + + :return: The object_type of this SdcardOperatingSystemRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SdcardOperatingSystemRef. + + :param object_type: The object_type of this SdcardOperatingSystemRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SdcardOperatingSystemRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/boot_local_cdd.py b/intersight/models/sdcard_partition.py similarity index 54% rename from intersight/models/boot_local_cdd.py rename to intersight/models/sdcard_partition.py index 41081d0d..44433976 100644 --- a/intersight/models/boot_local_cdd.py +++ b/intersight/models/sdcard_partition.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class BootLocalCdd(object): +class SdcardPartition(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,73 +31,79 @@ class BootLocalCdd(object): and the value is json key in definition. """ swagger_types = { - 'enabled': 'bool', - 'name': 'str' + 'type': 'str', + 'virtual_drives': 'list[SdcardVirtualDrive]' } attribute_map = { - 'enabled': 'Enabled', - 'name': 'Name' + 'type': 'Type', + 'virtual_drives': 'VirtualDrives' } - def __init__(self, enabled=None, name=None): + def __init__(self, type='OS', virtual_drives=None): """ - BootLocalCdd - a model defined in Swagger + SdcardPartition - a model defined in Swagger """ - self._enabled = None - self._name = None + self._type = None + self._virtual_drives = None - if enabled is not None: - self.enabled = enabled - if name is not None: - self.name = name + if type is not None: + self.type = type + if virtual_drives is not None: + self.virtual_drives = virtual_drives @property - def enabled(self): + def type(self): """ - Gets the enabled of this BootLocalCdd. - Specifies if the boot device is enabled or disabled. + Gets the type of this SdcardPartition. + Type of the partition - :return: The enabled of this BootLocalCdd. - :rtype: bool + :return: The type of this SdcardPartition. + :rtype: str """ - return self._enabled + return self._type - @enabled.setter - def enabled(self, enabled): + @type.setter + def type(self, type): """ - Sets the enabled of this BootLocalCdd. - Specifies if the boot device is enabled or disabled. + Sets the type of this SdcardPartition. + Type of the partition - :param enabled: The enabled of this BootLocalCdd. - :type: bool + :param type: The type of this SdcardPartition. + :type: str """ + allowed_values = ["OS", "Utility"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" + .format(type, allowed_values) + ) - self._enabled = enabled + self._type = type @property - def name(self): + def virtual_drives(self): """ - Gets the name of this BootLocalCdd. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. + Gets the virtual_drives of this SdcardPartition. + Collection of available virtual drives - :return: The name of this BootLocalCdd. - :rtype: str + :return: The virtual_drives of this SdcardPartition. + :rtype: list[SdcardVirtualDrive] """ - return self._name + return self._virtual_drives - @name.setter - def name(self, name): + @virtual_drives.setter + def virtual_drives(self, virtual_drives): """ - Sets the name of this BootLocalCdd. - Specifies the name of the boot device. It should start and end with an alphanumeric character. It can have underscores and hyphens. It cannot be more than 30 characters. + Sets the virtual_drives of this SdcardPartition. + Collection of available virtual drives - :param name: The name of this BootLocalCdd. - :type: str + :param virtual_drives: The virtual_drives of this SdcardPartition. + :type: list[SdcardVirtualDrive] """ - self._name = name + self._virtual_drives = virtual_drives def to_dict(self): """ @@ -141,7 +147,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, BootLocalCdd): + if not isinstance(other, SdcardPartition): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/sdcard_partition_ref.py b/intersight/models/sdcard_partition_ref.py new file mode 100644 index 00000000..c4117859 --- /dev/null +++ b/intersight/models/sdcard_partition_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SdcardPartitionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SdcardPartitionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SdcardPartitionRef. + + :return: The moid of this SdcardPartitionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SdcardPartitionRef. + + :param moid: The moid of this SdcardPartitionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SdcardPartitionRef. + + :return: The object_type of this SdcardPartitionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SdcardPartitionRef. + + :param object_type: The object_type of this SdcardPartitionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SdcardPartitionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/sdcard_policy.py b/intersight/models/sdcard_policy.py new file mode 100644 index 00000000..e8c4ee76 --- /dev/null +++ b/intersight/models/sdcard_policy.py @@ -0,0 +1,517 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SdcardPolicy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'description': 'str', + 'name': 'str', + 'organization': 'IamAccountRef', + 'partitions': 'list[SdcardPartition]', + 'profiles': 'list[PolicyAbstractConfigProfileRef]' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'description': 'Description', + 'name': 'Name', + 'organization': 'Organization', + 'partitions': 'Partitions', + 'profiles': 'Profiles' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, organization=None, partitions=None, profiles=None): + """ + SdcardPolicy - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._description = None + self._name = None + self._organization = None + self._partitions = None + self._profiles = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if description is not None: + self.description = description + if name is not None: + self.name = name + if organization is not None: + self.organization = organization + if partitions is not None: + self.partitions = partitions + if profiles is not None: + self.profiles = profiles + + @property + def account_moid(self): + """ + Gets the account_moid of this SdcardPolicy. + The Account ID for this managed object. + + :return: The account_moid of this SdcardPolicy. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this SdcardPolicy. + The Account ID for this managed object. + + :param account_moid: The account_moid of this SdcardPolicy. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this SdcardPolicy. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this SdcardPolicy. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this SdcardPolicy. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this SdcardPolicy. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this SdcardPolicy. + The time when this managed object was created. + + :return: The create_time of this SdcardPolicy. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this SdcardPolicy. + The time when this managed object was created. + + :param create_time: The create_time of this SdcardPolicy. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this SdcardPolicy. + The time when this managed object was last modified. + + :return: The mod_time of this SdcardPolicy. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this SdcardPolicy. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this SdcardPolicy. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this SdcardPolicy. + A unique identifier of this Managed Object instance. + + :return: The moid of this SdcardPolicy. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SdcardPolicy. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this SdcardPolicy. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SdcardPolicy. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this SdcardPolicy. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SdcardPolicy. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this SdcardPolicy. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this SdcardPolicy. + An array of owners which represent effective ownership of this object. + + :return: The owners of this SdcardPolicy. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this SdcardPolicy. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this SdcardPolicy. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this SdcardPolicy. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this SdcardPolicy. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this SdcardPolicy. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this SdcardPolicy. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this SdcardPolicy. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this SdcardPolicy. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this SdcardPolicy. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this SdcardPolicy. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this SdcardPolicy. + The versioning info for this managed object + + :return: The version_context of this SdcardPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this SdcardPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this SdcardPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def description(self): + """ + Gets the description of this SdcardPolicy. + Description of the policy. + + :return: The description of this SdcardPolicy. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this SdcardPolicy. + Description of the policy. + + :param description: The description of this SdcardPolicy. + :type: str + """ + + self._description = description + + @property + def name(self): + """ + Gets the name of this SdcardPolicy. + Name of the policy. + + :return: The name of this SdcardPolicy. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this SdcardPolicy. + Name of the policy. + + :param name: The name of this SdcardPolicy. + :type: str + """ + + self._name = name + + @property + def organization(self): + """ + Gets the organization of this SdcardPolicy. + Organization + + :return: The organization of this SdcardPolicy. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this SdcardPolicy. + Organization + + :param organization: The organization of this SdcardPolicy. + :type: IamAccountRef + """ + + self._organization = organization + + @property + def partitions(self): + """ + Gets the partitions of this SdcardPolicy. + Collection of partition + + :return: The partitions of this SdcardPolicy. + :rtype: list[SdcardPartition] + """ + return self._partitions + + @partitions.setter + def partitions(self, partitions): + """ + Sets the partitions of this SdcardPolicy. + Collection of partition + + :param partitions: The partitions of this SdcardPolicy. + :type: list[SdcardPartition] + """ + + self._partitions = partitions + + @property + def profiles(self): + """ + Gets the profiles of this SdcardPolicy. + Relationship to the profile object + + :return: The profiles of this SdcardPolicy. + :rtype: list[PolicyAbstractConfigProfileRef] + """ + return self._profiles + + @profiles.setter + def profiles(self, profiles): + """ + Sets the profiles of this SdcardPolicy. + Relationship to the profile object + + :param profiles: The profiles of this SdcardPolicy. + :type: list[PolicyAbstractConfigProfileRef] + """ + + self._profiles = profiles + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SdcardPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/sdcard_policy_list.py b/intersight/models/sdcard_policy_list.py new file mode 100644 index 00000000..d11d357d --- /dev/null +++ b/intersight/models/sdcard_policy_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SdcardPolicyList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[SdcardPolicy]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + SdcardPolicyList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this SdcardPolicyList. + The number of sdcardPolicies matching your request in total for all pages. + + :return: The count of this SdcardPolicyList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this SdcardPolicyList. + The number of sdcardPolicies matching your request in total for all pages. + + :param count: The count of this SdcardPolicyList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this SdcardPolicyList. + The array of sdcardPolicies matching your request. + + :return: The results of this SdcardPolicyList. + :rtype: list[SdcardPolicy] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this SdcardPolicyList. + The array of sdcardPolicies matching your request. + + :param results: The results of this SdcardPolicyList. + :type: list[SdcardPolicy] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SdcardPolicyList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/sdcard_policy_ref.py b/intersight/models/sdcard_policy_ref.py new file mode 100644 index 00000000..4fdda674 --- /dev/null +++ b/intersight/models/sdcard_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SdcardPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SdcardPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SdcardPolicyRef. + + :return: The moid of this SdcardPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SdcardPolicyRef. + + :param moid: The moid of this SdcardPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SdcardPolicyRef. + + :return: The object_type of this SdcardPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SdcardPolicyRef. + + :param object_type: The object_type of this SdcardPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SdcardPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/sdcard_server_configuration_utility_ref.py b/intersight/models/sdcard_server_configuration_utility_ref.py new file mode 100644 index 00000000..9ffd3f0a --- /dev/null +++ b/intersight/models/sdcard_server_configuration_utility_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SdcardServerConfigurationUtilityRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SdcardServerConfigurationUtilityRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SdcardServerConfigurationUtilityRef. + + :return: The moid of this SdcardServerConfigurationUtilityRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SdcardServerConfigurationUtilityRef. + + :param moid: The moid of this SdcardServerConfigurationUtilityRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SdcardServerConfigurationUtilityRef. + + :return: The object_type of this SdcardServerConfigurationUtilityRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SdcardServerConfigurationUtilityRef. + + :param object_type: The object_type of this SdcardServerConfigurationUtilityRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SdcardServerConfigurationUtilityRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/sdcard_user_partition_ref.py b/intersight/models/sdcard_user_partition_ref.py new file mode 100644 index 00000000..735777cb --- /dev/null +++ b/intersight/models/sdcard_user_partition_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SdcardUserPartitionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SdcardUserPartitionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SdcardUserPartitionRef. + + :return: The moid of this SdcardUserPartitionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SdcardUserPartitionRef. + + :param moid: The moid of this SdcardUserPartitionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SdcardUserPartitionRef. + + :return: The object_type of this SdcardUserPartitionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SdcardUserPartitionRef. + + :param object_type: The object_type of this SdcardUserPartitionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SdcardUserPartitionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/sdcard_validation_task_ref.py b/intersight/models/sdcard_validation_task_ref.py new file mode 100644 index 00000000..9b1c143d --- /dev/null +++ b/intersight/models/sdcard_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SdcardValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SdcardValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SdcardValidationTaskRef. + + :return: The moid of this SdcardValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SdcardValidationTaskRef. + + :param moid: The moid of this SdcardValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SdcardValidationTaskRef. + + :return: The object_type of this SdcardValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SdcardValidationTaskRef. + + :param object_type: The object_type of this SdcardValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SdcardValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/policy_attachable_service_object.py b/intersight/models/sdcard_virtual_drive.py similarity index 69% rename from intersight/models/policy_attachable_service_object.py rename to intersight/models/sdcard_virtual_drive.py index 8240155a..34e507bb 100644 --- a/intersight/models/policy_attachable_service_object.py +++ b/intersight/models/sdcard_virtual_drive.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class PolicyAttachableServiceObject(object): +class SdcardVirtualDrive(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,45 +31,45 @@ class PolicyAttachableServiceObject(object): and the value is json key in definition. """ swagger_types = { - 'name': 'str' + 'enable': 'bool' } attribute_map = { - 'name': 'Name' + 'enable': 'Enable' } - def __init__(self, name=None): + def __init__(self, enable=None): """ - PolicyAttachableServiceObject - a model defined in Swagger + SdcardVirtualDrive - a model defined in Swagger """ - self._name = None + self._enable = None - if name is not None: - self.name = name + if enable is not None: + self.enable = enable @property - def name(self): + def enable(self): """ - Gets the name of this PolicyAttachableServiceObject. - Name of foreign Mo that Policy can attach to + Gets the enable of this SdcardVirtualDrive. + Enable Virtual Drive - :return: The name of this PolicyAttachableServiceObject. - :rtype: str + :return: The enable of this SdcardVirtualDrive. + :rtype: bool """ - return self._name + return self._enable - @name.setter - def name(self, name): + @enable.setter + def enable(self, enable): """ - Sets the name of this PolicyAttachableServiceObject. - Name of foreign Mo that Policy can attach to + Sets the enable of this SdcardVirtualDrive. + Enable Virtual Drive - :param name: The name of this PolicyAttachableServiceObject. - :type: str + :param enable: The enable of this SdcardVirtualDrive. + :type: bool """ - self._name = name + self._enable = enable def to_dict(self): """ @@ -113,7 +113,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, PolicyAttachableServiceObject): + if not isinstance(other, SdcardVirtualDrive): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/sdcard_virtual_drive_ref.py b/intersight/models/sdcard_virtual_drive_ref.py new file mode 100644 index 00000000..1a840a25 --- /dev/null +++ b/intersight/models/sdcard_virtual_drive_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SdcardVirtualDriveRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SdcardVirtualDriveRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SdcardVirtualDriveRef. + + :return: The moid of this SdcardVirtualDriveRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SdcardVirtualDriveRef. + + :param moid: The moid of this SdcardVirtualDriveRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SdcardVirtualDriveRef. + + :return: The object_type of this SdcardVirtualDriveRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SdcardVirtualDriveRef. + + :param object_type: The object_type of this SdcardVirtualDriveRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SdcardVirtualDriveRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/search_search_item.py b/intersight/models/search_search_item.py index 6fe5f2db..0d575d60 100644 --- a/intersight/models/search_search_item.py +++ b/intersight/models/search_search_item.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class SearchSearchItem(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', - 'tags': 'list[MoTag]' + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext' } attribute_map = { @@ -51,10 +52,11 @@ class SearchSearchItem(object): 'object_type': 'ObjectType', 'owners': 'Owners', 'parent': 'Parent', - 'tags': 'Tags' + 'tags': 'Tags', + 'version_context': 'VersionContext' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None): """ SearchSearchItem - a model defined in Swagger """ @@ -68,6 +70,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None if account_moid is not None: self.account_moid = account_moid @@ -87,6 +90,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context @property def account_moid(self): @@ -118,7 +123,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this SearchSearchItem. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -129,7 +134,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this SearchSearchItem. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -256,7 +261,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this SearchSearchItem. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -267,7 +272,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this SearchSearchItem. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -276,7 +281,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this SearchSearchItem. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this SearchSearchItem. :rtype: list[MoTag] @@ -287,7 +292,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this SearchSearchItem. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this SearchSearchItem. :type: list[MoTag] @@ -295,6 +300,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this SearchSearchItem. + The versioning info for this managed object + + :return: The version_context of this SearchSearchItem. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this SearchSearchItem. + The versioning info for this managed object + + :param version_context: The version_context of this SearchSearchItem. + :type: MoVersionContext + """ + + self._version_context = version_context + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/search_search_item_list.py b/intersight/models/search_search_item_list.py index 34752162..52b53e96 100644 --- a/intersight/models/search_search_item_list.py +++ b/intersight/models/search_search_item_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/search_search_item_ref.py b/intersight/models/search_search_item_ref.py new file mode 100644 index 00000000..5e34a05b --- /dev/null +++ b/intersight/models/search_search_item_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SearchSearchItemRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SearchSearchItemRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SearchSearchItemRef. + + :return: The moid of this SearchSearchItemRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SearchSearchItemRef. + + :param moid: The moid of this SearchSearchItemRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SearchSearchItemRef. + + :return: The object_type of this SearchSearchItemRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SearchSearchItemRef. + + :param object_type: The object_type of this SearchSearchItemRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SearchSearchItemRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/search_suggest_item.py b/intersight/models/search_suggest_item.py index e34341c2..d9a709bd 100644 --- a/intersight/models/search_suggest_item.py +++ b/intersight/models/search_suggest_item.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class SearchSuggestItem(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'complete_mo': 'bool', 'rawquery': 'str', 'skip': 'int', @@ -58,6 +59,7 @@ class SearchSuggestItem(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'complete_mo': 'CompleteMo', 'rawquery': 'Rawquery', 'skip': 'Skip', @@ -66,7 +68,7 @@ class SearchSuggestItem(object): 'type': 'Type' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, complete_mo=None, rawquery=None, skip=None, suggest_term=None, top=None, type=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, complete_mo=None, rawquery=None, skip=None, suggest_term=None, top=None, type=None): """ SearchSuggestItem - a model defined in Swagger """ @@ -80,6 +82,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._complete_mo = None self._rawquery = None self._skip = None @@ -105,6 +108,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if complete_mo is not None: self.complete_mo = complete_mo if rawquery is not None: @@ -148,7 +153,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this SearchSuggestItem. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +164,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this SearchSuggestItem. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +291,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this SearchSuggestItem. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +302,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this SearchSuggestItem. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -306,7 +311,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this SearchSuggestItem. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this SearchSuggestItem. :rtype: list[MoTag] @@ -317,7 +322,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this SearchSuggestItem. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this SearchSuggestItem. :type: list[MoTag] @@ -325,6 +330,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this SearchSuggestItem. + The versioning info for this managed object + + :return: The version_context of this SearchSuggestItem. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this SearchSuggestItem. + The versioning info for this managed object + + :param version_context: The version_context of this SearchSuggestItem. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def complete_mo(self): """ diff --git a/intersight/models/search_suggest_item_ref.py b/intersight/models/search_suggest_item_ref.py new file mode 100644 index 00000000..55ebb98a --- /dev/null +++ b/intersight/models/search_suggest_item_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SearchSuggestItemRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SearchSuggestItemRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SearchSuggestItemRef. + + :return: The moid of this SearchSuggestItemRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SearchSuggestItemRef. + + :param moid: The moid of this SearchSuggestItemRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SearchSuggestItemRef. + + :return: The object_type of this SearchSuggestItemRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SearchSuggestItemRef. + + :param object_type: The object_type of this SearchSuggestItemRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SearchSuggestItemRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/search_tag_item.py b/intersight/models/search_tag_item.py index f719492c..ea2a55c5 100644 --- a/intersight/models/search_tag_item.py +++ b/intersight/models/search_tag_item.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class SearchTagItem(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', - 'tags': 'list[MoTag]' + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext' } attribute_map = { @@ -51,10 +52,11 @@ class SearchTagItem(object): 'object_type': 'ObjectType', 'owners': 'Owners', 'parent': 'Parent', - 'tags': 'Tags' + 'tags': 'Tags', + 'version_context': 'VersionContext' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None): """ SearchTagItem - a model defined in Swagger """ @@ -68,6 +70,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None if account_moid is not None: self.account_moid = account_moid @@ -87,6 +90,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context @property def account_moid(self): @@ -118,7 +123,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this SearchTagItem. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -129,7 +134,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this SearchTagItem. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -256,7 +261,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this SearchTagItem. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -267,7 +272,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this SearchTagItem. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -276,7 +281,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this SearchTagItem. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this SearchTagItem. :rtype: list[MoTag] @@ -287,7 +292,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this SearchTagItem. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this SearchTagItem. :type: list[MoTag] @@ -295,6 +300,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this SearchTagItem. + The versioning info for this managed object + + :return: The version_context of this SearchTagItem. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this SearchTagItem. + The versioning info for this managed object + + :param version_context: The version_context of this SearchTagItem. + :type: MoVersionContext + """ + + self._version_context = version_context + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/search_tag_item_list.py b/intersight/models/search_tag_item_list.py index cb776a0a..053b38be 100644 --- a/intersight/models/search_tag_item_list.py +++ b/intersight/models/search_tag_item_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/search_tag_item_ref.py b/intersight/models/search_tag_item_ref.py new file mode 100644 index 00000000..8156d922 --- /dev/null +++ b/intersight/models/search_tag_item_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SearchTagItemRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SearchTagItemRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SearchTagItemRef. + + :return: The moid of this SearchTagItemRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SearchTagItemRef. + + :param moid: The moid of this SearchTagItemRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SearchTagItemRef. + + :return: The object_type of this SearchTagItemRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SearchTagItemRef. + + :param object_type: The object_type of this SearchTagItemRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SearchTagItemRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/security_unit.py b/intersight/models/security_unit.py index 5e488a35..7038a68a 100644 --- a/intersight/models/security_unit.py +++ b/intersight/models/security_unit.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class SecurityUnit(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -47,14 +48,14 @@ class SecurityUnit(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'compute_board': 'MoMoRef', + 'compute_board': 'ComputeBoardRef', 'oper_state': 'str', 'operability': 'str', 'part_number': 'str', 'pci_slot': 'str', 'power': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'thermal': 'str', 'unit_id': 'int', 'vid': 'str', @@ -71,6 +72,7 @@ class SecurityUnit(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -92,7 +94,7 @@ class SecurityUnit(object): 'voltage': 'Voltage' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_board=None, oper_state=None, operability=None, part_number=None, pci_slot=None, power=None, presence=None, registered_device=None, thermal=None, unit_id=None, vid=None, voltage=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_board=None, oper_state=None, operability=None, part_number=None, pci_slot=None, power=None, presence=None, registered_device=None, thermal=None, unit_id=None, vid=None, voltage=None): """ SecurityUnit - a model defined in Swagger """ @@ -106,6 +108,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -144,6 +147,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -213,7 +218,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this SecurityUnit. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -224,7 +229,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this SecurityUnit. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -351,7 +356,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this SecurityUnit. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -362,7 +367,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this SecurityUnit. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -371,7 +376,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this SecurityUnit. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this SecurityUnit. :rtype: list[MoTag] @@ -382,7 +387,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this SecurityUnit. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this SecurityUnit. :type: list[MoTag] @@ -390,6 +395,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this SecurityUnit. + The versioning info for this managed object + + :return: The version_context of this SecurityUnit. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this SecurityUnit. + The versioning info for this managed object + + :param version_context: The version_context of this SecurityUnit. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -543,7 +571,7 @@ def compute_board(self): Gets the compute_board of this SecurityUnit. :return: The compute_board of this SecurityUnit. - :rtype: MoMoRef + :rtype: ComputeBoardRef """ return self._compute_board @@ -553,7 +581,7 @@ def compute_board(self, compute_board): Sets the compute_board of this SecurityUnit. :param compute_board: The compute_board of this SecurityUnit. - :type: MoMoRef + :type: ComputeBoardRef """ self._compute_board = compute_board @@ -690,7 +718,7 @@ def registered_device(self): Gets the registered_device of this SecurityUnit. :return: The registered_device of this SecurityUnit. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -700,7 +728,7 @@ def registered_device(self, registered_device): Sets the registered_device of this SecurityUnit. :param registered_device: The registered_device of this SecurityUnit. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/security_unit_list.py b/intersight/models/security_unit_list.py index e07ce63d..fe7c6657 100644 --- a/intersight/models/security_unit_list.py +++ b/intersight/models/security_unit_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/security_unit_ref.py b/intersight/models/security_unit_ref.py new file mode 100644 index 00000000..f052f392 --- /dev/null +++ b/intersight/models/security_unit_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SecurityUnitRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SecurityUnitRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SecurityUnitRef. + + :return: The moid of this SecurityUnitRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SecurityUnitRef. + + :param moid: The moid of this SecurityUnitRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SecurityUnitRef. + + :return: The object_type of this SecurityUnitRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SecurityUnitRef. + + :param object_type: The object_type of this SecurityUnitRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SecurityUnitRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/server_config_change.py b/intersight/models/server_config_change.py deleted file mode 100644 index 3cbb0caf..00000000 --- a/intersight/models/server_config_change.py +++ /dev/null @@ -1,151 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class ServerConfigChange(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'config_change_types': 'list[str]', - 'discruption_types': 'list[str]' - } - - attribute_map = { - 'config_change_types': 'ConfigChangeTypes', - 'discruption_types': 'DiscruptionTypes' - } - - def __init__(self, config_change_types=None, discruption_types=None): - """ - ServerConfigChange - a model defined in Swagger - """ - - self._config_change_types = None - self._discruption_types = None - - if config_change_types is not None: - self.config_change_types = config_change_types - if discruption_types is not None: - self.discruption_types = discruption_types - - @property - def config_change_types(self): - """ - Gets the config_change_types of this ServerConfigChange. - High level configuration change types. UCSM side's changes include -- - - :return: The config_change_types of this ServerConfigChange. - :rtype: list[str] - """ - return self._config_change_types - - @config_change_types.setter - def config_change_types(self, config_change_types): - """ - Sets the config_change_types of this ServerConfigChange. - High level configuration change types. UCSM side's changes include -- - - :param config_change_types: The config_change_types of this ServerConfigChange. - :type: list[str] - """ - - self._config_change_types = config_change_types - - @property - def discruption_types(self): - """ - Gets the discruption_types of this ServerConfigChange. - - :return: The discruption_types of this ServerConfigChange. - :rtype: list[str] - """ - return self._discruption_types - - @discruption_types.setter - def discruption_types(self, discruption_types): - """ - Sets the discruption_types of this ServerConfigChange. - - :param discruption_types: The discruption_types of this ServerConfigChange. - :type: list[str] - """ - - self._discruption_types = discruption_types - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, ServerConfigChange): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/server_config_change_detail.py b/intersight/models/server_config_change_detail.py index dd0bdb7a..dc73cf8d 100644 --- a/intersight/models/server_config_change_detail.py +++ b/intersight/models/server_config_change_detail.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,110 +31,402 @@ class ServerConfigChangeDetail(object): and the value is json key in definition. """ swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'changes': 'list[str]', 'config_change_context': 'PolicyConfigResultContext', - 'config_change_type': 'str', - 'disruption_type': 'str', + 'disruptions': 'list[str]', 'message': 'str', - 'message_params': 'object' + 'mod_status': 'str', + 'profile': 'ServerProfileRef' } attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'changes': 'Changes', 'config_change_context': 'ConfigChangeContext', - 'config_change_type': 'ConfigChangeType', - 'disruption_type': 'DisruptionType', + 'disruptions': 'Disruptions', 'message': 'Message', - 'message_params': 'MessageParams' + 'mod_status': 'ModStatus', + 'profile': 'Profile' } - def __init__(self, config_change_context=None, config_change_type=None, disruption_type=None, message=None, message_params=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, changes=None, config_change_context=None, disruptions=None, message=None, mod_status='None', profile=None): """ ServerConfigChangeDetail - a model defined in Swagger """ + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._changes = None self._config_change_context = None - self._config_change_type = None - self._disruption_type = None + self._disruptions = None self._message = None - self._message_params = None - + self._mod_status = None + self._profile = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if changes is not None: + self.changes = changes if config_change_context is not None: self.config_change_context = config_change_context - if config_change_type is not None: - self.config_change_type = config_change_type - if disruption_type is not None: - self.disruption_type = disruption_type + if disruptions is not None: + self.disruptions = disruptions if message is not None: self.message = message - if message_params is not None: - self.message_params = message_params + if mod_status is not None: + self.mod_status = mod_status + if profile is not None: + self.profile = profile @property - def config_change_context(self): + def account_moid(self): """ - Gets the config_change_context of this ServerConfigChangeDetail. + Gets the account_moid of this ServerConfigChangeDetail. + The Account ID for this managed object. - :return: The config_change_context of this ServerConfigChangeDetail. - :rtype: PolicyConfigResultContext + :return: The account_moid of this ServerConfigChangeDetail. + :rtype: str """ - return self._config_change_context + return self._account_moid - @config_change_context.setter - def config_change_context(self, config_change_context): + @account_moid.setter + def account_moid(self, account_moid): """ - Sets the config_change_context of this ServerConfigChangeDetail. + Sets the account_moid of this ServerConfigChangeDetail. + The Account ID for this managed object. - :param config_change_context: The config_change_context of this ServerConfigChangeDetail. - :type: PolicyConfigResultContext + :param account_moid: The account_moid of this ServerConfigChangeDetail. + :type: str """ - self._config_change_context = config_change_context + self._account_moid = account_moid @property - def config_change_type(self): + def ancestors(self): + """ + Gets the ancestors of this ServerConfigChangeDetail. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this ServerConfigChangeDetail. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): """ - Gets the config_change_type of this ServerConfigChangeDetail. + Sets the ancestors of this ServerConfigChangeDetail. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - :return: The config_change_type of this ServerConfigChangeDetail. + :param ancestors: The ancestors of this ServerConfigChangeDetail. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this ServerConfigChangeDetail. + The time when this managed object was created. + + :return: The create_time of this ServerConfigChangeDetail. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this ServerConfigChangeDetail. + The time when this managed object was created. + + :param create_time: The create_time of this ServerConfigChangeDetail. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this ServerConfigChangeDetail. + The time when this managed object was last modified. + + :return: The mod_time of this ServerConfigChangeDetail. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this ServerConfigChangeDetail. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this ServerConfigChangeDetail. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this ServerConfigChangeDetail. + A unique identifier of this Managed Object instance. + + :return: The moid of this ServerConfigChangeDetail. :rtype: str """ - return self._config_change_type + return self._moid - @config_change_type.setter - def config_change_type(self, config_change_type): + @moid.setter + def moid(self, moid): """ - Sets the config_change_type of this ServerConfigChangeDetail. + Sets the moid of this ServerConfigChangeDetail. + A unique identifier of this Managed Object instance. - :param config_change_type: The config_change_type of this ServerConfigChangeDetail. + :param moid: The moid of this ServerConfigChangeDetail. :type: str """ - self._config_change_type = config_change_type + self._moid = moid @property - def disruption_type(self): + def object_type(self): """ - Gets the disruption_type of this ServerConfigChangeDetail. + Gets the object_type of this ServerConfigChangeDetail. + The fully-qualified type of this managed object, e.g. the class name. - :return: The disruption_type of this ServerConfigChangeDetail. + :return: The object_type of this ServerConfigChangeDetail. :rtype: str """ - return self._disruption_type + return self._object_type - @disruption_type.setter - def disruption_type(self, disruption_type): + @object_type.setter + def object_type(self, object_type): """ - Sets the disruption_type of this ServerConfigChangeDetail. + Sets the object_type of this ServerConfigChangeDetail. + The fully-qualified type of this managed object, e.g. the class name. - :param disruption_type: The disruption_type of this ServerConfigChangeDetail. + :param object_type: The object_type of this ServerConfigChangeDetail. :type: str """ - self._disruption_type = disruption_type + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this ServerConfigChangeDetail. + An array of owners which represent effective ownership of this object. + + :return: The owners of this ServerConfigChangeDetail. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this ServerConfigChangeDetail. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this ServerConfigChangeDetail. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this ServerConfigChangeDetail. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this ServerConfigChangeDetail. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this ServerConfigChangeDetail. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this ServerConfigChangeDetail. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this ServerConfigChangeDetail. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this ServerConfigChangeDetail. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this ServerConfigChangeDetail. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this ServerConfigChangeDetail. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this ServerConfigChangeDetail. + The versioning info for this managed object + + :return: The version_context of this ServerConfigChangeDetail. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this ServerConfigChangeDetail. + The versioning info for this managed object + + :param version_context: The version_context of this ServerConfigChangeDetail. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def changes(self): + """ + Gets the changes of this ServerConfigChangeDetail. + Type of the configuration change + + :return: The changes of this ServerConfigChangeDetail. + :rtype: list[str] + """ + return self._changes + + @changes.setter + def changes(self, changes): + """ + Sets the changes of this ServerConfigChangeDetail. + Type of the configuration change + + :param changes: The changes of this ServerConfigChangeDetail. + :type: list[str] + """ + + self._changes = changes + + @property + def config_change_context(self): + """ + Gets the config_change_context of this ServerConfigChangeDetail. + Context information on the change. + + :return: The config_change_context of this ServerConfigChangeDetail. + :rtype: PolicyConfigResultContext + """ + return self._config_change_context + + @config_change_context.setter + def config_change_context(self, config_change_context): + """ + Sets the config_change_context of this ServerConfigChangeDetail. + Context information on the change. + + :param config_change_context: The config_change_context of this ServerConfigChangeDetail. + :type: PolicyConfigResultContext + """ + + self._config_change_context = config_change_context + + @property + def disruptions(self): + """ + Gets the disruptions of this ServerConfigChangeDetail. + Possible discrution the configuration change might cause + + :return: The disruptions of this ServerConfigChangeDetail. + :rtype: list[str] + """ + return self._disruptions + + @disruptions.setter + def disruptions(self, disruptions): + """ + Sets the disruptions of this ServerConfigChangeDetail. + Possible discrution the configuration change might cause + + :param disruptions: The disruptions of this ServerConfigChangeDetail. + :type: list[str] + """ + + self._disruptions = disruptions @property def message(self): """ Gets the message of this ServerConfigChangeDetail. + Detailed description of the config change :return: The message of this ServerConfigChangeDetail. :rtype: str @@ -145,6 +437,7 @@ def message(self): def message(self, message): """ Sets the message of this ServerConfigChangeDetail. + Detailed description of the config change :param message: The message of this ServerConfigChangeDetail. :type: str @@ -153,25 +446,54 @@ def message(self, message): self._message = message @property - def message_params(self): + def mod_status(self): + """ + Gets the mod_status of this ServerConfigChangeDetail. + Modification status of the mo in this config change + + :return: The mod_status of this ServerConfigChangeDetail. + :rtype: str + """ + return self._mod_status + + @mod_status.setter + def mod_status(self, mod_status): + """ + Sets the mod_status of this ServerConfigChangeDetail. + Modification status of the mo in this config change + + :param mod_status: The mod_status of this ServerConfigChangeDetail. + :type: str + """ + allowed_values = ["None", "Created", "Modified", "Deleted"] + if mod_status not in allowed_values: + raise ValueError( + "Invalid value for `mod_status` ({0}), must be one of {1}" + .format(mod_status, allowed_values) + ) + + self._mod_status = mod_status + + @property + def profile(self): """ - Gets the message_params of this ServerConfigChangeDetail. + Gets the profile of this ServerConfigChangeDetail. - :return: The message_params of this ServerConfigChangeDetail. - :rtype: object + :return: The profile of this ServerConfigChangeDetail. + :rtype: ServerProfileRef """ - return self._message_params + return self._profile - @message_params.setter - def message_params(self, message_params): + @profile.setter + def profile(self, profile): """ - Sets the message_params of this ServerConfigChangeDetail. + Sets the profile of this ServerConfigChangeDetail. - :param message_params: The message_params of this ServerConfigChangeDetail. - :type: object + :param profile: The profile of this ServerConfigChangeDetail. + :type: ServerProfileRef """ - self._message_params = message_params + self._profile = profile def to_dict(self): """ diff --git a/intersight/models/server_config_change_detail_list.py b/intersight/models/server_config_change_detail_list.py new file mode 100644 index 00000000..b3f20ec2 --- /dev/null +++ b/intersight/models/server_config_change_detail_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ServerConfigChangeDetailList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[ServerConfigChangeDetail]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + ServerConfigChangeDetailList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this ServerConfigChangeDetailList. + The number of serverConfigChangeDetails matching your request in total for all pages. + + :return: The count of this ServerConfigChangeDetailList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this ServerConfigChangeDetailList. + The number of serverConfigChangeDetails matching your request in total for all pages. + + :param count: The count of this ServerConfigChangeDetailList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this ServerConfigChangeDetailList. + The array of serverConfigChangeDetails matching your request. + + :return: The results of this ServerConfigChangeDetailList. + :rtype: list[ServerConfigChangeDetail] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this ServerConfigChangeDetailList. + The array of serverConfigChangeDetails matching your request. + + :param results: The results of this ServerConfigChangeDetailList. + :type: list[ServerConfigChangeDetail] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ServerConfigChangeDetailList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/server_config_change_detail_ref.py b/intersight/models/server_config_change_detail_ref.py new file mode 100644 index 00000000..3c6f337c --- /dev/null +++ b/intersight/models/server_config_change_detail_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ServerConfigChangeDetailRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ServerConfigChangeDetailRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ServerConfigChangeDetailRef. + + :return: The moid of this ServerConfigChangeDetailRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ServerConfigChangeDetailRef. + + :param moid: The moid of this ServerConfigChangeDetailRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ServerConfigChangeDetailRef. + + :return: The object_type of this ServerConfigChangeDetailRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ServerConfigChangeDetailRef. + + :param object_type: The object_type of this ServerConfigChangeDetailRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ServerConfigChangeDetailRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/server_config_result.py b/intersight/models/server_config_result.py index acd7dfc4..2fc60e8c 100644 --- a/intersight/models/server_config_result.py +++ b/intersight/models/server_config_result.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,19 +32,20 @@ class ServerConfigResult(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'config_stage': 'str', 'config_state': 'str', - 'result_entries': 'list[PolicyConfigResultEntry]', 'validation_state': 'str', - 'profile': 'MoMoRef' + 'profile': 'ServerProfileRef', + 'result_entries': 'list[ServerConfigResultEntryRef]' } attribute_map = { @@ -57,14 +58,15 @@ class ServerConfigResult(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'config_stage': 'ConfigStage', 'config_state': 'ConfigState', - 'result_entries': 'ResultEntries', 'validation_state': 'ValidationState', - 'profile': 'Profile' + 'profile': 'Profile', + 'result_entries': 'ResultEntries' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, config_stage=None, config_state=None, result_entries=None, validation_state=None, profile=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, config_stage=None, config_state=None, validation_state=None, profile=None, result_entries=None): """ ServerConfigResult - a model defined in Swagger """ @@ -78,11 +80,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._config_stage = None self._config_state = None - self._result_entries = None self._validation_state = None self._profile = None + self._result_entries = None if account_moid is not None: self.account_moid = account_moid @@ -102,16 +105,18 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if config_stage is not None: self.config_stage = config_stage if config_state is not None: self.config_state = config_state - if result_entries is not None: - self.result_entries = result_entries if validation_state is not None: self.validation_state = validation_state if profile is not None: self.profile = profile + if result_entries is not None: + self.result_entries = result_entries @property def account_moid(self): @@ -143,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ServerConfigResult. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -154,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ServerConfigResult. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -281,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ServerConfigResult. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -292,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ServerConfigResult. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -301,7 +306,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this ServerConfigResult. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this ServerConfigResult. :rtype: list[MoTag] @@ -312,7 +317,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this ServerConfigResult. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this ServerConfigResult. :type: list[MoTag] @@ -320,6 +325,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this ServerConfigResult. + The versioning info for this managed object + + :return: The version_context of this ServerConfigResult. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this ServerConfigResult. + The versioning info for this managed object + + :param version_context: The version_context of this ServerConfigResult. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def config_stage(self): """ @@ -366,29 +394,6 @@ def config_state(self, config_state): self._config_state = config_state - @property - def result_entries(self): - """ - Gets the result_entries of this ServerConfigResult. - Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. - - :return: The result_entries of this ServerConfigResult. - :rtype: list[PolicyConfigResultEntry] - """ - return self._result_entries - - @result_entries.setter - def result_entries(self, result_entries): - """ - Sets the result_entries of this ServerConfigResult. - Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. - - :param result_entries: The result_entries of this ServerConfigResult. - :type: list[PolicyConfigResultEntry] - """ - - self._result_entries = result_entries - @property def validation_state(self): """ @@ -418,7 +423,7 @@ def profile(self): Gets the profile of this ServerConfigResult. :return: The profile of this ServerConfigResult. - :rtype: MoMoRef + :rtype: ServerProfileRef """ return self._profile @@ -428,11 +433,34 @@ def profile(self, profile): Sets the profile of this ServerConfigResult. :param profile: The profile of this ServerConfigResult. - :type: MoMoRef + :type: ServerProfileRef """ self._profile = profile + @property + def result_entries(self): + """ + Gets the result_entries of this ServerConfigResult. + Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. + + :return: The result_entries of this ServerConfigResult. + :rtype: list[ServerConfigResultEntryRef] + """ + return self._result_entries + + @result_entries.setter + def result_entries(self, result_entries): + """ + Sets the result_entries of this ServerConfigResult. + Detailed result entries for both validation & configration. Each result entry can be error/warning/info messages and the context. + + :param result_entries: The result_entries of this ServerConfigResult. + :type: list[ServerConfigResultEntryRef] + """ + + self._result_entries = result_entries + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/server_config_result_entry.py b/intersight/models/server_config_result_entry.py new file mode 100644 index 00000000..99c95fa4 --- /dev/null +++ b/intersight/models/server_config_result_entry.py @@ -0,0 +1,567 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ServerConfigResultEntry(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'completed_time': 'str', + 'context': 'PolicyConfigResultContext', + 'message': 'str', + 'owner_id': 'str', + 'state': 'str', + 'type': 'str', + 'config_result': 'ServerConfigResultRef' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'completed_time': 'CompletedTime', + 'context': 'Context', + 'message': 'Message', + 'owner_id': 'OwnerId', + 'state': 'State', + 'type': 'Type', + 'config_result': 'ConfigResult' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, completed_time=None, context=None, message=None, owner_id=None, state=None, type=None, config_result=None): + """ + ServerConfigResultEntry - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._completed_time = None + self._context = None + self._message = None + self._owner_id = None + self._state = None + self._type = None + self._config_result = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if completed_time is not None: + self.completed_time = completed_time + if context is not None: + self.context = context + if message is not None: + self.message = message + if owner_id is not None: + self.owner_id = owner_id + if state is not None: + self.state = state + if type is not None: + self.type = type + if config_result is not None: + self.config_result = config_result + + @property + def account_moid(self): + """ + Gets the account_moid of this ServerConfigResultEntry. + The Account ID for this managed object. + + :return: The account_moid of this ServerConfigResultEntry. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this ServerConfigResultEntry. + The Account ID for this managed object. + + :param account_moid: The account_moid of this ServerConfigResultEntry. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this ServerConfigResultEntry. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this ServerConfigResultEntry. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this ServerConfigResultEntry. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this ServerConfigResultEntry. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this ServerConfigResultEntry. + The time when this managed object was created. + + :return: The create_time of this ServerConfigResultEntry. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this ServerConfigResultEntry. + The time when this managed object was created. + + :param create_time: The create_time of this ServerConfigResultEntry. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this ServerConfigResultEntry. + The time when this managed object was last modified. + + :return: The mod_time of this ServerConfigResultEntry. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this ServerConfigResultEntry. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this ServerConfigResultEntry. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this ServerConfigResultEntry. + A unique identifier of this Managed Object instance. + + :return: The moid of this ServerConfigResultEntry. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ServerConfigResultEntry. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this ServerConfigResultEntry. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ServerConfigResultEntry. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this ServerConfigResultEntry. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ServerConfigResultEntry. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this ServerConfigResultEntry. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this ServerConfigResultEntry. + An array of owners which represent effective ownership of this object. + + :return: The owners of this ServerConfigResultEntry. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this ServerConfigResultEntry. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this ServerConfigResultEntry. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this ServerConfigResultEntry. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this ServerConfigResultEntry. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this ServerConfigResultEntry. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this ServerConfigResultEntry. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this ServerConfigResultEntry. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this ServerConfigResultEntry. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this ServerConfigResultEntry. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this ServerConfigResultEntry. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this ServerConfigResultEntry. + The versioning info for this managed object + + :return: The version_context of this ServerConfigResultEntry. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this ServerConfigResultEntry. + The versioning info for this managed object + + :param version_context: The version_context of this ServerConfigResultEntry. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def completed_time(self): + """ + Gets the completed_time of this ServerConfigResultEntry. + The completed time of the task in installer + + :return: The completed_time of this ServerConfigResultEntry. + :rtype: str + """ + return self._completed_time + + @completed_time.setter + def completed_time(self, completed_time): + """ + Sets the completed_time of this ServerConfigResultEntry. + The completed time of the task in installer + + :param completed_time: The completed_time of this ServerConfigResultEntry. + :type: str + """ + + self._completed_time = completed_time + + @property + def context(self): + """ + Gets the context of this ServerConfigResultEntry. + + :return: The context of this ServerConfigResultEntry. + :rtype: PolicyConfigResultContext + """ + return self._context + + @context.setter + def context(self, context): + """ + Sets the context of this ServerConfigResultEntry. + + :param context: The context of this ServerConfigResultEntry. + :type: PolicyConfigResultContext + """ + + self._context = context + + @property + def message(self): + """ + Gets the message of this ServerConfigResultEntry. + Localized message based on the locale setting of the user's context + + :return: The message of this ServerConfigResultEntry. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this ServerConfigResultEntry. + Localized message based on the locale setting of the user's context + + :param message: The message of this ServerConfigResultEntry. + :type: str + """ + + self._message = message + + @property + def owner_id(self): + """ + Gets the owner_id of this ServerConfigResultEntry. + + :return: The owner_id of this ServerConfigResultEntry. + :rtype: str + """ + return self._owner_id + + @owner_id.setter + def owner_id(self, owner_id): + """ + Sets the owner_id of this ServerConfigResultEntry. + + :param owner_id: The owner_id of this ServerConfigResultEntry. + :type: str + """ + + self._owner_id = owner_id + + @property + def state(self): + """ + Gets the state of this ServerConfigResultEntry. + Values -- ok, ok-with-warning, errored + + :return: The state of this ServerConfigResultEntry. + :rtype: str + """ + return self._state + + @state.setter + def state(self, state): + """ + Sets the state of this ServerConfigResultEntry. + Values -- ok, ok-with-warning, errored + + :param state: The state of this ServerConfigResultEntry. + :type: str + """ + + self._state = state + + @property + def type(self): + """ + Gets the type of this ServerConfigResultEntry. + Indicates if the result is reported during the logical model validation/resource allocation phase or the configuration applying phase. Values -- validation, config + + :return: The type of this ServerConfigResultEntry. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this ServerConfigResultEntry. + Indicates if the result is reported during the logical model validation/resource allocation phase or the configuration applying phase. Values -- validation, config + + :param type: The type of this ServerConfigResultEntry. + :type: str + """ + + self._type = type + + @property + def config_result(self): + """ + Gets the config_result of this ServerConfigResultEntry. + + :return: The config_result of this ServerConfigResultEntry. + :rtype: ServerConfigResultRef + """ + return self._config_result + + @config_result.setter + def config_result(self, config_result): + """ + Sets the config_result of this ServerConfigResultEntry. + + :param config_result: The config_result of this ServerConfigResultEntry. + :type: ServerConfigResultRef + """ + + self._config_result = config_result + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ServerConfigResultEntry): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/externalsite_auth_profile_list.py b/intersight/models/server_config_result_entry_list.py similarity index 69% rename from intersight/models/externalsite_auth_profile_list.py rename to intersight/models/server_config_result_entry_list.py index 25f05d8f..b25c724e 100644 --- a/intersight/models/externalsite_auth_profile_list.py +++ b/intersight/models/server_config_result_entry_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class ExternalsiteAuthProfileList(object): +class ServerConfigResultEntryList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class ExternalsiteAuthProfileList(object): """ swagger_types = { 'count': 'int', - 'results': 'list[ExternalsiteAuthProfile]' + 'results': 'list[ServerConfigResultEntry]' } attribute_map = { @@ -42,7 +42,7 @@ class ExternalsiteAuthProfileList(object): def __init__(self, count=None, results=None): """ - ExternalsiteAuthProfileList - a model defined in Swagger + ServerConfigResultEntryList - a model defined in Swagger """ self._count = None @@ -56,10 +56,10 @@ def __init__(self, count=None, results=None): @property def count(self): """ - Gets the count of this ExternalsiteAuthProfileList. - The number of externalsiteAuthProfiles matching your request in total for all pages. + Gets the count of this ServerConfigResultEntryList. + The number of serverConfigResultEntries matching your request in total for all pages. - :return: The count of this ExternalsiteAuthProfileList. + :return: The count of this ServerConfigResultEntryList. :rtype: int """ return self._count @@ -67,10 +67,10 @@ def count(self): @count.setter def count(self, count): """ - Sets the count of this ExternalsiteAuthProfileList. - The number of externalsiteAuthProfiles matching your request in total for all pages. + Sets the count of this ServerConfigResultEntryList. + The number of serverConfigResultEntries matching your request in total for all pages. - :param count: The count of this ExternalsiteAuthProfileList. + :param count: The count of this ServerConfigResultEntryList. :type: int """ @@ -79,22 +79,22 @@ def count(self, count): @property def results(self): """ - Gets the results of this ExternalsiteAuthProfileList. - The array of externalsiteAuthProfiles matching your request. + Gets the results of this ServerConfigResultEntryList. + The array of serverConfigResultEntries matching your request. - :return: The results of this ExternalsiteAuthProfileList. - :rtype: list[ExternalsiteAuthProfile] + :return: The results of this ServerConfigResultEntryList. + :rtype: list[ServerConfigResultEntry] """ return self._results @results.setter def results(self, results): """ - Sets the results of this ExternalsiteAuthProfileList. - The array of externalsiteAuthProfiles matching your request. + Sets the results of this ServerConfigResultEntryList. + The array of serverConfigResultEntries matching your request. - :param results: The results of this ExternalsiteAuthProfileList. - :type: list[ExternalsiteAuthProfile] + :param results: The results of this ServerConfigResultEntryList. + :type: list[ServerConfigResultEntry] """ self._results = results @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, ExternalsiteAuthProfileList): + if not isinstance(other, ServerConfigResultEntryList): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/server_config_result_entry_ref.py b/intersight/models/server_config_result_entry_ref.py new file mode 100644 index 00000000..19d19b65 --- /dev/null +++ b/intersight/models/server_config_result_entry_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ServerConfigResultEntryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ServerConfigResultEntryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ServerConfigResultEntryRef. + + :return: The moid of this ServerConfigResultEntryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ServerConfigResultEntryRef. + + :param moid: The moid of this ServerConfigResultEntryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ServerConfigResultEntryRef. + + :return: The object_type of this ServerConfigResultEntryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ServerConfigResultEntryRef. + + :param object_type: The object_type of this ServerConfigResultEntryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ServerConfigResultEntryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/server_config_result_list.py b/intersight/models/server_config_result_list.py index 7c653054..a18df739 100644 --- a/intersight/models/server_config_result_list.py +++ b/intersight/models/server_config_result_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/server_config_result_ref.py b/intersight/models/server_config_result_ref.py new file mode 100644 index 00000000..eb991436 --- /dev/null +++ b/intersight/models/server_config_result_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ServerConfigResultRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ServerConfigResultRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ServerConfigResultRef. + + :return: The moid of this ServerConfigResultRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ServerConfigResultRef. + + :param moid: The moid of this ServerConfigResultRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ServerConfigResultRef. + + :return: The object_type of this ServerConfigResultRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ServerConfigResultRef. + + :param object_type: The object_type of this ServerConfigResultRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ServerConfigResultRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/server_profile.py b/intersight/models/server_profile.py index f52f57e1..7e54d964 100644 --- a/intersight/models/server_profile.py +++ b/intersight/models/server_profile.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,26 +32,28 @@ class ServerProfile(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'src_template': 'MoMoRef', + 'src_template': 'PolicyAbstractProfileRef', 'type': 'str', 'action': 'str', 'config_context': 'PolicyConfigContext', - 'account': 'MoMoRef', - 'assigned_server': 'MoMoRef', - 'associated_server': 'MoMoRef', - 'config_change_details': 'MoMoRef', - 'config_changes': 'ServerConfigChange', - 'config_result': 'MoMoRef' + 'assigned_server': 'ComputeRackUnitRef', + 'associated_server': 'ComputeRackUnitRef', + 'config_change_details': 'list[ServerConfigChangeDetailRef]', + 'config_changes': 'PolicyConfigChange', + 'config_result': 'ServerConfigResultRef', + 'organization': 'IamAccountRef', + 'running_workflows': 'list[WorkflowWorkflowInfoRef]' } attribute_map = { @@ -64,21 +66,23 @@ class ServerProfile(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'src_template': 'SrcTemplate', 'type': 'Type', 'action': 'Action', 'config_context': 'ConfigContext', - 'account': 'Account', 'assigned_server': 'AssignedServer', 'associated_server': 'AssociatedServer', 'config_change_details': 'ConfigChangeDetails', 'config_changes': 'ConfigChanges', - 'config_result': 'ConfigResult' + 'config_result': 'ConfigResult', + 'organization': 'Organization', + 'running_workflows': 'RunningWorkflows' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, src_template=None, type='instance', action=None, config_context=None, account=None, assigned_server=None, associated_server=None, config_change_details=None, config_changes=None, config_result=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, src_template=None, type='instance', action=None, config_context=None, assigned_server=None, associated_server=None, config_change_details=None, config_changes=None, config_result=None, organization=None, running_workflows=None): """ ServerProfile - a model defined in Swagger """ @@ -92,18 +96,20 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._src_template = None self._type = None self._action = None self._config_context = None - self._account = None self._assigned_server = None self._associated_server = None self._config_change_details = None self._config_changes = None self._config_result = None + self._organization = None + self._running_workflows = None if account_moid is not None: self.account_moid = account_moid @@ -123,6 +129,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -135,8 +143,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.action = action if config_context is not None: self.config_context = config_context - if account is not None: - self.account = account if assigned_server is not None: self.assigned_server = assigned_server if associated_server is not None: @@ -147,6 +153,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.config_changes = config_changes if config_result is not None: self.config_result = config_result + if organization is not None: + self.organization = organization + if running_workflows is not None: + self.running_workflows = running_workflows @property def account_moid(self): @@ -178,7 +188,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ServerProfile. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -189,7 +199,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ServerProfile. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -316,7 +326,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ServerProfile. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -327,7 +337,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ServerProfile. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -336,7 +346,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this ServerProfile. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this ServerProfile. :rtype: list[MoTag] @@ -347,7 +357,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this ServerProfile. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this ServerProfile. :type: list[MoTag] @@ -355,6 +365,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this ServerProfile. + The versioning info for this managed object + + :return: The version_context of this ServerProfile. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this ServerProfile. + The versioning info for this managed object + + :param version_context: The version_context of this ServerProfile. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -407,7 +440,7 @@ def src_template(self): Gets the src_template of this ServerProfile. :return: The src_template of this ServerProfile. - :rtype: MoMoRef + :rtype: PolicyAbstractProfileRef """ return self._src_template @@ -417,7 +450,7 @@ def src_template(self, src_template): Sets the src_template of this ServerProfile. :param src_template: The src_template of this ServerProfile. - :type: MoMoRef + :type: PolicyAbstractProfileRef """ self._src_template = src_template @@ -455,7 +488,7 @@ def type(self, type): def action(self): """ Gets the action of this ServerProfile. - User/system triggered action like \"NoOp\", \"Deploy\", \"Undeploy\", \"DryRun\", \"ComplianceCheck\", \"AnalyzeImpact\" + User initiated action. Each profile type has its own supported actions. For hyperflex cluster profile, the supported actions are -- Validate, Deploy, Continue, Retry, Abort, Unassign For server profile, the support actions are -- Deploy, Unassign :return: The action of this ServerProfile. :rtype: str @@ -466,7 +499,7 @@ def action(self): def action(self, action): """ Sets the action of this ServerProfile. - User/system triggered action like \"NoOp\", \"Deploy\", \"Undeploy\", \"DryRun\", \"ComplianceCheck\", \"AnalyzeImpact\" + User initiated action. Each profile type has its own supported actions. For hyperflex cluster profile, the supported actions are -- Validate, Deploy, Continue, Retry, Abort, Unassign For server profile, the support actions are -- Deploy, Unassign :param action: The action of this ServerProfile. :type: str @@ -495,29 +528,6 @@ def config_context(self, config_context): self._config_context = config_context - @property - def account(self): - """ - Gets the account of this ServerProfile. - The account of the user who creates the profile. - - :return: The account of this ServerProfile. - :rtype: MoMoRef - """ - return self._account - - @account.setter - def account(self, account): - """ - Sets the account of this ServerProfile. - The account of the user who creates the profile. - - :param account: The account of this ServerProfile. - :type: MoMoRef - """ - - self._account = account - @property def assigned_server(self): """ @@ -525,7 +535,7 @@ def assigned_server(self): The assigned physical server to the profile. A physical server can be assigned to more than one server profiles as long as it is only associated with one :return: The assigned_server of this ServerProfile. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._assigned_server @@ -536,7 +546,7 @@ def assigned_server(self, assigned_server): The assigned physical server to the profile. A physical server can be assigned to more than one server profiles as long as it is only associated with one :param assigned_server: The assigned_server of this ServerProfile. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._assigned_server = assigned_server @@ -548,7 +558,7 @@ def associated_server(self): The associated physical server to the profile. A physical server can only be associated to one server profiles :return: The associated_server of this ServerProfile. - :rtype: MoMoRef + :rtype: ComputeRackUnitRef """ return self._associated_server @@ -559,7 +569,7 @@ def associated_server(self, associated_server): The associated physical server to the profile. A physical server can only be associated to one server profiles :param associated_server: The associated_server of this ServerProfile. - :type: MoMoRef + :type: ComputeRackUnitRef """ self._associated_server = associated_server @@ -571,7 +581,7 @@ def config_change_details(self): Represents the configuration change details :return: The config_change_details of this ServerProfile. - :rtype: MoMoRef + :rtype: list[ServerConfigChangeDetailRef] """ return self._config_change_details @@ -582,7 +592,7 @@ def config_change_details(self, config_change_details): Represents the configuration change details :param config_change_details: The config_change_details of this ServerProfile. - :type: MoMoRef + :type: list[ServerConfigChangeDetailRef] """ self._config_change_details = config_change_details @@ -594,7 +604,7 @@ def config_changes(self): Represents the pending configuration changes at the summary level. Detail changes save in configChangeDetails as a separate object :return: The config_changes of this ServerProfile. - :rtype: ServerConfigChange + :rtype: PolicyConfigChange """ return self._config_changes @@ -605,7 +615,7 @@ def config_changes(self, config_changes): Represents the pending configuration changes at the summary level. Detail changes save in configChangeDetails as a separate object :param config_changes: The config_changes of this ServerProfile. - :type: ServerConfigChange + :type: PolicyConfigChange """ self._config_changes = config_changes @@ -617,7 +627,7 @@ def config_result(self): Represents the configuration (including deploy, undeploy, compliance-check) results. The errors usually are detected and reported during the apply/deploy phases :return: The config_result of this ServerProfile. - :rtype: MoMoRef + :rtype: ServerConfigResultRef """ return self._config_result @@ -628,11 +638,57 @@ def config_result(self, config_result): Represents the configuration (including deploy, undeploy, compliance-check) results. The errors usually are detected and reported during the apply/deploy phases :param config_result: The config_result of this ServerProfile. - :type: MoMoRef + :type: ServerConfigResultRef """ self._config_result = config_result + @property + def organization(self): + """ + Gets the organization of this ServerProfile. + Organization + + :return: The organization of this ServerProfile. + :rtype: IamAccountRef + """ + return self._organization + + @organization.setter + def organization(self, organization): + """ + Sets the organization of this ServerProfile. + Organization + + :param organization: The organization of this ServerProfile. + :type: IamAccountRef + """ + + self._organization = organization + + @property + def running_workflows(self): + """ + Gets the running_workflows of this ServerProfile. + The WorkflowInfo's on fusion that are running for this server Profile. + + :return: The running_workflows of this ServerProfile. + :rtype: list[WorkflowWorkflowInfoRef] + """ + return self._running_workflows + + @running_workflows.setter + def running_workflows(self, running_workflows): + """ + Sets the running_workflows of this ServerProfile. + The WorkflowInfo's on fusion that are running for this server Profile. + + :param running_workflows: The running_workflows of this ServerProfile. + :type: list[WorkflowWorkflowInfoRef] + """ + + self._running_workflows = running_workflows + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/server_profile_apply_task_ref.py b/intersight/models/server_profile_apply_task_ref.py new file mode 100644 index 00000000..0046501a --- /dev/null +++ b/intersight/models/server_profile_apply_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ServerProfileApplyTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ServerProfileApplyTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ServerProfileApplyTaskRef. + + :return: The moid of this ServerProfileApplyTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ServerProfileApplyTaskRef. + + :param moid: The moid of this ServerProfileApplyTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ServerProfileApplyTaskRef. + + :return: The object_type of this ServerProfileApplyTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ServerProfileApplyTaskRef. + + :param object_type: The object_type of this ServerProfileApplyTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ServerProfileApplyTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/server_profile_list.py b/intersight/models/server_profile_list.py index e8e93734..3ccb8b3e 100644 --- a/intersight/models/server_profile_list.py +++ b/intersight/models/server_profile_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/server_profile_ref.py b/intersight/models/server_profile_ref.py new file mode 100644 index 00000000..a391a6e3 --- /dev/null +++ b/intersight/models/server_profile_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ServerProfileRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ServerProfileRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ServerProfileRef. + + :return: The moid of this ServerProfileRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ServerProfileRef. + + :param moid: The moid of this ServerProfileRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ServerProfileRef. + + :return: The object_type of this ServerProfileRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ServerProfileRef. + + :param object_type: The object_type of this ServerProfileRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ServerProfileRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/server_result_handler_task_ref.py b/intersight/models/server_result_handler_task_ref.py new file mode 100644 index 00000000..73bfa977 --- /dev/null +++ b/intersight/models/server_result_handler_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ServerResultHandlerTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ServerResultHandlerTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ServerResultHandlerTaskRef. + + :return: The moid of this ServerResultHandlerTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ServerResultHandlerTaskRef. + + :param moid: The moid of this ServerResultHandlerTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ServerResultHandlerTaskRef. + + :return: The object_type of this ServerResultHandlerTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ServerResultHandlerTaskRef. + + :param object_type: The object_type of this ServerResultHandlerTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ServerResultHandlerTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/smtp_deploy_task_ref.py b/intersight/models/smtp_deploy_task_ref.py new file mode 100644 index 00000000..8d17abfe --- /dev/null +++ b/intersight/models/smtp_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SmtpDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SmtpDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SmtpDeployTaskRef. + + :return: The moid of this SmtpDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SmtpDeployTaskRef. + + :param moid: The moid of this SmtpDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SmtpDeployTaskRef. + + :return: The object_type of this SmtpDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SmtpDeployTaskRef. + + :param object_type: The object_type of this SmtpDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SmtpDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/smtp_policy.py b/intersight/models/smtp_policy.py index dc08c57d..4da5c9f8 100644 --- a/intersight/models/smtp_policy.py +++ b/intersight/models/smtp_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,22 @@ class SmtpPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', 'enabled': 'bool', 'min_severity': 'str', - 'organization': 'MoMoRef', - 'profiles': 'list[MoMoRef]', + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]', + 'sender_email': 'str', 'smtp_port': 'int', 'smtp_recipients': 'list[str]', 'smtp_server': 'str' @@ -61,18 +63,20 @@ class SmtpPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'enabled': 'Enabled', 'min_severity': 'MinSeverity', 'organization': 'Organization', 'profiles': 'Profiles', + 'sender_email': 'SenderEmail', 'smtp_port': 'SmtpPort', 'smtp_recipients': 'SmtpRecipients', 'smtp_server': 'SmtpServer' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, enabled=None, min_severity='critical', organization=None, profiles=None, smtp_port=None, smtp_recipients=None, smtp_server=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, enabled=None, min_severity='critical', organization=None, profiles=None, sender_email=None, smtp_port=None, smtp_recipients=None, smtp_server=None): """ SmtpPolicy - a model defined in Swagger """ @@ -86,12 +90,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._enabled = None self._min_severity = None self._organization = None self._profiles = None + self._sender_email = None self._smtp_port = None self._smtp_recipients = None self._smtp_server = None @@ -114,6 +120,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -126,6 +134,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.organization = organization if profiles is not None: self.profiles = profiles + if sender_email is not None: + self.sender_email = sender_email if smtp_port is not None: self.smtp_port = smtp_port if smtp_recipients is not None: @@ -163,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this SmtpPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this SmtpPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this SmtpPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this SmtpPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -321,7 +331,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this SmtpPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this SmtpPolicy. :rtype: list[MoTag] @@ -332,7 +342,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this SmtpPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this SmtpPolicy. :type: list[MoTag] @@ -340,6 +350,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this SmtpPolicy. + The versioning info for this managed object + + :return: The version_context of this SmtpPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this SmtpPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this SmtpPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -413,7 +446,7 @@ def enabled(self, enabled): def min_severity(self): """ Gets the min_severity of this SmtpPolicy. - Minimum fault severity level to receive email notifications. Email notifications are sent for all faults whose severity is equal to or greater than the chosen level. Accepted fault values in the order of severity are Condition, Warning, Minor, Major, Critical. + Minimum fault severity level to receive email notifications. Email notifications are sent for all faults whose severity is equal to or greater than the chosen level. :return: The min_severity of this SmtpPolicy. :rtype: str @@ -424,7 +457,7 @@ def min_severity(self): def min_severity(self, min_severity): """ Sets the min_severity of this SmtpPolicy. - Minimum fault severity level to receive email notifications. Email notifications are sent for all faults whose severity is equal to or greater than the chosen level. Accepted fault values in the order of severity are Condition, Warning, Minor, Major, Critical. + Minimum fault severity level to receive email notifications. Email notifications are sent for all faults whose severity is equal to or greater than the chosen level. :param min_severity: The min_severity of this SmtpPolicy. :type: str @@ -445,7 +478,7 @@ def organization(self): Organization :return: The organization of this SmtpPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -456,7 +489,7 @@ def organization(self, organization): Organization :param organization: The organization of this SmtpPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -468,7 +501,7 @@ def profiles(self): Relationship to the profile object :return: The profiles of this SmtpPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -479,11 +512,34 @@ def profiles(self, profiles): Relationship to the profile object :param profiles: The profiles of this SmtpPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles + @property + def sender_email(self): + """ + Gets the sender_email of this SmtpPolicy. + The email address entered here will be displayed as the from address(mail received from address) of all the SMTP mail alerts that are received. If not configured, the hostname of the server is used in the from address field. + + :return: The sender_email of this SmtpPolicy. + :rtype: str + """ + return self._sender_email + + @sender_email.setter + def sender_email(self, sender_email): + """ + Sets the sender_email of this SmtpPolicy. + The email address entered here will be displayed as the from address(mail received from address) of all the SMTP mail alerts that are received. If not configured, the hostname of the server is used in the from address field. + + :param sender_email: The sender_email of this SmtpPolicy. + :type: str + """ + + self._sender_email = sender_email + @property def smtp_port(self): """ diff --git a/intersight/models/smtp_policy_list.py b/intersight/models/smtp_policy_list.py index 40540eac..000a9027 100644 --- a/intersight/models/smtp_policy_list.py +++ b/intersight/models/smtp_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/smtp_policy_ref.py b/intersight/models/smtp_policy_ref.py new file mode 100644 index 00000000..8d52bcc3 --- /dev/null +++ b/intersight/models/smtp_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SmtpPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SmtpPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SmtpPolicyRef. + + :return: The moid of this SmtpPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SmtpPolicyRef. + + :param moid: The moid of this SmtpPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SmtpPolicyRef. + + :return: The object_type of this SmtpPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SmtpPolicyRef. + + :param object_type: The object_type of this SmtpPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SmtpPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/smtp_validation_task_ref.py b/intersight/models/smtp_validation_task_ref.py new file mode 100644 index 00000000..1d897e0a --- /dev/null +++ b/intersight/models/smtp_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SmtpValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SmtpValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SmtpValidationTaskRef. + + :return: The moid of this SmtpValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SmtpValidationTaskRef. + + :param moid: The moid of this SmtpValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SmtpValidationTaskRef. + + :return: The object_type of this SmtpValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SmtpValidationTaskRef. + + :param object_type: The object_type of this SmtpValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SmtpValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/snmp_deploy_task_ref.py b/intersight/models/snmp_deploy_task_ref.py new file mode 100644 index 00000000..e880fc61 --- /dev/null +++ b/intersight/models/snmp_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SnmpDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SnmpDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SnmpDeployTaskRef. + + :return: The moid of this SnmpDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SnmpDeployTaskRef. + + :param moid: The moid of this SnmpDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SnmpDeployTaskRef. + + :return: The object_type of this SnmpDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SnmpDeployTaskRef. + + :param object_type: The object_type of this SnmpDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SnmpDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/snmp_policy.py b/intersight/models/snmp_policy.py index b40d6ef7..7834cf64 100644 --- a/intersight/models/snmp_policy.py +++ b/intersight/models/snmp_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,22 +32,23 @@ class SnmpPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', 'access_community_string': 'str', 'community_access': 'str', 'enabled': 'bool', 'engine_id': 'str', - 'organization': 'MoMoRef', - 'profiles': 'list[MoMoRef]', + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]', 'snmp_port': 'int', 'snmp_traps': 'list[SnmpTrap]', 'snmp_users': 'list[SnmpUser]', @@ -66,6 +67,7 @@ class SnmpPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'access_community_string': 'AccessCommunityString', @@ -82,7 +84,7 @@ class SnmpPolicy(object): 'trap_community': 'TrapCommunity' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, access_community_string=None, community_access='Disabled', enabled=None, engine_id=None, organization=None, profiles=None, snmp_port=None, snmp_traps=None, snmp_users=None, sys_contact=None, sys_location=None, trap_community=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, access_community_string=None, community_access='Disabled', enabled=None, engine_id=None, organization=None, profiles=None, snmp_port=None, snmp_traps=None, snmp_users=None, sys_contact=None, sys_location=None, trap_community=None): """ SnmpPolicy - a model defined in Swagger """ @@ -96,6 +98,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._access_community_string = None @@ -129,6 +132,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -188,7 +193,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this SnmpPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -199,7 +204,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this SnmpPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -326,7 +331,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this SnmpPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -337,7 +342,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this SnmpPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -346,7 +351,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this SnmpPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this SnmpPolicy. :rtype: list[MoTag] @@ -357,7 +362,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this SnmpPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this SnmpPolicy. :type: list[MoTag] @@ -365,6 +370,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this SnmpPolicy. + The versioning info for this managed object + + :return: The version_context of this SnmpPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this SnmpPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this SnmpPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -415,7 +443,7 @@ def name(self, name): def access_community_string(self): """ Gets the access_community_string of this SnmpPolicy. - The default SNMPv1 or SNMPv2c community name, or SNMPv3 username to include on any trap messages to the SNMP host. + The default SNMPv1, SNMPv2c community name or SNMPv3 username to include on any trap messages sent to the SNMP host. The name can be 18 characters long. :return: The access_community_string of this SnmpPolicy. :rtype: str @@ -426,7 +454,7 @@ def access_community_string(self): def access_community_string(self, access_community_string): """ Sets the access_community_string of this SnmpPolicy. - The default SNMPv1 or SNMPv2c community name, or SNMPv3 username to include on any trap messages to the SNMP host. + The default SNMPv1, SNMPv2c community name or SNMPv3 username to include on any trap messages sent to the SNMP host. The name can be 18 characters long. :param access_community_string: The access_community_string of this SnmpPolicy. :type: str @@ -438,7 +466,7 @@ def access_community_string(self, access_community_string): def community_access(self): """ Gets the community_access of this SnmpPolicy. - This property controls access to the information in the inventory tables. Accepted values are Full, Limited, Disabled. SNMP Community Access is applicable only for SNMPv1 and SNMPv2c users. + Controls access to the information in the inventory tables. Applicable only for SNMPv1 and SNMPv2c users. :return: The community_access of this SnmpPolicy. :rtype: str @@ -449,7 +477,7 @@ def community_access(self): def community_access(self, community_access): """ Sets the community_access of this SnmpPolicy. - This property controls access to the information in the inventory tables. Accepted values are Full, Limited, Disabled. SNMP Community Access is applicable only for SNMPv1 and SNMPv2c users. + Controls access to the information in the inventory tables. Applicable only for SNMPv1 and SNMPv2c users. :param community_access: The community_access of this SnmpPolicy. :type: str @@ -467,7 +495,7 @@ def community_access(self, community_access): def enabled(self): """ Gets the enabled of this SnmpPolicy. - State of the SNMP Policy on the endpoint. Decides whether the endpoint sends SNMP traps to the designated host. + State of the SNMP Policy on the endpoint. If enabled, the endpoint sends SNMP traps to the designated host. :return: The enabled of this SnmpPolicy. :rtype: bool @@ -478,7 +506,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this SnmpPolicy. - State of the SNMP Policy on the endpoint. Decides whether the endpoint sends SNMP traps to the designated host. + State of the SNMP Policy on the endpoint. If enabled, the endpoint sends SNMP traps to the designated host. :param enabled: The enabled of this SnmpPolicy. :type: bool @@ -490,7 +518,7 @@ def enabled(self, enabled): def engine_id(self): """ Gets the engine_id of this SnmpPolicy. - User-defined unique identification of the static engine. + User-defined unique identification of the static engine :return: The engine_id of this SnmpPolicy. :rtype: str @@ -501,7 +529,7 @@ def engine_id(self): def engine_id(self, engine_id): """ Sets the engine_id of this SnmpPolicy. - User-defined unique identification of the static engine. + User-defined unique identification of the static engine :param engine_id: The engine_id of this SnmpPolicy. :type: str @@ -516,7 +544,7 @@ def organization(self): Organization :return: The organization of this SnmpPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -527,7 +555,7 @@ def organization(self, organization): Organization :param organization: The organization of this SnmpPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -539,7 +567,7 @@ def profiles(self): Relationship to the profile object :return: The profiles of this SnmpPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -550,7 +578,7 @@ def profiles(self, profiles): Relationship to the profile object :param profiles: The profiles of this SnmpPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles @@ -559,7 +587,7 @@ def profiles(self, profiles): def snmp_port(self): """ Gets the snmp_port of this SnmpPolicy. - The port on which the SNMP agent runs. + Port on which Cisco IMC SNMP agent runs :return: The snmp_port of this SnmpPolicy. :rtype: int @@ -570,7 +598,7 @@ def snmp_port(self): def snmp_port(self, snmp_port): """ Sets the snmp_port of this SnmpPolicy. - The port on which the SNMP agent runs. + Port on which Cisco IMC SNMP agent runs :param snmp_port: The snmp_port of this SnmpPolicy. :type: int @@ -628,7 +656,7 @@ def snmp_users(self, snmp_users): def sys_contact(self): """ Gets the sys_contact of this SnmpPolicy. - Contact person for the SNMP implementation. + Contact person responsible for the SNMP implementation. Enter a string up to 64 characters, such as an email address or a name and telephone number. :return: The sys_contact of this SnmpPolicy. :rtype: str @@ -639,7 +667,7 @@ def sys_contact(self): def sys_contact(self, sys_contact): """ Sets the sys_contact of this SnmpPolicy. - Contact person for the SNMP implementation. + Contact person responsible for the SNMP implementation. Enter a string up to 64 characters, such as an email address or a name and telephone number. :param sys_contact: The sys_contact of this SnmpPolicy. :type: str @@ -651,7 +679,7 @@ def sys_contact(self, sys_contact): def sys_location(self): """ Gets the sys_location of this SnmpPolicy. - Location of host where SNMP agent(server) runs. + Location of host on which the SNMP agent(server) runs :return: The sys_location of this SnmpPolicy. :rtype: str @@ -662,7 +690,7 @@ def sys_location(self): def sys_location(self, sys_location): """ Sets the sys_location of this SnmpPolicy. - Location of host where SNMP agent(server) runs. + Location of host on which the SNMP agent(server) runs :param sys_location: The sys_location of this SnmpPolicy. :type: str @@ -674,7 +702,7 @@ def sys_location(self, sys_location): def trap_community(self): """ Gets the trap_community of this SnmpPolicy. - SNMP community group used for sending SNMP trap to other devices. Valid only for SNMPv2c users. + SNMP community group used for sending SNMP trap to other devices. Valid only for SNMPv2c users :return: The trap_community of this SnmpPolicy. :rtype: str @@ -685,7 +713,7 @@ def trap_community(self): def trap_community(self, trap_community): """ Sets the trap_community of this SnmpPolicy. - SNMP community group used for sending SNMP trap to other devices. Valid only for SNMPv2c users. + SNMP community group used for sending SNMP trap to other devices. Valid only for SNMPv2c users :param trap_community: The trap_community of this SnmpPolicy. :type: str diff --git a/intersight/models/snmp_policy_list.py b/intersight/models/snmp_policy_list.py index 0adf5183..cc739468 100644 --- a/intersight/models/snmp_policy_list.py +++ b/intersight/models/snmp_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/snmp_policy_ref.py b/intersight/models/snmp_policy_ref.py new file mode 100644 index 00000000..112938c0 --- /dev/null +++ b/intersight/models/snmp_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SnmpPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SnmpPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SnmpPolicyRef. + + :return: The moid of this SnmpPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SnmpPolicyRef. + + :param moid: The moid of this SnmpPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SnmpPolicyRef. + + :return: The object_type of this SnmpPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SnmpPolicyRef. + + :param object_type: The object_type of this SnmpPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SnmpPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/snmp_trap.py b/intersight/models/snmp_trap.py index 99bf4604..6641558b 100644 --- a/intersight/models/snmp_trap.py +++ b/intersight/models/snmp_trap.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,53 +31,76 @@ class SnmpTrap(object): and the value is json key in definition. """ swagger_types = { + 'destination': 'str', 'enabled': 'bool', - 'trap_destination': 'str', - 'trap_port': 'int', - 'trap_type': 'str', - 'trap_user': 'str', - 'trap_version': 'str' + 'port': 'int', + 'type': 'str', + 'user': 'str', + 'version': 'str' } attribute_map = { + 'destination': 'Destination', 'enabled': 'Enabled', - 'trap_destination': 'TrapDestination', - 'trap_port': 'TrapPort', - 'trap_type': 'TrapType', - 'trap_user': 'TrapUser', - 'trap_version': 'TrapVersion' + 'port': 'Port', + 'type': 'Type', + 'user': 'User', + 'version': 'Version' } - def __init__(self, enabled=None, trap_destination=None, trap_port=None, trap_type='Trap', trap_user=None, trap_version='V3'): + def __init__(self, destination=None, enabled=None, port=None, type='Trap', user=None, version='V3'): """ SnmpTrap - a model defined in Swagger """ + self._destination = None self._enabled = None - self._trap_destination = None - self._trap_port = None - self._trap_type = None - self._trap_user = None - self._trap_version = None + self._port = None + self._type = None + self._user = None + self._version = None + if destination is not None: + self.destination = destination if enabled is not None: self.enabled = enabled - if trap_destination is not None: - self.trap_destination = trap_destination - if trap_port is not None: - self.trap_port = trap_port - if trap_type is not None: - self.trap_type = trap_type - if trap_user is not None: - self.trap_user = trap_user - if trap_version is not None: - self.trap_version = trap_version + if port is not None: + self.port = port + if type is not None: + self.type = type + if user is not None: + self.user = user + if version is not None: + self.version = version + + @property + def destination(self): + """ + Gets the destination of this SnmpTrap. + Address to which the SNMP trap information is sent + + :return: The destination of this SnmpTrap. + :rtype: str + """ + return self._destination + + @destination.setter + def destination(self, destination): + """ + Sets the destination of this SnmpTrap. + Address to which the SNMP trap information is sent + + :param destination: The destination of this SnmpTrap. + :type: str + """ + + self._destination = destination @property def enabled(self): """ Gets the enabled of this SnmpTrap. - Enables/disables the trap on the server + Enables/disables the trap on the server If enabled, trap us active on the server. :return: The enabled of this SnmpTrap. :rtype: bool @@ -88,7 +111,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this SnmpTrap. - Enables/disables the trap on the server + Enables/disables the trap on the server If enabled, trap us active on the server. :param enabled: The enabled of this SnmpTrap. :type: bool @@ -97,131 +120,108 @@ def enabled(self, enabled): self._enabled = enabled @property - def trap_destination(self): - """ - Gets the trap_destination of this SnmpTrap. - Address to which the SNMP trap information is sent. - - :return: The trap_destination of this SnmpTrap. - :rtype: str - """ - return self._trap_destination - - @trap_destination.setter - def trap_destination(self, trap_destination): - """ - Sets the trap_destination of this SnmpTrap. - Address to which the SNMP trap information is sent. - - :param trap_destination: The trap_destination of this SnmpTrap. - :type: str - """ - - self._trap_destination = trap_destination - - @property - def trap_port(self): + def port(self): """ - Gets the trap_port of this SnmpTrap. - Port used by the server to communicate with trap destination. + Gets the port of this SnmpTrap. + Port used by the server to communicate with trap destination. Enter a value between 1-65535. - :return: The trap_port of this SnmpTrap. + :return: The port of this SnmpTrap. :rtype: int """ - return self._trap_port + return self._port - @trap_port.setter - def trap_port(self, trap_port): + @port.setter + def port(self, port): """ - Sets the trap_port of this SnmpTrap. - Port used by the server to communicate with trap destination. + Sets the port of this SnmpTrap. + Port used by the server to communicate with trap destination. Enter a value between 1-65535. - :param trap_port: The trap_port of this SnmpTrap. + :param port: The port of this SnmpTrap. :type: int """ - self._trap_port = trap_port + self._port = port @property - def trap_type(self): + def type(self): """ - Gets the trap_type of this SnmpTrap. - Type of messages to send to the manager from the agent. + Gets the type of this SnmpTrap. + Type of trap which decides whether to receive a notification when a trap is received at the destination - :return: The trap_type of this SnmpTrap. + :return: The type of this SnmpTrap. :rtype: str """ - return self._trap_type + return self._type - @trap_type.setter - def trap_type(self, trap_type): + @type.setter + def type(self, type): """ - Sets the trap_type of this SnmpTrap. - Type of messages to send to the manager from the agent. + Sets the type of this SnmpTrap. + Type of trap which decides whether to receive a notification when a trap is received at the destination - :param trap_type: The trap_type of this SnmpTrap. + :param type: The type of this SnmpTrap. :type: str """ allowed_values = ["Trap", "Inform"] - if trap_type not in allowed_values: + if type not in allowed_values: raise ValueError( - "Invalid value for `trap_type` ({0}), must be one of {1}" - .format(trap_type, allowed_values) + "Invalid value for `type` ({0}), must be one of {1}" + .format(type, allowed_values) ) - self._trap_type = trap_type + self._type = type @property - def trap_user(self): + def user(self): """ - Gets the trap_user of this SnmpTrap. - SNMP user for the trap. Applicable only to SNMPv3. + Gets the user of this SnmpTrap. + SNMP user for the trap. Applicable only to SNMPv3 - :return: The trap_user of this SnmpTrap. + :return: The user of this SnmpTrap. :rtype: str """ - return self._trap_user + return self._user - @trap_user.setter - def trap_user(self, trap_user): + @user.setter + def user(self, user): """ - Sets the trap_user of this SnmpTrap. - SNMP user for the trap. Applicable only to SNMPv3. + Sets the user of this SnmpTrap. + SNMP user for the trap. Applicable only to SNMPv3 - :param trap_user: The trap_user of this SnmpTrap. + :param user: The user of this SnmpTrap. :type: str """ - self._trap_user = trap_user + self._user = user @property - def trap_version(self): + def version(self): """ - Gets the trap_version of this SnmpTrap. - SNMP version used for the trap. + Gets the version of this SnmpTrap. + SNMP version used for the trap - :return: The trap_version of this SnmpTrap. + :return: The version of this SnmpTrap. :rtype: str """ - return self._trap_version + return self._version - @trap_version.setter - def trap_version(self, trap_version): + @version.setter + def version(self, version): """ - Sets the trap_version of this SnmpTrap. - SNMP version used for the trap. + Sets the version of this SnmpTrap. + SNMP version used for the trap - :param trap_version: The trap_version of this SnmpTrap. + :param version: The version of this SnmpTrap. :type: str """ allowed_values = ["V3", "V2"] - if trap_version not in allowed_values: + if version not in allowed_values: raise ValueError( - "Invalid value for `trap_version` ({0}), must be one of {1}" - .format(trap_version, allowed_values) + "Invalid value for `version` ({0}), must be one of {1}" + .format(version, allowed_values) ) - self._trap_version = trap_version + self._version = version def to_dict(self): """ diff --git a/intersight/models/snmp_trap_ref.py b/intersight/models/snmp_trap_ref.py new file mode 100644 index 00000000..b04572c4 --- /dev/null +++ b/intersight/models/snmp_trap_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SnmpTrapRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SnmpTrapRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SnmpTrapRef. + + :return: The moid of this SnmpTrapRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SnmpTrapRef. + + :param moid: The moid of this SnmpTrapRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SnmpTrapRef. + + :return: The object_type of this SnmpTrapRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SnmpTrapRef. + + :param object_type: The object_type of this SnmpTrapRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SnmpTrapRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/snmp_user.py b/intersight/models/snmp_user.py index 4ac73056..3ee36b92 100644 --- a/intersight/models/snmp_user.py +++ b/intersight/models/snmp_user.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -33,51 +33,61 @@ class SnmpUser(object): swagger_types = { 'auth_password': 'str', 'auth_type': 'str', + 'is_auth_password_set': 'bool', + 'is_privacy_password_set': 'bool', + 'name': 'str', 'privacy_password': 'str', 'privacy_type': 'str', - 'security_level': 'str', - 'snmp_user': 'str' + 'security_level': 'str' } attribute_map = { 'auth_password': 'AuthPassword', 'auth_type': 'AuthType', + 'is_auth_password_set': 'IsAuthPasswordSet', + 'is_privacy_password_set': 'IsPrivacyPasswordSet', + 'name': 'Name', 'privacy_password': 'PrivacyPassword', 'privacy_type': 'PrivacyType', - 'security_level': 'SecurityLevel', - 'snmp_user': 'SnmpUser' + 'security_level': 'SecurityLevel' } - def __init__(self, auth_password=None, auth_type='NA', privacy_password=None, privacy_type='NA', security_level='AuthPriv', snmp_user=None): + def __init__(self, auth_password=None, auth_type='NA', is_auth_password_set=None, is_privacy_password_set=None, name=None, privacy_password=None, privacy_type='NA', security_level='AuthPriv'): """ SnmpUser - a model defined in Swagger """ self._auth_password = None self._auth_type = None + self._is_auth_password_set = None + self._is_privacy_password_set = None + self._name = None self._privacy_password = None self._privacy_type = None self._security_level = None - self._snmp_user = None if auth_password is not None: self.auth_password = auth_password if auth_type is not None: self.auth_type = auth_type + if is_auth_password_set is not None: + self.is_auth_password_set = is_auth_password_set + if is_privacy_password_set is not None: + self.is_privacy_password_set = is_privacy_password_set + if name is not None: + self.name = name if privacy_password is not None: self.privacy_password = privacy_password if privacy_type is not None: self.privacy_type = privacy_type if security_level is not None: self.security_level = security_level - if snmp_user is not None: - self.snmp_user = snmp_user @property def auth_password(self): """ Gets the auth_password of this SnmpUser. - Authorization password for the user. + Authorization password for the user :return: The auth_password of this SnmpUser. :rtype: str @@ -88,7 +98,7 @@ def auth_password(self): def auth_password(self, auth_password): """ Sets the auth_password of this SnmpUser. - Authorization password for the user. + Authorization password for the user :param auth_password: The auth_password of this SnmpUser. :type: str @@ -100,7 +110,7 @@ def auth_password(self, auth_password): def auth_type(self): """ Gets the auth_type of this SnmpUser. - The protocol to be used for authenticating the user. Accepted values are MD5, SHA. + Authorization protocol for authenticating the user :return: The auth_type of this SnmpUser. :rtype: str @@ -111,7 +121,7 @@ def auth_type(self): def auth_type(self, auth_type): """ Sets the auth_type of this SnmpUser. - The protocol to be used for authenticating the user. Accepted values are MD5, SHA. + Authorization protocol for authenticating the user :param auth_type: The auth_type of this SnmpUser. :type: str @@ -125,11 +135,76 @@ def auth_type(self, auth_type): self._auth_type = auth_type + @property + def is_auth_password_set(self): + """ + Gets the is_auth_password_set of this SnmpUser. + + :return: The is_auth_password_set of this SnmpUser. + :rtype: bool + """ + return self._is_auth_password_set + + @is_auth_password_set.setter + def is_auth_password_set(self, is_auth_password_set): + """ + Sets the is_auth_password_set of this SnmpUser. + + :param is_auth_password_set: The is_auth_password_set of this SnmpUser. + :type: bool + """ + + self._is_auth_password_set = is_auth_password_set + + @property + def is_privacy_password_set(self): + """ + Gets the is_privacy_password_set of this SnmpUser. + + :return: The is_privacy_password_set of this SnmpUser. + :rtype: bool + """ + return self._is_privacy_password_set + + @is_privacy_password_set.setter + def is_privacy_password_set(self, is_privacy_password_set): + """ + Sets the is_privacy_password_set of this SnmpUser. + + :param is_privacy_password_set: The is_privacy_password_set of this SnmpUser. + :type: bool + """ + + self._is_privacy_password_set = is_privacy_password_set + + @property + def name(self): + """ + Gets the name of this SnmpUser. + SNMP username. Must have a minimum of 1 and and a maximum of 31 characters. + + :return: The name of this SnmpUser. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this SnmpUser. + SNMP username. Must have a minimum of 1 and and a maximum of 31 characters. + + :param name: The name of this SnmpUser. + :type: str + """ + + self._name = name + @property def privacy_password(self): """ Gets the privacy_password of this SnmpUser. - Privacy password for SNMP user. + Privacy password for the user :return: The privacy_password of this SnmpUser. :rtype: str @@ -140,7 +215,7 @@ def privacy_password(self): def privacy_password(self, privacy_password): """ Sets the privacy_password of this SnmpUser. - Privacy password for SNMP user. + Privacy password for the user :param privacy_password: The privacy_password of this SnmpUser. :type: str @@ -152,7 +227,7 @@ def privacy_password(self, privacy_password): def privacy_type(self): """ Gets the privacy_type of this SnmpUser. - The privacy protocol for the user. Accepted values are AES, DES. + Privacy protocol for the user :return: The privacy_type of this SnmpUser. :rtype: str @@ -163,7 +238,7 @@ def privacy_type(self): def privacy_type(self, privacy_type): """ Sets the privacy_type of this SnmpUser. - The privacy protocol for the user. Accepted values are AES, DES. + Privacy protocol for the user :param privacy_type: The privacy_type of this SnmpUser. :type: str @@ -181,7 +256,7 @@ def privacy_type(self, privacy_type): def security_level(self): """ Gets the security_level of this SnmpUser. - The security mechanism to be used for communication between agent and manager. Accepted values are NoAuthNoPriv, AuthNoPriv, AuthPriv. + Security mechanism used for communication between agent and manager :return: The security_level of this SnmpUser. :rtype: str @@ -192,7 +267,7 @@ def security_level(self): def security_level(self, security_level): """ Sets the security_level of this SnmpUser. - The security mechanism to be used for communication between agent and manager. Accepted values are NoAuthNoPriv, AuthNoPriv, AuthPriv. + Security mechanism used for communication between agent and manager :param security_level: The security_level of this SnmpUser. :type: str @@ -206,29 +281,6 @@ def security_level(self, security_level): self._security_level = security_level - @property - def snmp_user(self): - """ - Gets the snmp_user of this SnmpUser. - SNMP user name - - :return: The snmp_user of this SnmpUser. - :rtype: str - """ - return self._snmp_user - - @snmp_user.setter - def snmp_user(self, snmp_user): - """ - Sets the snmp_user of this SnmpUser. - SNMP user name - - :param snmp_user: The snmp_user of this SnmpUser. - :type: str - """ - - self._snmp_user = snmp_user - def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/snmp_user_ref.py b/intersight/models/snmp_user_ref.py new file mode 100644 index 00000000..1c7be540 --- /dev/null +++ b/intersight/models/snmp_user_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SnmpUserRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SnmpUserRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SnmpUserRef. + + :return: The moid of this SnmpUserRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SnmpUserRef. + + :param moid: The moid of this SnmpUserRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SnmpUserRef. + + :return: The object_type of this SnmpUserRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SnmpUserRef. + + :param object_type: The object_type of this SnmpUserRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SnmpUserRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/snmp_validation_task_ref.py b/intersight/models/snmp_validation_task_ref.py new file mode 100644 index 00000000..8a3296a2 --- /dev/null +++ b/intersight/models/snmp_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SnmpValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SnmpValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SnmpValidationTaskRef. + + :return: The moid of this SnmpValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SnmpValidationTaskRef. + + :param moid: The moid of this SnmpValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SnmpValidationTaskRef. + + :return: The object_type of this SnmpValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SnmpValidationTaskRef. + + :param object_type: The object_type of this SnmpValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SnmpValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/softwarerepository_authorization.py b/intersight/models/softwarerepository_authorization.py new file mode 100644 index 00000000..b4dc1b86 --- /dev/null +++ b/intersight/models/softwarerepository_authorization.py @@ -0,0 +1,547 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SoftwarerepositoryAuthorization(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', + 'is_password_set': 'bool', + 'is_user_id_set': 'bool', + 'password': 'str', + 'repository_type': 'str', + 'user_id': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'account': 'Account', + 'is_password_set': 'IsPasswordSet', + 'is_user_id_set': 'IsUserIdSet', + 'password': 'Password', + 'repository_type': 'RepositoryType', + 'user_id': 'UserId' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, is_password_set=None, is_user_id_set=None, password=None, repository_type='cisco', user_id=None): + """ + SoftwarerepositoryAuthorization - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._account = None + self._is_password_set = None + self._is_user_id_set = None + self._password = None + self._repository_type = None + self._user_id = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if account is not None: + self.account = account + if is_password_set is not None: + self.is_password_set = is_password_set + if is_user_id_set is not None: + self.is_user_id_set = is_user_id_set + if password is not None: + self.password = password + if repository_type is not None: + self.repository_type = repository_type + if user_id is not None: + self.user_id = user_id + + @property + def account_moid(self): + """ + Gets the account_moid of this SoftwarerepositoryAuthorization. + The Account ID for this managed object. + + :return: The account_moid of this SoftwarerepositoryAuthorization. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this SoftwarerepositoryAuthorization. + The Account ID for this managed object. + + :param account_moid: The account_moid of this SoftwarerepositoryAuthorization. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this SoftwarerepositoryAuthorization. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this SoftwarerepositoryAuthorization. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this SoftwarerepositoryAuthorization. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this SoftwarerepositoryAuthorization. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this SoftwarerepositoryAuthorization. + The time when this managed object was created. + + :return: The create_time of this SoftwarerepositoryAuthorization. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this SoftwarerepositoryAuthorization. + The time when this managed object was created. + + :param create_time: The create_time of this SoftwarerepositoryAuthorization. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this SoftwarerepositoryAuthorization. + The time when this managed object was last modified. + + :return: The mod_time of this SoftwarerepositoryAuthorization. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this SoftwarerepositoryAuthorization. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this SoftwarerepositoryAuthorization. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this SoftwarerepositoryAuthorization. + A unique identifier of this Managed Object instance. + + :return: The moid of this SoftwarerepositoryAuthorization. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SoftwarerepositoryAuthorization. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this SoftwarerepositoryAuthorization. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SoftwarerepositoryAuthorization. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this SoftwarerepositoryAuthorization. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SoftwarerepositoryAuthorization. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this SoftwarerepositoryAuthorization. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this SoftwarerepositoryAuthorization. + An array of owners which represent effective ownership of this object. + + :return: The owners of this SoftwarerepositoryAuthorization. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this SoftwarerepositoryAuthorization. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this SoftwarerepositoryAuthorization. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this SoftwarerepositoryAuthorization. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this SoftwarerepositoryAuthorization. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this SoftwarerepositoryAuthorization. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this SoftwarerepositoryAuthorization. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this SoftwarerepositoryAuthorization. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this SoftwarerepositoryAuthorization. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this SoftwarerepositoryAuthorization. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this SoftwarerepositoryAuthorization. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this SoftwarerepositoryAuthorization. + The versioning info for this managed object + + :return: The version_context of this SoftwarerepositoryAuthorization. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this SoftwarerepositoryAuthorization. + The versioning info for this managed object + + :param version_context: The version_context of this SoftwarerepositoryAuthorization. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def account(self): + """ + Gets the account of this SoftwarerepositoryAuthorization. + Account relation + + :return: The account of this SoftwarerepositoryAuthorization. + :rtype: IamAccountRef + """ + return self._account + + @account.setter + def account(self, account): + """ + Sets the account of this SoftwarerepositoryAuthorization. + Account relation + + :param account: The account of this SoftwarerepositoryAuthorization. + :type: IamAccountRef + """ + + self._account = account + + @property + def is_password_set(self): + """ + Gets the is_password_set of this SoftwarerepositoryAuthorization. + + :return: The is_password_set of this SoftwarerepositoryAuthorization. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this SoftwarerepositoryAuthorization. + + :param is_password_set: The is_password_set of this SoftwarerepositoryAuthorization. + :type: bool + """ + + self._is_password_set = is_password_set + + @property + def is_user_id_set(self): + """ + Gets the is_user_id_set of this SoftwarerepositoryAuthorization. + + :return: The is_user_id_set of this SoftwarerepositoryAuthorization. + :rtype: bool + """ + return self._is_user_id_set + + @is_user_id_set.setter + def is_user_id_set(self, is_user_id_set): + """ + Sets the is_user_id_set of this SoftwarerepositoryAuthorization. + + :param is_user_id_set: The is_user_id_set of this SoftwarerepositoryAuthorization. + :type: bool + """ + + self._is_user_id_set = is_user_id_set + + @property + def password(self): + """ + Gets the password of this SoftwarerepositoryAuthorization. + User password for the external site + + :return: The password of this SoftwarerepositoryAuthorization. + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """ + Sets the password of this SoftwarerepositoryAuthorization. + User password for the external site + + :param password: The password of this SoftwarerepositoryAuthorization. + :type: str + """ + + self._password = password + + @property + def repository_type(self): + """ + Gets the repository_type of this SoftwarerepositoryAuthorization. + Repositry the user credentials are for + + :return: The repository_type of this SoftwarerepositoryAuthorization. + :rtype: str + """ + return self._repository_type + + @repository_type.setter + def repository_type(self, repository_type): + """ + Sets the repository_type of this SoftwarerepositoryAuthorization. + Repositry the user credentials are for + + :param repository_type: The repository_type of this SoftwarerepositoryAuthorization. + :type: str + """ + allowed_values = ["cisco"] + if repository_type not in allowed_values: + raise ValueError( + "Invalid value for `repository_type` ({0}), must be one of {1}" + .format(repository_type, allowed_values) + ) + + self._repository_type = repository_type + + @property + def user_id(self): + """ + Gets the user_id of this SoftwarerepositoryAuthorization. + User id for the external site + + :return: The user_id of this SoftwarerepositoryAuthorization. + :rtype: str + """ + return self._user_id + + @user_id.setter + def user_id(self, user_id): + """ + Sets the user_id of this SoftwarerepositoryAuthorization. + User id for the external site + + :param user_id: The user_id of this SoftwarerepositoryAuthorization. + :type: str + """ + + self._user_id = user_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SoftwarerepositoryAuthorization): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/packagemanagement_connector_image_list.py b/intersight/models/softwarerepository_authorization_list.py similarity index 70% rename from intersight/models/packagemanagement_connector_image_list.py rename to intersight/models/softwarerepository_authorization_list.py index 879fd370..59b767a4 100644 --- a/intersight/models/packagemanagement_connector_image_list.py +++ b/intersight/models/softwarerepository_authorization_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class PackagemanagementConnectorImageList(object): +class SoftwarerepositoryAuthorizationList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class PackagemanagementConnectorImageList(object): """ swagger_types = { 'count': 'int', - 'results': 'list[PackagemanagementConnectorImage]' + 'results': 'list[SoftwarerepositoryAuthorization]' } attribute_map = { @@ -42,7 +42,7 @@ class PackagemanagementConnectorImageList(object): def __init__(self, count=None, results=None): """ - PackagemanagementConnectorImageList - a model defined in Swagger + SoftwarerepositoryAuthorizationList - a model defined in Swagger """ self._count = None @@ -56,10 +56,10 @@ def __init__(self, count=None, results=None): @property def count(self): """ - Gets the count of this PackagemanagementConnectorImageList. - The number of packagemanagementConnectorImages matching your request in total for all pages. + Gets the count of this SoftwarerepositoryAuthorizationList. + The number of softwarerepositoryAuthorizations matching your request in total for all pages. - :return: The count of this PackagemanagementConnectorImageList. + :return: The count of this SoftwarerepositoryAuthorizationList. :rtype: int """ return self._count @@ -67,10 +67,10 @@ def count(self): @count.setter def count(self, count): """ - Sets the count of this PackagemanagementConnectorImageList. - The number of packagemanagementConnectorImages matching your request in total for all pages. + Sets the count of this SoftwarerepositoryAuthorizationList. + The number of softwarerepositoryAuthorizations matching your request in total for all pages. - :param count: The count of this PackagemanagementConnectorImageList. + :param count: The count of this SoftwarerepositoryAuthorizationList. :type: int """ @@ -79,22 +79,22 @@ def count(self, count): @property def results(self): """ - Gets the results of this PackagemanagementConnectorImageList. - The array of packagemanagementConnectorImages matching your request. + Gets the results of this SoftwarerepositoryAuthorizationList. + The array of softwarerepositoryAuthorizations matching your request. - :return: The results of this PackagemanagementConnectorImageList. - :rtype: list[PackagemanagementConnectorImage] + :return: The results of this SoftwarerepositoryAuthorizationList. + :rtype: list[SoftwarerepositoryAuthorization] """ return self._results @results.setter def results(self, results): """ - Sets the results of this PackagemanagementConnectorImageList. - The array of packagemanagementConnectorImages matching your request. + Sets the results of this SoftwarerepositoryAuthorizationList. + The array of softwarerepositoryAuthorizations matching your request. - :param results: The results of this PackagemanagementConnectorImageList. - :type: list[PackagemanagementConnectorImage] + :param results: The results of this SoftwarerepositoryAuthorizationList. + :type: list[SoftwarerepositoryAuthorization] """ self._results = results @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, PackagemanagementConnectorImageList): + if not isinstance(other, SoftwarerepositoryAuthorizationList): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/softwarerepository_authorization_ref.py b/intersight/models/softwarerepository_authorization_ref.py new file mode 100644 index 00000000..867febbf --- /dev/null +++ b/intersight/models/softwarerepository_authorization_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SoftwarerepositoryAuthorizationRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SoftwarerepositoryAuthorizationRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SoftwarerepositoryAuthorizationRef. + + :return: The moid of this SoftwarerepositoryAuthorizationRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SoftwarerepositoryAuthorizationRef. + + :param moid: The moid of this SoftwarerepositoryAuthorizationRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SoftwarerepositoryAuthorizationRef. + + :return: The object_type of this SoftwarerepositoryAuthorizationRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SoftwarerepositoryAuthorizationRef. + + :param object_type: The object_type of this SoftwarerepositoryAuthorizationRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SoftwarerepositoryAuthorizationRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/sol_deploy_task_ref.py b/intersight/models/sol_deploy_task_ref.py new file mode 100644 index 00000000..e25241c6 --- /dev/null +++ b/intersight/models/sol_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SolDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SolDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SolDeployTaskRef. + + :return: The moid of this SolDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SolDeployTaskRef. + + :param moid: The moid of this SolDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SolDeployTaskRef. + + :return: The object_type of this SolDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SolDeployTaskRef. + + :param object_type: The object_type of this SolDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SolDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/sol_policy.py b/intersight/models/sol_policy.py index 1917f016..1b11e9a9 100644 --- a/intersight/models/sol_policy.py +++ b/intersight/models/sol_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,22 @@ class SolPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', 'baud_rate': 'int', 'com_port': 'str', 'enabled': 'bool', - 'organization': 'MoMoRef', - 'profiles': 'list[MoMoRef]', + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]', 'ssh_port': 'int' } @@ -60,6 +61,7 @@ class SolPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'baud_rate': 'BaudRate', @@ -70,7 +72,7 @@ class SolPolicy(object): 'ssh_port': 'SshPort' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, baud_rate=None, com_port='com0', enabled=None, organization=None, profiles=None, ssh_port=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, baud_rate=None, com_port='com0', enabled=None, organization=None, profiles=None, ssh_port=None): """ SolPolicy - a model defined in Swagger """ @@ -84,6 +86,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._baud_rate = None @@ -111,6 +114,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -158,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this SolPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this SolPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this SolPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this SolPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -316,7 +321,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this SolPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this SolPolicy. :rtype: list[MoTag] @@ -327,7 +332,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this SolPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this SolPolicy. :type: list[MoTag] @@ -335,6 +340,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this SolPolicy. + The versioning info for this managed object + + :return: The version_context of this SolPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this SolPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this SolPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -385,7 +413,7 @@ def name(self, name): def baud_rate(self): """ Gets the baud_rate of this SolPolicy. - Baud Rate used for Serial Over LAN communication. Accepted values are 115200, 19200, 38400, 57600, 9600 + Baud Rate used for Serial Over LAN communication :return: The baud_rate of this SolPolicy. :rtype: int @@ -396,7 +424,7 @@ def baud_rate(self): def baud_rate(self, baud_rate): """ Sets the baud_rate of this SolPolicy. - Baud Rate used for Serial Over LAN communication. Accepted values are 115200, 19200, 38400, 57600, 9600 + Baud Rate used for Serial Over LAN communication :param baud_rate: The baud_rate of this SolPolicy. :type: int @@ -408,7 +436,7 @@ def baud_rate(self, baud_rate): def com_port(self): """ Gets the com_port of this SolPolicy. - Serial port through which the system routes Serial Over LAN communication. Accepted values com0 or com1. This field is available only on some Cisco UCS C-Series servers. If it is unavailable, the server uses COM port 0 by default. + Serial port through which the system routes Serial Over LAN communication. This field is available only on some Cisco UCS C-Series servers. If it is unavailable, the server uses COM port 0 by default. :return: The com_port of this SolPolicy. :rtype: str @@ -419,7 +447,7 @@ def com_port(self): def com_port(self, com_port): """ Sets the com_port of this SolPolicy. - Serial port through which the system routes Serial Over LAN communication. Accepted values com0 or com1. This field is available only on some Cisco UCS C-Series servers. If it is unavailable, the server uses COM port 0 by default. + Serial port through which the system routes Serial Over LAN communication. This field is available only on some Cisco UCS C-Series servers. If it is unavailable, the server uses COM port 0 by default. :param com_port: The com_port of this SolPolicy. :type: str @@ -463,7 +491,7 @@ def organization(self): Organization :return: The organization of this SolPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -474,7 +502,7 @@ def organization(self, organization): Organization :param organization: The organization of this SolPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -486,7 +514,7 @@ def profiles(self): Relationship to the profile object :return: The profiles of this SolPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -497,7 +525,7 @@ def profiles(self, profiles): Relationship to the profile object :param profiles: The profiles of this SolPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles @@ -506,7 +534,7 @@ def profiles(self, profiles): def ssh_port(self): """ Gets the ssh_port of this SolPolicy. - SSH port used to access Serial Over LAN directly. Enables bypassing Cisco IMC shell to provide direct access to Serial Over LAN. Accepted values range from 1024 to 65535. The default value is 2400. + SSH port used to access Serial Over LAN directly. Enables bypassing Cisco IMC shell to provide direct access to Serial Over LAN. :return: The ssh_port of this SolPolicy. :rtype: int @@ -517,7 +545,7 @@ def ssh_port(self): def ssh_port(self, ssh_port): """ Sets the ssh_port of this SolPolicy. - SSH port used to access Serial Over LAN directly. Enables bypassing Cisco IMC shell to provide direct access to Serial Over LAN. Accepted values range from 1024 to 65535. The default value is 2400. + SSH port used to access Serial Over LAN directly. Enables bypassing Cisco IMC shell to provide direct access to Serial Over LAN. :param ssh_port: The ssh_port of this SolPolicy. :type: int diff --git a/intersight/models/sol_policy_list.py b/intersight/models/sol_policy_list.py index 4cf63166..3dd30fd4 100644 --- a/intersight/models/sol_policy_list.py +++ b/intersight/models/sol_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/sol_policy_ref.py b/intersight/models/sol_policy_ref.py new file mode 100644 index 00000000..ee099fa5 --- /dev/null +++ b/intersight/models/sol_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SolPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SolPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SolPolicyRef. + + :return: The moid of this SolPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SolPolicyRef. + + :param moid: The moid of this SolPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SolPolicyRef. + + :return: The object_type of this SolPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SolPolicyRef. + + :param object_type: The object_type of this SolPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SolPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/sol_validation_task_ref.py b/intersight/models/sol_validation_task_ref.py new file mode 100644 index 00000000..1022ea9e --- /dev/null +++ b/intersight/models/sol_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SolValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SolValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SolValidationTaskRef. + + :return: The moid of this SolValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SolValidationTaskRef. + + :param moid: The moid of this SolValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SolValidationTaskRef. + + :return: The object_type of this SolValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SolValidationTaskRef. + + :param object_type: The object_type of this SolValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SolValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ssh_deploy_task_ref.py b/intersight/models/ssh_deploy_task_ref.py new file mode 100644 index 00000000..2a29a0d6 --- /dev/null +++ b/intersight/models/ssh_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SshDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SshDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SshDeployTaskRef. + + :return: The moid of this SshDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SshDeployTaskRef. + + :param moid: The moid of this SshDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SshDeployTaskRef. + + :return: The object_type of this SshDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SshDeployTaskRef. + + :param object_type: The object_type of this SshDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SshDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ssh_policy.py b/intersight/models/ssh_policy.py index 118ddc82..6d2ac6a7 100644 --- a/intersight/models/ssh_policy.py +++ b/intersight/models/ssh_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,21 @@ class SshPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', 'enabled': 'bool', - 'organization': 'MoMoRef', + 'organization': 'IamAccountRef', 'port': 'int', - 'profiles': 'list[MoMoRef]', + 'profiles': 'list[PolicyAbstractConfigProfileRef]', 'timeout': 'int' } @@ -59,6 +60,7 @@ class SshPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'enabled': 'Enabled', @@ -68,7 +70,7 @@ class SshPolicy(object): 'timeout': 'Timeout' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, enabled=None, organization=None, port=None, profiles=None, timeout=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, enabled=None, organization=None, port=None, profiles=None, timeout=None): """ SshPolicy - a model defined in Swagger """ @@ -82,6 +84,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._enabled = None @@ -108,6 +111,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -153,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this SshPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -164,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this SshPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -291,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this SshPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -302,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this SshPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -311,7 +316,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this SshPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this SshPolicy. :rtype: list[MoTag] @@ -322,7 +327,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this SshPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this SshPolicy. :type: list[MoTag] @@ -330,6 +335,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this SshPolicy. + The versioning info for this managed object + + :return: The version_context of this SshPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this SshPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this SshPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -406,7 +434,7 @@ def organization(self): Organization :return: The organization of this SshPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -417,7 +445,7 @@ def organization(self, organization): Organization :param organization: The organization of this SshPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -426,7 +454,7 @@ def organization(self, organization): def port(self): """ Gets the port of this SshPolicy. - Port used for secure shell access. The default value is 22. + Port used for secure shell access :return: The port of this SshPolicy. :rtype: int @@ -437,7 +465,7 @@ def port(self): def port(self, port): """ Sets the port of this SshPolicy. - Port used for secure shell access. The default value is 22. + Port used for secure shell access :param port: The port of this SshPolicy. :type: int @@ -449,10 +477,10 @@ def port(self, port): def profiles(self): """ Gets the profiles of this SshPolicy. - Relationship to the server profile. + Relationship to the server profile :return: The profiles of this SshPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -460,10 +488,10 @@ def profiles(self): def profiles(self, profiles): """ Sets the profiles of this SshPolicy. - Relationship to the server profile. + Relationship to the server profile :param profiles: The profiles of this SshPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles @@ -472,7 +500,7 @@ def profiles(self, profiles): def timeout(self): """ Gets the timeout of this SshPolicy. - The Number of seconds to wait before the system considers a SSH request to have timed out. Accepted values are between 60 and 10800. The default value is 1800 seconds. + Number of seconds to wait before the system considers a SSH request to have timed out :return: The timeout of this SshPolicy. :rtype: int @@ -483,7 +511,7 @@ def timeout(self): def timeout(self, timeout): """ Sets the timeout of this SshPolicy. - The Number of seconds to wait before the system considers a SSH request to have timed out. Accepted values are between 60 and 10800. The default value is 1800 seconds. + Number of seconds to wait before the system considers a SSH request to have timed out :param timeout: The timeout of this SshPolicy. :type: int diff --git a/intersight/models/ssh_policy_list.py b/intersight/models/ssh_policy_list.py index 3f4ac4a8..322ca5db 100644 --- a/intersight/models/ssh_policy_list.py +++ b/intersight/models/ssh_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/ssh_policy_ref.py b/intersight/models/ssh_policy_ref.py new file mode 100644 index 00000000..1172e22e --- /dev/null +++ b/intersight/models/ssh_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SshPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SshPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SshPolicyRef. + + :return: The moid of this SshPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SshPolicyRef. + + :param moid: The moid of this SshPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SshPolicyRef. + + :return: The object_type of this SshPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SshPolicyRef. + + :param object_type: The object_type of this SshPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SshPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ssh_validation_task_ref.py b/intersight/models/ssh_validation_task_ref.py new file mode 100644 index 00000000..4b3ccf0c --- /dev/null +++ b/intersight/models/ssh_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SshValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SshValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SshValidationTaskRef. + + :return: The moid of this SshValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SshValidationTaskRef. + + :param moid: The moid of this SshValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SshValidationTaskRef. + + :return: The object_type of this SshValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SshValidationTaskRef. + + :param object_type: The object_type of this SshValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SshValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_analyze_impact_task_ref.py b/intersight/models/storage_analyze_impact_task_ref.py new file mode 100644 index 00000000..8744d6cd --- /dev/null +++ b/intersight/models/storage_analyze_impact_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageAnalyzeImpactTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageAnalyzeImpactTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageAnalyzeImpactTaskRef. + + :return: The moid of this StorageAnalyzeImpactTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageAnalyzeImpactTaskRef. + + :param moid: The moid of this StorageAnalyzeImpactTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageAnalyzeImpactTaskRef. + + :return: The object_type of this StorageAnalyzeImpactTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageAnalyzeImpactTaskRef. + + :param object_type: The object_type of this StorageAnalyzeImpactTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageAnalyzeImpactTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_controller.py b/intersight/models/storage_controller.py index 00da009f..8d1d3215 100644 --- a/intersight/models/storage_controller.py +++ b/intersight/models/storage_controller.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class StorageController(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -47,7 +48,7 @@ class StorageController(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'compute_board': 'MoMoRef', + 'compute_board': 'ComputeBoardRef', 'controller_flags': 'str', 'controller_id': 'str', 'controller_status': 'str', @@ -57,15 +58,17 @@ class StorageController(object): 'operability': 'str', 'pci_addr': 'str', 'pci_slot': 'str', - 'physical_disks': 'list[MoMoRef]', + 'physical_disk_extensions': 'list[StoragePhysicalDiskExtensionRef]', + 'physical_disks': 'list[StoragePhysicalDiskRef]', 'presence': 'str', 'raid_support': 'str', 'rebuild_rate': 'str', - 'registered_device': 'MoMoRef', - 'running_firmware': 'list[MoMoRef]', + 'registered_device': 'AssetDeviceRegistrationRef', + 'running_firmware': 'list[FirmwareRunningFirmwareRef]', 'self_encrypt_enabled': 'str', 'type': 'str', - 'virtual_drives': 'list[MoMoRef]' + 'virtual_drive_extensions': 'list[StorageVirtualDriveExtensionRef]', + 'virtual_drives': 'list[StorageVirtualDriveRef]' } attribute_map = { @@ -78,6 +81,7 @@ class StorageController(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -95,6 +99,7 @@ class StorageController(object): 'operability': 'Operability', 'pci_addr': 'PciAddr', 'pci_slot': 'PciSlot', + 'physical_disk_extensions': 'PhysicalDiskExtensions', 'physical_disks': 'PhysicalDisks', 'presence': 'Presence', 'raid_support': 'RaidSupport', @@ -103,10 +108,11 @@ class StorageController(object): 'running_firmware': 'RunningFirmware', 'self_encrypt_enabled': 'SelfEncryptEnabled', 'type': 'Type', + 'virtual_drive_extensions': 'VirtualDriveExtensions', 'virtual_drives': 'VirtualDrives' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_board=None, controller_flags=None, controller_id=None, controller_status=None, hw_revision=None, oob_interface_supported=None, oper_state=None, operability=None, pci_addr=None, pci_slot=None, physical_disks=None, presence=None, raid_support=None, rebuild_rate=None, registered_device=None, running_firmware=None, self_encrypt_enabled=None, type=None, virtual_drives=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_board=None, controller_flags=None, controller_id=None, controller_status=None, hw_revision=None, oob_interface_supported=None, oper_state=None, operability=None, pci_addr=None, pci_slot=None, physical_disk_extensions=None, physical_disks=None, presence=None, raid_support=None, rebuild_rate=None, registered_device=None, running_firmware=None, self_encrypt_enabled=None, type=None, virtual_drive_extensions=None, virtual_drives=None): """ StorageController - a model defined in Swagger """ @@ -120,6 +126,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -137,6 +144,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._operability = None self._pci_addr = None self._pci_slot = None + self._physical_disk_extensions = None self._physical_disks = None self._presence = None self._raid_support = None @@ -145,6 +153,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._running_firmware = None self._self_encrypt_enabled = None self._type = None + self._virtual_drive_extensions = None self._virtual_drives = None if account_moid is not None: @@ -165,6 +174,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -199,6 +210,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.pci_addr = pci_addr if pci_slot is not None: self.pci_slot = pci_slot + if physical_disk_extensions is not None: + self.physical_disk_extensions = physical_disk_extensions if physical_disks is not None: self.physical_disks = physical_disks if presence is not None: @@ -215,6 +228,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.self_encrypt_enabled = self_encrypt_enabled if type is not None: self.type = type + if virtual_drive_extensions is not None: + self.virtual_drive_extensions = virtual_drive_extensions if virtual_drives is not None: self.virtual_drives = virtual_drives @@ -248,7 +263,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StorageController. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -259,7 +274,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StorageController. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -386,7 +401,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StorageController. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -397,7 +412,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StorageController. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -406,7 +421,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this StorageController. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this StorageController. :rtype: list[MoTag] @@ -417,7 +432,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this StorageController. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this StorageController. :type: list[MoTag] @@ -425,6 +440,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this StorageController. + The versioning info for this managed object + + :return: The version_context of this StorageController. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this StorageController. + The versioning info for this managed object + + :param version_context: The version_context of this StorageController. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -578,7 +616,7 @@ def compute_board(self): Gets the compute_board of this StorageController. :return: The compute_board of this StorageController. - :rtype: MoMoRef + :rtype: ComputeBoardRef """ return self._compute_board @@ -588,7 +626,7 @@ def compute_board(self, compute_board): Sets the compute_board of this StorageController. :param compute_board: The compute_board of this StorageController. - :type: MoMoRef + :type: ComputeBoardRef """ self._compute_board = compute_board @@ -782,13 +820,34 @@ def pci_slot(self, pci_slot): self._pci_slot = pci_slot + @property + def physical_disk_extensions(self): + """ + Gets the physical_disk_extensions of this StorageController. + + :return: The physical_disk_extensions of this StorageController. + :rtype: list[StoragePhysicalDiskExtensionRef] + """ + return self._physical_disk_extensions + + @physical_disk_extensions.setter + def physical_disk_extensions(self, physical_disk_extensions): + """ + Sets the physical_disk_extensions of this StorageController. + + :param physical_disk_extensions: The physical_disk_extensions of this StorageController. + :type: list[StoragePhysicalDiskExtensionRef] + """ + + self._physical_disk_extensions = physical_disk_extensions + @property def physical_disks(self): """ Gets the physical_disks of this StorageController. :return: The physical_disks of this StorageController. - :rtype: list[MoMoRef] + :rtype: list[StoragePhysicalDiskRef] """ return self._physical_disks @@ -798,7 +857,7 @@ def physical_disks(self, physical_disks): Sets the physical_disks of this StorageController. :param physical_disks: The physical_disks of this StorageController. - :type: list[MoMoRef] + :type: list[StoragePhysicalDiskRef] """ self._physical_disks = physical_disks @@ -872,7 +931,7 @@ def registered_device(self): Gets the registered_device of this StorageController. :return: The registered_device of this StorageController. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -882,7 +941,7 @@ def registered_device(self, registered_device): Sets the registered_device of this StorageController. :param registered_device: The registered_device of this StorageController. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -893,7 +952,7 @@ def running_firmware(self): Gets the running_firmware of this StorageController. :return: The running_firmware of this StorageController. - :rtype: list[MoMoRef] + :rtype: list[FirmwareRunningFirmwareRef] """ return self._running_firmware @@ -903,7 +962,7 @@ def running_firmware(self, running_firmware): Sets the running_firmware of this StorageController. :param running_firmware: The running_firmware of this StorageController. - :type: list[MoMoRef] + :type: list[FirmwareRunningFirmwareRef] """ self._running_firmware = running_firmware @@ -950,13 +1009,34 @@ def type(self, type): self._type = type + @property + def virtual_drive_extensions(self): + """ + Gets the virtual_drive_extensions of this StorageController. + + :return: The virtual_drive_extensions of this StorageController. + :rtype: list[StorageVirtualDriveExtensionRef] + """ + return self._virtual_drive_extensions + + @virtual_drive_extensions.setter + def virtual_drive_extensions(self, virtual_drive_extensions): + """ + Sets the virtual_drive_extensions of this StorageController. + + :param virtual_drive_extensions: The virtual_drive_extensions of this StorageController. + :type: list[StorageVirtualDriveExtensionRef] + """ + + self._virtual_drive_extensions = virtual_drive_extensions + @property def virtual_drives(self): """ Gets the virtual_drives of this StorageController. :return: The virtual_drives of this StorageController. - :rtype: list[MoMoRef] + :rtype: list[StorageVirtualDriveRef] """ return self._virtual_drives @@ -966,7 +1046,7 @@ def virtual_drives(self, virtual_drives): Sets the virtual_drives of this StorageController. :param virtual_drives: The virtual_drives of this StorageController. - :type: list[MoMoRef] + :type: list[StorageVirtualDriveRef] """ self._virtual_drives = virtual_drives diff --git a/intersight/models/storage_controller_list.py b/intersight/models/storage_controller_list.py index 23488f7c..db42657b 100644 --- a/intersight/models/storage_controller_list.py +++ b/intersight/models/storage_controller_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_controller_ref.py b/intersight/models/storage_controller_ref.py new file mode 100644 index 00000000..19370d56 --- /dev/null +++ b/intersight/models/storage_controller_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageControllerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageControllerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageControllerRef. + + :return: The moid of this StorageControllerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageControllerRef. + + :param moid: The moid of this StorageControllerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageControllerRef. + + :return: The object_type of this StorageControllerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageControllerRef. + + :param object_type: The object_type of this StorageControllerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageControllerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_deploy_task_ref.py b/intersight/models/storage_deploy_task_ref.py new file mode 100644 index 00000000..626aa559 --- /dev/null +++ b/intersight/models/storage_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageDeployTaskRef. + + :return: The moid of this StorageDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageDeployTaskRef. + + :param moid: The moid of this StorageDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageDeployTaskRef. + + :return: The object_type of this StorageDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageDeployTaskRef. + + :param object_type: The object_type of this StorageDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_disk_group_policy.py b/intersight/models/storage_disk_group_policy.py index ecf09cd8..1efb2824 100644 --- a/intersight/models/storage_disk_group_policy.py +++ b/intersight/models/storage_disk_group_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,21 +32,22 @@ class StorageDiskGroupPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', 'dedicated_hot_spares': 'list[StorageLocalDisk]', - 'encryption_state': 'bool', - 'organization': 'MoMoRef', + 'organization': 'IamAccountRef', 'raid_level': 'str', 'span_groups': 'list[StorageSpanGroup]', + 'storage_policies': 'list[StorageStoragePolicyRef]', 'use_jbods': 'bool' } @@ -60,17 +61,18 @@ class StorageDiskGroupPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'dedicated_hot_spares': 'DedicatedHotSpares', - 'encryption_state': 'EncryptionState', 'organization': 'Organization', 'raid_level': 'RaidLevel', 'span_groups': 'SpanGroups', + 'storage_policies': 'StoragePolicies', 'use_jbods': 'UseJbods' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, dedicated_hot_spares=None, encryption_state=None, organization=None, raid_level='Raid1', span_groups=None, use_jbods=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, dedicated_hot_spares=None, organization=None, raid_level='Raid0', span_groups=None, storage_policies=None, use_jbods=None): """ StorageDiskGroupPolicy - a model defined in Swagger """ @@ -84,13 +86,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._dedicated_hot_spares = None - self._encryption_state = None self._organization = None self._raid_level = None self._span_groups = None + self._storage_policies = None self._use_jbods = None if account_moid is not None: @@ -111,20 +114,22 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: self.name = name if dedicated_hot_spares is not None: self.dedicated_hot_spares = dedicated_hot_spares - if encryption_state is not None: - self.encryption_state = encryption_state if organization is not None: self.organization = organization if raid_level is not None: self.raid_level = raid_level if span_groups is not None: self.span_groups = span_groups + if storage_policies is not None: + self.storage_policies = storage_policies if use_jbods is not None: self.use_jbods = use_jbods @@ -158,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StorageDiskGroupPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StorageDiskGroupPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StorageDiskGroupPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StorageDiskGroupPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -316,7 +321,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this StorageDiskGroupPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this StorageDiskGroupPolicy. :rtype: list[MoTag] @@ -327,7 +332,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this StorageDiskGroupPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this StorageDiskGroupPolicy. :type: list[MoTag] @@ -335,6 +340,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this StorageDiskGroupPolicy. + The versioning info for this managed object + + :return: The version_context of this StorageDiskGroupPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this StorageDiskGroupPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this StorageDiskGroupPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -385,7 +413,7 @@ def name(self, name): def dedicated_hot_spares(self): """ Gets the dedicated_hot_spares of this StorageDiskGroupPolicy. - A collection of disks used as hot spares for this RAID group + A collection of disks used as hot spares for this RAID group :return: The dedicated_hot_spares of this StorageDiskGroupPolicy. :rtype: list[StorageLocalDisk] @@ -396,7 +424,7 @@ def dedicated_hot_spares(self): def dedicated_hot_spares(self, dedicated_hot_spares): """ Sets the dedicated_hot_spares of this StorageDiskGroupPolicy. - A collection of disks used as hot spares for this RAID group + A collection of disks used as hot spares for this RAID group :param dedicated_hot_spares: The dedicated_hot_spares of this StorageDiskGroupPolicy. :type: list[StorageLocalDisk] @@ -404,29 +432,6 @@ def dedicated_hot_spares(self, dedicated_hot_spares): self._dedicated_hot_spares = dedicated_hot_spares - @property - def encryption_state(self): - """ - Gets the encryption_state of this StorageDiskGroupPolicy. - Enables encryption of SEDs in the disk group if the encryption keys are configured in the Storage policy to which this disk group policy is associated. - - :return: The encryption_state of this StorageDiskGroupPolicy. - :rtype: bool - """ - return self._encryption_state - - @encryption_state.setter - def encryption_state(self, encryption_state): - """ - Sets the encryption_state of this StorageDiskGroupPolicy. - Enables encryption of SEDs in the disk group if the encryption keys are configured in the Storage policy to which this disk group policy is associated. - - :param encryption_state: The encryption_state of this StorageDiskGroupPolicy. - :type: bool - """ - - self._encryption_state = encryption_state - @property def organization(self): """ @@ -434,7 +439,7 @@ def organization(self): Organization :return: The organization of this StorageDiskGroupPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -445,7 +450,7 @@ def organization(self, organization): Organization :param organization: The organization of this StorageDiskGroupPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -454,7 +459,7 @@ def organization(self, organization): def raid_level(self): """ Gets the raid_level of this StorageDiskGroupPolicy. - The supported RAID level for the disk group. Accepted Values - Raid0, Raid1, Raid5, Raid6, Raid10, Raid50, Raid60. + The supported RAID level for the disk group :return: The raid_level of this StorageDiskGroupPolicy. :rtype: str @@ -465,12 +470,12 @@ def raid_level(self): def raid_level(self, raid_level): """ Sets the raid_level of this StorageDiskGroupPolicy. - The supported RAID level for the disk group. Accepted Values - Raid0, Raid1, Raid5, Raid6, Raid10, Raid50, Raid60. + The supported RAID level for the disk group :param raid_level: The raid_level of this StorageDiskGroupPolicy. :type: str """ - allowed_values = ["Raid1", "Raid0", "Raid5", "Raid6", "Raid10", "Raid50", "Raid60"] + allowed_values = ["Raid0", "Raid1", "Raid5", "Raid6", "Raid10", "Raid50", "Raid60"] if raid_level not in allowed_values: raise ValueError( "Invalid value for `raid_level` ({0}), must be one of {1}" @@ -483,7 +488,7 @@ def raid_level(self, raid_level): def span_groups(self): """ Gets the span_groups of this StorageDiskGroupPolicy. - Non spanned RAID levels like Raid0, Raid1, Raid5 and Raid6 expect a single group of disks whereas spanned RAID levels need multiple groups of disks with each group representing a span group. Non spanned RAID levels expect one span group and spanned RAID levels accept minimum 2 span groups and up to 8. + Non spanned RAID levels like Raid0, Raid1, Raid5 and Raid6 expect a single group of disks whereas spanned RAID levels need multiple groups of disks with each group representing a span group. Non spanned RAID levels expect one span group and spanned RAID levels accept minimum 2 span groups and up to 8 :return: The span_groups of this StorageDiskGroupPolicy. :rtype: list[StorageSpanGroup] @@ -494,7 +499,7 @@ def span_groups(self): def span_groups(self, span_groups): """ Sets the span_groups of this StorageDiskGroupPolicy. - Non spanned RAID levels like Raid0, Raid1, Raid5 and Raid6 expect a single group of disks whereas spanned RAID levels need multiple groups of disks with each group representing a span group. Non spanned RAID levels expect one span group and spanned RAID levels accept minimum 2 span groups and up to 8. + Non spanned RAID levels like Raid0, Raid1, Raid5 and Raid6 expect a single group of disks whereas spanned RAID levels need multiple groups of disks with each group representing a span group. Non spanned RAID levels expect one span group and spanned RAID levels accept minimum 2 span groups and up to 8 :param span_groups: The span_groups of this StorageDiskGroupPolicy. :type: list[StorageSpanGroup] @@ -502,11 +507,32 @@ def span_groups(self, span_groups): self._span_groups = span_groups + @property + def storage_policies(self): + """ + Gets the storage_policies of this StorageDiskGroupPolicy. + + :return: The storage_policies of this StorageDiskGroupPolicy. + :rtype: list[StorageStoragePolicyRef] + """ + return self._storage_policies + + @storage_policies.setter + def storage_policies(self, storage_policies): + """ + Sets the storage_policies of this StorageDiskGroupPolicy. + + :param storage_policies: The storage_policies of this StorageDiskGroupPolicy. + :type: list[StorageStoragePolicyRef] + """ + + self._storage_policies = storage_policies + @property def use_jbods(self): """ Gets the use_jbods of this StorageDiskGroupPolicy. - Disks selected in disk group which are in JBOD state will be set to Unconfigured Good state before being used in virtual drive creation. + Selected disks in the disk group in JBOD state will be set to Unconfigured Good state before they are used in virtual drive creation :return: The use_jbods of this StorageDiskGroupPolicy. :rtype: bool @@ -517,7 +543,7 @@ def use_jbods(self): def use_jbods(self, use_jbods): """ Sets the use_jbods of this StorageDiskGroupPolicy. - Disks selected in disk group which are in JBOD state will be set to Unconfigured Good state before being used in virtual drive creation. + Selected disks in the disk group in JBOD state will be set to Unconfigured Good state before they are used in virtual drive creation :param use_jbods: The use_jbods of this StorageDiskGroupPolicy. :type: bool diff --git a/intersight/models/storage_disk_group_policy_list.py b/intersight/models/storage_disk_group_policy_list.py index f066080d..8f9b1794 100644 --- a/intersight/models/storage_disk_group_policy_list.py +++ b/intersight/models/storage_disk_group_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_disk_group_policy_ref.py b/intersight/models/storage_disk_group_policy_ref.py new file mode 100644 index 00000000..8b1dba5b --- /dev/null +++ b/intersight/models/storage_disk_group_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageDiskGroupPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageDiskGroupPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageDiskGroupPolicyRef. + + :return: The moid of this StorageDiskGroupPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageDiskGroupPolicyRef. + + :param moid: The moid of this StorageDiskGroupPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageDiskGroupPolicyRef. + + :return: The object_type of this StorageDiskGroupPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageDiskGroupPolicyRef. + + :param object_type: The object_type of this StorageDiskGroupPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageDiskGroupPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_enclosure.py b/intersight/models/storage_enclosure.py new file mode 100644 index 00000000..48a59e34 --- /dev/null +++ b/intersight/models/storage_enclosure.py @@ -0,0 +1,871 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageEnclosure(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'device_mo_id': 'str', + 'dn': 'str', + 'rn': 'str', + 'model': 'str', + 'revision': 'str', + 'serial': 'str', + 'vendor': 'str', + 'chassis_id': 'int', + 'compute_blade': 'ComputeBladeRef', + 'compute_rack_unit': 'ComputeRackUnitRef', + 'description': 'str', + 'enclosure_id': 'int', + 'equipment_chassis': 'EquipmentChassisRef', + 'num_slots': 'int', + 'physical_disks': 'list[StoragePhysicalDiskRef]', + 'presence': 'str', + 'registered_device': 'AssetDeviceRegistrationRef', + 'server_id': 'int', + 'type': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'device_mo_id': 'DeviceMoId', + 'dn': 'Dn', + 'rn': 'Rn', + 'model': 'Model', + 'revision': 'Revision', + 'serial': 'Serial', + 'vendor': 'Vendor', + 'chassis_id': 'ChassisId', + 'compute_blade': 'ComputeBlade', + 'compute_rack_unit': 'ComputeRackUnit', + 'description': 'Description', + 'enclosure_id': 'EnclosureId', + 'equipment_chassis': 'EquipmentChassis', + 'num_slots': 'NumSlots', + 'physical_disks': 'PhysicalDisks', + 'presence': 'Presence', + 'registered_device': 'RegisteredDevice', + 'server_id': 'ServerId', + 'type': 'Type' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, chassis_id=None, compute_blade=None, compute_rack_unit=None, description=None, enclosure_id=None, equipment_chassis=None, num_slots=None, physical_disks=None, presence=None, registered_device=None, server_id=None, type=None): + """ + StorageEnclosure - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._device_mo_id = None + self._dn = None + self._rn = None + self._model = None + self._revision = None + self._serial = None + self._vendor = None + self._chassis_id = None + self._compute_blade = None + self._compute_rack_unit = None + self._description = None + self._enclosure_id = None + self._equipment_chassis = None + self._num_slots = None + self._physical_disks = None + self._presence = None + self._registered_device = None + self._server_id = None + self._type = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if device_mo_id is not None: + self.device_mo_id = device_mo_id + if dn is not None: + self.dn = dn + if rn is not None: + self.rn = rn + if model is not None: + self.model = model + if revision is not None: + self.revision = revision + if serial is not None: + self.serial = serial + if vendor is not None: + self.vendor = vendor + if chassis_id is not None: + self.chassis_id = chassis_id + if compute_blade is not None: + self.compute_blade = compute_blade + if compute_rack_unit is not None: + self.compute_rack_unit = compute_rack_unit + if description is not None: + self.description = description + if enclosure_id is not None: + self.enclosure_id = enclosure_id + if equipment_chassis is not None: + self.equipment_chassis = equipment_chassis + if num_slots is not None: + self.num_slots = num_slots + if physical_disks is not None: + self.physical_disks = physical_disks + if presence is not None: + self.presence = presence + if registered_device is not None: + self.registered_device = registered_device + if server_id is not None: + self.server_id = server_id + if type is not None: + self.type = type + + @property + def account_moid(self): + """ + Gets the account_moid of this StorageEnclosure. + The Account ID for this managed object. + + :return: The account_moid of this StorageEnclosure. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this StorageEnclosure. + The Account ID for this managed object. + + :param account_moid: The account_moid of this StorageEnclosure. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this StorageEnclosure. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this StorageEnclosure. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this StorageEnclosure. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this StorageEnclosure. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this StorageEnclosure. + The time when this managed object was created. + + :return: The create_time of this StorageEnclosure. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this StorageEnclosure. + The time when this managed object was created. + + :param create_time: The create_time of this StorageEnclosure. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this StorageEnclosure. + The time when this managed object was last modified. + + :return: The mod_time of this StorageEnclosure. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this StorageEnclosure. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this StorageEnclosure. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this StorageEnclosure. + A unique identifier of this Managed Object instance. + + :return: The moid of this StorageEnclosure. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageEnclosure. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this StorageEnclosure. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageEnclosure. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this StorageEnclosure. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageEnclosure. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this StorageEnclosure. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this StorageEnclosure. + An array of owners which represent effective ownership of this object. + + :return: The owners of this StorageEnclosure. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this StorageEnclosure. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this StorageEnclosure. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this StorageEnclosure. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this StorageEnclosure. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this StorageEnclosure. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this StorageEnclosure. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this StorageEnclosure. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this StorageEnclosure. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this StorageEnclosure. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this StorageEnclosure. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this StorageEnclosure. + The versioning info for this managed object + + :return: The version_context of this StorageEnclosure. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this StorageEnclosure. + The versioning info for this managed object + + :param version_context: The version_context of this StorageEnclosure. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def device_mo_id(self): + """ + Gets the device_mo_id of this StorageEnclosure. + + :return: The device_mo_id of this StorageEnclosure. + :rtype: str + """ + return self._device_mo_id + + @device_mo_id.setter + def device_mo_id(self, device_mo_id): + """ + Sets the device_mo_id of this StorageEnclosure. + + :param device_mo_id: The device_mo_id of this StorageEnclosure. + :type: str + """ + + self._device_mo_id = device_mo_id + + @property + def dn(self): + """ + Gets the dn of this StorageEnclosure. + + :return: The dn of this StorageEnclosure. + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """ + Sets the dn of this StorageEnclosure. + + :param dn: The dn of this StorageEnclosure. + :type: str + """ + + self._dn = dn + + @property + def rn(self): + """ + Gets the rn of this StorageEnclosure. + + :return: The rn of this StorageEnclosure. + :rtype: str + """ + return self._rn + + @rn.setter + def rn(self, rn): + """ + Sets the rn of this StorageEnclosure. + + :param rn: The rn of this StorageEnclosure. + :type: str + """ + + self._rn = rn + + @property + def model(self): + """ + Gets the model of this StorageEnclosure. + + :return: The model of this StorageEnclosure. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this StorageEnclosure. + + :param model: The model of this StorageEnclosure. + :type: str + """ + + self._model = model + + @property + def revision(self): + """ + Gets the revision of this StorageEnclosure. + + :return: The revision of this StorageEnclosure. + :rtype: str + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this StorageEnclosure. + + :param revision: The revision of this StorageEnclosure. + :type: str + """ + + self._revision = revision + + @property + def serial(self): + """ + Gets the serial of this StorageEnclosure. + + :return: The serial of this StorageEnclosure. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this StorageEnclosure. + + :param serial: The serial of this StorageEnclosure. + :type: str + """ + + self._serial = serial + + @property + def vendor(self): + """ + Gets the vendor of this StorageEnclosure. + + :return: The vendor of this StorageEnclosure. + :rtype: str + """ + return self._vendor + + @vendor.setter + def vendor(self, vendor): + """ + Sets the vendor of this StorageEnclosure. + + :param vendor: The vendor of this StorageEnclosure. + :type: str + """ + + self._vendor = vendor + + @property + def chassis_id(self): + """ + Gets the chassis_id of this StorageEnclosure. + + :return: The chassis_id of this StorageEnclosure. + :rtype: int + """ + return self._chassis_id + + @chassis_id.setter + def chassis_id(self, chassis_id): + """ + Sets the chassis_id of this StorageEnclosure. + + :param chassis_id: The chassis_id of this StorageEnclosure. + :type: int + """ + + self._chassis_id = chassis_id + + @property + def compute_blade(self): + """ + Gets the compute_blade of this StorageEnclosure. + + :return: The compute_blade of this StorageEnclosure. + :rtype: ComputeBladeRef + """ + return self._compute_blade + + @compute_blade.setter + def compute_blade(self, compute_blade): + """ + Sets the compute_blade of this StorageEnclosure. + + :param compute_blade: The compute_blade of this StorageEnclosure. + :type: ComputeBladeRef + """ + + self._compute_blade = compute_blade + + @property + def compute_rack_unit(self): + """ + Gets the compute_rack_unit of this StorageEnclosure. + + :return: The compute_rack_unit of this StorageEnclosure. + :rtype: ComputeRackUnitRef + """ + return self._compute_rack_unit + + @compute_rack_unit.setter + def compute_rack_unit(self, compute_rack_unit): + """ + Sets the compute_rack_unit of this StorageEnclosure. + + :param compute_rack_unit: The compute_rack_unit of this StorageEnclosure. + :type: ComputeRackUnitRef + """ + + self._compute_rack_unit = compute_rack_unit + + @property + def description(self): + """ + Gets the description of this StorageEnclosure. + + :return: The description of this StorageEnclosure. + :rtype: str + """ + return self._description + + @description.setter + def description(self, description): + """ + Sets the description of this StorageEnclosure. + + :param description: The description of this StorageEnclosure. + :type: str + """ + + self._description = description + + @property + def enclosure_id(self): + """ + Gets the enclosure_id of this StorageEnclosure. + + :return: The enclosure_id of this StorageEnclosure. + :rtype: int + """ + return self._enclosure_id + + @enclosure_id.setter + def enclosure_id(self, enclosure_id): + """ + Sets the enclosure_id of this StorageEnclosure. + + :param enclosure_id: The enclosure_id of this StorageEnclosure. + :type: int + """ + + self._enclosure_id = enclosure_id + + @property + def equipment_chassis(self): + """ + Gets the equipment_chassis of this StorageEnclosure. + + :return: The equipment_chassis of this StorageEnclosure. + :rtype: EquipmentChassisRef + """ + return self._equipment_chassis + + @equipment_chassis.setter + def equipment_chassis(self, equipment_chassis): + """ + Sets the equipment_chassis of this StorageEnclosure. + + :param equipment_chassis: The equipment_chassis of this StorageEnclosure. + :type: EquipmentChassisRef + """ + + self._equipment_chassis = equipment_chassis + + @property + def num_slots(self): + """ + Gets the num_slots of this StorageEnclosure. + + :return: The num_slots of this StorageEnclosure. + :rtype: int + """ + return self._num_slots + + @num_slots.setter + def num_slots(self, num_slots): + """ + Sets the num_slots of this StorageEnclosure. + + :param num_slots: The num_slots of this StorageEnclosure. + :type: int + """ + + self._num_slots = num_slots + + @property + def physical_disks(self): + """ + Gets the physical_disks of this StorageEnclosure. + + :return: The physical_disks of this StorageEnclosure. + :rtype: list[StoragePhysicalDiskRef] + """ + return self._physical_disks + + @physical_disks.setter + def physical_disks(self, physical_disks): + """ + Sets the physical_disks of this StorageEnclosure. + + :param physical_disks: The physical_disks of this StorageEnclosure. + :type: list[StoragePhysicalDiskRef] + """ + + self._physical_disks = physical_disks + + @property + def presence(self): + """ + Gets the presence of this StorageEnclosure. + + :return: The presence of this StorageEnclosure. + :rtype: str + """ + return self._presence + + @presence.setter + def presence(self, presence): + """ + Sets the presence of this StorageEnclosure. + + :param presence: The presence of this StorageEnclosure. + :type: str + """ + + self._presence = presence + + @property + def registered_device(self): + """ + Gets the registered_device of this StorageEnclosure. + + :return: The registered_device of this StorageEnclosure. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this StorageEnclosure. + + :param registered_device: The registered_device of this StorageEnclosure. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + @property + def server_id(self): + """ + Gets the server_id of this StorageEnclosure. + + :return: The server_id of this StorageEnclosure. + :rtype: int + """ + return self._server_id + + @server_id.setter + def server_id(self, server_id): + """ + Sets the server_id of this StorageEnclosure. + + :param server_id: The server_id of this StorageEnclosure. + :type: int + """ + + self._server_id = server_id + + @property + def type(self): + """ + Gets the type of this StorageEnclosure. + + :return: The type of this StorageEnclosure. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this StorageEnclosure. + + :param type: The type of this StorageEnclosure. + :type: str + """ + + self._type = type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageEnclosure): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/hcl_data_import_log_list.py b/intersight/models/storage_enclosure_list.py similarity index 72% rename from intersight/models/hcl_data_import_log_list.py rename to intersight/models/storage_enclosure_list.py index 09b87751..50b13415 100644 --- a/intersight/models/hcl_data_import_log_list.py +++ b/intersight/models/storage_enclosure_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class HclDataImportLogList(object): +class StorageEnclosureList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class HclDataImportLogList(object): """ swagger_types = { 'count': 'int', - 'results': 'list[HclDataImportLog]' + 'results': 'list[StorageEnclosure]' } attribute_map = { @@ -42,7 +42,7 @@ class HclDataImportLogList(object): def __init__(self, count=None, results=None): """ - HclDataImportLogList - a model defined in Swagger + StorageEnclosureList - a model defined in Swagger """ self._count = None @@ -56,10 +56,10 @@ def __init__(self, count=None, results=None): @property def count(self): """ - Gets the count of this HclDataImportLogList. - The number of hclDataImportLogs matching your request in total for all pages. + Gets the count of this StorageEnclosureList. + The number of storageEnclosures matching your request in total for all pages. - :return: The count of this HclDataImportLogList. + :return: The count of this StorageEnclosureList. :rtype: int """ return self._count @@ -67,10 +67,10 @@ def count(self): @count.setter def count(self, count): """ - Sets the count of this HclDataImportLogList. - The number of hclDataImportLogs matching your request in total for all pages. + Sets the count of this StorageEnclosureList. + The number of storageEnclosures matching your request in total for all pages. - :param count: The count of this HclDataImportLogList. + :param count: The count of this StorageEnclosureList. :type: int """ @@ -79,22 +79,22 @@ def count(self, count): @property def results(self): """ - Gets the results of this HclDataImportLogList. - The array of hclDataImportLogs matching your request. + Gets the results of this StorageEnclosureList. + The array of storageEnclosures matching your request. - :return: The results of this HclDataImportLogList. - :rtype: list[HclDataImportLog] + :return: The results of this StorageEnclosureList. + :rtype: list[StorageEnclosure] """ return self._results @results.setter def results(self, results): """ - Sets the results of this HclDataImportLogList. - The array of hclDataImportLogs matching your request. + Sets the results of this StorageEnclosureList. + The array of storageEnclosures matching your request. - :param results: The results of this HclDataImportLogList. - :type: list[HclDataImportLog] + :param results: The results of this StorageEnclosureList. + :type: list[StorageEnclosure] """ self._results = results @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, HclDataImportLogList): + if not isinstance(other, StorageEnclosureList): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/storage_enclosure_ref.py b/intersight/models/storage_enclosure_ref.py new file mode 100644 index 00000000..1bac4b32 --- /dev/null +++ b/intersight/models/storage_enclosure_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageEnclosureRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageEnclosureRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageEnclosureRef. + + :return: The moid of this StorageEnclosureRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageEnclosureRef. + + :param moid: The moid of this StorageEnclosureRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageEnclosureRef. + + :return: The object_type of this StorageEnclosureRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageEnclosureRef. + + :param object_type: The object_type of this StorageEnclosureRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageEnclosureRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_flash_controller.py b/intersight/models/storage_flex_flash_controller.py index 71f77aad..7015e459 100644 --- a/intersight/models/storage_flex_flash_controller.py +++ b/intersight/models/storage_flex_flash_controller.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class StorageFlexFlashController(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -47,11 +48,13 @@ class StorageFlexFlashController(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'compute_board': 'MoMoRef', + 'compute_board': 'ComputeBoardRef', 'controller_state': 'str', 'ff_controller_id': 'str', - 'flex_flash_physical_drives': 'list[MoMoRef]', - 'registered_device': 'MoMoRef' + 'flex_flash_controller_props': 'list[StorageFlexFlashControllerPropsRef]', + 'flex_flash_physical_drives': 'list[StorageFlexFlashPhysicalDriveRef]', + 'flex_flash_virtual_drives': 'list[StorageFlexFlashVirtualDriveRef]', + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -64,6 +67,7 @@ class StorageFlexFlashController(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -74,11 +78,13 @@ class StorageFlexFlashController(object): 'compute_board': 'ComputeBoard', 'controller_state': 'ControllerState', 'ff_controller_id': 'FfControllerId', + 'flex_flash_controller_props': 'FlexFlashControllerProps', 'flex_flash_physical_drives': 'FlexFlashPhysicalDrives', + 'flex_flash_virtual_drives': 'FlexFlashVirtualDrives', 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_board=None, controller_state=None, ff_controller_id=None, flex_flash_physical_drives=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_board=None, controller_state=None, ff_controller_id=None, flex_flash_controller_props=None, flex_flash_physical_drives=None, flex_flash_virtual_drives=None, registered_device=None): """ StorageFlexFlashController - a model defined in Swagger """ @@ -92,6 +98,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -102,7 +109,9 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._compute_board = None self._controller_state = None self._ff_controller_id = None + self._flex_flash_controller_props = None self._flex_flash_physical_drives = None + self._flex_flash_virtual_drives = None self._registered_device = None if account_moid is not None: @@ -123,6 +132,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -143,8 +154,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.controller_state = controller_state if ff_controller_id is not None: self.ff_controller_id = ff_controller_id + if flex_flash_controller_props is not None: + self.flex_flash_controller_props = flex_flash_controller_props if flex_flash_physical_drives is not None: self.flex_flash_physical_drives = flex_flash_physical_drives + if flex_flash_virtual_drives is not None: + self.flex_flash_virtual_drives = flex_flash_virtual_drives if registered_device is not None: self.registered_device = registered_device @@ -178,7 +193,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StorageFlexFlashController. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -189,7 +204,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StorageFlexFlashController. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -316,7 +331,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StorageFlexFlashController. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -327,7 +342,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StorageFlexFlashController. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -336,7 +351,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this StorageFlexFlashController. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this StorageFlexFlashController. :rtype: list[MoTag] @@ -347,7 +362,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this StorageFlexFlashController. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this StorageFlexFlashController. :type: list[MoTag] @@ -355,6 +370,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this StorageFlexFlashController. + The versioning info for this managed object + + :return: The version_context of this StorageFlexFlashController. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this StorageFlexFlashController. + The versioning info for this managed object + + :param version_context: The version_context of this StorageFlexFlashController. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -508,7 +546,7 @@ def compute_board(self): Gets the compute_board of this StorageFlexFlashController. :return: The compute_board of this StorageFlexFlashController. - :rtype: MoMoRef + :rtype: ComputeBoardRef """ return self._compute_board @@ -518,7 +556,7 @@ def compute_board(self, compute_board): Sets the compute_board of this StorageFlexFlashController. :param compute_board: The compute_board of this StorageFlexFlashController. - :type: MoMoRef + :type: ComputeBoardRef """ self._compute_board = compute_board @@ -565,13 +603,34 @@ def ff_controller_id(self, ff_controller_id): self._ff_controller_id = ff_controller_id + @property + def flex_flash_controller_props(self): + """ + Gets the flex_flash_controller_props of this StorageFlexFlashController. + + :return: The flex_flash_controller_props of this StorageFlexFlashController. + :rtype: list[StorageFlexFlashControllerPropsRef] + """ + return self._flex_flash_controller_props + + @flex_flash_controller_props.setter + def flex_flash_controller_props(self, flex_flash_controller_props): + """ + Sets the flex_flash_controller_props of this StorageFlexFlashController. + + :param flex_flash_controller_props: The flex_flash_controller_props of this StorageFlexFlashController. + :type: list[StorageFlexFlashControllerPropsRef] + """ + + self._flex_flash_controller_props = flex_flash_controller_props + @property def flex_flash_physical_drives(self): """ Gets the flex_flash_physical_drives of this StorageFlexFlashController. :return: The flex_flash_physical_drives of this StorageFlexFlashController. - :rtype: list[MoMoRef] + :rtype: list[StorageFlexFlashPhysicalDriveRef] """ return self._flex_flash_physical_drives @@ -581,18 +640,39 @@ def flex_flash_physical_drives(self, flex_flash_physical_drives): Sets the flex_flash_physical_drives of this StorageFlexFlashController. :param flex_flash_physical_drives: The flex_flash_physical_drives of this StorageFlexFlashController. - :type: list[MoMoRef] + :type: list[StorageFlexFlashPhysicalDriveRef] """ self._flex_flash_physical_drives = flex_flash_physical_drives + @property + def flex_flash_virtual_drives(self): + """ + Gets the flex_flash_virtual_drives of this StorageFlexFlashController. + + :return: The flex_flash_virtual_drives of this StorageFlexFlashController. + :rtype: list[StorageFlexFlashVirtualDriveRef] + """ + return self._flex_flash_virtual_drives + + @flex_flash_virtual_drives.setter + def flex_flash_virtual_drives(self, flex_flash_virtual_drives): + """ + Sets the flex_flash_virtual_drives of this StorageFlexFlashController. + + :param flex_flash_virtual_drives: The flex_flash_virtual_drives of this StorageFlexFlashController. + :type: list[StorageFlexFlashVirtualDriveRef] + """ + + self._flex_flash_virtual_drives = flex_flash_virtual_drives + @property def registered_device(self): """ Gets the registered_device of this StorageFlexFlashController. :return: The registered_device of this StorageFlexFlashController. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -602,7 +682,7 @@ def registered_device(self, registered_device): Sets the registered_device of this StorageFlexFlashController. :param registered_device: The registered_device of this StorageFlexFlashController. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/storage_flex_flash_controller_list.py b/intersight/models/storage_flex_flash_controller_list.py index 79d01a44..a8699fd9 100644 --- a/intersight/models/storage_flex_flash_controller_list.py +++ b/intersight/models/storage_flex_flash_controller_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_flex_flash_controller_props.py b/intersight/models/storage_flex_flash_controller_props.py new file mode 100644 index 00000000..aab417a6 --- /dev/null +++ b/intersight/models/storage_flex_flash_controller_props.py @@ -0,0 +1,897 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexFlashControllerProps(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'device_mo_id': 'str', + 'dn': 'str', + 'rn': 'str', + 'model': 'str', + 'revision': 'str', + 'serial': 'str', + 'vendor': 'str', + 'cards_manageable': 'str', + 'configured_mode': 'str', + 'controller_name': 'str', + 'controller_status': 'str', + 'fw_version': 'str', + 'internal_state': 'str', + 'operating_mode': 'str', + 'physical_drive_count': 'str', + 'product_name': 'str', + 'registered_device': 'AssetDeviceRegistrationRef', + 'startup_fw_version': 'str', + 'storage_flex_flash_controller': 'StorageFlexFlashControllerRef', + 'virtual_drive_count': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'device_mo_id': 'DeviceMoId', + 'dn': 'Dn', + 'rn': 'Rn', + 'model': 'Model', + 'revision': 'Revision', + 'serial': 'Serial', + 'vendor': 'Vendor', + 'cards_manageable': 'CardsManageable', + 'configured_mode': 'ConfiguredMode', + 'controller_name': 'ControllerName', + 'controller_status': 'ControllerStatus', + 'fw_version': 'FwVersion', + 'internal_state': 'InternalState', + 'operating_mode': 'OperatingMode', + 'physical_drive_count': 'PhysicalDriveCount', + 'product_name': 'ProductName', + 'registered_device': 'RegisteredDevice', + 'startup_fw_version': 'StartupFwVersion', + 'storage_flex_flash_controller': 'StorageFlexFlashController', + 'virtual_drive_count': 'VirtualDriveCount' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, cards_manageable=None, configured_mode=None, controller_name=None, controller_status=None, fw_version=None, internal_state=None, operating_mode=None, physical_drive_count=None, product_name=None, registered_device=None, startup_fw_version=None, storage_flex_flash_controller=None, virtual_drive_count=None): + """ + StorageFlexFlashControllerProps - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._device_mo_id = None + self._dn = None + self._rn = None + self._model = None + self._revision = None + self._serial = None + self._vendor = None + self._cards_manageable = None + self._configured_mode = None + self._controller_name = None + self._controller_status = None + self._fw_version = None + self._internal_state = None + self._operating_mode = None + self._physical_drive_count = None + self._product_name = None + self._registered_device = None + self._startup_fw_version = None + self._storage_flex_flash_controller = None + self._virtual_drive_count = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if device_mo_id is not None: + self.device_mo_id = device_mo_id + if dn is not None: + self.dn = dn + if rn is not None: + self.rn = rn + if model is not None: + self.model = model + if revision is not None: + self.revision = revision + if serial is not None: + self.serial = serial + if vendor is not None: + self.vendor = vendor + if cards_manageable is not None: + self.cards_manageable = cards_manageable + if configured_mode is not None: + self.configured_mode = configured_mode + if controller_name is not None: + self.controller_name = controller_name + if controller_status is not None: + self.controller_status = controller_status + if fw_version is not None: + self.fw_version = fw_version + if internal_state is not None: + self.internal_state = internal_state + if operating_mode is not None: + self.operating_mode = operating_mode + if physical_drive_count is not None: + self.physical_drive_count = physical_drive_count + if product_name is not None: + self.product_name = product_name + if registered_device is not None: + self.registered_device = registered_device + if startup_fw_version is not None: + self.startup_fw_version = startup_fw_version + if storage_flex_flash_controller is not None: + self.storage_flex_flash_controller = storage_flex_flash_controller + if virtual_drive_count is not None: + self.virtual_drive_count = virtual_drive_count + + @property + def account_moid(self): + """ + Gets the account_moid of this StorageFlexFlashControllerProps. + The Account ID for this managed object. + + :return: The account_moid of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this StorageFlexFlashControllerProps. + The Account ID for this managed object. + + :param account_moid: The account_moid of this StorageFlexFlashControllerProps. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this StorageFlexFlashControllerProps. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this StorageFlexFlashControllerProps. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this StorageFlexFlashControllerProps. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this StorageFlexFlashControllerProps. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this StorageFlexFlashControllerProps. + The time when this managed object was created. + + :return: The create_time of this StorageFlexFlashControllerProps. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this StorageFlexFlashControllerProps. + The time when this managed object was created. + + :param create_time: The create_time of this StorageFlexFlashControllerProps. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this StorageFlexFlashControllerProps. + The time when this managed object was last modified. + + :return: The mod_time of this StorageFlexFlashControllerProps. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this StorageFlexFlashControllerProps. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this StorageFlexFlashControllerProps. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this StorageFlexFlashControllerProps. + A unique identifier of this Managed Object instance. + + :return: The moid of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexFlashControllerProps. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this StorageFlexFlashControllerProps. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexFlashControllerProps. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexFlashControllerProps. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this StorageFlexFlashControllerProps. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this StorageFlexFlashControllerProps. + An array of owners which represent effective ownership of this object. + + :return: The owners of this StorageFlexFlashControllerProps. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this StorageFlexFlashControllerProps. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this StorageFlexFlashControllerProps. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this StorageFlexFlashControllerProps. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this StorageFlexFlashControllerProps. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this StorageFlexFlashControllerProps. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this StorageFlexFlashControllerProps. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this StorageFlexFlashControllerProps. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this StorageFlexFlashControllerProps. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this StorageFlexFlashControllerProps. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this StorageFlexFlashControllerProps. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this StorageFlexFlashControllerProps. + The versioning info for this managed object + + :return: The version_context of this StorageFlexFlashControllerProps. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this StorageFlexFlashControllerProps. + The versioning info for this managed object + + :param version_context: The version_context of this StorageFlexFlashControllerProps. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def device_mo_id(self): + """ + Gets the device_mo_id of this StorageFlexFlashControllerProps. + + :return: The device_mo_id of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._device_mo_id + + @device_mo_id.setter + def device_mo_id(self, device_mo_id): + """ + Sets the device_mo_id of this StorageFlexFlashControllerProps. + + :param device_mo_id: The device_mo_id of this StorageFlexFlashControllerProps. + :type: str + """ + + self._device_mo_id = device_mo_id + + @property + def dn(self): + """ + Gets the dn of this StorageFlexFlashControllerProps. + + :return: The dn of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """ + Sets the dn of this StorageFlexFlashControllerProps. + + :param dn: The dn of this StorageFlexFlashControllerProps. + :type: str + """ + + self._dn = dn + + @property + def rn(self): + """ + Gets the rn of this StorageFlexFlashControllerProps. + + :return: The rn of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._rn + + @rn.setter + def rn(self, rn): + """ + Sets the rn of this StorageFlexFlashControllerProps. + + :param rn: The rn of this StorageFlexFlashControllerProps. + :type: str + """ + + self._rn = rn + + @property + def model(self): + """ + Gets the model of this StorageFlexFlashControllerProps. + + :return: The model of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this StorageFlexFlashControllerProps. + + :param model: The model of this StorageFlexFlashControllerProps. + :type: str + """ + + self._model = model + + @property + def revision(self): + """ + Gets the revision of this StorageFlexFlashControllerProps. + + :return: The revision of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this StorageFlexFlashControllerProps. + + :param revision: The revision of this StorageFlexFlashControllerProps. + :type: str + """ + + self._revision = revision + + @property + def serial(self): + """ + Gets the serial of this StorageFlexFlashControllerProps. + + :return: The serial of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this StorageFlexFlashControllerProps. + + :param serial: The serial of this StorageFlexFlashControllerProps. + :type: str + """ + + self._serial = serial + + @property + def vendor(self): + """ + Gets the vendor of this StorageFlexFlashControllerProps. + + :return: The vendor of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._vendor + + @vendor.setter + def vendor(self, vendor): + """ + Sets the vendor of this StorageFlexFlashControllerProps. + + :param vendor: The vendor of this StorageFlexFlashControllerProps. + :type: str + """ + + self._vendor = vendor + + @property + def cards_manageable(self): + """ + Gets the cards_manageable of this StorageFlexFlashControllerProps. + + :return: The cards_manageable of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._cards_manageable + + @cards_manageable.setter + def cards_manageable(self, cards_manageable): + """ + Sets the cards_manageable of this StorageFlexFlashControllerProps. + + :param cards_manageable: The cards_manageable of this StorageFlexFlashControllerProps. + :type: str + """ + + self._cards_manageable = cards_manageable + + @property + def configured_mode(self): + """ + Gets the configured_mode of this StorageFlexFlashControllerProps. + + :return: The configured_mode of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._configured_mode + + @configured_mode.setter + def configured_mode(self, configured_mode): + """ + Sets the configured_mode of this StorageFlexFlashControllerProps. + + :param configured_mode: The configured_mode of this StorageFlexFlashControllerProps. + :type: str + """ + + self._configured_mode = configured_mode + + @property + def controller_name(self): + """ + Gets the controller_name of this StorageFlexFlashControllerProps. + + :return: The controller_name of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._controller_name + + @controller_name.setter + def controller_name(self, controller_name): + """ + Sets the controller_name of this StorageFlexFlashControllerProps. + + :param controller_name: The controller_name of this StorageFlexFlashControllerProps. + :type: str + """ + + self._controller_name = controller_name + + @property + def controller_status(self): + """ + Gets the controller_status of this StorageFlexFlashControllerProps. + + :return: The controller_status of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._controller_status + + @controller_status.setter + def controller_status(self, controller_status): + """ + Sets the controller_status of this StorageFlexFlashControllerProps. + + :param controller_status: The controller_status of this StorageFlexFlashControllerProps. + :type: str + """ + + self._controller_status = controller_status + + @property + def fw_version(self): + """ + Gets the fw_version of this StorageFlexFlashControllerProps. + + :return: The fw_version of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._fw_version + + @fw_version.setter + def fw_version(self, fw_version): + """ + Sets the fw_version of this StorageFlexFlashControllerProps. + + :param fw_version: The fw_version of this StorageFlexFlashControllerProps. + :type: str + """ + + self._fw_version = fw_version + + @property + def internal_state(self): + """ + Gets the internal_state of this StorageFlexFlashControllerProps. + + :return: The internal_state of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._internal_state + + @internal_state.setter + def internal_state(self, internal_state): + """ + Sets the internal_state of this StorageFlexFlashControllerProps. + + :param internal_state: The internal_state of this StorageFlexFlashControllerProps. + :type: str + """ + + self._internal_state = internal_state + + @property + def operating_mode(self): + """ + Gets the operating_mode of this StorageFlexFlashControllerProps. + + :return: The operating_mode of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._operating_mode + + @operating_mode.setter + def operating_mode(self, operating_mode): + """ + Sets the operating_mode of this StorageFlexFlashControllerProps. + + :param operating_mode: The operating_mode of this StorageFlexFlashControllerProps. + :type: str + """ + + self._operating_mode = operating_mode + + @property + def physical_drive_count(self): + """ + Gets the physical_drive_count of this StorageFlexFlashControllerProps. + + :return: The physical_drive_count of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._physical_drive_count + + @physical_drive_count.setter + def physical_drive_count(self, physical_drive_count): + """ + Sets the physical_drive_count of this StorageFlexFlashControllerProps. + + :param physical_drive_count: The physical_drive_count of this StorageFlexFlashControllerProps. + :type: str + """ + + self._physical_drive_count = physical_drive_count + + @property + def product_name(self): + """ + Gets the product_name of this StorageFlexFlashControllerProps. + + :return: The product_name of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._product_name + + @product_name.setter + def product_name(self, product_name): + """ + Sets the product_name of this StorageFlexFlashControllerProps. + + :param product_name: The product_name of this StorageFlexFlashControllerProps. + :type: str + """ + + self._product_name = product_name + + @property + def registered_device(self): + """ + Gets the registered_device of this StorageFlexFlashControllerProps. + + :return: The registered_device of this StorageFlexFlashControllerProps. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this StorageFlexFlashControllerProps. + + :param registered_device: The registered_device of this StorageFlexFlashControllerProps. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + @property + def startup_fw_version(self): + """ + Gets the startup_fw_version of this StorageFlexFlashControllerProps. + + :return: The startup_fw_version of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._startup_fw_version + + @startup_fw_version.setter + def startup_fw_version(self, startup_fw_version): + """ + Sets the startup_fw_version of this StorageFlexFlashControllerProps. + + :param startup_fw_version: The startup_fw_version of this StorageFlexFlashControllerProps. + :type: str + """ + + self._startup_fw_version = startup_fw_version + + @property + def storage_flex_flash_controller(self): + """ + Gets the storage_flex_flash_controller of this StorageFlexFlashControllerProps. + + :return: The storage_flex_flash_controller of this StorageFlexFlashControllerProps. + :rtype: StorageFlexFlashControllerRef + """ + return self._storage_flex_flash_controller + + @storage_flex_flash_controller.setter + def storage_flex_flash_controller(self, storage_flex_flash_controller): + """ + Sets the storage_flex_flash_controller of this StorageFlexFlashControllerProps. + + :param storage_flex_flash_controller: The storage_flex_flash_controller of this StorageFlexFlashControllerProps. + :type: StorageFlexFlashControllerRef + """ + + self._storage_flex_flash_controller = storage_flex_flash_controller + + @property + def virtual_drive_count(self): + """ + Gets the virtual_drive_count of this StorageFlexFlashControllerProps. + + :return: The virtual_drive_count of this StorageFlexFlashControllerProps. + :rtype: str + """ + return self._virtual_drive_count + + @virtual_drive_count.setter + def virtual_drive_count(self, virtual_drive_count): + """ + Sets the virtual_drive_count of this StorageFlexFlashControllerProps. + + :param virtual_drive_count: The virtual_drive_count of this StorageFlexFlashControllerProps. + :type: str + """ + + self._virtual_drive_count = virtual_drive_count + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexFlashControllerProps): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_flash_controller_props_list.py b/intersight/models/storage_flex_flash_controller_props_list.py new file mode 100644 index 00000000..93d6ce78 --- /dev/null +++ b/intersight/models/storage_flex_flash_controller_props_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexFlashControllerPropsList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[StorageFlexFlashControllerProps]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + StorageFlexFlashControllerPropsList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this StorageFlexFlashControllerPropsList. + The number of storageFlexFlashControllerProps matching your request in total for all pages. + + :return: The count of this StorageFlexFlashControllerPropsList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this StorageFlexFlashControllerPropsList. + The number of storageFlexFlashControllerProps matching your request in total for all pages. + + :param count: The count of this StorageFlexFlashControllerPropsList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this StorageFlexFlashControllerPropsList. + The array of storageFlexFlashControllerProps matching your request. + + :return: The results of this StorageFlexFlashControllerPropsList. + :rtype: list[StorageFlexFlashControllerProps] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this StorageFlexFlashControllerPropsList. + The array of storageFlexFlashControllerProps matching your request. + + :param results: The results of this StorageFlexFlashControllerPropsList. + :type: list[StorageFlexFlashControllerProps] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexFlashControllerPropsList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_flash_controller_props_ref.py b/intersight/models/storage_flex_flash_controller_props_ref.py new file mode 100644 index 00000000..b3e3f5a4 --- /dev/null +++ b/intersight/models/storage_flex_flash_controller_props_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexFlashControllerPropsRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageFlexFlashControllerPropsRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageFlexFlashControllerPropsRef. + + :return: The moid of this StorageFlexFlashControllerPropsRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexFlashControllerPropsRef. + + :param moid: The moid of this StorageFlexFlashControllerPropsRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexFlashControllerPropsRef. + + :return: The object_type of this StorageFlexFlashControllerPropsRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexFlashControllerPropsRef. + + :param object_type: The object_type of this StorageFlexFlashControllerPropsRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexFlashControllerPropsRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_flash_controller_ref.py b/intersight/models/storage_flex_flash_controller_ref.py new file mode 100644 index 00000000..d5643fb9 --- /dev/null +++ b/intersight/models/storage_flex_flash_controller_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexFlashControllerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageFlexFlashControllerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageFlexFlashControllerRef. + + :return: The moid of this StorageFlexFlashControllerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexFlashControllerRef. + + :param moid: The moid of this StorageFlexFlashControllerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexFlashControllerRef. + + :return: The object_type of this StorageFlexFlashControllerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexFlashControllerRef. + + :param object_type: The object_type of this StorageFlexFlashControllerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexFlashControllerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_flash_physical_drive.py b/intersight/models/storage_flex_flash_physical_drive.py index ee91cf98..0546c591 100644 --- a/intersight/models/storage_flex_flash_physical_drive.py +++ b/intersight/models/storage_flex_flash_physical_drive.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class StorageFlexFlashPhysicalDrive(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -51,8 +52,8 @@ class StorageFlexFlashPhysicalDrive(object): 'card_type': 'str', 'oem_id': 'str', 'pd_status': 'str', - 'registered_device': 'MoMoRef', - 'storage_flex_flash_controller': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef', + 'storage_flex_flash_controller': 'StorageFlexFlashControllerRef' } attribute_map = { @@ -65,6 +66,7 @@ class StorageFlexFlashPhysicalDrive(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -80,7 +82,7 @@ class StorageFlexFlashPhysicalDrive(object): 'storage_flex_flash_controller': 'StorageFlexFlashController' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, card_status=None, card_type=None, oem_id=None, pd_status=None, registered_device=None, storage_flex_flash_controller=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, card_status=None, card_type=None, oem_id=None, pd_status=None, registered_device=None, storage_flex_flash_controller=None): """ StorageFlexFlashPhysicalDrive - a model defined in Swagger """ @@ -94,6 +96,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -126,6 +129,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -183,7 +188,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StorageFlexFlashPhysicalDrive. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -194,7 +199,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StorageFlexFlashPhysicalDrive. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -321,7 +326,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StorageFlexFlashPhysicalDrive. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -332,7 +337,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StorageFlexFlashPhysicalDrive. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -341,7 +346,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this StorageFlexFlashPhysicalDrive. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this StorageFlexFlashPhysicalDrive. :rtype: list[MoTag] @@ -352,7 +357,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this StorageFlexFlashPhysicalDrive. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this StorageFlexFlashPhysicalDrive. :type: list[MoTag] @@ -360,6 +365,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this StorageFlexFlashPhysicalDrive. + The versioning info for this managed object + + :return: The version_context of this StorageFlexFlashPhysicalDrive. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this StorageFlexFlashPhysicalDrive. + The versioning info for this managed object + + :param version_context: The version_context of this StorageFlexFlashPhysicalDrive. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -597,7 +625,7 @@ def registered_device(self): Gets the registered_device of this StorageFlexFlashPhysicalDrive. :return: The registered_device of this StorageFlexFlashPhysicalDrive. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -607,7 +635,7 @@ def registered_device(self, registered_device): Sets the registered_device of this StorageFlexFlashPhysicalDrive. :param registered_device: The registered_device of this StorageFlexFlashPhysicalDrive. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -618,7 +646,7 @@ def storage_flex_flash_controller(self): Gets the storage_flex_flash_controller of this StorageFlexFlashPhysicalDrive. :return: The storage_flex_flash_controller of this StorageFlexFlashPhysicalDrive. - :rtype: MoMoRef + :rtype: StorageFlexFlashControllerRef """ return self._storage_flex_flash_controller @@ -628,7 +656,7 @@ def storage_flex_flash_controller(self, storage_flex_flash_controller): Sets the storage_flex_flash_controller of this StorageFlexFlashPhysicalDrive. :param storage_flex_flash_controller: The storage_flex_flash_controller of this StorageFlexFlashPhysicalDrive. - :type: MoMoRef + :type: StorageFlexFlashControllerRef """ self._storage_flex_flash_controller = storage_flex_flash_controller diff --git a/intersight/models/storage_flex_flash_physical_drive_list.py b/intersight/models/storage_flex_flash_physical_drive_list.py index 1436c8fb..82158ecf 100644 --- a/intersight/models/storage_flex_flash_physical_drive_list.py +++ b/intersight/models/storage_flex_flash_physical_drive_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_flex_flash_physical_drive_ref.py b/intersight/models/storage_flex_flash_physical_drive_ref.py new file mode 100644 index 00000000..dc92f7ba --- /dev/null +++ b/intersight/models/storage_flex_flash_physical_drive_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexFlashPhysicalDriveRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageFlexFlashPhysicalDriveRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageFlexFlashPhysicalDriveRef. + + :return: The moid of this StorageFlexFlashPhysicalDriveRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexFlashPhysicalDriveRef. + + :param moid: The moid of this StorageFlexFlashPhysicalDriveRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexFlashPhysicalDriveRef. + + :return: The object_type of this StorageFlexFlashPhysicalDriveRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexFlashPhysicalDriveRef. + + :param object_type: The object_type of this StorageFlexFlashPhysicalDriveRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexFlashPhysicalDriveRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_flash_virtual_drive.py b/intersight/models/storage_flex_flash_virtual_drive.py new file mode 100644 index 00000000..aaba0468 --- /dev/null +++ b/intersight/models/storage_flex_flash_virtual_drive.py @@ -0,0 +1,767 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexFlashVirtualDrive(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'device_mo_id': 'str', + 'dn': 'str', + 'rn': 'str', + 'model': 'str', + 'revision': 'str', + 'serial': 'str', + 'vendor': 'str', + 'drive_scope': 'str', + 'drive_status': 'str', + 'partition_id': 'str', + 'registered_device': 'AssetDeviceRegistrationRef', + 'resident_image': 'str', + 'size': 'str', + 'storage_flex_flash_controller': 'StorageFlexFlashControllerRef', + 'virtual_drive': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'device_mo_id': 'DeviceMoId', + 'dn': 'Dn', + 'rn': 'Rn', + 'model': 'Model', + 'revision': 'Revision', + 'serial': 'Serial', + 'vendor': 'Vendor', + 'drive_scope': 'DriveScope', + 'drive_status': 'DriveStatus', + 'partition_id': 'PartitionId', + 'registered_device': 'RegisteredDevice', + 'resident_image': 'ResidentImage', + 'size': 'Size', + 'storage_flex_flash_controller': 'StorageFlexFlashController', + 'virtual_drive': 'VirtualDrive' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, drive_scope=None, drive_status=None, partition_id=None, registered_device=None, resident_image=None, size=None, storage_flex_flash_controller=None, virtual_drive=None): + """ + StorageFlexFlashVirtualDrive - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._device_mo_id = None + self._dn = None + self._rn = None + self._model = None + self._revision = None + self._serial = None + self._vendor = None + self._drive_scope = None + self._drive_status = None + self._partition_id = None + self._registered_device = None + self._resident_image = None + self._size = None + self._storage_flex_flash_controller = None + self._virtual_drive = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if device_mo_id is not None: + self.device_mo_id = device_mo_id + if dn is not None: + self.dn = dn + if rn is not None: + self.rn = rn + if model is not None: + self.model = model + if revision is not None: + self.revision = revision + if serial is not None: + self.serial = serial + if vendor is not None: + self.vendor = vendor + if drive_scope is not None: + self.drive_scope = drive_scope + if drive_status is not None: + self.drive_status = drive_status + if partition_id is not None: + self.partition_id = partition_id + if registered_device is not None: + self.registered_device = registered_device + if resident_image is not None: + self.resident_image = resident_image + if size is not None: + self.size = size + if storage_flex_flash_controller is not None: + self.storage_flex_flash_controller = storage_flex_flash_controller + if virtual_drive is not None: + self.virtual_drive = virtual_drive + + @property + def account_moid(self): + """ + Gets the account_moid of this StorageFlexFlashVirtualDrive. + The Account ID for this managed object. + + :return: The account_moid of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this StorageFlexFlashVirtualDrive. + The Account ID for this managed object. + + :param account_moid: The account_moid of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this StorageFlexFlashVirtualDrive. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this StorageFlexFlashVirtualDrive. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this StorageFlexFlashVirtualDrive. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this StorageFlexFlashVirtualDrive. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this StorageFlexFlashVirtualDrive. + The time when this managed object was created. + + :return: The create_time of this StorageFlexFlashVirtualDrive. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this StorageFlexFlashVirtualDrive. + The time when this managed object was created. + + :param create_time: The create_time of this StorageFlexFlashVirtualDrive. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this StorageFlexFlashVirtualDrive. + The time when this managed object was last modified. + + :return: The mod_time of this StorageFlexFlashVirtualDrive. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this StorageFlexFlashVirtualDrive. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this StorageFlexFlashVirtualDrive. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this StorageFlexFlashVirtualDrive. + A unique identifier of this Managed Object instance. + + :return: The moid of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexFlashVirtualDrive. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexFlashVirtualDrive. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexFlashVirtualDrive. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this StorageFlexFlashVirtualDrive. + An array of owners which represent effective ownership of this object. + + :return: The owners of this StorageFlexFlashVirtualDrive. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this StorageFlexFlashVirtualDrive. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this StorageFlexFlashVirtualDrive. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this StorageFlexFlashVirtualDrive. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this StorageFlexFlashVirtualDrive. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this StorageFlexFlashVirtualDrive. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this StorageFlexFlashVirtualDrive. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this StorageFlexFlashVirtualDrive. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this StorageFlexFlashVirtualDrive. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this StorageFlexFlashVirtualDrive. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this StorageFlexFlashVirtualDrive. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this StorageFlexFlashVirtualDrive. + The versioning info for this managed object + + :return: The version_context of this StorageFlexFlashVirtualDrive. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this StorageFlexFlashVirtualDrive. + The versioning info for this managed object + + :param version_context: The version_context of this StorageFlexFlashVirtualDrive. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def device_mo_id(self): + """ + Gets the device_mo_id of this StorageFlexFlashVirtualDrive. + + :return: The device_mo_id of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._device_mo_id + + @device_mo_id.setter + def device_mo_id(self, device_mo_id): + """ + Sets the device_mo_id of this StorageFlexFlashVirtualDrive. + + :param device_mo_id: The device_mo_id of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._device_mo_id = device_mo_id + + @property + def dn(self): + """ + Gets the dn of this StorageFlexFlashVirtualDrive. + + :return: The dn of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """ + Sets the dn of this StorageFlexFlashVirtualDrive. + + :param dn: The dn of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._dn = dn + + @property + def rn(self): + """ + Gets the rn of this StorageFlexFlashVirtualDrive. + + :return: The rn of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._rn + + @rn.setter + def rn(self, rn): + """ + Sets the rn of this StorageFlexFlashVirtualDrive. + + :param rn: The rn of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._rn = rn + + @property + def model(self): + """ + Gets the model of this StorageFlexFlashVirtualDrive. + + :return: The model of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this StorageFlexFlashVirtualDrive. + + :param model: The model of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._model = model + + @property + def revision(self): + """ + Gets the revision of this StorageFlexFlashVirtualDrive. + + :return: The revision of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this StorageFlexFlashVirtualDrive. + + :param revision: The revision of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._revision = revision + + @property + def serial(self): + """ + Gets the serial of this StorageFlexFlashVirtualDrive. + + :return: The serial of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this StorageFlexFlashVirtualDrive. + + :param serial: The serial of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._serial = serial + + @property + def vendor(self): + """ + Gets the vendor of this StorageFlexFlashVirtualDrive. + + :return: The vendor of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._vendor + + @vendor.setter + def vendor(self, vendor): + """ + Sets the vendor of this StorageFlexFlashVirtualDrive. + + :param vendor: The vendor of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._vendor = vendor + + @property + def drive_scope(self): + """ + Gets the drive_scope of this StorageFlexFlashVirtualDrive. + + :return: The drive_scope of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._drive_scope + + @drive_scope.setter + def drive_scope(self, drive_scope): + """ + Sets the drive_scope of this StorageFlexFlashVirtualDrive. + + :param drive_scope: The drive_scope of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._drive_scope = drive_scope + + @property + def drive_status(self): + """ + Gets the drive_status of this StorageFlexFlashVirtualDrive. + + :return: The drive_status of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._drive_status + + @drive_status.setter + def drive_status(self, drive_status): + """ + Sets the drive_status of this StorageFlexFlashVirtualDrive. + + :param drive_status: The drive_status of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._drive_status = drive_status + + @property + def partition_id(self): + """ + Gets the partition_id of this StorageFlexFlashVirtualDrive. + + :return: The partition_id of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._partition_id + + @partition_id.setter + def partition_id(self, partition_id): + """ + Sets the partition_id of this StorageFlexFlashVirtualDrive. + + :param partition_id: The partition_id of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._partition_id = partition_id + + @property + def registered_device(self): + """ + Gets the registered_device of this StorageFlexFlashVirtualDrive. + + :return: The registered_device of this StorageFlexFlashVirtualDrive. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this StorageFlexFlashVirtualDrive. + + :param registered_device: The registered_device of this StorageFlexFlashVirtualDrive. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + @property + def resident_image(self): + """ + Gets the resident_image of this StorageFlexFlashVirtualDrive. + + :return: The resident_image of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._resident_image + + @resident_image.setter + def resident_image(self, resident_image): + """ + Sets the resident_image of this StorageFlexFlashVirtualDrive. + + :param resident_image: The resident_image of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._resident_image = resident_image + + @property + def size(self): + """ + Gets the size of this StorageFlexFlashVirtualDrive. + + :return: The size of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._size + + @size.setter + def size(self, size): + """ + Sets the size of this StorageFlexFlashVirtualDrive. + + :param size: The size of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._size = size + + @property + def storage_flex_flash_controller(self): + """ + Gets the storage_flex_flash_controller of this StorageFlexFlashVirtualDrive. + + :return: The storage_flex_flash_controller of this StorageFlexFlashVirtualDrive. + :rtype: StorageFlexFlashControllerRef + """ + return self._storage_flex_flash_controller + + @storage_flex_flash_controller.setter + def storage_flex_flash_controller(self, storage_flex_flash_controller): + """ + Sets the storage_flex_flash_controller of this StorageFlexFlashVirtualDrive. + + :param storage_flex_flash_controller: The storage_flex_flash_controller of this StorageFlexFlashVirtualDrive. + :type: StorageFlexFlashControllerRef + """ + + self._storage_flex_flash_controller = storage_flex_flash_controller + + @property + def virtual_drive(self): + """ + Gets the virtual_drive of this StorageFlexFlashVirtualDrive. + + :return: The virtual_drive of this StorageFlexFlashVirtualDrive. + :rtype: str + """ + return self._virtual_drive + + @virtual_drive.setter + def virtual_drive(self, virtual_drive): + """ + Sets the virtual_drive of this StorageFlexFlashVirtualDrive. + + :param virtual_drive: The virtual_drive of this StorageFlexFlashVirtualDrive. + :type: str + """ + + self._virtual_drive = virtual_drive + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexFlashVirtualDrive): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_flash_virtual_drive_list.py b/intersight/models/storage_flex_flash_virtual_drive_list.py new file mode 100644 index 00000000..2c0c5648 --- /dev/null +++ b/intersight/models/storage_flex_flash_virtual_drive_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexFlashVirtualDriveList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[StorageFlexFlashVirtualDrive]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + StorageFlexFlashVirtualDriveList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this StorageFlexFlashVirtualDriveList. + The number of storageFlexFlashVirtualDrives matching your request in total for all pages. + + :return: The count of this StorageFlexFlashVirtualDriveList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this StorageFlexFlashVirtualDriveList. + The number of storageFlexFlashVirtualDrives matching your request in total for all pages. + + :param count: The count of this StorageFlexFlashVirtualDriveList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this StorageFlexFlashVirtualDriveList. + The array of storageFlexFlashVirtualDrives matching your request. + + :return: The results of this StorageFlexFlashVirtualDriveList. + :rtype: list[StorageFlexFlashVirtualDrive] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this StorageFlexFlashVirtualDriveList. + The array of storageFlexFlashVirtualDrives matching your request. + + :param results: The results of this StorageFlexFlashVirtualDriveList. + :type: list[StorageFlexFlashVirtualDrive] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexFlashVirtualDriveList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_flash_virtual_drive_ref.py b/intersight/models/storage_flex_flash_virtual_drive_ref.py new file mode 100644 index 00000000..687ce6d7 --- /dev/null +++ b/intersight/models/storage_flex_flash_virtual_drive_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexFlashVirtualDriveRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageFlexFlashVirtualDriveRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageFlexFlashVirtualDriveRef. + + :return: The moid of this StorageFlexFlashVirtualDriveRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexFlashVirtualDriveRef. + + :param moid: The moid of this StorageFlexFlashVirtualDriveRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexFlashVirtualDriveRef. + + :return: The object_type of this StorageFlexFlashVirtualDriveRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexFlashVirtualDriveRef. + + :param object_type: The object_type of this StorageFlexFlashVirtualDriveRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexFlashVirtualDriveRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_util_controller.py b/intersight/models/storage_flex_util_controller.py index bb0f29b1..8e51a991 100644 --- a/intersight/models/storage_flex_util_controller.py +++ b/intersight/models/storage_flex_util_controller.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,23 +32,26 @@ class StorageFlexUtilController(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', - 'compute_board': 'MoMoRef', + 'compute_board': 'ComputeBoardRef', 'controller_name': 'str', 'controller_status': 'str', 'ff_controller_id': 'str', + 'flex_util_physical_drives': 'list[StorageFlexUtilPhysicalDriveRef]', + 'flex_util_virtual_drives': 'list[StorageFlexUtilVirtualDriveRef]', 'internal_state': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -61,6 +64,7 @@ class StorageFlexUtilController(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -68,11 +72,13 @@ class StorageFlexUtilController(object): 'controller_name': 'ControllerName', 'controller_status': 'ControllerStatus', 'ff_controller_id': 'FfControllerId', + 'flex_util_physical_drives': 'FlexUtilPhysicalDrives', + 'flex_util_virtual_drives': 'FlexUtilVirtualDrives', 'internal_state': 'InternalState', 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, compute_board=None, controller_name=None, controller_status=None, ff_controller_id=None, internal_state=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, compute_board=None, controller_name=None, controller_status=None, ff_controller_id=None, flex_util_physical_drives=None, flex_util_virtual_drives=None, internal_state=None, registered_device=None): """ StorageFlexUtilController - a model defined in Swagger """ @@ -86,6 +92,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -93,6 +100,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._controller_name = None self._controller_status = None self._ff_controller_id = None + self._flex_util_physical_drives = None + self._flex_util_virtual_drives = None self._internal_state = None self._registered_device = None @@ -114,6 +123,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -128,6 +139,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.controller_status = controller_status if ff_controller_id is not None: self.ff_controller_id = ff_controller_id + if flex_util_physical_drives is not None: + self.flex_util_physical_drives = flex_util_physical_drives + if flex_util_virtual_drives is not None: + self.flex_util_virtual_drives = flex_util_virtual_drives if internal_state is not None: self.internal_state = internal_state if registered_device is not None: @@ -163,7 +178,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StorageFlexUtilController. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -174,7 +189,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StorageFlexUtilController. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -301,7 +316,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StorageFlexUtilController. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -312,7 +327,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StorageFlexUtilController. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -321,7 +336,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this StorageFlexUtilController. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this StorageFlexUtilController. :rtype: list[MoTag] @@ -332,7 +347,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this StorageFlexUtilController. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this StorageFlexUtilController. :type: list[MoTag] @@ -340,6 +355,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this StorageFlexUtilController. + The versioning info for this managed object + + :return: The version_context of this StorageFlexUtilController. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this StorageFlexUtilController. + The versioning info for this managed object + + :param version_context: The version_context of this StorageFlexUtilController. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -409,7 +447,7 @@ def compute_board(self): Gets the compute_board of this StorageFlexUtilController. :return: The compute_board of this StorageFlexUtilController. - :rtype: MoMoRef + :rtype: ComputeBoardRef """ return self._compute_board @@ -419,7 +457,7 @@ def compute_board(self, compute_board): Sets the compute_board of this StorageFlexUtilController. :param compute_board: The compute_board of this StorageFlexUtilController. - :type: MoMoRef + :type: ComputeBoardRef """ self._compute_board = compute_board @@ -487,6 +525,48 @@ def ff_controller_id(self, ff_controller_id): self._ff_controller_id = ff_controller_id + @property + def flex_util_physical_drives(self): + """ + Gets the flex_util_physical_drives of this StorageFlexUtilController. + + :return: The flex_util_physical_drives of this StorageFlexUtilController. + :rtype: list[StorageFlexUtilPhysicalDriveRef] + """ + return self._flex_util_physical_drives + + @flex_util_physical_drives.setter + def flex_util_physical_drives(self, flex_util_physical_drives): + """ + Sets the flex_util_physical_drives of this StorageFlexUtilController. + + :param flex_util_physical_drives: The flex_util_physical_drives of this StorageFlexUtilController. + :type: list[StorageFlexUtilPhysicalDriveRef] + """ + + self._flex_util_physical_drives = flex_util_physical_drives + + @property + def flex_util_virtual_drives(self): + """ + Gets the flex_util_virtual_drives of this StorageFlexUtilController. + + :return: The flex_util_virtual_drives of this StorageFlexUtilController. + :rtype: list[StorageFlexUtilVirtualDriveRef] + """ + return self._flex_util_virtual_drives + + @flex_util_virtual_drives.setter + def flex_util_virtual_drives(self, flex_util_virtual_drives): + """ + Sets the flex_util_virtual_drives of this StorageFlexUtilController. + + :param flex_util_virtual_drives: The flex_util_virtual_drives of this StorageFlexUtilController. + :type: list[StorageFlexUtilVirtualDriveRef] + """ + + self._flex_util_virtual_drives = flex_util_virtual_drives + @property def internal_state(self): """ @@ -514,7 +594,7 @@ def registered_device(self): Gets the registered_device of this StorageFlexUtilController. :return: The registered_device of this StorageFlexUtilController. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -524,7 +604,7 @@ def registered_device(self, registered_device): Sets the registered_device of this StorageFlexUtilController. :param registered_device: The registered_device of this StorageFlexUtilController. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/storage_flex_util_controller_list.py b/intersight/models/storage_flex_util_controller_list.py index 2e432d1f..433ec066 100644 --- a/intersight/models/storage_flex_util_controller_list.py +++ b/intersight/models/storage_flex_util_controller_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_flex_util_controller_ref.py b/intersight/models/storage_flex_util_controller_ref.py new file mode 100644 index 00000000..1bb51b52 --- /dev/null +++ b/intersight/models/storage_flex_util_controller_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexUtilControllerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageFlexUtilControllerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageFlexUtilControllerRef. + + :return: The moid of this StorageFlexUtilControllerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexUtilControllerRef. + + :param moid: The moid of this StorageFlexUtilControllerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexUtilControllerRef. + + :return: The object_type of this StorageFlexUtilControllerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexUtilControllerRef. + + :param object_type: The object_type of this StorageFlexUtilControllerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexUtilControllerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_util_physical_drive.py b/intersight/models/storage_flex_util_physical_drive.py new file mode 100644 index 00000000..eaba0047 --- /dev/null +++ b/intersight/models/storage_flex_util_physical_drive.py @@ -0,0 +1,1079 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexUtilPhysicalDrive(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'device_mo_id': 'str', + 'dn': 'str', + 'rn': 'str', + 'model': 'str', + 'revision': 'str', + 'serial': 'str', + 'vendor': 'str', + 'block_size': 'str', + 'capacity': 'str', + 'controller': 'str', + 'drives_enabled': 'str', + 'health': 'str', + 'manufacturer_date': 'str', + 'manufacturer_id': 'str', + 'oem_id': 'str', + 'partition_count': 'str', + 'pd_status': 'str', + 'physical_drive': 'str', + 'product_name': 'str', + 'product_revision': 'str', + 'read_error_count': 'str', + 'read_error_threshold': 'str', + 'registered_device': 'AssetDeviceRegistrationRef', + 'storage_flex_util_controller': 'StorageFlexUtilControllerRef', + 'write_enabled': 'str', + 'write_error_count': 'str', + 'write_error_threshold': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'device_mo_id': 'DeviceMoId', + 'dn': 'Dn', + 'rn': 'Rn', + 'model': 'Model', + 'revision': 'Revision', + 'serial': 'Serial', + 'vendor': 'Vendor', + 'block_size': 'BlockSize', + 'capacity': 'Capacity', + 'controller': 'Controller', + 'drives_enabled': 'DrivesEnabled', + 'health': 'Health', + 'manufacturer_date': 'ManufacturerDate', + 'manufacturer_id': 'ManufacturerId', + 'oem_id': 'OemId', + 'partition_count': 'PartitionCount', + 'pd_status': 'PdStatus', + 'physical_drive': 'PhysicalDrive', + 'product_name': 'ProductName', + 'product_revision': 'ProductRevision', + 'read_error_count': 'ReadErrorCount', + 'read_error_threshold': 'ReadErrorThreshold', + 'registered_device': 'RegisteredDevice', + 'storage_flex_util_controller': 'StorageFlexUtilController', + 'write_enabled': 'WriteEnabled', + 'write_error_count': 'WriteErrorCount', + 'write_error_threshold': 'WriteErrorThreshold' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, block_size=None, capacity=None, controller=None, drives_enabled=None, health=None, manufacturer_date=None, manufacturer_id=None, oem_id=None, partition_count=None, pd_status=None, physical_drive=None, product_name=None, product_revision=None, read_error_count=None, read_error_threshold=None, registered_device=None, storage_flex_util_controller=None, write_enabled=None, write_error_count=None, write_error_threshold=None): + """ + StorageFlexUtilPhysicalDrive - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._device_mo_id = None + self._dn = None + self._rn = None + self._model = None + self._revision = None + self._serial = None + self._vendor = None + self._block_size = None + self._capacity = None + self._controller = None + self._drives_enabled = None + self._health = None + self._manufacturer_date = None + self._manufacturer_id = None + self._oem_id = None + self._partition_count = None + self._pd_status = None + self._physical_drive = None + self._product_name = None + self._product_revision = None + self._read_error_count = None + self._read_error_threshold = None + self._registered_device = None + self._storage_flex_util_controller = None + self._write_enabled = None + self._write_error_count = None + self._write_error_threshold = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if device_mo_id is not None: + self.device_mo_id = device_mo_id + if dn is not None: + self.dn = dn + if rn is not None: + self.rn = rn + if model is not None: + self.model = model + if revision is not None: + self.revision = revision + if serial is not None: + self.serial = serial + if vendor is not None: + self.vendor = vendor + if block_size is not None: + self.block_size = block_size + if capacity is not None: + self.capacity = capacity + if controller is not None: + self.controller = controller + if drives_enabled is not None: + self.drives_enabled = drives_enabled + if health is not None: + self.health = health + if manufacturer_date is not None: + self.manufacturer_date = manufacturer_date + if manufacturer_id is not None: + self.manufacturer_id = manufacturer_id + if oem_id is not None: + self.oem_id = oem_id + if partition_count is not None: + self.partition_count = partition_count + if pd_status is not None: + self.pd_status = pd_status + if physical_drive is not None: + self.physical_drive = physical_drive + if product_name is not None: + self.product_name = product_name + if product_revision is not None: + self.product_revision = product_revision + if read_error_count is not None: + self.read_error_count = read_error_count + if read_error_threshold is not None: + self.read_error_threshold = read_error_threshold + if registered_device is not None: + self.registered_device = registered_device + if storage_flex_util_controller is not None: + self.storage_flex_util_controller = storage_flex_util_controller + if write_enabled is not None: + self.write_enabled = write_enabled + if write_error_count is not None: + self.write_error_count = write_error_count + if write_error_threshold is not None: + self.write_error_threshold = write_error_threshold + + @property + def account_moid(self): + """ + Gets the account_moid of this StorageFlexUtilPhysicalDrive. + The Account ID for this managed object. + + :return: The account_moid of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this StorageFlexUtilPhysicalDrive. + The Account ID for this managed object. + + :param account_moid: The account_moid of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this StorageFlexUtilPhysicalDrive. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this StorageFlexUtilPhysicalDrive. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this StorageFlexUtilPhysicalDrive. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this StorageFlexUtilPhysicalDrive. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this StorageFlexUtilPhysicalDrive. + The time when this managed object was created. + + :return: The create_time of this StorageFlexUtilPhysicalDrive. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this StorageFlexUtilPhysicalDrive. + The time when this managed object was created. + + :param create_time: The create_time of this StorageFlexUtilPhysicalDrive. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this StorageFlexUtilPhysicalDrive. + The time when this managed object was last modified. + + :return: The mod_time of this StorageFlexUtilPhysicalDrive. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this StorageFlexUtilPhysicalDrive. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this StorageFlexUtilPhysicalDrive. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this StorageFlexUtilPhysicalDrive. + A unique identifier of this Managed Object instance. + + :return: The moid of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexUtilPhysicalDrive. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexUtilPhysicalDrive. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexUtilPhysicalDrive. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this StorageFlexUtilPhysicalDrive. + An array of owners which represent effective ownership of this object. + + :return: The owners of this StorageFlexUtilPhysicalDrive. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this StorageFlexUtilPhysicalDrive. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this StorageFlexUtilPhysicalDrive. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this StorageFlexUtilPhysicalDrive. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this StorageFlexUtilPhysicalDrive. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this StorageFlexUtilPhysicalDrive. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this StorageFlexUtilPhysicalDrive. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this StorageFlexUtilPhysicalDrive. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this StorageFlexUtilPhysicalDrive. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this StorageFlexUtilPhysicalDrive. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this StorageFlexUtilPhysicalDrive. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this StorageFlexUtilPhysicalDrive. + The versioning info for this managed object + + :return: The version_context of this StorageFlexUtilPhysicalDrive. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this StorageFlexUtilPhysicalDrive. + The versioning info for this managed object + + :param version_context: The version_context of this StorageFlexUtilPhysicalDrive. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def device_mo_id(self): + """ + Gets the device_mo_id of this StorageFlexUtilPhysicalDrive. + + :return: The device_mo_id of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._device_mo_id + + @device_mo_id.setter + def device_mo_id(self, device_mo_id): + """ + Sets the device_mo_id of this StorageFlexUtilPhysicalDrive. + + :param device_mo_id: The device_mo_id of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._device_mo_id = device_mo_id + + @property + def dn(self): + """ + Gets the dn of this StorageFlexUtilPhysicalDrive. + + :return: The dn of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """ + Sets the dn of this StorageFlexUtilPhysicalDrive. + + :param dn: The dn of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._dn = dn + + @property + def rn(self): + """ + Gets the rn of this StorageFlexUtilPhysicalDrive. + + :return: The rn of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._rn + + @rn.setter + def rn(self, rn): + """ + Sets the rn of this StorageFlexUtilPhysicalDrive. + + :param rn: The rn of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._rn = rn + + @property + def model(self): + """ + Gets the model of this StorageFlexUtilPhysicalDrive. + + :return: The model of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this StorageFlexUtilPhysicalDrive. + + :param model: The model of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._model = model + + @property + def revision(self): + """ + Gets the revision of this StorageFlexUtilPhysicalDrive. + + :return: The revision of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this StorageFlexUtilPhysicalDrive. + + :param revision: The revision of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._revision = revision + + @property + def serial(self): + """ + Gets the serial of this StorageFlexUtilPhysicalDrive. + + :return: The serial of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this StorageFlexUtilPhysicalDrive. + + :param serial: The serial of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._serial = serial + + @property + def vendor(self): + """ + Gets the vendor of this StorageFlexUtilPhysicalDrive. + + :return: The vendor of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._vendor + + @vendor.setter + def vendor(self, vendor): + """ + Sets the vendor of this StorageFlexUtilPhysicalDrive. + + :param vendor: The vendor of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._vendor = vendor + + @property + def block_size(self): + """ + Gets the block_size of this StorageFlexUtilPhysicalDrive. + + :return: The block_size of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._block_size + + @block_size.setter + def block_size(self, block_size): + """ + Sets the block_size of this StorageFlexUtilPhysicalDrive. + + :param block_size: The block_size of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._block_size = block_size + + @property + def capacity(self): + """ + Gets the capacity of this StorageFlexUtilPhysicalDrive. + + :return: The capacity of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """ + Sets the capacity of this StorageFlexUtilPhysicalDrive. + + :param capacity: The capacity of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._capacity = capacity + + @property + def controller(self): + """ + Gets the controller of this StorageFlexUtilPhysicalDrive. + + :return: The controller of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._controller + + @controller.setter + def controller(self, controller): + """ + Sets the controller of this StorageFlexUtilPhysicalDrive. + + :param controller: The controller of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._controller = controller + + @property + def drives_enabled(self): + """ + Gets the drives_enabled of this StorageFlexUtilPhysicalDrive. + + :return: The drives_enabled of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._drives_enabled + + @drives_enabled.setter + def drives_enabled(self, drives_enabled): + """ + Sets the drives_enabled of this StorageFlexUtilPhysicalDrive. + + :param drives_enabled: The drives_enabled of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._drives_enabled = drives_enabled + + @property + def health(self): + """ + Gets the health of this StorageFlexUtilPhysicalDrive. + + :return: The health of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._health + + @health.setter + def health(self, health): + """ + Sets the health of this StorageFlexUtilPhysicalDrive. + + :param health: The health of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._health = health + + @property + def manufacturer_date(self): + """ + Gets the manufacturer_date of this StorageFlexUtilPhysicalDrive. + + :return: The manufacturer_date of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._manufacturer_date + + @manufacturer_date.setter + def manufacturer_date(self, manufacturer_date): + """ + Sets the manufacturer_date of this StorageFlexUtilPhysicalDrive. + + :param manufacturer_date: The manufacturer_date of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._manufacturer_date = manufacturer_date + + @property + def manufacturer_id(self): + """ + Gets the manufacturer_id of this StorageFlexUtilPhysicalDrive. + + :return: The manufacturer_id of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._manufacturer_id + + @manufacturer_id.setter + def manufacturer_id(self, manufacturer_id): + """ + Sets the manufacturer_id of this StorageFlexUtilPhysicalDrive. + + :param manufacturer_id: The manufacturer_id of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._manufacturer_id = manufacturer_id + + @property + def oem_id(self): + """ + Gets the oem_id of this StorageFlexUtilPhysicalDrive. + + :return: The oem_id of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._oem_id + + @oem_id.setter + def oem_id(self, oem_id): + """ + Sets the oem_id of this StorageFlexUtilPhysicalDrive. + + :param oem_id: The oem_id of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._oem_id = oem_id + + @property + def partition_count(self): + """ + Gets the partition_count of this StorageFlexUtilPhysicalDrive. + + :return: The partition_count of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._partition_count + + @partition_count.setter + def partition_count(self, partition_count): + """ + Sets the partition_count of this StorageFlexUtilPhysicalDrive. + + :param partition_count: The partition_count of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._partition_count = partition_count + + @property + def pd_status(self): + """ + Gets the pd_status of this StorageFlexUtilPhysicalDrive. + + :return: The pd_status of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._pd_status + + @pd_status.setter + def pd_status(self, pd_status): + """ + Sets the pd_status of this StorageFlexUtilPhysicalDrive. + + :param pd_status: The pd_status of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._pd_status = pd_status + + @property + def physical_drive(self): + """ + Gets the physical_drive of this StorageFlexUtilPhysicalDrive. + + :return: The physical_drive of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._physical_drive + + @physical_drive.setter + def physical_drive(self, physical_drive): + """ + Sets the physical_drive of this StorageFlexUtilPhysicalDrive. + + :param physical_drive: The physical_drive of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._physical_drive = physical_drive + + @property + def product_name(self): + """ + Gets the product_name of this StorageFlexUtilPhysicalDrive. + + :return: The product_name of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._product_name + + @product_name.setter + def product_name(self, product_name): + """ + Sets the product_name of this StorageFlexUtilPhysicalDrive. + + :param product_name: The product_name of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._product_name = product_name + + @property + def product_revision(self): + """ + Gets the product_revision of this StorageFlexUtilPhysicalDrive. + + :return: The product_revision of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._product_revision + + @product_revision.setter + def product_revision(self, product_revision): + """ + Sets the product_revision of this StorageFlexUtilPhysicalDrive. + + :param product_revision: The product_revision of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._product_revision = product_revision + + @property + def read_error_count(self): + """ + Gets the read_error_count of this StorageFlexUtilPhysicalDrive. + + :return: The read_error_count of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._read_error_count + + @read_error_count.setter + def read_error_count(self, read_error_count): + """ + Sets the read_error_count of this StorageFlexUtilPhysicalDrive. + + :param read_error_count: The read_error_count of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._read_error_count = read_error_count + + @property + def read_error_threshold(self): + """ + Gets the read_error_threshold of this StorageFlexUtilPhysicalDrive. + + :return: The read_error_threshold of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._read_error_threshold + + @read_error_threshold.setter + def read_error_threshold(self, read_error_threshold): + """ + Sets the read_error_threshold of this StorageFlexUtilPhysicalDrive. + + :param read_error_threshold: The read_error_threshold of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._read_error_threshold = read_error_threshold + + @property + def registered_device(self): + """ + Gets the registered_device of this StorageFlexUtilPhysicalDrive. + + :return: The registered_device of this StorageFlexUtilPhysicalDrive. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this StorageFlexUtilPhysicalDrive. + + :param registered_device: The registered_device of this StorageFlexUtilPhysicalDrive. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + @property + def storage_flex_util_controller(self): + """ + Gets the storage_flex_util_controller of this StorageFlexUtilPhysicalDrive. + + :return: The storage_flex_util_controller of this StorageFlexUtilPhysicalDrive. + :rtype: StorageFlexUtilControllerRef + """ + return self._storage_flex_util_controller + + @storage_flex_util_controller.setter + def storage_flex_util_controller(self, storage_flex_util_controller): + """ + Sets the storage_flex_util_controller of this StorageFlexUtilPhysicalDrive. + + :param storage_flex_util_controller: The storage_flex_util_controller of this StorageFlexUtilPhysicalDrive. + :type: StorageFlexUtilControllerRef + """ + + self._storage_flex_util_controller = storage_flex_util_controller + + @property + def write_enabled(self): + """ + Gets the write_enabled of this StorageFlexUtilPhysicalDrive. + + :return: The write_enabled of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._write_enabled + + @write_enabled.setter + def write_enabled(self, write_enabled): + """ + Sets the write_enabled of this StorageFlexUtilPhysicalDrive. + + :param write_enabled: The write_enabled of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._write_enabled = write_enabled + + @property + def write_error_count(self): + """ + Gets the write_error_count of this StorageFlexUtilPhysicalDrive. + + :return: The write_error_count of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._write_error_count + + @write_error_count.setter + def write_error_count(self, write_error_count): + """ + Sets the write_error_count of this StorageFlexUtilPhysicalDrive. + + :param write_error_count: The write_error_count of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._write_error_count = write_error_count + + @property + def write_error_threshold(self): + """ + Gets the write_error_threshold of this StorageFlexUtilPhysicalDrive. + + :return: The write_error_threshold of this StorageFlexUtilPhysicalDrive. + :rtype: str + """ + return self._write_error_threshold + + @write_error_threshold.setter + def write_error_threshold(self, write_error_threshold): + """ + Sets the write_error_threshold of this StorageFlexUtilPhysicalDrive. + + :param write_error_threshold: The write_error_threshold of this StorageFlexUtilPhysicalDrive. + :type: str + """ + + self._write_error_threshold = write_error_threshold + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexUtilPhysicalDrive): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_util_physical_drive_list.py b/intersight/models/storage_flex_util_physical_drive_list.py new file mode 100644 index 00000000..afd4b469 --- /dev/null +++ b/intersight/models/storage_flex_util_physical_drive_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexUtilPhysicalDriveList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[StorageFlexUtilPhysicalDrive]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + StorageFlexUtilPhysicalDriveList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this StorageFlexUtilPhysicalDriveList. + The number of storageFlexUtilPhysicalDrives matching your request in total for all pages. + + :return: The count of this StorageFlexUtilPhysicalDriveList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this StorageFlexUtilPhysicalDriveList. + The number of storageFlexUtilPhysicalDrives matching your request in total for all pages. + + :param count: The count of this StorageFlexUtilPhysicalDriveList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this StorageFlexUtilPhysicalDriveList. + The array of storageFlexUtilPhysicalDrives matching your request. + + :return: The results of this StorageFlexUtilPhysicalDriveList. + :rtype: list[StorageFlexUtilPhysicalDrive] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this StorageFlexUtilPhysicalDriveList. + The array of storageFlexUtilPhysicalDrives matching your request. + + :param results: The results of this StorageFlexUtilPhysicalDriveList. + :type: list[StorageFlexUtilPhysicalDrive] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexUtilPhysicalDriveList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_util_physical_drive_ref.py b/intersight/models/storage_flex_util_physical_drive_ref.py new file mode 100644 index 00000000..136ca05a --- /dev/null +++ b/intersight/models/storage_flex_util_physical_drive_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexUtilPhysicalDriveRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageFlexUtilPhysicalDriveRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageFlexUtilPhysicalDriveRef. + + :return: The moid of this StorageFlexUtilPhysicalDriveRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexUtilPhysicalDriveRef. + + :param moid: The moid of this StorageFlexUtilPhysicalDriveRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexUtilPhysicalDriveRef. + + :return: The object_type of this StorageFlexUtilPhysicalDriveRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexUtilPhysicalDriveRef. + + :param object_type: The object_type of this StorageFlexUtilPhysicalDriveRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexUtilPhysicalDriveRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_util_virtual_drive.py b/intersight/models/storage_flex_util_virtual_drive.py new file mode 100644 index 00000000..3ce56e60 --- /dev/null +++ b/intersight/models/storage_flex_util_virtual_drive.py @@ -0,0 +1,689 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexUtilVirtualDrive(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'device_mo_id': 'str', + 'dn': 'str', + 'rn': 'str', + 'drive_status': 'str', + 'drive_type': 'str', + 'partition_id': 'str', + 'partition_name': 'str', + 'registered_device': 'AssetDeviceRegistrationRef', + 'resident_image': 'str', + 'size': 'str', + 'storage_flex_util_controller': 'StorageFlexUtilControllerRef', + 'virtual_drive': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'device_mo_id': 'DeviceMoId', + 'dn': 'Dn', + 'rn': 'Rn', + 'drive_status': 'DriveStatus', + 'drive_type': 'DriveType', + 'partition_id': 'PartitionId', + 'partition_name': 'PartitionName', + 'registered_device': 'RegisteredDevice', + 'resident_image': 'ResidentImage', + 'size': 'Size', + 'storage_flex_util_controller': 'StorageFlexUtilController', + 'virtual_drive': 'VirtualDrive' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, drive_status=None, drive_type=None, partition_id=None, partition_name=None, registered_device=None, resident_image=None, size=None, storage_flex_util_controller=None, virtual_drive=None): + """ + StorageFlexUtilVirtualDrive - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._device_mo_id = None + self._dn = None + self._rn = None + self._drive_status = None + self._drive_type = None + self._partition_id = None + self._partition_name = None + self._registered_device = None + self._resident_image = None + self._size = None + self._storage_flex_util_controller = None + self._virtual_drive = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if device_mo_id is not None: + self.device_mo_id = device_mo_id + if dn is not None: + self.dn = dn + if rn is not None: + self.rn = rn + if drive_status is not None: + self.drive_status = drive_status + if drive_type is not None: + self.drive_type = drive_type + if partition_id is not None: + self.partition_id = partition_id + if partition_name is not None: + self.partition_name = partition_name + if registered_device is not None: + self.registered_device = registered_device + if resident_image is not None: + self.resident_image = resident_image + if size is not None: + self.size = size + if storage_flex_util_controller is not None: + self.storage_flex_util_controller = storage_flex_util_controller + if virtual_drive is not None: + self.virtual_drive = virtual_drive + + @property + def account_moid(self): + """ + Gets the account_moid of this StorageFlexUtilVirtualDrive. + The Account ID for this managed object. + + :return: The account_moid of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this StorageFlexUtilVirtualDrive. + The Account ID for this managed object. + + :param account_moid: The account_moid of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this StorageFlexUtilVirtualDrive. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this StorageFlexUtilVirtualDrive. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this StorageFlexUtilVirtualDrive. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this StorageFlexUtilVirtualDrive. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this StorageFlexUtilVirtualDrive. + The time when this managed object was created. + + :return: The create_time of this StorageFlexUtilVirtualDrive. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this StorageFlexUtilVirtualDrive. + The time when this managed object was created. + + :param create_time: The create_time of this StorageFlexUtilVirtualDrive. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this StorageFlexUtilVirtualDrive. + The time when this managed object was last modified. + + :return: The mod_time of this StorageFlexUtilVirtualDrive. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this StorageFlexUtilVirtualDrive. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this StorageFlexUtilVirtualDrive. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this StorageFlexUtilVirtualDrive. + A unique identifier of this Managed Object instance. + + :return: The moid of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexUtilVirtualDrive. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexUtilVirtualDrive. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexUtilVirtualDrive. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this StorageFlexUtilVirtualDrive. + An array of owners which represent effective ownership of this object. + + :return: The owners of this StorageFlexUtilVirtualDrive. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this StorageFlexUtilVirtualDrive. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this StorageFlexUtilVirtualDrive. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this StorageFlexUtilVirtualDrive. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this StorageFlexUtilVirtualDrive. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this StorageFlexUtilVirtualDrive. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this StorageFlexUtilVirtualDrive. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this StorageFlexUtilVirtualDrive. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this StorageFlexUtilVirtualDrive. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this StorageFlexUtilVirtualDrive. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this StorageFlexUtilVirtualDrive. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this StorageFlexUtilVirtualDrive. + The versioning info for this managed object + + :return: The version_context of this StorageFlexUtilVirtualDrive. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this StorageFlexUtilVirtualDrive. + The versioning info for this managed object + + :param version_context: The version_context of this StorageFlexUtilVirtualDrive. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def device_mo_id(self): + """ + Gets the device_mo_id of this StorageFlexUtilVirtualDrive. + + :return: The device_mo_id of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._device_mo_id + + @device_mo_id.setter + def device_mo_id(self, device_mo_id): + """ + Sets the device_mo_id of this StorageFlexUtilVirtualDrive. + + :param device_mo_id: The device_mo_id of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._device_mo_id = device_mo_id + + @property + def dn(self): + """ + Gets the dn of this StorageFlexUtilVirtualDrive. + + :return: The dn of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """ + Sets the dn of this StorageFlexUtilVirtualDrive. + + :param dn: The dn of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._dn = dn + + @property + def rn(self): + """ + Gets the rn of this StorageFlexUtilVirtualDrive. + + :return: The rn of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._rn + + @rn.setter + def rn(self, rn): + """ + Sets the rn of this StorageFlexUtilVirtualDrive. + + :param rn: The rn of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._rn = rn + + @property + def drive_status(self): + """ + Gets the drive_status of this StorageFlexUtilVirtualDrive. + + :return: The drive_status of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._drive_status + + @drive_status.setter + def drive_status(self, drive_status): + """ + Sets the drive_status of this StorageFlexUtilVirtualDrive. + + :param drive_status: The drive_status of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._drive_status = drive_status + + @property + def drive_type(self): + """ + Gets the drive_type of this StorageFlexUtilVirtualDrive. + + :return: The drive_type of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._drive_type + + @drive_type.setter + def drive_type(self, drive_type): + """ + Sets the drive_type of this StorageFlexUtilVirtualDrive. + + :param drive_type: The drive_type of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._drive_type = drive_type + + @property + def partition_id(self): + """ + Gets the partition_id of this StorageFlexUtilVirtualDrive. + + :return: The partition_id of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._partition_id + + @partition_id.setter + def partition_id(self, partition_id): + """ + Sets the partition_id of this StorageFlexUtilVirtualDrive. + + :param partition_id: The partition_id of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._partition_id = partition_id + + @property + def partition_name(self): + """ + Gets the partition_name of this StorageFlexUtilVirtualDrive. + + :return: The partition_name of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._partition_name + + @partition_name.setter + def partition_name(self, partition_name): + """ + Sets the partition_name of this StorageFlexUtilVirtualDrive. + + :param partition_name: The partition_name of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._partition_name = partition_name + + @property + def registered_device(self): + """ + Gets the registered_device of this StorageFlexUtilVirtualDrive. + + :return: The registered_device of this StorageFlexUtilVirtualDrive. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this StorageFlexUtilVirtualDrive. + + :param registered_device: The registered_device of this StorageFlexUtilVirtualDrive. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + @property + def resident_image(self): + """ + Gets the resident_image of this StorageFlexUtilVirtualDrive. + + :return: The resident_image of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._resident_image + + @resident_image.setter + def resident_image(self, resident_image): + """ + Sets the resident_image of this StorageFlexUtilVirtualDrive. + + :param resident_image: The resident_image of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._resident_image = resident_image + + @property + def size(self): + """ + Gets the size of this StorageFlexUtilVirtualDrive. + + :return: The size of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._size + + @size.setter + def size(self, size): + """ + Sets the size of this StorageFlexUtilVirtualDrive. + + :param size: The size of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._size = size + + @property + def storage_flex_util_controller(self): + """ + Gets the storage_flex_util_controller of this StorageFlexUtilVirtualDrive. + + :return: The storage_flex_util_controller of this StorageFlexUtilVirtualDrive. + :rtype: StorageFlexUtilControllerRef + """ + return self._storage_flex_util_controller + + @storage_flex_util_controller.setter + def storage_flex_util_controller(self, storage_flex_util_controller): + """ + Sets the storage_flex_util_controller of this StorageFlexUtilVirtualDrive. + + :param storage_flex_util_controller: The storage_flex_util_controller of this StorageFlexUtilVirtualDrive. + :type: StorageFlexUtilControllerRef + """ + + self._storage_flex_util_controller = storage_flex_util_controller + + @property + def virtual_drive(self): + """ + Gets the virtual_drive of this StorageFlexUtilVirtualDrive. + + :return: The virtual_drive of this StorageFlexUtilVirtualDrive. + :rtype: str + """ + return self._virtual_drive + + @virtual_drive.setter + def virtual_drive(self, virtual_drive): + """ + Sets the virtual_drive of this StorageFlexUtilVirtualDrive. + + :param virtual_drive: The virtual_drive of this StorageFlexUtilVirtualDrive. + :type: str + """ + + self._virtual_drive = virtual_drive + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexUtilVirtualDrive): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_util_virtual_drive_list.py b/intersight/models/storage_flex_util_virtual_drive_list.py new file mode 100644 index 00000000..7133e614 --- /dev/null +++ b/intersight/models/storage_flex_util_virtual_drive_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexUtilVirtualDriveList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[StorageFlexUtilVirtualDrive]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + StorageFlexUtilVirtualDriveList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this StorageFlexUtilVirtualDriveList. + The number of storageFlexUtilVirtualDrives matching your request in total for all pages. + + :return: The count of this StorageFlexUtilVirtualDriveList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this StorageFlexUtilVirtualDriveList. + The number of storageFlexUtilVirtualDrives matching your request in total for all pages. + + :param count: The count of this StorageFlexUtilVirtualDriveList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this StorageFlexUtilVirtualDriveList. + The array of storageFlexUtilVirtualDrives matching your request. + + :return: The results of this StorageFlexUtilVirtualDriveList. + :rtype: list[StorageFlexUtilVirtualDrive] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this StorageFlexUtilVirtualDriveList. + The array of storageFlexUtilVirtualDrives matching your request. + + :param results: The results of this StorageFlexUtilVirtualDriveList. + :type: list[StorageFlexUtilVirtualDrive] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexUtilVirtualDriveList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_flex_util_virtual_drive_ref.py b/intersight/models/storage_flex_util_virtual_drive_ref.py new file mode 100644 index 00000000..1dcee1db --- /dev/null +++ b/intersight/models/storage_flex_util_virtual_drive_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageFlexUtilVirtualDriveRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageFlexUtilVirtualDriveRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageFlexUtilVirtualDriveRef. + + :return: The moid of this StorageFlexUtilVirtualDriveRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageFlexUtilVirtualDriveRef. + + :param moid: The moid of this StorageFlexUtilVirtualDriveRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageFlexUtilVirtualDriveRef. + + :return: The object_type of this StorageFlexUtilVirtualDriveRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageFlexUtilVirtualDriveRef. + + :param object_type: The object_type of this StorageFlexUtilVirtualDriveRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageFlexUtilVirtualDriveRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_local_disk.py b/intersight/models/storage_local_disk.py index ec04b52a..0abdcdfd 100644 --- a/intersight/models/storage_local_disk.py +++ b/intersight/models/storage_local_disk.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_local_disk_ref.py b/intersight/models/storage_local_disk_ref.py new file mode 100644 index 00000000..11d8628b --- /dev/null +++ b/intersight/models/storage_local_disk_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageLocalDiskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageLocalDiskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageLocalDiskRef. + + :return: The moid of this StorageLocalDiskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageLocalDiskRef. + + :param moid: The moid of this StorageLocalDiskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageLocalDiskRef. + + :return: The object_type of this StorageLocalDiskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageLocalDiskRef. + + :param object_type: The object_type of this StorageLocalDiskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageLocalDiskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_physical_disk.py b/intersight/models/storage_physical_disk.py index 0184002d..e636073a 100644 --- a/intersight/models/storage_physical_disk.py +++ b/intersight/models/storage_physical_disk.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class StoragePhysicalDisk(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -54,22 +55,26 @@ class StoragePhysicalDisk(object): 'discovered_path': 'str', 'disk_id': 'str', 'disk_state': 'str', + 'drive_firmware': 'str', 'drive_state': 'str', 'fde_capable': 'str', 'link_speed': 'str', 'link_state': 'str', - 'locator_led': 'MoMoRef', + 'locator_led': 'EquipmentLocatorLedRef', 'num_blocks': 'str', 'oper_power_state': 'str', 'oper_qualifier_reason': 'str', 'operability': 'str', 'physical_block_size': 'str', + 'physical_disk_extension': 'StoragePhysicalDiskExtensionRef', 'presence': 'str', 'protocol': 'str', 'raw_size': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', + 'running_firmware': 'list[FirmwareRunningFirmwareRef]', 'size': 'str', - 'storage_controller': 'MoMoRef', + 'storage_controller': 'StorageControllerRef', + 'storage_enclosure': 'StorageEnclosureRef', 'thermal': 'str', 'type': 'str', 'variant_type': 'str' @@ -85,6 +90,7 @@ class StoragePhysicalDisk(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -99,6 +105,7 @@ class StoragePhysicalDisk(object): 'discovered_path': 'DiscoveredPath', 'disk_id': 'DiskId', 'disk_state': 'DiskState', + 'drive_firmware': 'DriveFirmware', 'drive_state': 'DriveState', 'fde_capable': 'FdeCapable', 'link_speed': 'LinkSpeed', @@ -109,18 +116,21 @@ class StoragePhysicalDisk(object): 'oper_qualifier_reason': 'OperQualifierReason', 'operability': 'Operability', 'physical_block_size': 'PhysicalBlockSize', + 'physical_disk_extension': 'PhysicalDiskExtension', 'presence': 'Presence', 'protocol': 'Protocol', 'raw_size': 'RawSize', 'registered_device': 'RegisteredDevice', + 'running_firmware': 'RunningFirmware', 'size': 'Size', 'storage_controller': 'StorageController', + 'storage_enclosure': 'StorageEnclosure', 'thermal': 'Thermal', 'type': 'Type', 'variant_type': 'VariantType' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, block_size=None, bootable=None, configuration_checkpoint=None, configuration_state=None, discovered_path=None, disk_id=None, disk_state=None, drive_state=None, fde_capable=None, link_speed=None, link_state=None, locator_led=None, num_blocks=None, oper_power_state=None, oper_qualifier_reason=None, operability=None, physical_block_size=None, presence=None, protocol=None, raw_size=None, registered_device=None, size=None, storage_controller=None, thermal=None, type=None, variant_type=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, block_size=None, bootable=None, configuration_checkpoint=None, configuration_state=None, discovered_path=None, disk_id=None, disk_state=None, drive_firmware=None, drive_state=None, fde_capable=None, link_speed=None, link_state=None, locator_led=None, num_blocks=None, oper_power_state=None, oper_qualifier_reason=None, operability=None, physical_block_size=None, physical_disk_extension=None, presence=None, protocol=None, raw_size=None, registered_device=None, running_firmware=None, size=None, storage_controller=None, storage_enclosure=None, thermal=None, type=None, variant_type=None): """ StoragePhysicalDisk - a model defined in Swagger """ @@ -134,6 +144,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -148,6 +159,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._discovered_path = None self._disk_id = None self._disk_state = None + self._drive_firmware = None self._drive_state = None self._fde_capable = None self._link_speed = None @@ -158,12 +170,15 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._oper_qualifier_reason = None self._operability = None self._physical_block_size = None + self._physical_disk_extension = None self._presence = None self._protocol = None self._raw_size = None self._registered_device = None + self._running_firmware = None self._size = None self._storage_controller = None + self._storage_enclosure = None self._thermal = None self._type = None self._variant_type = None @@ -186,6 +201,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -214,6 +231,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.disk_id = disk_id if disk_state is not None: self.disk_state = disk_state + if drive_firmware is not None: + self.drive_firmware = drive_firmware if drive_state is not None: self.drive_state = drive_state if fde_capable is not None: @@ -234,6 +253,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.operability = operability if physical_block_size is not None: self.physical_block_size = physical_block_size + if physical_disk_extension is not None: + self.physical_disk_extension = physical_disk_extension if presence is not None: self.presence = presence if protocol is not None: @@ -242,10 +263,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.raw_size = raw_size if registered_device is not None: self.registered_device = registered_device + if running_firmware is not None: + self.running_firmware = running_firmware if size is not None: self.size = size if storage_controller is not None: self.storage_controller = storage_controller + if storage_enclosure is not None: + self.storage_enclosure = storage_enclosure if thermal is not None: self.thermal = thermal if type is not None: @@ -283,7 +308,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StoragePhysicalDisk. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -294,7 +319,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StoragePhysicalDisk. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -421,7 +446,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StoragePhysicalDisk. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -432,7 +457,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StoragePhysicalDisk. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -441,7 +466,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this StoragePhysicalDisk. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this StoragePhysicalDisk. :rtype: list[MoTag] @@ -452,7 +477,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this StoragePhysicalDisk. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this StoragePhysicalDisk. :type: list[MoTag] @@ -460,6 +485,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this StoragePhysicalDisk. + The versioning info for this managed object + + :return: The version_context of this StoragePhysicalDisk. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this StoragePhysicalDisk. + The versioning info for this managed object + + :param version_context: The version_context of this StoragePhysicalDisk. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -754,6 +802,27 @@ def disk_state(self, disk_state): self._disk_state = disk_state + @property + def drive_firmware(self): + """ + Gets the drive_firmware of this StoragePhysicalDisk. + + :return: The drive_firmware of this StoragePhysicalDisk. + :rtype: str + """ + return self._drive_firmware + + @drive_firmware.setter + def drive_firmware(self, drive_firmware): + """ + Sets the drive_firmware of this StoragePhysicalDisk. + + :param drive_firmware: The drive_firmware of this StoragePhysicalDisk. + :type: str + """ + + self._drive_firmware = drive_firmware + @property def drive_state(self): """ @@ -844,7 +913,7 @@ def locator_led(self): Gets the locator_led of this StoragePhysicalDisk. :return: The locator_led of this StoragePhysicalDisk. - :rtype: MoMoRef + :rtype: EquipmentLocatorLedRef """ return self._locator_led @@ -854,7 +923,7 @@ def locator_led(self, locator_led): Sets the locator_led of this StoragePhysicalDisk. :param locator_led: The locator_led of this StoragePhysicalDisk. - :type: MoMoRef + :type: EquipmentLocatorLedRef """ self._locator_led = locator_led @@ -964,6 +1033,27 @@ def physical_block_size(self, physical_block_size): self._physical_block_size = physical_block_size + @property + def physical_disk_extension(self): + """ + Gets the physical_disk_extension of this StoragePhysicalDisk. + + :return: The physical_disk_extension of this StoragePhysicalDisk. + :rtype: StoragePhysicalDiskExtensionRef + """ + return self._physical_disk_extension + + @physical_disk_extension.setter + def physical_disk_extension(self, physical_disk_extension): + """ + Sets the physical_disk_extension of this StoragePhysicalDisk. + + :param physical_disk_extension: The physical_disk_extension of this StoragePhysicalDisk. + :type: StoragePhysicalDiskExtensionRef + """ + + self._physical_disk_extension = physical_disk_extension + @property def presence(self): """ @@ -1033,7 +1123,7 @@ def registered_device(self): Gets the registered_device of this StoragePhysicalDisk. :return: The registered_device of this StoragePhysicalDisk. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -1043,11 +1133,32 @@ def registered_device(self, registered_device): Sets the registered_device of this StoragePhysicalDisk. :param registered_device: The registered_device of this StoragePhysicalDisk. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device + @property + def running_firmware(self): + """ + Gets the running_firmware of this StoragePhysicalDisk. + + :return: The running_firmware of this StoragePhysicalDisk. + :rtype: list[FirmwareRunningFirmwareRef] + """ + return self._running_firmware + + @running_firmware.setter + def running_firmware(self, running_firmware): + """ + Sets the running_firmware of this StoragePhysicalDisk. + + :param running_firmware: The running_firmware of this StoragePhysicalDisk. + :type: list[FirmwareRunningFirmwareRef] + """ + + self._running_firmware = running_firmware + @property def size(self): """ @@ -1075,7 +1186,7 @@ def storage_controller(self): Gets the storage_controller of this StoragePhysicalDisk. :return: The storage_controller of this StoragePhysicalDisk. - :rtype: MoMoRef + :rtype: StorageControllerRef """ return self._storage_controller @@ -1085,11 +1196,32 @@ def storage_controller(self, storage_controller): Sets the storage_controller of this StoragePhysicalDisk. :param storage_controller: The storage_controller of this StoragePhysicalDisk. - :type: MoMoRef + :type: StorageControllerRef """ self._storage_controller = storage_controller + @property + def storage_enclosure(self): + """ + Gets the storage_enclosure of this StoragePhysicalDisk. + + :return: The storage_enclosure of this StoragePhysicalDisk. + :rtype: StorageEnclosureRef + """ + return self._storage_enclosure + + @storage_enclosure.setter + def storage_enclosure(self, storage_enclosure): + """ + Sets the storage_enclosure of this StoragePhysicalDisk. + + :param storage_enclosure: The storage_enclosure of this StoragePhysicalDisk. + :type: StorageEnclosureRef + """ + + self._storage_enclosure = storage_enclosure + @property def thermal(self): """ diff --git a/intersight/models/storage_physical_disk_extension.py b/intersight/models/storage_physical_disk_extension.py new file mode 100644 index 00000000..f9ed08ab --- /dev/null +++ b/intersight/models/storage_physical_disk_extension.py @@ -0,0 +1,741 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StoragePhysicalDiskExtension(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'device_mo_id': 'str', + 'dn': 'str', + 'rn': 'str', + 'model': 'str', + 'revision': 'str', + 'serial': 'str', + 'vendor': 'str', + 'bootable': 'str', + 'disk_dn': 'str', + 'disk_id': 'int', + 'disk_state': 'str', + 'physical_disk': 'StoragePhysicalDiskRef', + 'registered_device': 'AssetDeviceRegistrationRef', + 'storage_controller': 'StorageControllerRef' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'device_mo_id': 'DeviceMoId', + 'dn': 'Dn', + 'rn': 'Rn', + 'model': 'Model', + 'revision': 'Revision', + 'serial': 'Serial', + 'vendor': 'Vendor', + 'bootable': 'Bootable', + 'disk_dn': 'DiskDn', + 'disk_id': 'DiskId', + 'disk_state': 'DiskState', + 'physical_disk': 'PhysicalDisk', + 'registered_device': 'RegisteredDevice', + 'storage_controller': 'StorageController' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, bootable=None, disk_dn=None, disk_id=None, disk_state=None, physical_disk=None, registered_device=None, storage_controller=None): + """ + StoragePhysicalDiskExtension - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._device_mo_id = None + self._dn = None + self._rn = None + self._model = None + self._revision = None + self._serial = None + self._vendor = None + self._bootable = None + self._disk_dn = None + self._disk_id = None + self._disk_state = None + self._physical_disk = None + self._registered_device = None + self._storage_controller = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if device_mo_id is not None: + self.device_mo_id = device_mo_id + if dn is not None: + self.dn = dn + if rn is not None: + self.rn = rn + if model is not None: + self.model = model + if revision is not None: + self.revision = revision + if serial is not None: + self.serial = serial + if vendor is not None: + self.vendor = vendor + if bootable is not None: + self.bootable = bootable + if disk_dn is not None: + self.disk_dn = disk_dn + if disk_id is not None: + self.disk_id = disk_id + if disk_state is not None: + self.disk_state = disk_state + if physical_disk is not None: + self.physical_disk = physical_disk + if registered_device is not None: + self.registered_device = registered_device + if storage_controller is not None: + self.storage_controller = storage_controller + + @property + def account_moid(self): + """ + Gets the account_moid of this StoragePhysicalDiskExtension. + The Account ID for this managed object. + + :return: The account_moid of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this StoragePhysicalDiskExtension. + The Account ID for this managed object. + + :param account_moid: The account_moid of this StoragePhysicalDiskExtension. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this StoragePhysicalDiskExtension. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this StoragePhysicalDiskExtension. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this StoragePhysicalDiskExtension. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this StoragePhysicalDiskExtension. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this StoragePhysicalDiskExtension. + The time when this managed object was created. + + :return: The create_time of this StoragePhysicalDiskExtension. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this StoragePhysicalDiskExtension. + The time when this managed object was created. + + :param create_time: The create_time of this StoragePhysicalDiskExtension. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this StoragePhysicalDiskExtension. + The time when this managed object was last modified. + + :return: The mod_time of this StoragePhysicalDiskExtension. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this StoragePhysicalDiskExtension. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this StoragePhysicalDiskExtension. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this StoragePhysicalDiskExtension. + A unique identifier of this Managed Object instance. + + :return: The moid of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StoragePhysicalDiskExtension. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this StoragePhysicalDiskExtension. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StoragePhysicalDiskExtension. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StoragePhysicalDiskExtension. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this StoragePhysicalDiskExtension. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this StoragePhysicalDiskExtension. + An array of owners which represent effective ownership of this object. + + :return: The owners of this StoragePhysicalDiskExtension. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this StoragePhysicalDiskExtension. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this StoragePhysicalDiskExtension. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this StoragePhysicalDiskExtension. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this StoragePhysicalDiskExtension. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this StoragePhysicalDiskExtension. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this StoragePhysicalDiskExtension. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this StoragePhysicalDiskExtension. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this StoragePhysicalDiskExtension. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this StoragePhysicalDiskExtension. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this StoragePhysicalDiskExtension. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this StoragePhysicalDiskExtension. + The versioning info for this managed object + + :return: The version_context of this StoragePhysicalDiskExtension. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this StoragePhysicalDiskExtension. + The versioning info for this managed object + + :param version_context: The version_context of this StoragePhysicalDiskExtension. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def device_mo_id(self): + """ + Gets the device_mo_id of this StoragePhysicalDiskExtension. + + :return: The device_mo_id of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._device_mo_id + + @device_mo_id.setter + def device_mo_id(self, device_mo_id): + """ + Sets the device_mo_id of this StoragePhysicalDiskExtension. + + :param device_mo_id: The device_mo_id of this StoragePhysicalDiskExtension. + :type: str + """ + + self._device_mo_id = device_mo_id + + @property + def dn(self): + """ + Gets the dn of this StoragePhysicalDiskExtension. + + :return: The dn of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """ + Sets the dn of this StoragePhysicalDiskExtension. + + :param dn: The dn of this StoragePhysicalDiskExtension. + :type: str + """ + + self._dn = dn + + @property + def rn(self): + """ + Gets the rn of this StoragePhysicalDiskExtension. + + :return: The rn of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._rn + + @rn.setter + def rn(self, rn): + """ + Sets the rn of this StoragePhysicalDiskExtension. + + :param rn: The rn of this StoragePhysicalDiskExtension. + :type: str + """ + + self._rn = rn + + @property + def model(self): + """ + Gets the model of this StoragePhysicalDiskExtension. + + :return: The model of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + Sets the model of this StoragePhysicalDiskExtension. + + :param model: The model of this StoragePhysicalDiskExtension. + :type: str + """ + + self._model = model + + @property + def revision(self): + """ + Gets the revision of this StoragePhysicalDiskExtension. + + :return: The revision of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._revision + + @revision.setter + def revision(self, revision): + """ + Sets the revision of this StoragePhysicalDiskExtension. + + :param revision: The revision of this StoragePhysicalDiskExtension. + :type: str + """ + + self._revision = revision + + @property + def serial(self): + """ + Gets the serial of this StoragePhysicalDiskExtension. + + :return: The serial of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._serial + + @serial.setter + def serial(self, serial): + """ + Sets the serial of this StoragePhysicalDiskExtension. + + :param serial: The serial of this StoragePhysicalDiskExtension. + :type: str + """ + + self._serial = serial + + @property + def vendor(self): + """ + Gets the vendor of this StoragePhysicalDiskExtension. + + :return: The vendor of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._vendor + + @vendor.setter + def vendor(self, vendor): + """ + Sets the vendor of this StoragePhysicalDiskExtension. + + :param vendor: The vendor of this StoragePhysicalDiskExtension. + :type: str + """ + + self._vendor = vendor + + @property + def bootable(self): + """ + Gets the bootable of this StoragePhysicalDiskExtension. + + :return: The bootable of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._bootable + + @bootable.setter + def bootable(self, bootable): + """ + Sets the bootable of this StoragePhysicalDiskExtension. + + :param bootable: The bootable of this StoragePhysicalDiskExtension. + :type: str + """ + + self._bootable = bootable + + @property + def disk_dn(self): + """ + Gets the disk_dn of this StoragePhysicalDiskExtension. + + :return: The disk_dn of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._disk_dn + + @disk_dn.setter + def disk_dn(self, disk_dn): + """ + Sets the disk_dn of this StoragePhysicalDiskExtension. + + :param disk_dn: The disk_dn of this StoragePhysicalDiskExtension. + :type: str + """ + + self._disk_dn = disk_dn + + @property + def disk_id(self): + """ + Gets the disk_id of this StoragePhysicalDiskExtension. + + :return: The disk_id of this StoragePhysicalDiskExtension. + :rtype: int + """ + return self._disk_id + + @disk_id.setter + def disk_id(self, disk_id): + """ + Sets the disk_id of this StoragePhysicalDiskExtension. + + :param disk_id: The disk_id of this StoragePhysicalDiskExtension. + :type: int + """ + + self._disk_id = disk_id + + @property + def disk_state(self): + """ + Gets the disk_state of this StoragePhysicalDiskExtension. + + :return: The disk_state of this StoragePhysicalDiskExtension. + :rtype: str + """ + return self._disk_state + + @disk_state.setter + def disk_state(self, disk_state): + """ + Sets the disk_state of this StoragePhysicalDiskExtension. + + :param disk_state: The disk_state of this StoragePhysicalDiskExtension. + :type: str + """ + + self._disk_state = disk_state + + @property + def physical_disk(self): + """ + Gets the physical_disk of this StoragePhysicalDiskExtension. + + :return: The physical_disk of this StoragePhysicalDiskExtension. + :rtype: StoragePhysicalDiskRef + """ + return self._physical_disk + + @physical_disk.setter + def physical_disk(self, physical_disk): + """ + Sets the physical_disk of this StoragePhysicalDiskExtension. + + :param physical_disk: The physical_disk of this StoragePhysicalDiskExtension. + :type: StoragePhysicalDiskRef + """ + + self._physical_disk = physical_disk + + @property + def registered_device(self): + """ + Gets the registered_device of this StoragePhysicalDiskExtension. + + :return: The registered_device of this StoragePhysicalDiskExtension. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this StoragePhysicalDiskExtension. + + :param registered_device: The registered_device of this StoragePhysicalDiskExtension. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + @property + def storage_controller(self): + """ + Gets the storage_controller of this StoragePhysicalDiskExtension. + + :return: The storage_controller of this StoragePhysicalDiskExtension. + :rtype: StorageControllerRef + """ + return self._storage_controller + + @storage_controller.setter + def storage_controller(self, storage_controller): + """ + Sets the storage_controller of this StoragePhysicalDiskExtension. + + :param storage_controller: The storage_controller of this StoragePhysicalDiskExtension. + :type: StorageControllerRef + """ + + self._storage_controller = storage_controller + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StoragePhysicalDiskExtension): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_physical_disk_extension_list.py b/intersight/models/storage_physical_disk_extension_list.py new file mode 100644 index 00000000..3568747e --- /dev/null +++ b/intersight/models/storage_physical_disk_extension_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StoragePhysicalDiskExtensionList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[StoragePhysicalDiskExtension]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + StoragePhysicalDiskExtensionList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this StoragePhysicalDiskExtensionList. + The number of storagePhysicalDiskExtensions matching your request in total for all pages. + + :return: The count of this StoragePhysicalDiskExtensionList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this StoragePhysicalDiskExtensionList. + The number of storagePhysicalDiskExtensions matching your request in total for all pages. + + :param count: The count of this StoragePhysicalDiskExtensionList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this StoragePhysicalDiskExtensionList. + The array of storagePhysicalDiskExtensions matching your request. + + :return: The results of this StoragePhysicalDiskExtensionList. + :rtype: list[StoragePhysicalDiskExtension] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this StoragePhysicalDiskExtensionList. + The array of storagePhysicalDiskExtensions matching your request. + + :param results: The results of this StoragePhysicalDiskExtensionList. + :type: list[StoragePhysicalDiskExtension] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StoragePhysicalDiskExtensionList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_physical_disk_extension_ref.py b/intersight/models/storage_physical_disk_extension_ref.py new file mode 100644 index 00000000..6cd94e7b --- /dev/null +++ b/intersight/models/storage_physical_disk_extension_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StoragePhysicalDiskExtensionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StoragePhysicalDiskExtensionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StoragePhysicalDiskExtensionRef. + + :return: The moid of this StoragePhysicalDiskExtensionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StoragePhysicalDiskExtensionRef. + + :param moid: The moid of this StoragePhysicalDiskExtensionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StoragePhysicalDiskExtensionRef. + + :return: The object_type of this StoragePhysicalDiskExtensionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StoragePhysicalDiskExtensionRef. + + :param object_type: The object_type of this StoragePhysicalDiskExtensionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StoragePhysicalDiskExtensionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_physical_disk_list.py b/intersight/models/storage_physical_disk_list.py index c06928f4..7efe81d2 100644 --- a/intersight/models/storage_physical_disk_list.py +++ b/intersight/models/storage_physical_disk_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_physical_disk_ref.py b/intersight/models/storage_physical_disk_ref.py new file mode 100644 index 00000000..98e4b304 --- /dev/null +++ b/intersight/models/storage_physical_disk_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StoragePhysicalDiskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StoragePhysicalDiskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StoragePhysicalDiskRef. + + :return: The moid of this StoragePhysicalDiskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StoragePhysicalDiskRef. + + :param moid: The moid of this StoragePhysicalDiskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StoragePhysicalDiskRef. + + :return: The object_type of this StoragePhysicalDiskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StoragePhysicalDiskRef. + + :param object_type: The object_type of this StoragePhysicalDiskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StoragePhysicalDiskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_physical_disk_usage.py b/intersight/models/storage_physical_disk_usage.py index 6a95c2d6..7284659c 100644 --- a/intersight/models/storage_physical_disk_usage.py +++ b/intersight/models/storage_physical_disk_usage.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,20 +32,21 @@ class StoragePhysicalDiskUsage(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', 'number_of_blocks': 'str', 'physical_drive': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'span': 'str', 'starting_block': 'str', 'state': 'str', @@ -62,6 +63,7 @@ class StoragePhysicalDiskUsage(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -74,7 +76,7 @@ class StoragePhysicalDiskUsage(object): 'virtual_drive': 'VirtualDrive' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, number_of_blocks=None, physical_drive=None, registered_device=None, span=None, starting_block=None, state=None, virtual_drive=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, number_of_blocks=None, physical_drive=None, registered_device=None, span=None, starting_block=None, state=None, virtual_drive=None): """ StoragePhysicalDiskUsage - a model defined in Swagger """ @@ -88,6 +90,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -117,6 +120,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -168,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StoragePhysicalDiskUsage. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -179,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StoragePhysicalDiskUsage. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -306,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StoragePhysicalDiskUsage. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -317,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StoragePhysicalDiskUsage. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -326,7 +331,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this StoragePhysicalDiskUsage. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this StoragePhysicalDiskUsage. :rtype: list[MoTag] @@ -337,7 +342,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this StoragePhysicalDiskUsage. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this StoragePhysicalDiskUsage. :type: list[MoTag] @@ -345,6 +350,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this StoragePhysicalDiskUsage. + The versioning info for this managed object + + :return: The version_context of this StoragePhysicalDiskUsage. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this StoragePhysicalDiskUsage. + The versioning info for this managed object + + :param version_context: The version_context of this StoragePhysicalDiskUsage. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -456,7 +484,7 @@ def registered_device(self): Gets the registered_device of this StoragePhysicalDiskUsage. :return: The registered_device of this StoragePhysicalDiskUsage. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -466,7 +494,7 @@ def registered_device(self, registered_device): Sets the registered_device of this StoragePhysicalDiskUsage. :param registered_device: The registered_device of this StoragePhysicalDiskUsage. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/storage_physical_disk_usage_list.py b/intersight/models/storage_physical_disk_usage_list.py index 95f6884b..f50ef1ee 100644 --- a/intersight/models/storage_physical_disk_usage_list.py +++ b/intersight/models/storage_physical_disk_usage_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_physical_disk_usage_ref.py b/intersight/models/storage_physical_disk_usage_ref.py new file mode 100644 index 00000000..b6d55f8a --- /dev/null +++ b/intersight/models/storage_physical_disk_usage_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StoragePhysicalDiskUsageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StoragePhysicalDiskUsageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StoragePhysicalDiskUsageRef. + + :return: The moid of this StoragePhysicalDiskUsageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StoragePhysicalDiskUsageRef. + + :param moid: The moid of this StoragePhysicalDiskUsageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StoragePhysicalDiskUsageRef. + + :return: The object_type of this StoragePhysicalDiskUsageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StoragePhysicalDiskUsageRef. + + :param object_type: The object_type of this StoragePhysicalDiskUsageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StoragePhysicalDiskUsageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_remote_key_setting.py b/intersight/models/storage_remote_key_setting.py index 9ec8f6ef..fc6d82b4 100644 --- a/intersight/models/storage_remote_key_setting.py +++ b/intersight/models/storage_remote_key_setting.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -31,6 +31,7 @@ class StorageRemoteKeySetting(object): and the value is json key in definition. """ swagger_types = { + 'is_password_set': 'bool', 'password': 'str', 'port': 'int', 'primary_server': 'str', @@ -40,6 +41,7 @@ class StorageRemoteKeySetting(object): } attribute_map = { + 'is_password_set': 'IsPasswordSet', 'password': 'Password', 'port': 'Port', 'primary_server': 'PrimaryServer', @@ -48,11 +50,12 @@ class StorageRemoteKeySetting(object): 'username': 'Username' } - def __init__(self, password=None, port=None, primary_server=None, secondary_server=None, server_certificate=None, username=None): + def __init__(self, is_password_set=None, password=None, port=None, primary_server=None, secondary_server=None, server_certificate=None, username=None): """ StorageRemoteKeySetting - a model defined in Swagger """ + self._is_password_set = None self._password = None self._port = None self._primary_server = None @@ -60,6 +63,8 @@ def __init__(self, password=None, port=None, primary_server=None, secondary_serv self._server_certificate = None self._username = None + if is_password_set is not None: + self.is_password_set = is_password_set if password is not None: self.password = password if port is not None: @@ -73,6 +78,27 @@ def __init__(self, password=None, port=None, primary_server=None, secondary_serv if username is not None: self.username = username + @property + def is_password_set(self): + """ + Gets the is_password_set of this StorageRemoteKeySetting. + + :return: The is_password_set of this StorageRemoteKeySetting. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this StorageRemoteKeySetting. + + :param is_password_set: The is_password_set of this StorageRemoteKeySetting. + :type: bool + """ + + self._is_password_set = is_password_set + @property def password(self): """ @@ -123,7 +149,7 @@ def port(self, port): def primary_server(self): """ Gets the primary_server of this StorageRemoteKeySetting. - This property is used to store the address of the KMIP server. It could be an IPv4 address or an IPv6 address or hostname. Hostnames are valid only when Inband is configured for the CIMC address. + This property is used to store the address of the KMIP server. It could be an IPv4 address or an IPv6 address or hostname. Hostnames are valid only when Inband is configured for the CIMC address :return: The primary_server of this StorageRemoteKeySetting. :rtype: str @@ -134,7 +160,7 @@ def primary_server(self): def primary_server(self, primary_server): """ Sets the primary_server of this StorageRemoteKeySetting. - This property is used to store the address of the KMIP server. It could be an IPv4 address or an IPv6 address or hostname. Hostnames are valid only when Inband is configured for the CIMC address. + This property is used to store the address of the KMIP server. It could be an IPv4 address or an IPv6 address or hostname. Hostnames are valid only when Inband is configured for the CIMC address :param primary_server: The primary_server of this StorageRemoteKeySetting. :type: str @@ -146,7 +172,7 @@ def primary_server(self, primary_server): def secondary_server(self): """ Gets the secondary_server of this StorageRemoteKeySetting. - This property is used to store the address of the KMIP server. It could be an IPv4 address or an IPv6 address or hostname. Hostnames are valid only when Inband is configured for the CIMC address. + This property is used to store the address of the KMIP server. It could be an IPv4 address or an IPv6 address or hostname. Hostnames are valid only when Inband is configured for the CIMC address :return: The secondary_server of this StorageRemoteKeySetting. :rtype: str @@ -157,7 +183,7 @@ def secondary_server(self): def secondary_server(self, secondary_server): """ Sets the secondary_server of this StorageRemoteKeySetting. - This property is used to store the address of the KMIP server. It could be an IPv4 address or an IPv6 address or hostname. Hostnames are valid only when Inband is configured for the CIMC address. + This property is used to store the address of the KMIP server. It could be an IPv4 address or an IPv6 address or hostname. Hostnames are valid only when Inband is configured for the CIMC address :param secondary_server: The secondary_server of this StorageRemoteKeySetting. :type: str diff --git a/intersight/models/storage_remote_key_setting_ref.py b/intersight/models/storage_remote_key_setting_ref.py new file mode 100644 index 00000000..457c4363 --- /dev/null +++ b/intersight/models/storage_remote_key_setting_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageRemoteKeySettingRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageRemoteKeySettingRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageRemoteKeySettingRef. + + :return: The moid of this StorageRemoteKeySettingRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageRemoteKeySettingRef. + + :param moid: The moid of this StorageRemoteKeySettingRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageRemoteKeySettingRef. + + :return: The object_type of this StorageRemoteKeySettingRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageRemoteKeySettingRef. + + :param object_type: The object_type of this StorageRemoteKeySettingRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageRemoteKeySettingRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_sas_expander.py b/intersight/models/storage_sas_expander.py index 375552a3..345edb3b 100644 --- a/intersight/models/storage_sas_expander.py +++ b/intersight/models/storage_sas_expander.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class StorageSasExpander(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -47,15 +48,14 @@ class StorageSasExpander(object): 'revision': 'str', 'serial': 'str', 'vendor': 'str', - 'compute_rack_unit': 'MoMoRef', - 'controller': 'MoMoRef', - 'equipment_chassis': 'MoMoRef', + 'controller': 'ManagementControllerRef', + 'equipment_chassis': 'EquipmentChassisRef', 'expander_id': 'int', 'name': 'str', 'oper_state': 'str', 'operability': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef' + 'registered_device': 'AssetDeviceRegistrationRef' } attribute_map = { @@ -68,6 +68,7 @@ class StorageSasExpander(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -75,7 +76,6 @@ class StorageSasExpander(object): 'revision': 'Revision', 'serial': 'Serial', 'vendor': 'Vendor', - 'compute_rack_unit': 'ComputeRackUnit', 'controller': 'Controller', 'equipment_chassis': 'EquipmentChassis', 'expander_id': 'ExpanderId', @@ -86,7 +86,7 @@ class StorageSasExpander(object): 'registered_device': 'RegisteredDevice' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, compute_rack_unit=None, controller=None, equipment_chassis=None, expander_id=None, name=None, oper_state=None, operability=None, presence=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, controller=None, equipment_chassis=None, expander_id=None, name=None, oper_state=None, operability=None, presence=None, registered_device=None): """ StorageSasExpander - a model defined in Swagger """ @@ -100,6 +100,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -107,7 +108,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._revision = None self._serial = None self._vendor = None - self._compute_rack_unit = None self._controller = None self._equipment_chassis = None self._expander_id = None @@ -135,6 +135,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -149,8 +151,6 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.serial = serial if vendor is not None: self.vendor = vendor - if compute_rack_unit is not None: - self.compute_rack_unit = compute_rack_unit if controller is not None: self.controller = controller if equipment_chassis is not None: @@ -198,7 +198,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StorageSasExpander. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -209,7 +209,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StorageSasExpander. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -336,7 +336,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StorageSasExpander. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -347,7 +347,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StorageSasExpander. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -356,7 +356,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this StorageSasExpander. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this StorageSasExpander. :rtype: list[MoTag] @@ -367,7 +367,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this StorageSasExpander. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this StorageSasExpander. :type: list[MoTag] @@ -375,6 +375,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this StorageSasExpander. + The versioning info for this managed object + + :return: The version_context of this StorageSasExpander. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this StorageSasExpander. + The versioning info for this managed object + + :param version_context: The version_context of this StorageSasExpander. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -522,34 +545,13 @@ def vendor(self, vendor): self._vendor = vendor - @property - def compute_rack_unit(self): - """ - Gets the compute_rack_unit of this StorageSasExpander. - - :return: The compute_rack_unit of this StorageSasExpander. - :rtype: MoMoRef - """ - return self._compute_rack_unit - - @compute_rack_unit.setter - def compute_rack_unit(self, compute_rack_unit): - """ - Sets the compute_rack_unit of this StorageSasExpander. - - :param compute_rack_unit: The compute_rack_unit of this StorageSasExpander. - :type: MoMoRef - """ - - self._compute_rack_unit = compute_rack_unit - @property def controller(self): """ Gets the controller of this StorageSasExpander. :return: The controller of this StorageSasExpander. - :rtype: MoMoRef + :rtype: ManagementControllerRef """ return self._controller @@ -559,7 +561,7 @@ def controller(self, controller): Sets the controller of this StorageSasExpander. :param controller: The controller of this StorageSasExpander. - :type: MoMoRef + :type: ManagementControllerRef """ self._controller = controller @@ -570,7 +572,7 @@ def equipment_chassis(self): Gets the equipment_chassis of this StorageSasExpander. :return: The equipment_chassis of this StorageSasExpander. - :rtype: MoMoRef + :rtype: EquipmentChassisRef """ return self._equipment_chassis @@ -580,7 +582,7 @@ def equipment_chassis(self, equipment_chassis): Sets the equipment_chassis of this StorageSasExpander. :param equipment_chassis: The equipment_chassis of this StorageSasExpander. - :type: MoMoRef + :type: EquipmentChassisRef """ self._equipment_chassis = equipment_chassis @@ -696,7 +698,7 @@ def registered_device(self): Gets the registered_device of this StorageSasExpander. :return: The registered_device of this StorageSasExpander. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -706,7 +708,7 @@ def registered_device(self, registered_device): Sets the registered_device of this StorageSasExpander. :param registered_device: The registered_device of this StorageSasExpander. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device diff --git a/intersight/models/storage_sas_expander_list.py b/intersight/models/storage_sas_expander_list.py index 02bdce88..a732bbbf 100644 --- a/intersight/models/storage_sas_expander_list.py +++ b/intersight/models/storage_sas_expander_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_sas_expander_ref.py b/intersight/models/storage_sas_expander_ref.py new file mode 100644 index 00000000..7ba87485 --- /dev/null +++ b/intersight/models/storage_sas_expander_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageSasExpanderRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageSasExpanderRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageSasExpanderRef. + + :return: The moid of this StorageSasExpanderRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageSasExpanderRef. + + :param moid: The moid of this StorageSasExpanderRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageSasExpanderRef. + + :return: The object_type of this StorageSasExpanderRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageSasExpanderRef. + + :param object_type: The object_type of this StorageSasExpanderRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageSasExpanderRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_span_group.py b/intersight/models/storage_span_group.py index 95633e71..c6a9a211 100644 --- a/intersight/models/storage_span_group.py +++ b/intersight/models/storage_span_group.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -52,7 +52,7 @@ def __init__(self, disks=None): def disks(self): """ Gets the disks of this StorageSpanGroup. - Collection of local disks that are part of this span group. The minimum number of disks needed in a span group varies based on RAID level. Raid0 requires at least one disk, Raid1 and Raid10 requires at least 2 and in multiples of 2, Raid5 Raid50 Raid6 and Raid60 require at least 3 disks in a span group. + Collection of local disks that are part of this span group. The minimum number of disks needed in a span group varies based on RAID level. Raid0 requires at least one disk, Raid1 and Raid10 requires at least 2 and in multiples of 2, Raid5 Raid50 Raid6 and Raid60 require at least 3 disks in a span group :return: The disks of this StorageSpanGroup. :rtype: list[StorageLocalDisk] @@ -63,7 +63,7 @@ def disks(self): def disks(self, disks): """ Sets the disks of this StorageSpanGroup. - Collection of local disks that are part of this span group. The minimum number of disks needed in a span group varies based on RAID level. Raid0 requires at least one disk, Raid1 and Raid10 requires at least 2 and in multiples of 2, Raid5 Raid50 Raid6 and Raid60 require at least 3 disks in a span group. + Collection of local disks that are part of this span group. The minimum number of disks needed in a span group varies based on RAID level. Raid0 requires at least one disk, Raid1 and Raid10 requires at least 2 and in multiples of 2, Raid5 Raid50 Raid6 and Raid60 require at least 3 disks in a span group :param disks: The disks of this StorageSpanGroup. :type: list[StorageLocalDisk] diff --git a/intersight/models/storage_span_group_ref.py b/intersight/models/storage_span_group_ref.py new file mode 100644 index 00000000..09925a0b --- /dev/null +++ b/intersight/models/storage_span_group_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageSpanGroupRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageSpanGroupRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageSpanGroupRef. + + :return: The moid of this StorageSpanGroupRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageSpanGroupRef. + + :param moid: The moid of this StorageSpanGroupRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageSpanGroupRef. + + :return: The object_type of this StorageSpanGroupRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageSpanGroupRef. + + :param object_type: The object_type of this StorageSpanGroupRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageSpanGroupRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_storage_policy.py b/intersight/models/storage_storage_policy.py index 88763b6f..f0e3e9d3 100644 --- a/intersight/models/storage_storage_policy.py +++ b/intersight/models/storage_storage_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,23 +32,22 @@ class StorageStoragePolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', - 'enable_drive_security': 'bool', + 'disk_group_policies': 'list[StorageDiskGroupPolicyRef]', 'global_hot_spares': 'list[StorageLocalDisk]', - 'organization': 'MoMoRef', - 'profiles': 'list[MoMoRef]', - 'remote_key_setting': 'StorageRemoteKeySetting', + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]', 'retain_policy_virtual_drives': 'bool', - 'unused_disks_encryption_state': 'bool', 'unused_disks_state': 'str', 'virtual_drives': 'list[StorageVirtualDriveConfig]' } @@ -63,20 +62,19 @@ class StorageStoragePolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', - 'enable_drive_security': 'EnableDriveSecurity', + 'disk_group_policies': 'DiskGroupPolicies', 'global_hot_spares': 'GlobalHotSpares', 'organization': 'Organization', 'profiles': 'Profiles', - 'remote_key_setting': 'RemoteKeySetting', 'retain_policy_virtual_drives': 'RetainPolicyVirtualDrives', - 'unused_disks_encryption_state': 'UnusedDisksEncryptionState', 'unused_disks_state': 'UnusedDisksState', 'virtual_drives': 'VirtualDrives' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, enable_drive_security=None, global_hot_spares=None, organization=None, profiles=None, remote_key_setting=None, retain_policy_virtual_drives=None, unused_disks_encryption_state=None, unused_disks_state='UnconfiguredGood', virtual_drives=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, disk_group_policies=None, global_hot_spares=None, organization=None, profiles=None, retain_policy_virtual_drives=None, unused_disks_state='UnconfiguredGood', virtual_drives=None): """ StorageStoragePolicy - a model defined in Swagger """ @@ -90,15 +88,14 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None - self._enable_drive_security = None + self._disk_group_policies = None self._global_hot_spares = None self._organization = None self._profiles = None - self._remote_key_setting = None self._retain_policy_virtual_drives = None - self._unused_disks_encryption_state = None self._unused_disks_state = None self._virtual_drives = None @@ -120,24 +117,22 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: self.name = name - if enable_drive_security is not None: - self.enable_drive_security = enable_drive_security + if disk_group_policies is not None: + self.disk_group_policies = disk_group_policies if global_hot_spares is not None: self.global_hot_spares = global_hot_spares if organization is not None: self.organization = organization if profiles is not None: self.profiles = profiles - if remote_key_setting is not None: - self.remote_key_setting = remote_key_setting if retain_policy_virtual_drives is not None: self.retain_policy_virtual_drives = retain_policy_virtual_drives - if unused_disks_encryption_state is not None: - self.unused_disks_encryption_state = unused_disks_encryption_state if unused_disks_state is not None: self.unused_disks_state = unused_disks_state if virtual_drives is not None: @@ -173,7 +168,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StorageStoragePolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -184,7 +179,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StorageStoragePolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -311,7 +306,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StorageStoragePolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -322,7 +317,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StorageStoragePolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -331,7 +326,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this StorageStoragePolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this StorageStoragePolicy. :rtype: list[MoTag] @@ -342,7 +337,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this StorageStoragePolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this StorageStoragePolicy. :type: list[MoTag] @@ -350,6 +345,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this StorageStoragePolicy. + The versioning info for this managed object + + :return: The version_context of this StorageStoragePolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this StorageStoragePolicy. + The versioning info for this managed object + + :param version_context: The version_context of this StorageStoragePolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -397,33 +415,33 @@ def name(self, name): self._name = name @property - def enable_drive_security(self): + def disk_group_policies(self): """ - Gets the enable_drive_security of this StorageStoragePolicy. - Enables/disables the drive encryption on all the drives used in this policy. This flag just enables the drive security and only after remote key setting configured, the actual encryption will be done. + Gets the disk_group_policies of this StorageStoragePolicy. + Relationship to the used disk group policies - :return: The enable_drive_security of this StorageStoragePolicy. - :rtype: bool + :return: The disk_group_policies of this StorageStoragePolicy. + :rtype: list[StorageDiskGroupPolicyRef] """ - return self._enable_drive_security + return self._disk_group_policies - @enable_drive_security.setter - def enable_drive_security(self, enable_drive_security): + @disk_group_policies.setter + def disk_group_policies(self, disk_group_policies): """ - Sets the enable_drive_security of this StorageStoragePolicy. - Enables/disables the drive encryption on all the drives used in this policy. This flag just enables the drive security and only after remote key setting configured, the actual encryption will be done. + Sets the disk_group_policies of this StorageStoragePolicy. + Relationship to the used disk group policies - :param enable_drive_security: The enable_drive_security of this StorageStoragePolicy. - :type: bool + :param disk_group_policies: The disk_group_policies of this StorageStoragePolicy. + :type: list[StorageDiskGroupPolicyRef] """ - self._enable_drive_security = enable_drive_security + self._disk_group_policies = disk_group_policies @property def global_hot_spares(self): """ Gets the global_hot_spares of this StorageStoragePolicy. - A collection of disks used as hot spares globally for all the RAID groups + A collection of disks used as hot spares globally for all the RAID groups :return: The global_hot_spares of this StorageStoragePolicy. :rtype: list[StorageLocalDisk] @@ -434,7 +452,7 @@ def global_hot_spares(self): def global_hot_spares(self, global_hot_spares): """ Sets the global_hot_spares of this StorageStoragePolicy. - A collection of disks used as hot spares globally for all the RAID groups + A collection of disks used as hot spares globally for all the RAID groups :param global_hot_spares: The global_hot_spares of this StorageStoragePolicy. :type: list[StorageLocalDisk] @@ -449,7 +467,7 @@ def organization(self): Organization :return: The organization of this StorageStoragePolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -460,7 +478,7 @@ def organization(self, organization): Organization :param organization: The organization of this StorageStoragePolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -472,7 +490,7 @@ def profiles(self): Relationship to the profile objects :return: The profiles of this StorageStoragePolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -483,39 +501,16 @@ def profiles(self, profiles): Relationship to the profile objects :param profiles: The profiles of this StorageStoragePolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles - @property - def remote_key_setting(self): - """ - Gets the remote_key_setting of this StorageStoragePolicy. - This is used to specify the remote KMIP server details for supporting remote key encryption - - :return: The remote_key_setting of this StorageStoragePolicy. - :rtype: StorageRemoteKeySetting - """ - return self._remote_key_setting - - @remote_key_setting.setter - def remote_key_setting(self, remote_key_setting): - """ - Sets the remote_key_setting of this StorageStoragePolicy. - This is used to specify the remote KMIP server details for supporting remote key encryption - - :param remote_key_setting: The remote_key_setting of this StorageStoragePolicy. - :type: StorageRemoteKeySetting - """ - - self._remote_key_setting = remote_key_setting - @property def retain_policy_virtual_drives(self): """ Gets the retain_policy_virtual_drives of this StorageStoragePolicy. - Retains the virtual drives defined in policy if they exist already. If this flag is false, the existing virtual drives are removed and created again based on virtual drives in the policy + Retains the virtual drives defined in policy if they exist already. If this flag is false, the existing virtual drives are removed and created again based on virtual drives in the policy :return: The retain_policy_virtual_drives of this StorageStoragePolicy. :rtype: bool @@ -526,7 +521,7 @@ def retain_policy_virtual_drives(self): def retain_policy_virtual_drives(self, retain_policy_virtual_drives): """ Sets the retain_policy_virtual_drives of this StorageStoragePolicy. - Retains the virtual drives defined in policy if they exist already. If this flag is false, the existing virtual drives are removed and created again based on virtual drives in the policy + Retains the virtual drives defined in policy if they exist already. If this flag is false, the existing virtual drives are removed and created again based on virtual drives in the policy :param retain_policy_virtual_drives: The retain_policy_virtual_drives of this StorageStoragePolicy. :type: bool @@ -534,29 +529,6 @@ def retain_policy_virtual_drives(self, retain_policy_virtual_drives): self._retain_policy_virtual_drives = retain_policy_virtual_drives - @property - def unused_disks_encryption_state(self): - """ - Gets the unused_disks_encryption_state of this StorageStoragePolicy. - Enables the encryption of the unused disks if the policy is configured with remote key - - :return: The unused_disks_encryption_state of this StorageStoragePolicy. - :rtype: bool - """ - return self._unused_disks_encryption_state - - @unused_disks_encryption_state.setter - def unused_disks_encryption_state(self, unused_disks_encryption_state): - """ - Sets the unused_disks_encryption_state of this StorageStoragePolicy. - Enables the encryption of the unused disks if the policy is configured with remote key - - :param unused_disks_encryption_state: The unused_disks_encryption_state of this StorageStoragePolicy. - :type: bool - """ - - self._unused_disks_encryption_state = unused_disks_encryption_state - @property def unused_disks_state(self): """ diff --git a/intersight/models/storage_storage_policy_list.py b/intersight/models/storage_storage_policy_list.py index f77fd6af..de3958ce 100644 --- a/intersight/models/storage_storage_policy_list.py +++ b/intersight/models/storage_storage_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_storage_policy_ref.py b/intersight/models/storage_storage_policy_ref.py new file mode 100644 index 00000000..efd5e840 --- /dev/null +++ b/intersight/models/storage_storage_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageStoragePolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageStoragePolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageStoragePolicyRef. + + :return: The moid of this StorageStoragePolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageStoragePolicyRef. + + :param moid: The moid of this StorageStoragePolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageStoragePolicyRef. + + :return: The object_type of this StorageStoragePolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageStoragePolicyRef. + + :param object_type: The object_type of this StorageStoragePolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageStoragePolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_take_snapshot_task_ref.py b/intersight/models/storage_take_snapshot_task_ref.py new file mode 100644 index 00000000..24e70abc --- /dev/null +++ b/intersight/models/storage_take_snapshot_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageTakeSnapshotTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageTakeSnapshotTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageTakeSnapshotTaskRef. + + :return: The moid of this StorageTakeSnapshotTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageTakeSnapshotTaskRef. + + :param moid: The moid of this StorageTakeSnapshotTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageTakeSnapshotTaskRef. + + :return: The object_type of this StorageTakeSnapshotTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageTakeSnapshotTaskRef. + + :param object_type: The object_type of this StorageTakeSnapshotTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageTakeSnapshotTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_validation_task_ref.py b/intersight/models/storage_validation_task_ref.py new file mode 100644 index 00000000..e07d63e2 --- /dev/null +++ b/intersight/models/storage_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageValidationTaskRef. + + :return: The moid of this StorageValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageValidationTaskRef. + + :param moid: The moid of this StorageValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageValidationTaskRef. + + :return: The object_type of this StorageValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageValidationTaskRef. + + :param object_type: The object_type of this StorageValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_vd_member_ep.py b/intersight/models/storage_vd_member_ep.py index 9e76eb75..3c89b7d2 100644 --- a/intersight/models/storage_vd_member_ep.py +++ b/intersight/models/storage_vd_member_ep.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,23 +32,24 @@ class StorageVdMemberEp(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', 'oper_qualifier_reason': 'str', 'presence': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'role': 'str', 'span_id': 'str', - 'storage_virtual_drive': 'MoMoRef', + 'storage_virtual_drive': 'StorageVirtualDriveRef', 'vd_member_ep_id': 'int' } @@ -62,6 +63,7 @@ class StorageVdMemberEp(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -74,7 +76,7 @@ class StorageVdMemberEp(object): 'vd_member_ep_id': 'VdMemberEpId' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, oper_qualifier_reason=None, presence=None, registered_device=None, role=None, span_id=None, storage_virtual_drive=None, vd_member_ep_id=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, oper_qualifier_reason=None, presence=None, registered_device=None, role=None, span_id=None, storage_virtual_drive=None, vd_member_ep_id=None): """ StorageVdMemberEp - a model defined in Swagger """ @@ -88,6 +90,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -117,6 +120,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -168,7 +173,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StorageVdMemberEp. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -179,7 +184,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StorageVdMemberEp. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -306,7 +311,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StorageVdMemberEp. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -317,7 +322,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StorageVdMemberEp. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -326,7 +331,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this StorageVdMemberEp. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this StorageVdMemberEp. :rtype: list[MoTag] @@ -337,7 +342,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this StorageVdMemberEp. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this StorageVdMemberEp. :type: list[MoTag] @@ -345,6 +350,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this StorageVdMemberEp. + The versioning info for this managed object + + :return: The version_context of this StorageVdMemberEp. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this StorageVdMemberEp. + The versioning info for this managed object + + :param version_context: The version_context of this StorageVdMemberEp. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -456,7 +484,7 @@ def registered_device(self): Gets the registered_device of this StorageVdMemberEp. :return: The registered_device of this StorageVdMemberEp. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -466,7 +494,7 @@ def registered_device(self, registered_device): Sets the registered_device of this StorageVdMemberEp. :param registered_device: The registered_device of this StorageVdMemberEp. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -519,7 +547,7 @@ def storage_virtual_drive(self): Gets the storage_virtual_drive of this StorageVdMemberEp. :return: The storage_virtual_drive of this StorageVdMemberEp. - :rtype: MoMoRef + :rtype: StorageVirtualDriveRef """ return self._storage_virtual_drive @@ -529,7 +557,7 @@ def storage_virtual_drive(self, storage_virtual_drive): Sets the storage_virtual_drive of this StorageVdMemberEp. :param storage_virtual_drive: The storage_virtual_drive of this StorageVdMemberEp. - :type: MoMoRef + :type: StorageVirtualDriveRef """ self._storage_virtual_drive = storage_virtual_drive diff --git a/intersight/models/storage_vd_member_ep_list.py b/intersight/models/storage_vd_member_ep_list.py index 9c1abd7d..10887ee3 100644 --- a/intersight/models/storage_vd_member_ep_list.py +++ b/intersight/models/storage_vd_member_ep_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_vd_member_ep_ref.py b/intersight/models/storage_vd_member_ep_ref.py new file mode 100644 index 00000000..a31650a7 --- /dev/null +++ b/intersight/models/storage_vd_member_ep_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageVdMemberEpRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageVdMemberEpRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageVdMemberEpRef. + + :return: The moid of this StorageVdMemberEpRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageVdMemberEpRef. + + :param moid: The moid of this StorageVdMemberEpRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageVdMemberEpRef. + + :return: The object_type of this StorageVdMemberEpRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageVdMemberEpRef. + + :param object_type: The object_type of this StorageVdMemberEpRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageVdMemberEpRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_virtual_drive.py b/intersight/models/storage_virtual_drive.py index a51d639e..29bcd5b9 100644 --- a/intersight/models/storage_virtual_drive.py +++ b/intersight/models/storage_virtual_drive.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class StorageVirtualDrive(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', @@ -64,18 +65,19 @@ class StorageVirtualDrive(object): 'oper_state': 'str', 'operability': 'str', 'physical_block_size': 'str', - 'physical_disk_usages': 'list[MoMoRef]', + 'physical_disk_usages': 'list[StoragePhysicalDiskUsageRef]', 'presence': 'str', 'read_policy': 'str', - 'registered_device': 'MoMoRef', + 'registered_device': 'AssetDeviceRegistrationRef', 'security_flags': 'str', 'size': 'str', - 'storage_controller': 'MoMoRef', + 'storage_controller': 'StorageControllerRef', 'strip_size': 'str', 'type': 'str', 'uuid': 'str', - 'vd_member_eps': 'list[MoMoRef]', + 'vd_member_eps': 'list[StorageVdMemberEpRef]', 'vendor_uuid': 'str', + 'virtual_drive_extension': 'StorageVirtualDriveExtensionRef', 'virtual_drive_id': 'str' } @@ -89,6 +91,7 @@ class StorageVirtualDrive(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -125,10 +128,11 @@ class StorageVirtualDrive(object): 'uuid': 'Uuid', 'vd_member_eps': 'VdMemberEps', 'vendor_uuid': 'VendorUuid', + 'virtual_drive_extension': 'VirtualDriveExtension', 'virtual_drive_id': 'VirtualDriveId' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, access_policy=None, actual_write_cache_policy=None, available_size=None, block_size=None, bootable=None, config_state=None, configured_write_cache_policy=None, connection_protocol=None, drive_cache=None, drive_security=None, drive_state=None, io_policy=None, name=None, num_blocks=None, oper_state=None, operability=None, physical_block_size=None, physical_disk_usages=None, presence=None, read_policy=None, registered_device=None, security_flags=None, size=None, storage_controller=None, strip_size=None, type=None, uuid=None, vd_member_eps=None, vendor_uuid=None, virtual_drive_id=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, model=None, revision=None, serial=None, vendor=None, access_policy=None, actual_write_cache_policy=None, available_size=None, block_size=None, bootable=None, config_state=None, configured_write_cache_policy=None, connection_protocol=None, drive_cache=None, drive_security=None, drive_state=None, io_policy=None, name=None, num_blocks=None, oper_state=None, operability=None, physical_block_size=None, physical_disk_usages=None, presence=None, read_policy=None, registered_device=None, security_flags=None, size=None, storage_controller=None, strip_size=None, type=None, uuid=None, vd_member_eps=None, vendor_uuid=None, virtual_drive_extension=None, virtual_drive_id=None): """ StorageVirtualDrive - a model defined in Swagger """ @@ -142,6 +146,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -178,6 +183,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._uuid = None self._vd_member_eps = None self._vendor_uuid = None + self._virtual_drive_extension = None self._virtual_drive_id = None if account_moid is not None: @@ -198,6 +204,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -270,6 +278,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.vd_member_eps = vd_member_eps if vendor_uuid is not None: self.vendor_uuid = vendor_uuid + if virtual_drive_extension is not None: + self.virtual_drive_extension = virtual_drive_extension if virtual_drive_id is not None: self.virtual_drive_id = virtual_drive_id @@ -303,7 +313,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this StorageVirtualDrive. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -314,7 +324,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this StorageVirtualDrive. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -441,7 +451,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this StorageVirtualDrive. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -452,7 +462,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this StorageVirtualDrive. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -461,7 +471,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this StorageVirtualDrive. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this StorageVirtualDrive. :rtype: list[MoTag] @@ -472,7 +482,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this StorageVirtualDrive. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this StorageVirtualDrive. :type: list[MoTag] @@ -480,6 +490,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this StorageVirtualDrive. + The versioning info for this managed object + + :return: The version_context of this StorageVirtualDrive. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this StorageVirtualDrive. + The versioning info for this managed object + + :param version_context: The version_context of this StorageVirtualDrive. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -990,7 +1023,7 @@ def physical_disk_usages(self): Gets the physical_disk_usages of this StorageVirtualDrive. :return: The physical_disk_usages of this StorageVirtualDrive. - :rtype: list[MoMoRef] + :rtype: list[StoragePhysicalDiskUsageRef] """ return self._physical_disk_usages @@ -1000,7 +1033,7 @@ def physical_disk_usages(self, physical_disk_usages): Sets the physical_disk_usages of this StorageVirtualDrive. :param physical_disk_usages: The physical_disk_usages of this StorageVirtualDrive. - :type: list[MoMoRef] + :type: list[StoragePhysicalDiskUsageRef] """ self._physical_disk_usages = physical_disk_usages @@ -1053,7 +1086,7 @@ def registered_device(self): Gets the registered_device of this StorageVirtualDrive. :return: The registered_device of this StorageVirtualDrive. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -1063,7 +1096,7 @@ def registered_device(self, registered_device): Sets the registered_device of this StorageVirtualDrive. :param registered_device: The registered_device of this StorageVirtualDrive. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device @@ -1116,7 +1149,7 @@ def storage_controller(self): Gets the storage_controller of this StorageVirtualDrive. :return: The storage_controller of this StorageVirtualDrive. - :rtype: MoMoRef + :rtype: StorageControllerRef """ return self._storage_controller @@ -1126,7 +1159,7 @@ def storage_controller(self, storage_controller): Sets the storage_controller of this StorageVirtualDrive. :param storage_controller: The storage_controller of this StorageVirtualDrive. - :type: MoMoRef + :type: StorageControllerRef """ self._storage_controller = storage_controller @@ -1200,7 +1233,7 @@ def vd_member_eps(self): Gets the vd_member_eps of this StorageVirtualDrive. :return: The vd_member_eps of this StorageVirtualDrive. - :rtype: list[MoMoRef] + :rtype: list[StorageVdMemberEpRef] """ return self._vd_member_eps @@ -1210,7 +1243,7 @@ def vd_member_eps(self, vd_member_eps): Sets the vd_member_eps of this StorageVirtualDrive. :param vd_member_eps: The vd_member_eps of this StorageVirtualDrive. - :type: list[MoMoRef] + :type: list[StorageVdMemberEpRef] """ self._vd_member_eps = vd_member_eps @@ -1236,6 +1269,27 @@ def vendor_uuid(self, vendor_uuid): self._vendor_uuid = vendor_uuid + @property + def virtual_drive_extension(self): + """ + Gets the virtual_drive_extension of this StorageVirtualDrive. + + :return: The virtual_drive_extension of this StorageVirtualDrive. + :rtype: StorageVirtualDriveExtensionRef + """ + return self._virtual_drive_extension + + @virtual_drive_extension.setter + def virtual_drive_extension(self, virtual_drive_extension): + """ + Sets the virtual_drive_extension of this StorageVirtualDrive. + + :param virtual_drive_extension: The virtual_drive_extension of this StorageVirtualDrive. + :type: StorageVirtualDriveExtensionRef + """ + + self._virtual_drive_extension = virtual_drive_extension + @property def virtual_drive_id(self): """ diff --git a/intersight/models/storage_virtual_drive_config.py b/intersight/models/storage_virtual_drive_config.py index 71dd974e..dc342613 100644 --- a/intersight/models/storage_virtual_drive_config.py +++ b/intersight/models/storage_virtual_drive_config.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -33,6 +33,7 @@ class StorageVirtualDriveConfig(object): swagger_types = { 'access_policy': 'str', 'boot_drive': 'bool', + 'disk_group_name': 'str', 'disk_group_policy': 'str', 'drive_cache': 'str', 'expand_to_available': 'bool', @@ -46,6 +47,7 @@ class StorageVirtualDriveConfig(object): attribute_map = { 'access_policy': 'AccessPolicy', 'boot_drive': 'BootDrive', + 'disk_group_name': 'DiskGroupName', 'disk_group_policy': 'DiskGroupPolicy', 'drive_cache': 'DriveCache', 'expand_to_available': 'ExpandToAvailable', @@ -56,13 +58,14 @@ class StorageVirtualDriveConfig(object): 'write_policy': 'WritePolicy' } - def __init__(self, access_policy='Default', boot_drive=None, disk_group_policy=None, drive_cache='Default', expand_to_available=None, io_policy='Default', name=None, read_policy='Default', size=None, write_policy='Default'): + def __init__(self, access_policy='Default', boot_drive=None, disk_group_name=None, disk_group_policy=None, drive_cache='Default', expand_to_available=None, io_policy='Default', name=None, read_policy='Default', size=None, write_policy='Default'): """ StorageVirtualDriveConfig - a model defined in Swagger """ self._access_policy = None self._boot_drive = None + self._disk_group_name = None self._disk_group_policy = None self._drive_cache = None self._expand_to_available = None @@ -76,6 +79,8 @@ def __init__(self, access_policy='Default', boot_drive=None, disk_group_policy=N self.access_policy = access_policy if boot_drive is not None: self.boot_drive = boot_drive + if disk_group_name is not None: + self.disk_group_name = disk_group_name if disk_group_policy is not None: self.disk_group_policy = disk_group_policy if drive_cache is not None: @@ -97,7 +102,7 @@ def __init__(self, access_policy='Default', boot_drive=None, disk_group_policy=N def access_policy(self): """ Gets the access_policy of this StorageVirtualDriveConfig. - This property holds the access policy that host has on this virtual drive. Accepted values - Default, ReadWrite, ReadOnly, Blocked Default - use platform default ReadWrite - host can read from and write to the virtual drisk ReadOnlt - host can only read from the virtual disk Blocked - host can neither read nor write to the virtual disk + This property holds the access policy that host has on this virtual drive :return: The access_policy of this StorageVirtualDriveConfig. :rtype: str @@ -108,7 +113,7 @@ def access_policy(self): def access_policy(self, access_policy): """ Sets the access_policy of this StorageVirtualDriveConfig. - This property holds the access policy that host has on this virtual drive. Accepted values - Default, ReadWrite, ReadOnly, Blocked Default - use platform default ReadWrite - host can read from and write to the virtual drisk ReadOnlt - host can only read from the virtual disk Blocked - host can neither read nor write to the virtual disk + This property holds the access policy that host has on this virtual drive :param access_policy: The access_policy of this StorageVirtualDriveConfig. :type: str @@ -145,11 +150,34 @@ def boot_drive(self, boot_drive): self._boot_drive = boot_drive + @property + def disk_group_name(self): + """ + Gets the disk_group_name of this StorageVirtualDriveConfig. + Disk group policy that has the disk group in which this virtual drive needs to be created + + :return: The disk_group_name of this StorageVirtualDriveConfig. + :rtype: str + """ + return self._disk_group_name + + @disk_group_name.setter + def disk_group_name(self, disk_group_name): + """ + Sets the disk_group_name of this StorageVirtualDriveConfig. + Disk group policy that has the disk group in which this virtual drive needs to be created + + :param disk_group_name: The disk_group_name of this StorageVirtualDriveConfig. + :type: str + """ + + self._disk_group_name = disk_group_name + @property def disk_group_policy(self): """ Gets the disk_group_policy of this StorageVirtualDriveConfig. - This property expects the Moid of the disk group policy that has the disk group in which this virtual drive needs to be created + Disk group policy that has the disk group in which this virtual drive needs to be created :return: The disk_group_policy of this StorageVirtualDriveConfig. :rtype: str @@ -160,7 +188,7 @@ def disk_group_policy(self): def disk_group_policy(self, disk_group_policy): """ Sets the disk_group_policy of this StorageVirtualDriveConfig. - This property expects the Moid of the disk group policy that has the disk group in which this virtual drive needs to be created + Disk group policy that has the disk group in which this virtual drive needs to be created :param disk_group_policy: The disk_group_policy of this StorageVirtualDriveConfig. :type: str @@ -172,7 +200,7 @@ def disk_group_policy(self, disk_group_policy): def drive_cache(self): """ Gets the drive_cache of this StorageVirtualDriveConfig. - This property expect disk cache policy. Accepted values - Default, NoChange, Enable, Disable + This property expect disk cache policy :return: The drive_cache of this StorageVirtualDriveConfig. :rtype: str @@ -183,7 +211,7 @@ def drive_cache(self): def drive_cache(self, drive_cache): """ Sets the drive_cache of this StorageVirtualDriveConfig. - This property expect disk cache policy. Accepted values - Default, NoChange, Enable, Disable + This property expect disk cache policy :param drive_cache: The drive_cache of this StorageVirtualDriveConfig. :type: str @@ -201,7 +229,7 @@ def drive_cache(self, drive_cache): def expand_to_available(self): """ Gets the expand_to_available of this StorageVirtualDriveConfig. - This flag enables this virtual drive to use all the available space in the disk group. When this flag is configured, the size property is ignored. + This flag enables this virtual drive to use all the available space in the disk group. When this flag is configured, the size property is ignored :return: The expand_to_available of this StorageVirtualDriveConfig. :rtype: bool @@ -212,7 +240,7 @@ def expand_to_available(self): def expand_to_available(self, expand_to_available): """ Sets the expand_to_available of this StorageVirtualDriveConfig. - This flag enables this virtual drive to use all the available space in the disk group. When this flag is configured, the size property is ignored. + This flag enables this virtual drive to use all the available space in the disk group. When this flag is configured, the size property is ignored :param expand_to_available: The expand_to_available of this StorageVirtualDriveConfig. :type: bool @@ -224,7 +252,7 @@ def expand_to_available(self, expand_to_available): def io_policy(self): """ Gets the io_policy of this StorageVirtualDriveConfig. - This property expects the desired io mode - direct io or cached io. Accepted values - Default, DirectIo, CachedIo + This property expects the desired IO mode - direct IO or cached IO :return: The io_policy of this StorageVirtualDriveConfig. :rtype: str @@ -235,7 +263,7 @@ def io_policy(self): def io_policy(self, io_policy): """ Sets the io_policy of this StorageVirtualDriveConfig. - This property expects the desired io mode - direct io or cached io. Accepted values - Default, DirectIo, CachedIo + This property expects the desired IO mode - direct IO or cached IO :param io_policy: The io_policy of this StorageVirtualDriveConfig. :type: str @@ -253,7 +281,7 @@ def io_policy(self, io_policy): def name(self): """ Gets the name of this StorageVirtualDriveConfig. - The name of the virtual drive + The name of the virtual drive. The name can be between 1 and 15 alphanumeric characters. Spaces or any special characters other than - (hyphen), _ (underscore), : (colon), and . (period) are not allowed :return: The name of this StorageVirtualDriveConfig. :rtype: str @@ -264,7 +292,7 @@ def name(self): def name(self, name): """ Sets the name of this StorageVirtualDriveConfig. - The name of the virtual drive + The name of the virtual drive. The name can be between 1 and 15 alphanumeric characters. Spaces or any special characters other than - (hyphen), _ (underscore), : (colon), and . (period) are not allowed :param name: The name of this StorageVirtualDriveConfig. :type: str @@ -276,7 +304,7 @@ def name(self, name): def read_policy(self): """ Gets the read_policy of this StorageVirtualDriveConfig. - This property holds the read ahead mode to be used. Accepted values - Default, ReadAhead, NoReadAhead Default - use platform default ReadAhead - always read ahead into cache NoReadAhead - do not read ahead + This property holds the read ahead mode to be used :return: The read_policy of this StorageVirtualDriveConfig. :rtype: str @@ -287,7 +315,7 @@ def read_policy(self): def read_policy(self, read_policy): """ Sets the read_policy of this StorageVirtualDriveConfig. - This property holds the read ahead mode to be used. Accepted values - Default, ReadAhead, NoReadAhead Default - use platform default ReadAhead - always read ahead into cache NoReadAhead - do not read ahead + This property holds the read ahead mode to be used :param read_policy: The read_policy of this StorageVirtualDriveConfig. :type: str @@ -305,7 +333,7 @@ def read_policy(self, read_policy): def size(self): """ Gets the size of this StorageVirtualDriveConfig. - Virtual drive size in MB. This is a required field unless expandToAvailable is set to true + Virtual drive size in MB. This is a required field unless the 'Expand to Available' option is enabled :return: The size of this StorageVirtualDriveConfig. :rtype: int @@ -316,7 +344,7 @@ def size(self): def size(self, size): """ Sets the size of this StorageVirtualDriveConfig. - Virtual drive size in MB. This is a required field unless expandToAvailable is set to true + Virtual drive size in MB. This is a required field unless the 'Expand to Available' option is enabled :param size: The size of this StorageVirtualDriveConfig. :type: int @@ -328,7 +356,7 @@ def size(self, size): def write_policy(self): """ Gets the write_policy of this StorageVirtualDriveConfig. - This property holds the write mode used to write the data in this virtual drive. Accepted values - Default, WriteThrough, WriteBackGoodBbu, AlwaysWriteBack Default - use platform default WriteThrough - Data is written through the cache and to the physical drives. Performance is improved, because subsequent reads of that data can be satisfied from the cache. WriteBackGoodBbu - Data is stored in the cache, and is only written to the physical drives when space in the cache is needed. Virtual drives requesting this policy fall back to Write Through caching when the batter backup unit (BBU) cannot guarantee the safety of the cache in the event of a power failure. AlwaysWriteBack - With this policy, write caching remains Write Back even if the battery backup unit is defective or discharged. + This property holds the write mode used to write the data in this virtual drive :return: The write_policy of this StorageVirtualDriveConfig. :rtype: str @@ -339,7 +367,7 @@ def write_policy(self): def write_policy(self, write_policy): """ Sets the write_policy of this StorageVirtualDriveConfig. - This property holds the write mode used to write the data in this virtual drive. Accepted values - Default, WriteThrough, WriteBackGoodBbu, AlwaysWriteBack Default - use platform default WriteThrough - Data is written through the cache and to the physical drives. Performance is improved, because subsequent reads of that data can be satisfied from the cache. WriteBackGoodBbu - Data is stored in the cache, and is only written to the physical drives when space in the cache is needed. Virtual drives requesting this policy fall back to Write Through caching when the batter backup unit (BBU) cannot guarantee the safety of the cache in the event of a power failure. AlwaysWriteBack - With this policy, write caching remains Write Back even if the battery backup unit is defective or discharged. + This property holds the write mode used to write the data in this virtual drive :param write_policy: The write_policy of this StorageVirtualDriveConfig. :type: str diff --git a/intersight/models/storage_virtual_drive_config_ref.py b/intersight/models/storage_virtual_drive_config_ref.py new file mode 100644 index 00000000..47b055be --- /dev/null +++ b/intersight/models/storage_virtual_drive_config_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageVirtualDriveConfigRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageVirtualDriveConfigRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageVirtualDriveConfigRef. + + :return: The moid of this StorageVirtualDriveConfigRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageVirtualDriveConfigRef. + + :param moid: The moid of this StorageVirtualDriveConfigRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageVirtualDriveConfigRef. + + :return: The object_type of this StorageVirtualDriveConfigRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageVirtualDriveConfigRef. + + :param object_type: The object_type of this StorageVirtualDriveConfigRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageVirtualDriveConfigRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_virtual_drive_extension.py b/intersight/models/storage_virtual_drive_extension.py new file mode 100644 index 00000000..b8492309 --- /dev/null +++ b/intersight/models/storage_virtual_drive_extension.py @@ -0,0 +1,767 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageVirtualDriveExtension(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'device_mo_id': 'str', + 'dn': 'str', + 'rn': 'str', + 'bootable': 'str', + 'container_id': 'int', + 'drive_state': 'str', + 'name': 'str', + 'oper_device_id': 'str', + 'registered_device': 'AssetDeviceRegistrationRef', + 'storage_controller': 'StorageControllerRef', + 'uuid': 'str', + 'vendor_uuid': 'str', + 'virtual_drive': 'StorageVirtualDriveRef', + 'virtual_drive_dn': 'str', + 'virtual_drive_id': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'device_mo_id': 'DeviceMoId', + 'dn': 'Dn', + 'rn': 'Rn', + 'bootable': 'Bootable', + 'container_id': 'ContainerId', + 'drive_state': 'DriveState', + 'name': 'Name', + 'oper_device_id': 'OperDeviceId', + 'registered_device': 'RegisteredDevice', + 'storage_controller': 'StorageController', + 'uuid': 'Uuid', + 'vendor_uuid': 'VendorUuid', + 'virtual_drive': 'VirtualDrive', + 'virtual_drive_dn': 'VirtualDriveDn', + 'virtual_drive_id': 'VirtualDriveId' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, bootable=None, container_id=None, drive_state=None, name=None, oper_device_id=None, registered_device=None, storage_controller=None, uuid=None, vendor_uuid=None, virtual_drive=None, virtual_drive_dn=None, virtual_drive_id=None): + """ + StorageVirtualDriveExtension - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._device_mo_id = None + self._dn = None + self._rn = None + self._bootable = None + self._container_id = None + self._drive_state = None + self._name = None + self._oper_device_id = None + self._registered_device = None + self._storage_controller = None + self._uuid = None + self._vendor_uuid = None + self._virtual_drive = None + self._virtual_drive_dn = None + self._virtual_drive_id = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if device_mo_id is not None: + self.device_mo_id = device_mo_id + if dn is not None: + self.dn = dn + if rn is not None: + self.rn = rn + if bootable is not None: + self.bootable = bootable + if container_id is not None: + self.container_id = container_id + if drive_state is not None: + self.drive_state = drive_state + if name is not None: + self.name = name + if oper_device_id is not None: + self.oper_device_id = oper_device_id + if registered_device is not None: + self.registered_device = registered_device + if storage_controller is not None: + self.storage_controller = storage_controller + if uuid is not None: + self.uuid = uuid + if vendor_uuid is not None: + self.vendor_uuid = vendor_uuid + if virtual_drive is not None: + self.virtual_drive = virtual_drive + if virtual_drive_dn is not None: + self.virtual_drive_dn = virtual_drive_dn + if virtual_drive_id is not None: + self.virtual_drive_id = virtual_drive_id + + @property + def account_moid(self): + """ + Gets the account_moid of this StorageVirtualDriveExtension. + The Account ID for this managed object. + + :return: The account_moid of this StorageVirtualDriveExtension. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this StorageVirtualDriveExtension. + The Account ID for this managed object. + + :param account_moid: The account_moid of this StorageVirtualDriveExtension. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this StorageVirtualDriveExtension. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this StorageVirtualDriveExtension. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this StorageVirtualDriveExtension. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this StorageVirtualDriveExtension. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this StorageVirtualDriveExtension. + The time when this managed object was created. + + :return: The create_time of this StorageVirtualDriveExtension. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this StorageVirtualDriveExtension. + The time when this managed object was created. + + :param create_time: The create_time of this StorageVirtualDriveExtension. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this StorageVirtualDriveExtension. + The time when this managed object was last modified. + + :return: The mod_time of this StorageVirtualDriveExtension. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this StorageVirtualDriveExtension. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this StorageVirtualDriveExtension. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this StorageVirtualDriveExtension. + A unique identifier of this Managed Object instance. + + :return: The moid of this StorageVirtualDriveExtension. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageVirtualDriveExtension. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this StorageVirtualDriveExtension. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageVirtualDriveExtension. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this StorageVirtualDriveExtension. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageVirtualDriveExtension. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this StorageVirtualDriveExtension. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this StorageVirtualDriveExtension. + An array of owners which represent effective ownership of this object. + + :return: The owners of this StorageVirtualDriveExtension. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this StorageVirtualDriveExtension. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this StorageVirtualDriveExtension. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this StorageVirtualDriveExtension. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this StorageVirtualDriveExtension. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this StorageVirtualDriveExtension. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this StorageVirtualDriveExtension. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this StorageVirtualDriveExtension. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this StorageVirtualDriveExtension. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this StorageVirtualDriveExtension. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this StorageVirtualDriveExtension. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this StorageVirtualDriveExtension. + The versioning info for this managed object + + :return: The version_context of this StorageVirtualDriveExtension. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this StorageVirtualDriveExtension. + The versioning info for this managed object + + :param version_context: The version_context of this StorageVirtualDriveExtension. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def device_mo_id(self): + """ + Gets the device_mo_id of this StorageVirtualDriveExtension. + + :return: The device_mo_id of this StorageVirtualDriveExtension. + :rtype: str + """ + return self._device_mo_id + + @device_mo_id.setter + def device_mo_id(self, device_mo_id): + """ + Sets the device_mo_id of this StorageVirtualDriveExtension. + + :param device_mo_id: The device_mo_id of this StorageVirtualDriveExtension. + :type: str + """ + + self._device_mo_id = device_mo_id + + @property + def dn(self): + """ + Gets the dn of this StorageVirtualDriveExtension. + + :return: The dn of this StorageVirtualDriveExtension. + :rtype: str + """ + return self._dn + + @dn.setter + def dn(self, dn): + """ + Sets the dn of this StorageVirtualDriveExtension. + + :param dn: The dn of this StorageVirtualDriveExtension. + :type: str + """ + + self._dn = dn + + @property + def rn(self): + """ + Gets the rn of this StorageVirtualDriveExtension. + + :return: The rn of this StorageVirtualDriveExtension. + :rtype: str + """ + return self._rn + + @rn.setter + def rn(self, rn): + """ + Sets the rn of this StorageVirtualDriveExtension. + + :param rn: The rn of this StorageVirtualDriveExtension. + :type: str + """ + + self._rn = rn + + @property + def bootable(self): + """ + Gets the bootable of this StorageVirtualDriveExtension. + + :return: The bootable of this StorageVirtualDriveExtension. + :rtype: str + """ + return self._bootable + + @bootable.setter + def bootable(self, bootable): + """ + Sets the bootable of this StorageVirtualDriveExtension. + + :param bootable: The bootable of this StorageVirtualDriveExtension. + :type: str + """ + + self._bootable = bootable + + @property + def container_id(self): + """ + Gets the container_id of this StorageVirtualDriveExtension. + + :return: The container_id of this StorageVirtualDriveExtension. + :rtype: int + """ + return self._container_id + + @container_id.setter + def container_id(self, container_id): + """ + Sets the container_id of this StorageVirtualDriveExtension. + + :param container_id: The container_id of this StorageVirtualDriveExtension. + :type: int + """ + + self._container_id = container_id + + @property + def drive_state(self): + """ + Gets the drive_state of this StorageVirtualDriveExtension. + + :return: The drive_state of this StorageVirtualDriveExtension. + :rtype: str + """ + return self._drive_state + + @drive_state.setter + def drive_state(self, drive_state): + """ + Sets the drive_state of this StorageVirtualDriveExtension. + + :param drive_state: The drive_state of this StorageVirtualDriveExtension. + :type: str + """ + + self._drive_state = drive_state + + @property + def name(self): + """ + Gets the name of this StorageVirtualDriveExtension. + + :return: The name of this StorageVirtualDriveExtension. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this StorageVirtualDriveExtension. + + :param name: The name of this StorageVirtualDriveExtension. + :type: str + """ + + self._name = name + + @property + def oper_device_id(self): + """ + Gets the oper_device_id of this StorageVirtualDriveExtension. + + :return: The oper_device_id of this StorageVirtualDriveExtension. + :rtype: str + """ + return self._oper_device_id + + @oper_device_id.setter + def oper_device_id(self, oper_device_id): + """ + Sets the oper_device_id of this StorageVirtualDriveExtension. + + :param oper_device_id: The oper_device_id of this StorageVirtualDriveExtension. + :type: str + """ + + self._oper_device_id = oper_device_id + + @property + def registered_device(self): + """ + Gets the registered_device of this StorageVirtualDriveExtension. + + :return: The registered_device of this StorageVirtualDriveExtension. + :rtype: AssetDeviceRegistrationRef + """ + return self._registered_device + + @registered_device.setter + def registered_device(self, registered_device): + """ + Sets the registered_device of this StorageVirtualDriveExtension. + + :param registered_device: The registered_device of this StorageVirtualDriveExtension. + :type: AssetDeviceRegistrationRef + """ + + self._registered_device = registered_device + + @property + def storage_controller(self): + """ + Gets the storage_controller of this StorageVirtualDriveExtension. + + :return: The storage_controller of this StorageVirtualDriveExtension. + :rtype: StorageControllerRef + """ + return self._storage_controller + + @storage_controller.setter + def storage_controller(self, storage_controller): + """ + Sets the storage_controller of this StorageVirtualDriveExtension. + + :param storage_controller: The storage_controller of this StorageVirtualDriveExtension. + :type: StorageControllerRef + """ + + self._storage_controller = storage_controller + + @property + def uuid(self): + """ + Gets the uuid of this StorageVirtualDriveExtension. + + :return: The uuid of this StorageVirtualDriveExtension. + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """ + Sets the uuid of this StorageVirtualDriveExtension. + + :param uuid: The uuid of this StorageVirtualDriveExtension. + :type: str + """ + + self._uuid = uuid + + @property + def vendor_uuid(self): + """ + Gets the vendor_uuid of this StorageVirtualDriveExtension. + + :return: The vendor_uuid of this StorageVirtualDriveExtension. + :rtype: str + """ + return self._vendor_uuid + + @vendor_uuid.setter + def vendor_uuid(self, vendor_uuid): + """ + Sets the vendor_uuid of this StorageVirtualDriveExtension. + + :param vendor_uuid: The vendor_uuid of this StorageVirtualDriveExtension. + :type: str + """ + + self._vendor_uuid = vendor_uuid + + @property + def virtual_drive(self): + """ + Gets the virtual_drive of this StorageVirtualDriveExtension. + + :return: The virtual_drive of this StorageVirtualDriveExtension. + :rtype: StorageVirtualDriveRef + """ + return self._virtual_drive + + @virtual_drive.setter + def virtual_drive(self, virtual_drive): + """ + Sets the virtual_drive of this StorageVirtualDriveExtension. + + :param virtual_drive: The virtual_drive of this StorageVirtualDriveExtension. + :type: StorageVirtualDriveRef + """ + + self._virtual_drive = virtual_drive + + @property + def virtual_drive_dn(self): + """ + Gets the virtual_drive_dn of this StorageVirtualDriveExtension. + + :return: The virtual_drive_dn of this StorageVirtualDriveExtension. + :rtype: str + """ + return self._virtual_drive_dn + + @virtual_drive_dn.setter + def virtual_drive_dn(self, virtual_drive_dn): + """ + Sets the virtual_drive_dn of this StorageVirtualDriveExtension. + + :param virtual_drive_dn: The virtual_drive_dn of this StorageVirtualDriveExtension. + :type: str + """ + + self._virtual_drive_dn = virtual_drive_dn + + @property + def virtual_drive_id(self): + """ + Gets the virtual_drive_id of this StorageVirtualDriveExtension. + + :return: The virtual_drive_id of this StorageVirtualDriveExtension. + :rtype: str + """ + return self._virtual_drive_id + + @virtual_drive_id.setter + def virtual_drive_id(self, virtual_drive_id): + """ + Sets the virtual_drive_id of this StorageVirtualDriveExtension. + + :param virtual_drive_id: The virtual_drive_id of this StorageVirtualDriveExtension. + :type: str + """ + + self._virtual_drive_id = virtual_drive_id + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageVirtualDriveExtension): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_virtual_drive_extension_list.py b/intersight/models/storage_virtual_drive_extension_list.py new file mode 100644 index 00000000..c49ee419 --- /dev/null +++ b/intersight/models/storage_virtual_drive_extension_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageVirtualDriveExtensionList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[StorageVirtualDriveExtension]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + StorageVirtualDriveExtensionList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this StorageVirtualDriveExtensionList. + The number of storageVirtualDriveExtensions matching your request in total for all pages. + + :return: The count of this StorageVirtualDriveExtensionList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this StorageVirtualDriveExtensionList. + The number of storageVirtualDriveExtensions matching your request in total for all pages. + + :param count: The count of this StorageVirtualDriveExtensionList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this StorageVirtualDriveExtensionList. + The array of storageVirtualDriveExtensions matching your request. + + :return: The results of this StorageVirtualDriveExtensionList. + :rtype: list[StorageVirtualDriveExtension] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this StorageVirtualDriveExtensionList. + The array of storageVirtualDriveExtensions matching your request. + + :param results: The results of this StorageVirtualDriveExtensionList. + :type: list[StorageVirtualDriveExtension] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageVirtualDriveExtensionList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_virtual_drive_extension_ref.py b/intersight/models/storage_virtual_drive_extension_ref.py new file mode 100644 index 00000000..a59dc98e --- /dev/null +++ b/intersight/models/storage_virtual_drive_extension_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageVirtualDriveExtensionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageVirtualDriveExtensionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageVirtualDriveExtensionRef. + + :return: The moid of this StorageVirtualDriveExtensionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageVirtualDriveExtensionRef. + + :param moid: The moid of this StorageVirtualDriveExtensionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageVirtualDriveExtensionRef. + + :return: The object_type of this StorageVirtualDriveExtensionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageVirtualDriveExtensionRef. + + :param object_type: The object_type of this StorageVirtualDriveExtensionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageVirtualDriveExtensionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/storage_virtual_drive_list.py b/intersight/models/storage_virtual_drive_list.py index 3ca4b1a9..2db49125 100644 --- a/intersight/models/storage_virtual_drive_list.py +++ b/intersight/models/storage_virtual_drive_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/storage_virtual_drive_ref.py b/intersight/models/storage_virtual_drive_ref.py new file mode 100644 index 00000000..53d2d818 --- /dev/null +++ b/intersight/models/storage_virtual_drive_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class StorageVirtualDriveRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + StorageVirtualDriveRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this StorageVirtualDriveRef. + + :return: The moid of this StorageVirtualDriveRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this StorageVirtualDriveRef. + + :param moid: The moid of this StorageVirtualDriveRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this StorageVirtualDriveRef. + + :return: The object_type of this StorageVirtualDriveRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this StorageVirtualDriveRef. + + :param object_type: The object_type of this StorageVirtualDriveRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, StorageVirtualDriveRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/syslog_deploy_task_ref.py b/intersight/models/syslog_deploy_task_ref.py new file mode 100644 index 00000000..cf52c430 --- /dev/null +++ b/intersight/models/syslog_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SyslogDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SyslogDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SyslogDeployTaskRef. + + :return: The moid of this SyslogDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SyslogDeployTaskRef. + + :param moid: The moid of this SyslogDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SyslogDeployTaskRef. + + :return: The object_type of this SyslogDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SyslogDeployTaskRef. + + :param object_type: The object_type of this SyslogDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SyslogDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/syslog_local_client_base.py b/intersight/models/syslog_local_client_base.py new file mode 100644 index 00000000..b255d364 --- /dev/null +++ b/intersight/models/syslog_local_client_base.py @@ -0,0 +1,131 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SyslogLocalClientBase(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'min_severity': 'str' + } + + attribute_map = { + 'min_severity': 'MinSeverity' + } + + def __init__(self, min_severity='warning'): + """ + SyslogLocalClientBase - a model defined in Swagger + """ + + self._min_severity = None + + if min_severity is not None: + self.min_severity = min_severity + + @property + def min_severity(self): + """ + Gets the min_severity of this SyslogLocalClientBase. + Lowest level of messages to be included in the local log + + :return: The min_severity of this SyslogLocalClientBase. + :rtype: str + """ + return self._min_severity + + @min_severity.setter + def min_severity(self, min_severity): + """ + Sets the min_severity of this SyslogLocalClientBase. + Lowest level of messages to be included in the local log + + :param min_severity: The min_severity of this SyslogLocalClientBase. + :type: str + """ + allowed_values = ["warning", "emergency", "alert", "critical", "error", "notice", "informational", "debug"] + if min_severity not in allowed_values: + raise ValueError( + "Invalid value for `min_severity` ({0}), must be one of {1}" + .format(min_severity, allowed_values) + ) + + self._min_severity = min_severity + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SyslogLocalClientBase): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/syslog_local_client_base_ref.py b/intersight/models/syslog_local_client_base_ref.py new file mode 100644 index 00000000..228018a8 --- /dev/null +++ b/intersight/models/syslog_local_client_base_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SyslogLocalClientBaseRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SyslogLocalClientBaseRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SyslogLocalClientBaseRef. + + :return: The moid of this SyslogLocalClientBaseRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SyslogLocalClientBaseRef. + + :param moid: The moid of this SyslogLocalClientBaseRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SyslogLocalClientBaseRef. + + :return: The object_type of this SyslogLocalClientBaseRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SyslogLocalClientBaseRef. + + :param object_type: The object_type of this SyslogLocalClientBaseRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SyslogLocalClientBaseRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/syslog_local_file_logging_client_ref.py b/intersight/models/syslog_local_file_logging_client_ref.py new file mode 100644 index 00000000..8a9c94a1 --- /dev/null +++ b/intersight/models/syslog_local_file_logging_client_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SyslogLocalFileLoggingClientRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SyslogLocalFileLoggingClientRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SyslogLocalFileLoggingClientRef. + + :return: The moid of this SyslogLocalFileLoggingClientRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SyslogLocalFileLoggingClientRef. + + :param moid: The moid of this SyslogLocalFileLoggingClientRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SyslogLocalFileLoggingClientRef. + + :return: The object_type of this SyslogLocalFileLoggingClientRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SyslogLocalFileLoggingClientRef. + + :param object_type: The object_type of this SyslogLocalFileLoggingClientRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SyslogLocalFileLoggingClientRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/epansible_runner.py b/intersight/models/syslog_policy.py similarity index 52% rename from intersight/models/epansible_runner.py rename to intersight/models/syslog_policy.py index 5f784413..2334451b 100644 --- a/intersight/models/epansible_runner.py +++ b/intersight/models/syslog_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class EpansibleRunner(object): +class SyslogPolicy(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,21 +32,21 @@ class EpansibleRunner(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'exit_code': 'int', - 'extra_vars': 'str', - 'oper_state': 'str', - 'organization': 'MoMoRef', - 'playbook': 'str', - 'stderr': 'str', - 'stdout': 'str' + 'version_context': 'MoVersionContext', + 'description': 'str', + 'name': 'str', + 'local_clients': 'list[SyslogLocalClientBase]', + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]', + 'remote_clients': 'list[SyslogRemoteClientBase]' } attribute_map = { @@ -59,18 +59,18 @@ class EpansibleRunner(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', - 'exit_code': 'ExitCode', - 'extra_vars': 'ExtraVars', - 'oper_state': 'OperState', + 'version_context': 'VersionContext', + 'description': 'Description', + 'name': 'Name', + 'local_clients': 'LocalClients', 'organization': 'Organization', - 'playbook': 'Playbook', - 'stderr': 'Stderr', - 'stdout': 'Stdout' + 'profiles': 'Profiles', + 'remote_clients': 'RemoteClients' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, exit_code=None, extra_vars=None, oper_state='Pending', organization=None, playbook=None, stderr=None, stdout=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, local_clients=None, organization=None, profiles=None, remote_clients=None): """ - EpansibleRunner - a model defined in Swagger + SyslogPolicy - a model defined in Swagger """ self._account_moid = None @@ -82,13 +82,13 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None - self._exit_code = None - self._extra_vars = None - self._oper_state = None + self._version_context = None + self._description = None + self._name = None + self._local_clients = None self._organization = None - self._playbook = None - self._stderr = None - self._stdout = None + self._profiles = None + self._remote_clients = None if account_moid is not None: self.account_moid = account_moid @@ -108,28 +108,28 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags - if exit_code is not None: - self.exit_code = exit_code - if extra_vars is not None: - self.extra_vars = extra_vars - if oper_state is not None: - self.oper_state = oper_state + if version_context is not None: + self.version_context = version_context + if description is not None: + self.description = description + if name is not None: + self.name = name + if local_clients is not None: + self.local_clients = local_clients if organization is not None: self.organization = organization - if playbook is not None: - self.playbook = playbook - if stderr is not None: - self.stderr = stderr - if stdout is not None: - self.stdout = stdout + if profiles is not None: + self.profiles = profiles + if remote_clients is not None: + self.remote_clients = remote_clients @property def account_moid(self): """ - Gets the account_moid of this EpansibleRunner. + Gets the account_moid of this SyslogPolicy. The Account ID for this managed object. - :return: The account_moid of this EpansibleRunner. + :return: The account_moid of this SyslogPolicy. :rtype: str """ return self._account_moid @@ -137,10 +137,10 @@ def account_moid(self): @account_moid.setter def account_moid(self, account_moid): """ - Sets the account_moid of this EpansibleRunner. + Sets the account_moid of this SyslogPolicy. The Account ID for this managed object. - :param account_moid: The account_moid of this EpansibleRunner. + :param account_moid: The account_moid of this SyslogPolicy. :type: str """ @@ -149,22 +149,22 @@ def account_moid(self, account_moid): @property def ancestors(self): """ - Gets the ancestors of this EpansibleRunner. + Gets the ancestors of this SyslogPolicy. Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - :return: The ancestors of this EpansibleRunner. - :rtype: list[MoMoRef] + :return: The ancestors of this SyslogPolicy. + :rtype: list[MoBaseMoRef] """ return self._ancestors @ancestors.setter def ancestors(self, ancestors): """ - Sets the ancestors of this EpansibleRunner. + Sets the ancestors of this SyslogPolicy. Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - :param ancestors: The ancestors of this EpansibleRunner. - :type: list[MoMoRef] + :param ancestors: The ancestors of this SyslogPolicy. + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -172,10 +172,10 @@ def ancestors(self, ancestors): @property def create_time(self): """ - Gets the create_time of this EpansibleRunner. + Gets the create_time of this SyslogPolicy. The time when this managed object was created. - :return: The create_time of this EpansibleRunner. + :return: The create_time of this SyslogPolicy. :rtype: datetime """ return self._create_time @@ -183,10 +183,10 @@ def create_time(self): @create_time.setter def create_time(self, create_time): """ - Sets the create_time of this EpansibleRunner. + Sets the create_time of this SyslogPolicy. The time when this managed object was created. - :param create_time: The create_time of this EpansibleRunner. + :param create_time: The create_time of this SyslogPolicy. :type: datetime """ @@ -195,10 +195,10 @@ def create_time(self, create_time): @property def mod_time(self): """ - Gets the mod_time of this EpansibleRunner. + Gets the mod_time of this SyslogPolicy. The time when this managed object was last modified. - :return: The mod_time of this EpansibleRunner. + :return: The mod_time of this SyslogPolicy. :rtype: datetime """ return self._mod_time @@ -206,10 +206,10 @@ def mod_time(self): @mod_time.setter def mod_time(self, mod_time): """ - Sets the mod_time of this EpansibleRunner. + Sets the mod_time of this SyslogPolicy. The time when this managed object was last modified. - :param mod_time: The mod_time of this EpansibleRunner. + :param mod_time: The mod_time of this SyslogPolicy. :type: datetime """ @@ -218,10 +218,10 @@ def mod_time(self, mod_time): @property def moid(self): """ - Gets the moid of this EpansibleRunner. + Gets the moid of this SyslogPolicy. A unique identifier of this Managed Object instance. - :return: The moid of this EpansibleRunner. + :return: The moid of this SyslogPolicy. :rtype: str """ return self._moid @@ -229,10 +229,10 @@ def moid(self): @moid.setter def moid(self, moid): """ - Sets the moid of this EpansibleRunner. + Sets the moid of this SyslogPolicy. A unique identifier of this Managed Object instance. - :param moid: The moid of this EpansibleRunner. + :param moid: The moid of this SyslogPolicy. :type: str """ @@ -241,10 +241,10 @@ def moid(self, moid): @property def object_type(self): """ - Gets the object_type of this EpansibleRunner. + Gets the object_type of this SyslogPolicy. The fully-qualified type of this managed object, e.g. the class name. - :return: The object_type of this EpansibleRunner. + :return: The object_type of this SyslogPolicy. :rtype: str """ return self._object_type @@ -252,10 +252,10 @@ def object_type(self): @object_type.setter def object_type(self, object_type): """ - Sets the object_type of this EpansibleRunner. + Sets the object_type of this SyslogPolicy. The fully-qualified type of this managed object, e.g. the class name. - :param object_type: The object_type of this EpansibleRunner. + :param object_type: The object_type of this SyslogPolicy. :type: str """ @@ -264,10 +264,10 @@ def object_type(self, object_type): @property def owners(self): """ - Gets the owners of this EpansibleRunner. + Gets the owners of this SyslogPolicy. An array of owners which represent effective ownership of this object. - :return: The owners of this EpansibleRunner. + :return: The owners of this SyslogPolicy. :rtype: list[str] """ return self._owners @@ -275,10 +275,10 @@ def owners(self): @owners.setter def owners(self, owners): """ - Sets the owners of this EpansibleRunner. + Sets the owners of this SyslogPolicy. An array of owners which represent effective ownership of this object. - :param owners: The owners of this EpansibleRunner. + :param owners: The owners of this SyslogPolicy. :type: list[str] """ @@ -287,22 +287,22 @@ def owners(self, owners): @property def parent(self): """ - Gets the parent of this EpansibleRunner. + Gets the parent of this SyslogPolicy. The direct ancestor of this managed object in the containment hierarchy. - :return: The parent of this EpansibleRunner. - :rtype: MoMoRef + :return: The parent of this SyslogPolicy. + :rtype: MoBaseMoRef """ return self._parent @parent.setter def parent(self, parent): """ - Sets the parent of this EpansibleRunner. + Sets the parent of this SyslogPolicy. The direct ancestor of this managed object in the containment hierarchy. - :param parent: The parent of this EpansibleRunner. - :type: MoMoRef + :param parent: The parent of this SyslogPolicy. + :type: MoBaseMoRef """ self._parent = parent @@ -310,10 +310,10 @@ def parent(self, parent): @property def tags(self): """ - Gets the tags of this EpansibleRunner. - An array of tags, which allow to add key, value meta-data to managed objects. + Gets the tags of this SyslogPolicy. + An array of tags, which allow to add key, value meta-data to managed objects. - :return: The tags of this EpansibleRunner. + :return: The tags of this SyslogPolicy. :rtype: list[MoTag] """ return self._tags @@ -321,181 +321,175 @@ def tags(self): @tags.setter def tags(self, tags): """ - Sets the tags of this EpansibleRunner. - An array of tags, which allow to add key, value meta-data to managed objects. + Sets the tags of this SyslogPolicy. + An array of tags, which allow to add key, value meta-data to managed objects. - :param tags: The tags of this EpansibleRunner. + :param tags: The tags of this SyslogPolicy. :type: list[MoTag] """ self._tags = tags @property - def exit_code(self): + def version_context(self): """ - Gets the exit_code of this EpansibleRunner. - Exit code of the workflow task + Gets the version_context of this SyslogPolicy. + The versioning info for this managed object - :return: The exit_code of this EpansibleRunner. - :rtype: int + :return: The version_context of this SyslogPolicy. + :rtype: MoVersionContext """ - return self._exit_code + return self._version_context - @exit_code.setter - def exit_code(self, exit_code): + @version_context.setter + def version_context(self, version_context): """ - Sets the exit_code of this EpansibleRunner. - Exit code of the workflow task + Sets the version_context of this SyslogPolicy. + The versioning info for this managed object - :param exit_code: The exit_code of this EpansibleRunner. - :type: int + :param version_context: The version_context of this SyslogPolicy. + :type: MoVersionContext """ - self._exit_code = exit_code + self._version_context = version_context @property - def extra_vars(self): + def description(self): """ - Gets the extra_vars of this EpansibleRunner. - Extra variables for the ansible playbook. + Gets the description of this SyslogPolicy. + Description of the policy. - :return: The extra_vars of this EpansibleRunner. + :return: The description of this SyslogPolicy. :rtype: str """ - return self._extra_vars + return self._description - @extra_vars.setter - def extra_vars(self, extra_vars): + @description.setter + def description(self, description): """ - Sets the extra_vars of this EpansibleRunner. - Extra variables for the ansible playbook. + Sets the description of this SyslogPolicy. + Description of the policy. - :param extra_vars: The extra_vars of this EpansibleRunner. + :param description: The description of this SyslogPolicy. :type: str """ - self._extra_vars = extra_vars + self._description = description @property - def oper_state(self): + def name(self): """ - Gets the oper_state of this EpansibleRunner. - Denotes if the task is pending, in_progress, completed_ok, completed_error + Gets the name of this SyslogPolicy. + Name of the policy. - :return: The oper_state of this EpansibleRunner. + :return: The name of this SyslogPolicy. :rtype: str """ - return self._oper_state + return self._name - @oper_state.setter - def oper_state(self, oper_state): + @name.setter + def name(self, name): """ - Sets the oper_state of this EpansibleRunner. - Denotes if the task is pending, in_progress, completed_ok, completed_error + Sets the name of this SyslogPolicy. + Name of the policy. - :param oper_state: The oper_state of this EpansibleRunner. + :param name: The name of this SyslogPolicy. :type: str """ - allowed_values = ["Pending", "InProgress", "CompletedOk", "CompletedError", "CompletedWarning"] - if oper_state not in allowed_values: - raise ValueError( - "Invalid value for `oper_state` ({0}), must be one of {1}" - .format(oper_state, allowed_values) - ) - self._oper_state = oper_state + self._name = name @property - def organization(self): + def local_clients(self): """ - Gets the organization of this EpansibleRunner. - Organization + Gets the local_clients of this SyslogPolicy. + Set of local logging clients on the endpoint - :return: The organization of this EpansibleRunner. - :rtype: MoMoRef + :return: The local_clients of this SyslogPolicy. + :rtype: list[SyslogLocalClientBase] """ - return self._organization + return self._local_clients - @organization.setter - def organization(self, organization): + @local_clients.setter + def local_clients(self, local_clients): """ - Sets the organization of this EpansibleRunner. - Organization + Sets the local_clients of this SyslogPolicy. + Set of local logging clients on the endpoint - :param organization: The organization of this EpansibleRunner. - :type: MoMoRef + :param local_clients: The local_clients of this SyslogPolicy. + :type: list[SyslogLocalClientBase] """ - self._organization = organization + self._local_clients = local_clients @property - def playbook(self): + def organization(self): """ - Gets the playbook of this EpansibleRunner. - Name of the ansible playbook to execute. + Gets the organization of this SyslogPolicy. + Organization - :return: The playbook of this EpansibleRunner. - :rtype: str + :return: The organization of this SyslogPolicy. + :rtype: IamAccountRef """ - return self._playbook + return self._organization - @playbook.setter - def playbook(self, playbook): + @organization.setter + def organization(self, organization): """ - Sets the playbook of this EpansibleRunner. - Name of the ansible playbook to execute. + Sets the organization of this SyslogPolicy. + Organization - :param playbook: The playbook of this EpansibleRunner. - :type: str + :param organization: The organization of this SyslogPolicy. + :type: IamAccountRef """ - self._playbook = playbook + self._organization = organization @property - def stderr(self): + def profiles(self): """ - Gets the stderr of this EpansibleRunner. - Standard error from the task execution + Gets the profiles of this SyslogPolicy. + Relationship to the profile object - :return: The stderr of this EpansibleRunner. - :rtype: str + :return: The profiles of this SyslogPolicy. + :rtype: list[PolicyAbstractConfigProfileRef] """ - return self._stderr + return self._profiles - @stderr.setter - def stderr(self, stderr): + @profiles.setter + def profiles(self, profiles): """ - Sets the stderr of this EpansibleRunner. - Standard error from the task execution + Sets the profiles of this SyslogPolicy. + Relationship to the profile object - :param stderr: The stderr of this EpansibleRunner. - :type: str + :param profiles: The profiles of this SyslogPolicy. + :type: list[PolicyAbstractConfigProfileRef] """ - self._stderr = stderr + self._profiles = profiles @property - def stdout(self): + def remote_clients(self): """ - Gets the stdout of this EpansibleRunner. - Standard output from the task execution + Gets the remote_clients of this SyslogPolicy. + Set of remote logging clients on the endpoint - :return: The stdout of this EpansibleRunner. - :rtype: str + :return: The remote_clients of this SyslogPolicy. + :rtype: list[SyslogRemoteClientBase] """ - return self._stdout + return self._remote_clients - @stdout.setter - def stdout(self, stdout): + @remote_clients.setter + def remote_clients(self, remote_clients): """ - Sets the stdout of this EpansibleRunner. - Standard output from the task execution + Sets the remote_clients of this SyslogPolicy. + Set of remote logging clients on the endpoint - :param stdout: The stdout of this EpansibleRunner. - :type: str + :param remote_clients: The remote_clients of this SyslogPolicy. + :type: list[SyslogRemoteClientBase] """ - self._stdout = stdout + self._remote_clients = remote_clients def to_dict(self): """ @@ -539,7 +533,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, EpansibleRunner): + if not isinstance(other, SyslogPolicy): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/syslog_policy_list.py b/intersight/models/syslog_policy_list.py new file mode 100644 index 00000000..e0284eb2 --- /dev/null +++ b/intersight/models/syslog_policy_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SyslogPolicyList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[SyslogPolicy]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + SyslogPolicyList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this SyslogPolicyList. + The number of syslogPolicies matching your request in total for all pages. + + :return: The count of this SyslogPolicyList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this SyslogPolicyList. + The number of syslogPolicies matching your request in total for all pages. + + :param count: The count of this SyslogPolicyList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this SyslogPolicyList. + The array of syslogPolicies matching your request. + + :return: The results of this SyslogPolicyList. + :rtype: list[SyslogPolicy] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this SyslogPolicyList. + The array of syslogPolicies matching your request. + + :param results: The results of this SyslogPolicyList. + :type: list[SyslogPolicy] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SyslogPolicyList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/syslog_policy_ref.py b/intersight/models/syslog_policy_ref.py new file mode 100644 index 00000000..0301345e --- /dev/null +++ b/intersight/models/syslog_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SyslogPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SyslogPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SyslogPolicyRef. + + :return: The moid of this SyslogPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SyslogPolicyRef. + + :param moid: The moid of this SyslogPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SyslogPolicyRef. + + :return: The object_type of this SyslogPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SyslogPolicyRef. + + :param object_type: The object_type of this SyslogPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SyslogPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/syslog_remote_client_base.py b/intersight/models/syslog_remote_client_base.py new file mode 100644 index 00000000..64558027 --- /dev/null +++ b/intersight/models/syslog_remote_client_base.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SyslogRemoteClientBase(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'enabled': 'bool', + 'hostname': 'str', + 'min_severity': 'str', + 'port': 'int', + 'protocol': 'str' + } + + attribute_map = { + 'enabled': 'Enabled', + 'hostname': 'Hostname', + 'min_severity': 'MinSeverity', + 'port': 'Port', + 'protocol': 'Protocol' + } + + def __init__(self, enabled=None, hostname=None, min_severity='warning', port=None, protocol='udp'): + """ + SyslogRemoteClientBase - a model defined in Swagger + """ + + self._enabled = None + self._hostname = None + self._min_severity = None + self._port = None + self._protocol = None + + if enabled is not None: + self.enabled = enabled + if hostname is not None: + self.hostname = hostname + if min_severity is not None: + self.min_severity = min_severity + if port is not None: + self.port = port + if protocol is not None: + self.protocol = protocol + + @property + def enabled(self): + """ + Gets the enabled of this SyslogRemoteClientBase. + Enables/disables remote logging for the endpoint If enabled, log messages will be sent to the syslog server mentioned in the Hostname/IP Address field. + + :return: The enabled of this SyslogRemoteClientBase. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this SyslogRemoteClientBase. + Enables/disables remote logging for the endpoint If enabled, log messages will be sent to the syslog server mentioned in the Hostname/IP Address field. + + :param enabled: The enabled of this SyslogRemoteClientBase. + :type: bool + """ + + self._enabled = enabled + + @property + def hostname(self): + """ + Gets the hostname of this SyslogRemoteClientBase. + Hostname or IP Address of the syslog server where log should be stored + + :return: The hostname of this SyslogRemoteClientBase. + :rtype: str + """ + return self._hostname + + @hostname.setter + def hostname(self, hostname): + """ + Sets the hostname of this SyslogRemoteClientBase. + Hostname or IP Address of the syslog server where log should be stored + + :param hostname: The hostname of this SyslogRemoteClientBase. + :type: str + """ + + self._hostname = hostname + + @property + def min_severity(self): + """ + Gets the min_severity of this SyslogRemoteClientBase. + Lowest level of messages to be included in the remote log + + :return: The min_severity of this SyslogRemoteClientBase. + :rtype: str + """ + return self._min_severity + + @min_severity.setter + def min_severity(self, min_severity): + """ + Sets the min_severity of this SyslogRemoteClientBase. + Lowest level of messages to be included in the remote log + + :param min_severity: The min_severity of this SyslogRemoteClientBase. + :type: str + """ + allowed_values = ["warning", "emergency", "alert", "critical", "error", "notice", "informational", "debug"] + if min_severity not in allowed_values: + raise ValueError( + "Invalid value for `min_severity` ({0}), must be one of {1}" + .format(min_severity, allowed_values) + ) + + self._min_severity = min_severity + + @property + def port(self): + """ + Gets the port of this SyslogRemoteClientBase. + Port number used for logging on syslog server + + :return: The port of this SyslogRemoteClientBase. + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """ + Sets the port of this SyslogRemoteClientBase. + Port number used for logging on syslog server + + :param port: The port of this SyslogRemoteClientBase. + :type: int + """ + + self._port = port + + @property + def protocol(self): + """ + Gets the protocol of this SyslogRemoteClientBase. + Transport layer protocol for transmission of log messages to syslog server + + :return: The protocol of this SyslogRemoteClientBase. + :rtype: str + """ + return self._protocol + + @protocol.setter + def protocol(self, protocol): + """ + Sets the protocol of this SyslogRemoteClientBase. + Transport layer protocol for transmission of log messages to syslog server + + :param protocol: The protocol of this SyslogRemoteClientBase. + :type: str + """ + allowed_values = ["udp", "tcp"] + if protocol not in allowed_values: + raise ValueError( + "Invalid value for `protocol` ({0}), must be one of {1}" + .format(protocol, allowed_values) + ) + + self._protocol = protocol + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SyslogRemoteClientBase): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/syslog_remote_client_base_ref.py b/intersight/models/syslog_remote_client_base_ref.py new file mode 100644 index 00000000..886a4ff9 --- /dev/null +++ b/intersight/models/syslog_remote_client_base_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SyslogRemoteClientBaseRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SyslogRemoteClientBaseRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SyslogRemoteClientBaseRef. + + :return: The moid of this SyslogRemoteClientBaseRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SyslogRemoteClientBaseRef. + + :param moid: The moid of this SyslogRemoteClientBaseRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SyslogRemoteClientBaseRef. + + :return: The object_type of this SyslogRemoteClientBaseRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SyslogRemoteClientBaseRef. + + :param object_type: The object_type of this SyslogRemoteClientBaseRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SyslogRemoteClientBaseRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/syslog_remote_logging_client_ref.py b/intersight/models/syslog_remote_logging_client_ref.py new file mode 100644 index 00000000..2ea03d93 --- /dev/null +++ b/intersight/models/syslog_remote_logging_client_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SyslogRemoteLoggingClientRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SyslogRemoteLoggingClientRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SyslogRemoteLoggingClientRef. + + :return: The moid of this SyslogRemoteLoggingClientRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SyslogRemoteLoggingClientRef. + + :param moid: The moid of this SyslogRemoteLoggingClientRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SyslogRemoteLoggingClientRef. + + :return: The object_type of this SyslogRemoteLoggingClientRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SyslogRemoteLoggingClientRef. + + :param object_type: The object_type of this SyslogRemoteLoggingClientRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SyslogRemoteLoggingClientRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/syslog_validation_task_ref.py b/intersight/models/syslog_validation_task_ref.py new file mode 100644 index 00000000..710138c4 --- /dev/null +++ b/intersight/models/syslog_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class SyslogValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + SyslogValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this SyslogValidationTaskRef. + + :return: The moid of this SyslogValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this SyslogValidationTaskRef. + + :param moid: The moid of this SyslogValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this SyslogValidationTaskRef. + + :return: The object_type of this SyslogValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this SyslogValidationTaskRef. + + :param object_type: The object_type of this SyslogValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, SyslogValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_file_download_info.py b/intersight/models/task_file_download_info.py index 539ffa07..b626cdce 100644 --- a/intersight/models/task_file_download_info.py +++ b/intersight/models/task_file_download_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/task_file_download_info_ref.py b/intersight/models/task_file_download_info_ref.py new file mode 100644 index 00000000..496682f7 --- /dev/null +++ b/intersight/models/task_file_download_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskFileDownloadInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskFileDownloadInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskFileDownloadInfoRef. + + :return: The moid of this TaskFileDownloadInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskFileDownloadInfoRef. + + :param moid: The moid of this TaskFileDownloadInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskFileDownloadInfoRef. + + :return: The object_type of this TaskFileDownloadInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskFileDownloadInfoRef. + + :param object_type: The object_type of this TaskFileDownloadInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskFileDownloadInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_input_task_ref.py b/intersight/models/task_input_task_ref.py new file mode 100644 index 00000000..01901150 --- /dev/null +++ b/intersight/models/task_input_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskInputTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskInputTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskInputTaskRef. + + :return: The moid of this TaskInputTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskInputTaskRef. + + :param moid: The moid of this TaskInputTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskInputTaskRef. + + :return: The object_type of this TaskInputTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskInputTaskRef. + + :param object_type: The object_type of this TaskInputTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskInputTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_ucs_task1_ref.py b/intersight/models/task_ucs_task1_ref.py new file mode 100644 index 00000000..dcb9a44e --- /dev/null +++ b/intersight/models/task_ucs_task1_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskUcsTask1Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskUcsTask1Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskUcsTask1Ref. + + :return: The moid of this TaskUcsTask1Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskUcsTask1Ref. + + :param moid: The moid of this TaskUcsTask1Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskUcsTask1Ref. + + :return: The object_type of this TaskUcsTask1Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskUcsTask1Ref. + + :param object_type: The object_type of this TaskUcsTask1Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskUcsTask1Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_ucs_task2_ref.py b/intersight/models/task_ucs_task2_ref.py new file mode 100644 index 00000000..af04bf88 --- /dev/null +++ b/intersight/models/task_ucs_task2_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskUcsTask2Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskUcsTask2Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskUcsTask2Ref. + + :return: The moid of this TaskUcsTask2Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskUcsTask2Ref. + + :param moid: The moid of this TaskUcsTask2Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskUcsTask2Ref. + + :return: The object_type of this TaskUcsTask2Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskUcsTask2Ref. + + :param object_type: The object_type of this TaskUcsTask2Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskUcsTask2Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_ucs_task3_ref.py b/intersight/models/task_ucs_task3_ref.py new file mode 100644 index 00000000..70df5fc9 --- /dev/null +++ b/intersight/models/task_ucs_task3_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskUcsTask3Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskUcsTask3Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskUcsTask3Ref. + + :return: The moid of this TaskUcsTask3Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskUcsTask3Ref. + + :param moid: The moid of this TaskUcsTask3Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskUcsTask3Ref. + + :return: The object_type of this TaskUcsTask3Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskUcsTask3Ref. + + :param object_type: The object_type of this TaskUcsTask3Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskUcsTask3Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_ucs_task4_ref.py b/intersight/models/task_ucs_task4_ref.py new file mode 100644 index 00000000..93d98d27 --- /dev/null +++ b/intersight/models/task_ucs_task4_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskUcsTask4Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskUcsTask4Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskUcsTask4Ref. + + :return: The moid of this TaskUcsTask4Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskUcsTask4Ref. + + :param moid: The moid of this TaskUcsTask4Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskUcsTask4Ref. + + :return: The object_type of this TaskUcsTask4Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskUcsTask4Ref. + + :param object_type: The object_type of this TaskUcsTask4Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskUcsTask4Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_ucs_task5_ref.py b/intersight/models/task_ucs_task5_ref.py new file mode 100644 index 00000000..927a71be --- /dev/null +++ b/intersight/models/task_ucs_task5_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskUcsTask5Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskUcsTask5Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskUcsTask5Ref. + + :return: The moid of this TaskUcsTask5Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskUcsTask5Ref. + + :param moid: The moid of this TaskUcsTask5Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskUcsTask5Ref. + + :return: The object_type of this TaskUcsTask5Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskUcsTask5Ref. + + :param object_type: The object_type of this TaskUcsTask5Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskUcsTask5Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_ucs_task6_ref.py b/intersight/models/task_ucs_task6_ref.py new file mode 100644 index 00000000..e847af7e --- /dev/null +++ b/intersight/models/task_ucs_task6_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskUcsTask6Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskUcsTask6Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskUcsTask6Ref. + + :return: The moid of this TaskUcsTask6Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskUcsTask6Ref. + + :param moid: The moid of this TaskUcsTask6Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskUcsTask6Ref. + + :return: The object_type of this TaskUcsTask6Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskUcsTask6Ref. + + :param object_type: The object_type of this TaskUcsTask6Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskUcsTask6Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_ucs_task7_ref.py b/intersight/models/task_ucs_task7_ref.py new file mode 100644 index 00000000..c6cce057 --- /dev/null +++ b/intersight/models/task_ucs_task7_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskUcsTask7Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskUcsTask7Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskUcsTask7Ref. + + :return: The moid of this TaskUcsTask7Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskUcsTask7Ref. + + :param moid: The moid of this TaskUcsTask7Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskUcsTask7Ref. + + :return: The object_type of this TaskUcsTask7Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskUcsTask7Ref. + + :param object_type: The object_type of this TaskUcsTask7Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskUcsTask7Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_ucs_task8_ref.py b/intersight/models/task_ucs_task8_ref.py new file mode 100644 index 00000000..74d8d696 --- /dev/null +++ b/intersight/models/task_ucs_task8_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskUcsTask8Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskUcsTask8Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskUcsTask8Ref. + + :return: The moid of this TaskUcsTask8Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskUcsTask8Ref. + + :param moid: The moid of this TaskUcsTask8Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskUcsTask8Ref. + + :return: The object_type of this TaskUcsTask8Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskUcsTask8Ref. + + :param object_type: The object_type of this TaskUcsTask8Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskUcsTask8Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_ucs_task9_ref.py b/intersight/models/task_ucs_task9_ref.py new file mode 100644 index 00000000..55826f14 --- /dev/null +++ b/intersight/models/task_ucs_task9_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskUcsTask9Ref(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskUcsTask9Ref - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskUcsTask9Ref. + + :return: The moid of this TaskUcsTask9Ref. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskUcsTask9Ref. + + :param moid: The moid of this TaskUcsTask9Ref. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskUcsTask9Ref. + + :return: The object_type of this TaskUcsTask9Ref. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskUcsTask9Ref. + + :param object_type: The object_type of this TaskUcsTask9Ref. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskUcsTask9Ref): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/task_workflow_action.py b/intersight/models/task_workflow_action.py index 865df4ad..4458300b 100644 --- a/intersight/models/task_workflow_action.py +++ b/intersight/models/task_workflow_action.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,18 +32,20 @@ class TaskWorkflowAction(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', 'action': 'str', 'input_params': 'str', 'is_dynamic': 'bool', + 'wait_on_duplicate': 'bool', 'workflow_context': 'str', 'workflow_file': 'TaskFileDownloadInfo' } @@ -58,15 +60,17 @@ class TaskWorkflowAction(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account': 'Account', 'action': 'Action', 'input_params': 'InputParams', 'is_dynamic': 'IsDynamic', + 'wait_on_duplicate': 'WaitOnDuplicate', 'workflow_context': 'WorkflowContext', 'workflow_file': 'WorkflowFile' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, action='start', input_params=None, is_dynamic=None, workflow_context=None, workflow_file=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, action='start', input_params=None, is_dynamic=None, wait_on_duplicate=None, workflow_context=None, workflow_file=None): """ TaskWorkflowAction - a model defined in Swagger """ @@ -80,10 +84,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account = None self._action = None self._input_params = None self._is_dynamic = None + self._wait_on_duplicate = None self._workflow_context = None self._workflow_file = None @@ -105,6 +111,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account is not None: self.account = account if action is not None: @@ -113,6 +121,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.input_params = input_params if is_dynamic is not None: self.is_dynamic = is_dynamic + if wait_on_duplicate is not None: + self.wait_on_duplicate = wait_on_duplicate if workflow_context is not None: self.workflow_context = workflow_context if workflow_file is not None: @@ -148,7 +158,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this TaskWorkflowAction. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +169,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this TaskWorkflowAction. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +296,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this TaskWorkflowAction. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +307,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this TaskWorkflowAction. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -306,7 +316,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this TaskWorkflowAction. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this TaskWorkflowAction. :rtype: list[MoTag] @@ -317,7 +327,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this TaskWorkflowAction. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this TaskWorkflowAction. :type: list[MoTag] @@ -325,13 +335,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this TaskWorkflowAction. + The versioning info for this managed object + + :return: The version_context of this TaskWorkflowAction. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this TaskWorkflowAction. + The versioning info for this managed object + + :param version_context: The version_context of this TaskWorkflowAction. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def account(self): """ Gets the account of this TaskWorkflowAction. :return: The account of this TaskWorkflowAction. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -341,7 +374,7 @@ def account(self, account): Sets the account of this TaskWorkflowAction. :param account: The account of this TaskWorkflowAction. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -421,6 +454,29 @@ def is_dynamic(self, is_dynamic): self._is_dynamic = is_dynamic + @property + def wait_on_duplicate(self): + """ + Gets the wait_on_duplicate of this TaskWorkflowAction. + if true, the workflow will wait for previous one to complete before starting a new one + + :return: The wait_on_duplicate of this TaskWorkflowAction. + :rtype: bool + """ + return self._wait_on_duplicate + + @wait_on_duplicate.setter + def wait_on_duplicate(self, wait_on_duplicate): + """ + Sets the wait_on_duplicate of this TaskWorkflowAction. + if true, the workflow will wait for previous one to complete before starting a new one + + :param wait_on_duplicate: The wait_on_duplicate of this TaskWorkflowAction. + :type: bool + """ + + self._wait_on_duplicate = wait_on_duplicate + @property def workflow_context(self): """ diff --git a/intersight/models/task_workflow_action_list.py b/intersight/models/task_workflow_action_list.py index a75a909b..ede22c42 100644 --- a/intersight/models/task_workflow_action_list.py +++ b/intersight/models/task_workflow_action_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/task_workflow_action_ref.py b/intersight/models/task_workflow_action_ref.py new file mode 100644 index 00000000..750c91da --- /dev/null +++ b/intersight/models/task_workflow_action_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TaskWorkflowActionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TaskWorkflowActionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TaskWorkflowActionRef. + + :return: The moid of this TaskWorkflowActionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TaskWorkflowActionRef. + + :param moid: The moid of this TaskWorkflowActionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TaskWorkflowActionRef. + + :return: The object_type of this TaskWorkflowActionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TaskWorkflowActionRef. + + :param object_type: The object_type of this TaskWorkflowActionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TaskWorkflowActionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/techsupportmanagement_tech_support_bundle.py b/intersight/models/techsupportmanagement_tech_support_bundle.py deleted file mode 100644 index 0ae015f8..00000000 --- a/intersight/models/techsupportmanagement_tech_support_bundle.py +++ /dev/null @@ -1,513 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class TechsupportmanagementTechSupportBundle(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', - 'create_time': 'datetime', - 'mod_time': 'datetime', - 'moid': 'str', - 'object_type': 'str', - 'owners': 'list[str]', - 'parent': 'MoMoRef', - 'tags': 'list[MoTag]', - 'device_identifier': 'str', - 'device_registration': 'MoMoRef', - 'device_type': 'str', - 'pid': 'str', - 'serial': 'str', - 'tech_support_status': 'MoMoRef' - } - - attribute_map = { - 'account_moid': 'AccountMoid', - 'ancestors': 'Ancestors', - 'create_time': 'CreateTime', - 'mod_time': 'ModTime', - 'moid': 'Moid', - 'object_type': 'ObjectType', - 'owners': 'Owners', - 'parent': 'Parent', - 'tags': 'Tags', - 'device_identifier': 'DeviceIdentifier', - 'device_registration': 'DeviceRegistration', - 'device_type': 'DeviceType', - 'pid': 'Pid', - 'serial': 'Serial', - 'tech_support_status': 'TechSupportStatus' - } - - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_identifier=None, device_registration=None, device_type=None, pid=None, serial=None, tech_support_status=None): - """ - TechsupportmanagementTechSupportBundle - a model defined in Swagger - """ - - self._account_moid = None - self._ancestors = None - self._create_time = None - self._mod_time = None - self._moid = None - self._object_type = None - self._owners = None - self._parent = None - self._tags = None - self._device_identifier = None - self._device_registration = None - self._device_type = None - self._pid = None - self._serial = None - self._tech_support_status = None - - if account_moid is not None: - self.account_moid = account_moid - if ancestors is not None: - self.ancestors = ancestors - if create_time is not None: - self.create_time = create_time - if mod_time is not None: - self.mod_time = mod_time - if moid is not None: - self.moid = moid - if object_type is not None: - self.object_type = object_type - if owners is not None: - self.owners = owners - if parent is not None: - self.parent = parent - if tags is not None: - self.tags = tags - if device_identifier is not None: - self.device_identifier = device_identifier - if device_registration is not None: - self.device_registration = device_registration - if device_type is not None: - self.device_type = device_type - if pid is not None: - self.pid = pid - if serial is not None: - self.serial = serial - if tech_support_status is not None: - self.tech_support_status = tech_support_status - - @property - def account_moid(self): - """ - Gets the account_moid of this TechsupportmanagementTechSupportBundle. - The Account ID for this managed object. - - :return: The account_moid of this TechsupportmanagementTechSupportBundle. - :rtype: str - """ - return self._account_moid - - @account_moid.setter - def account_moid(self, account_moid): - """ - Sets the account_moid of this TechsupportmanagementTechSupportBundle. - The Account ID for this managed object. - - :param account_moid: The account_moid of this TechsupportmanagementTechSupportBundle. - :type: str - """ - - self._account_moid = account_moid - - @property - def ancestors(self): - """ - Gets the ancestors of this TechsupportmanagementTechSupportBundle. - Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - - :return: The ancestors of this TechsupportmanagementTechSupportBundle. - :rtype: list[MoMoRef] - """ - return self._ancestors - - @ancestors.setter - def ancestors(self, ancestors): - """ - Sets the ancestors of this TechsupportmanagementTechSupportBundle. - Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - - :param ancestors: The ancestors of this TechsupportmanagementTechSupportBundle. - :type: list[MoMoRef] - """ - - self._ancestors = ancestors - - @property - def create_time(self): - """ - Gets the create_time of this TechsupportmanagementTechSupportBundle. - The time when this managed object was created. - - :return: The create_time of this TechsupportmanagementTechSupportBundle. - :rtype: datetime - """ - return self._create_time - - @create_time.setter - def create_time(self, create_time): - """ - Sets the create_time of this TechsupportmanagementTechSupportBundle. - The time when this managed object was created. - - :param create_time: The create_time of this TechsupportmanagementTechSupportBundle. - :type: datetime - """ - - self._create_time = create_time - - @property - def mod_time(self): - """ - Gets the mod_time of this TechsupportmanagementTechSupportBundle. - The time when this managed object was last modified. - - :return: The mod_time of this TechsupportmanagementTechSupportBundle. - :rtype: datetime - """ - return self._mod_time - - @mod_time.setter - def mod_time(self, mod_time): - """ - Sets the mod_time of this TechsupportmanagementTechSupportBundle. - The time when this managed object was last modified. - - :param mod_time: The mod_time of this TechsupportmanagementTechSupportBundle. - :type: datetime - """ - - self._mod_time = mod_time - - @property - def moid(self): - """ - Gets the moid of this TechsupportmanagementTechSupportBundle. - A unique identifier of this Managed Object instance. - - :return: The moid of this TechsupportmanagementTechSupportBundle. - :rtype: str - """ - return self._moid - - @moid.setter - def moid(self, moid): - """ - Sets the moid of this TechsupportmanagementTechSupportBundle. - A unique identifier of this Managed Object instance. - - :param moid: The moid of this TechsupportmanagementTechSupportBundle. - :type: str - """ - - self._moid = moid - - @property - def object_type(self): - """ - Gets the object_type of this TechsupportmanagementTechSupportBundle. - The fully-qualified type of this managed object, e.g. the class name. - - :return: The object_type of this TechsupportmanagementTechSupportBundle. - :rtype: str - """ - return self._object_type - - @object_type.setter - def object_type(self, object_type): - """ - Sets the object_type of this TechsupportmanagementTechSupportBundle. - The fully-qualified type of this managed object, e.g. the class name. - - :param object_type: The object_type of this TechsupportmanagementTechSupportBundle. - :type: str - """ - - self._object_type = object_type - - @property - def owners(self): - """ - Gets the owners of this TechsupportmanagementTechSupportBundle. - An array of owners which represent effective ownership of this object. - - :return: The owners of this TechsupportmanagementTechSupportBundle. - :rtype: list[str] - """ - return self._owners - - @owners.setter - def owners(self, owners): - """ - Sets the owners of this TechsupportmanagementTechSupportBundle. - An array of owners which represent effective ownership of this object. - - :param owners: The owners of this TechsupportmanagementTechSupportBundle. - :type: list[str] - """ - - self._owners = owners - - @property - def parent(self): - """ - Gets the parent of this TechsupportmanagementTechSupportBundle. - The direct ancestor of this managed object in the containment hierarchy. - - :return: The parent of this TechsupportmanagementTechSupportBundle. - :rtype: MoMoRef - """ - return self._parent - - @parent.setter - def parent(self, parent): - """ - Sets the parent of this TechsupportmanagementTechSupportBundle. - The direct ancestor of this managed object in the containment hierarchy. - - :param parent: The parent of this TechsupportmanagementTechSupportBundle. - :type: MoMoRef - """ - - self._parent = parent - - @property - def tags(self): - """ - Gets the tags of this TechsupportmanagementTechSupportBundle. - An array of tags, which allow to add key, value meta-data to managed objects. - - :return: The tags of this TechsupportmanagementTechSupportBundle. - :rtype: list[MoTag] - """ - return self._tags - - @tags.setter - def tags(self, tags): - """ - Sets the tags of this TechsupportmanagementTechSupportBundle. - An array of tags, which allow to add key, value meta-data to managed objects. - - :param tags: The tags of this TechsupportmanagementTechSupportBundle. - :type: list[MoTag] - """ - - self._tags = tags - - @property - def device_identifier(self): - """ - Gets the device_identifier of this TechsupportmanagementTechSupportBundle. - The device identifier used to uniquely identify an individual device - - :return: The device_identifier of this TechsupportmanagementTechSupportBundle. - :rtype: str - """ - return self._device_identifier - - @device_identifier.setter - def device_identifier(self, device_identifier): - """ - Sets the device_identifier of this TechsupportmanagementTechSupportBundle. - The device identifier used to uniquely identify an individual device - - :param device_identifier: The device_identifier of this TechsupportmanagementTechSupportBundle. - :type: str - """ - - self._device_identifier = device_identifier - - @property - def device_registration(self): - """ - Gets the device_registration of this TechsupportmanagementTechSupportBundle. - - :return: The device_registration of this TechsupportmanagementTechSupportBundle. - :rtype: MoMoRef - """ - return self._device_registration - - @device_registration.setter - def device_registration(self, device_registration): - """ - Sets the device_registration of this TechsupportmanagementTechSupportBundle. - - :param device_registration: The device_registration of this TechsupportmanagementTechSupportBundle. - :type: MoMoRef - """ - - self._device_registration = device_registration - - @property - def device_type(self): - """ - Gets the device_type of this TechsupportmanagementTechSupportBundle. - The device type obtained from the inventory based on the PID and serial number. - - :return: The device_type of this TechsupportmanagementTechSupportBundle. - :rtype: str - """ - return self._device_type - - @device_type.setter - def device_type(self, device_type): - """ - Sets the device_type of this TechsupportmanagementTechSupportBundle. - The device type obtained from the inventory based on the PID and serial number. - - :param device_type: The device_type of this TechsupportmanagementTechSupportBundle. - :type: str - """ - - self._device_type = device_type - - @property - def pid(self): - """ - Gets the pid of this TechsupportmanagementTechSupportBundle. - Product identification of the device - - :return: The pid of this TechsupportmanagementTechSupportBundle. - :rtype: str - """ - return self._pid - - @pid.setter - def pid(self, pid): - """ - Sets the pid of this TechsupportmanagementTechSupportBundle. - Product identification of the device - - :param pid: The pid of this TechsupportmanagementTechSupportBundle. - :type: str - """ - - self._pid = pid - - @property - def serial(self): - """ - Gets the serial of this TechsupportmanagementTechSupportBundle. - Serial number of the device - - :return: The serial of this TechsupportmanagementTechSupportBundle. - :rtype: str - """ - return self._serial - - @serial.setter - def serial(self, serial): - """ - Sets the serial of this TechsupportmanagementTechSupportBundle. - Serial number of the device - - :param serial: The serial of this TechsupportmanagementTechSupportBundle. - :type: str - """ - - self._serial = serial - - @property - def tech_support_status(self): - """ - Gets the tech_support_status of this TechsupportmanagementTechSupportBundle. - - :return: The tech_support_status of this TechsupportmanagementTechSupportBundle. - :rtype: MoMoRef - """ - return self._tech_support_status - - @tech_support_status.setter - def tech_support_status(self, tech_support_status): - """ - Sets the tech_support_status of this TechsupportmanagementTechSupportBundle. - - :param tech_support_status: The tech_support_status of this TechsupportmanagementTechSupportBundle. - :type: MoMoRef - """ - - self._tech_support_status = tech_support_status - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, TechsupportmanagementTechSupportBundle): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/techsupportmanagement_tech_support_bundle_list.py b/intersight/models/techsupportmanagement_tech_support_bundle_list.py deleted file mode 100644 index 9244a368..00000000 --- a/intersight/models/techsupportmanagement_tech_support_bundle_list.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class TechsupportmanagementTechSupportBundleList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'count': 'int', - 'results': 'list[TechsupportmanagementTechSupportBundle]' - } - - attribute_map = { - 'count': 'Count', - 'results': 'Results' - } - - def __init__(self, count=None, results=None): - """ - TechsupportmanagementTechSupportBundleList - a model defined in Swagger - """ - - self._count = None - self._results = None - - if count is not None: - self.count = count - if results is not None: - self.results = results - - @property - def count(self): - """ - Gets the count of this TechsupportmanagementTechSupportBundleList. - The number of techsupportmanagementTechSupportBundles matching your request in total for all pages. - - :return: The count of this TechsupportmanagementTechSupportBundleList. - :rtype: int - """ - return self._count - - @count.setter - def count(self, count): - """ - Sets the count of this TechsupportmanagementTechSupportBundleList. - The number of techsupportmanagementTechSupportBundles matching your request in total for all pages. - - :param count: The count of this TechsupportmanagementTechSupportBundleList. - :type: int - """ - - self._count = count - - @property - def results(self): - """ - Gets the results of this TechsupportmanagementTechSupportBundleList. - The array of techsupportmanagementTechSupportBundles matching your request. - - :return: The results of this TechsupportmanagementTechSupportBundleList. - :rtype: list[TechsupportmanagementTechSupportBundle] - """ - return self._results - - @results.setter - def results(self, results): - """ - Sets the results of this TechsupportmanagementTechSupportBundleList. - The array of techsupportmanagementTechSupportBundles matching your request. - - :param results: The results of this TechsupportmanagementTechSupportBundleList. - :type: list[TechsupportmanagementTechSupportBundle] - """ - - self._results = results - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, TechsupportmanagementTechSupportBundleList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/techsupportmanagement_tech_support_status.py b/intersight/models/techsupportmanagement_tech_support_status.py deleted file mode 100644 index 4ab0f86c..00000000 --- a/intersight/models/techsupportmanagement_tech_support_status.py +++ /dev/null @@ -1,541 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class TechsupportmanagementTechSupportStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', - 'create_time': 'datetime', - 'mod_time': 'datetime', - 'moid': 'str', - 'object_type': 'str', - 'owners': 'list[str]', - 'parent': 'MoMoRef', - 'tags': 'list[MoTag]', - 'device_registration': 'MoMoRef', - 'file_name': 'str', - 'reason': 'str', - 'request_ts': 'datetime', - 'status': 'str', - 'tech_support_request': 'MoMoRef', - 'techsupport_download_url': 'str' - } - - attribute_map = { - 'account_moid': 'AccountMoid', - 'ancestors': 'Ancestors', - 'create_time': 'CreateTime', - 'mod_time': 'ModTime', - 'moid': 'Moid', - 'object_type': 'ObjectType', - 'owners': 'Owners', - 'parent': 'Parent', - 'tags': 'Tags', - 'device_registration': 'DeviceRegistration', - 'file_name': 'FileName', - 'reason': 'Reason', - 'request_ts': 'RequestTs', - 'status': 'Status', - 'tech_support_request': 'TechSupportRequest', - 'techsupport_download_url': 'TechsupportDownloadUrl' - } - - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_registration=None, file_name=None, reason=None, request_ts=None, status=None, tech_support_request=None, techsupport_download_url=None): - """ - TechsupportmanagementTechSupportStatus - a model defined in Swagger - """ - - self._account_moid = None - self._ancestors = None - self._create_time = None - self._mod_time = None - self._moid = None - self._object_type = None - self._owners = None - self._parent = None - self._tags = None - self._device_registration = None - self._file_name = None - self._reason = None - self._request_ts = None - self._status = None - self._tech_support_request = None - self._techsupport_download_url = None - - if account_moid is not None: - self.account_moid = account_moid - if ancestors is not None: - self.ancestors = ancestors - if create_time is not None: - self.create_time = create_time - if mod_time is not None: - self.mod_time = mod_time - if moid is not None: - self.moid = moid - if object_type is not None: - self.object_type = object_type - if owners is not None: - self.owners = owners - if parent is not None: - self.parent = parent - if tags is not None: - self.tags = tags - if device_registration is not None: - self.device_registration = device_registration - if file_name is not None: - self.file_name = file_name - if reason is not None: - self.reason = reason - if request_ts is not None: - self.request_ts = request_ts - if status is not None: - self.status = status - if tech_support_request is not None: - self.tech_support_request = tech_support_request - if techsupport_download_url is not None: - self.techsupport_download_url = techsupport_download_url - - @property - def account_moid(self): - """ - Gets the account_moid of this TechsupportmanagementTechSupportStatus. - The Account ID for this managed object. - - :return: The account_moid of this TechsupportmanagementTechSupportStatus. - :rtype: str - """ - return self._account_moid - - @account_moid.setter - def account_moid(self, account_moid): - """ - Sets the account_moid of this TechsupportmanagementTechSupportStatus. - The Account ID for this managed object. - - :param account_moid: The account_moid of this TechsupportmanagementTechSupportStatus. - :type: str - """ - - self._account_moid = account_moid - - @property - def ancestors(self): - """ - Gets the ancestors of this TechsupportmanagementTechSupportStatus. - Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - - :return: The ancestors of this TechsupportmanagementTechSupportStatus. - :rtype: list[MoMoRef] - """ - return self._ancestors - - @ancestors.setter - def ancestors(self, ancestors): - """ - Sets the ancestors of this TechsupportmanagementTechSupportStatus. - Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - - :param ancestors: The ancestors of this TechsupportmanagementTechSupportStatus. - :type: list[MoMoRef] - """ - - self._ancestors = ancestors - - @property - def create_time(self): - """ - Gets the create_time of this TechsupportmanagementTechSupportStatus. - The time when this managed object was created. - - :return: The create_time of this TechsupportmanagementTechSupportStatus. - :rtype: datetime - """ - return self._create_time - - @create_time.setter - def create_time(self, create_time): - """ - Sets the create_time of this TechsupportmanagementTechSupportStatus. - The time when this managed object was created. - - :param create_time: The create_time of this TechsupportmanagementTechSupportStatus. - :type: datetime - """ - - self._create_time = create_time - - @property - def mod_time(self): - """ - Gets the mod_time of this TechsupportmanagementTechSupportStatus. - The time when this managed object was last modified. - - :return: The mod_time of this TechsupportmanagementTechSupportStatus. - :rtype: datetime - """ - return self._mod_time - - @mod_time.setter - def mod_time(self, mod_time): - """ - Sets the mod_time of this TechsupportmanagementTechSupportStatus. - The time when this managed object was last modified. - - :param mod_time: The mod_time of this TechsupportmanagementTechSupportStatus. - :type: datetime - """ - - self._mod_time = mod_time - - @property - def moid(self): - """ - Gets the moid of this TechsupportmanagementTechSupportStatus. - A unique identifier of this Managed Object instance. - - :return: The moid of this TechsupportmanagementTechSupportStatus. - :rtype: str - """ - return self._moid - - @moid.setter - def moid(self, moid): - """ - Sets the moid of this TechsupportmanagementTechSupportStatus. - A unique identifier of this Managed Object instance. - - :param moid: The moid of this TechsupportmanagementTechSupportStatus. - :type: str - """ - - self._moid = moid - - @property - def object_type(self): - """ - Gets the object_type of this TechsupportmanagementTechSupportStatus. - The fully-qualified type of this managed object, e.g. the class name. - - :return: The object_type of this TechsupportmanagementTechSupportStatus. - :rtype: str - """ - return self._object_type - - @object_type.setter - def object_type(self, object_type): - """ - Sets the object_type of this TechsupportmanagementTechSupportStatus. - The fully-qualified type of this managed object, e.g. the class name. - - :param object_type: The object_type of this TechsupportmanagementTechSupportStatus. - :type: str - """ - - self._object_type = object_type - - @property - def owners(self): - """ - Gets the owners of this TechsupportmanagementTechSupportStatus. - An array of owners which represent effective ownership of this object. - - :return: The owners of this TechsupportmanagementTechSupportStatus. - :rtype: list[str] - """ - return self._owners - - @owners.setter - def owners(self, owners): - """ - Sets the owners of this TechsupportmanagementTechSupportStatus. - An array of owners which represent effective ownership of this object. - - :param owners: The owners of this TechsupportmanagementTechSupportStatus. - :type: list[str] - """ - - self._owners = owners - - @property - def parent(self): - """ - Gets the parent of this TechsupportmanagementTechSupportStatus. - The direct ancestor of this managed object in the containment hierarchy. - - :return: The parent of this TechsupportmanagementTechSupportStatus. - :rtype: MoMoRef - """ - return self._parent - - @parent.setter - def parent(self, parent): - """ - Sets the parent of this TechsupportmanagementTechSupportStatus. - The direct ancestor of this managed object in the containment hierarchy. - - :param parent: The parent of this TechsupportmanagementTechSupportStatus. - :type: MoMoRef - """ - - self._parent = parent - - @property - def tags(self): - """ - Gets the tags of this TechsupportmanagementTechSupportStatus. - An array of tags, which allow to add key, value meta-data to managed objects. - - :return: The tags of this TechsupportmanagementTechSupportStatus. - :rtype: list[MoTag] - """ - return self._tags - - @tags.setter - def tags(self, tags): - """ - Sets the tags of this TechsupportmanagementTechSupportStatus. - An array of tags, which allow to add key, value meta-data to managed objects. - - :param tags: The tags of this TechsupportmanagementTechSupportStatus. - :type: list[MoTag] - """ - - self._tags = tags - - @property - def device_registration(self): - """ - Gets the device_registration of this TechsupportmanagementTechSupportStatus. - - :return: The device_registration of this TechsupportmanagementTechSupportStatus. - :rtype: MoMoRef - """ - return self._device_registration - - @device_registration.setter - def device_registration(self, device_registration): - """ - Sets the device_registration of this TechsupportmanagementTechSupportStatus. - - :param device_registration: The device_registration of this TechsupportmanagementTechSupportStatus. - :type: MoMoRef - """ - - self._device_registration = device_registration - - @property - def file_name(self): - """ - Gets the file_name of this TechsupportmanagementTechSupportStatus. - Techsupport file name - - :return: The file_name of this TechsupportmanagementTechSupportStatus. - :rtype: str - """ - return self._file_name - - @file_name.setter - def file_name(self, file_name): - """ - Sets the file_name of this TechsupportmanagementTechSupportStatus. - Techsupport file name - - :param file_name: The file_name of this TechsupportmanagementTechSupportStatus. - :type: str - """ - - self._file_name = file_name - - @property - def reason(self): - """ - Gets the reason of this TechsupportmanagementTechSupportStatus. - Reason for techsupport failure, if any - - :return: The reason of this TechsupportmanagementTechSupportStatus. - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """ - Sets the reason of this TechsupportmanagementTechSupportStatus. - Reason for techsupport failure, if any - - :param reason: The reason of this TechsupportmanagementTechSupportStatus. - :type: str - """ - - self._reason = reason - - @property - def request_ts(self): - """ - Gets the request_ts of this TechsupportmanagementTechSupportStatus. - Indicates the time at which the techsupport request was initiated - - :return: The request_ts of this TechsupportmanagementTechSupportStatus. - :rtype: datetime - """ - return self._request_ts - - @request_ts.setter - def request_ts(self, request_ts): - """ - Sets the request_ts of this TechsupportmanagementTechSupportStatus. - Indicates the time at which the techsupport request was initiated - - :param request_ts: The request_ts of this TechsupportmanagementTechSupportStatus. - :type: datetime - """ - - self._request_ts = request_ts - - @property - def status(self): - """ - Gets the status of this TechsupportmanagementTechSupportStatus. - Status of techsupport collection. Valid values are Pending, CollectionInProgress, CollectionFailed, CollectionComplete, UploadInProgress, UploadPartsComplete, UploadFailed and Completed. The final status will be either CollectionFailed or UploadFailed if there is a failure and Completed if the request completed successfully and the file was uploaded to S3. All the remaining status values indicates the progress of techsupport collection. - - :return: The status of this TechsupportmanagementTechSupportStatus. - :rtype: str - """ - return self._status - - @status.setter - def status(self, status): - """ - Sets the status of this TechsupportmanagementTechSupportStatus. - Status of techsupport collection. Valid values are Pending, CollectionInProgress, CollectionFailed, CollectionComplete, UploadInProgress, UploadPartsComplete, UploadFailed and Completed. The final status will be either CollectionFailed or UploadFailed if there is a failure and Completed if the request completed successfully and the file was uploaded to S3. All the remaining status values indicates the progress of techsupport collection. - - :param status: The status of this TechsupportmanagementTechSupportStatus. - :type: str - """ - - self._status = status - - @property - def tech_support_request(self): - """ - Gets the tech_support_request of this TechsupportmanagementTechSupportStatus. - - :return: The tech_support_request of this TechsupportmanagementTechSupportStatus. - :rtype: MoMoRef - """ - return self._tech_support_request - - @tech_support_request.setter - def tech_support_request(self, tech_support_request): - """ - Sets the tech_support_request of this TechsupportmanagementTechSupportStatus. - - :param tech_support_request: The tech_support_request of this TechsupportmanagementTechSupportStatus. - :type: MoMoRef - """ - - self._tech_support_request = tech_support_request - - @property - def techsupport_download_url(self): - """ - Gets the techsupport_download_url of this TechsupportmanagementTechSupportStatus. - The Url to download the techsupport file - - :return: The techsupport_download_url of this TechsupportmanagementTechSupportStatus. - :rtype: str - """ - return self._techsupport_download_url - - @techsupport_download_url.setter - def techsupport_download_url(self, techsupport_download_url): - """ - Sets the techsupport_download_url of this TechsupportmanagementTechSupportStatus. - The Url to download the techsupport file - - :param techsupport_download_url: The techsupport_download_url of this TechsupportmanagementTechSupportStatus. - :type: str - """ - - self._techsupport_download_url = techsupport_download_url - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, TechsupportmanagementTechSupportStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/techsupportmanagement_tech_support_status_list.py b/intersight/models/techsupportmanagement_tech_support_status_list.py deleted file mode 100644 index a1bdb3ab..00000000 --- a/intersight/models/techsupportmanagement_tech_support_status_list.py +++ /dev/null @@ -1,153 +0,0 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class TechsupportmanagementTechSupportStatusList(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'count': 'int', - 'results': 'list[TechsupportmanagementTechSupportStatus]' - } - - attribute_map = { - 'count': 'Count', - 'results': 'Results' - } - - def __init__(self, count=None, results=None): - """ - TechsupportmanagementTechSupportStatusList - a model defined in Swagger - """ - - self._count = None - self._results = None - - if count is not None: - self.count = count - if results is not None: - self.results = results - - @property - def count(self): - """ - Gets the count of this TechsupportmanagementTechSupportStatusList. - The number of techsupportmanagementTechSupportStatuses matching your request in total for all pages. - - :return: The count of this TechsupportmanagementTechSupportStatusList. - :rtype: int - """ - return self._count - - @count.setter - def count(self, count): - """ - Sets the count of this TechsupportmanagementTechSupportStatusList. - The number of techsupportmanagementTechSupportStatuses matching your request in total for all pages. - - :param count: The count of this TechsupportmanagementTechSupportStatusList. - :type: int - """ - - self._count = count - - @property - def results(self): - """ - Gets the results of this TechsupportmanagementTechSupportStatusList. - The array of techsupportmanagementTechSupportStatuses matching your request. - - :return: The results of this TechsupportmanagementTechSupportStatusList. - :rtype: list[TechsupportmanagementTechSupportStatus] - """ - return self._results - - @results.setter - def results(self, results): - """ - Sets the results of this TechsupportmanagementTechSupportStatusList. - The array of techsupportmanagementTechSupportStatuses matching your request. - - :param results: The results of this TechsupportmanagementTechSupportStatusList. - :type: list[TechsupportmanagementTechSupportStatus] - """ - - self._results = results - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, TechsupportmanagementTechSupportStatusList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/intersight/models/hcl_note.py b/intersight/models/telemetry_time_series.py similarity index 67% rename from intersight/models/hcl_note.py rename to intersight/models/telemetry_time_series.py index 6918c4ff..e79884f2 100644 --- a/intersight/models/hcl_note.py +++ b/intersight/models/telemetry_time_series.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class HclNote(object): +class TelemetryTimeSeries(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,15 +32,15 @@ class HclNote(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'note': 'str' + 'version_context': 'MoVersionContext' } attribute_map = { @@ -53,12 +53,12 @@ class HclNote(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', - 'note': 'Note' + 'version_context': 'VersionContext' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, note=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None): """ - HclNote - a model defined in Swagger + TelemetryTimeSeries - a model defined in Swagger """ self._account_moid = None @@ -70,7 +70,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None - self._note = None + self._version_context = None if account_moid is not None: self.account_moid = account_moid @@ -90,16 +90,16 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags - if note is not None: - self.note = note + if version_context is not None: + self.version_context = version_context @property def account_moid(self): """ - Gets the account_moid of this HclNote. + Gets the account_moid of this TelemetryTimeSeries. The Account ID for this managed object. - :return: The account_moid of this HclNote. + :return: The account_moid of this TelemetryTimeSeries. :rtype: str """ return self._account_moid @@ -107,10 +107,10 @@ def account_moid(self): @account_moid.setter def account_moid(self, account_moid): """ - Sets the account_moid of this HclNote. + Sets the account_moid of this TelemetryTimeSeries. The Account ID for this managed object. - :param account_moid: The account_moid of this HclNote. + :param account_moid: The account_moid of this TelemetryTimeSeries. :type: str """ @@ -119,22 +119,22 @@ def account_moid(self, account_moid): @property def ancestors(self): """ - Gets the ancestors of this HclNote. + Gets the ancestors of this TelemetryTimeSeries. Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - :return: The ancestors of this HclNote. - :rtype: list[MoMoRef] + :return: The ancestors of this TelemetryTimeSeries. + :rtype: list[MoBaseMoRef] """ return self._ancestors @ancestors.setter def ancestors(self, ancestors): """ - Sets the ancestors of this HclNote. + Sets the ancestors of this TelemetryTimeSeries. Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - :param ancestors: The ancestors of this HclNote. - :type: list[MoMoRef] + :param ancestors: The ancestors of this TelemetryTimeSeries. + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -142,10 +142,10 @@ def ancestors(self, ancestors): @property def create_time(self): """ - Gets the create_time of this HclNote. + Gets the create_time of this TelemetryTimeSeries. The time when this managed object was created. - :return: The create_time of this HclNote. + :return: The create_time of this TelemetryTimeSeries. :rtype: datetime """ return self._create_time @@ -153,10 +153,10 @@ def create_time(self): @create_time.setter def create_time(self, create_time): """ - Sets the create_time of this HclNote. + Sets the create_time of this TelemetryTimeSeries. The time when this managed object was created. - :param create_time: The create_time of this HclNote. + :param create_time: The create_time of this TelemetryTimeSeries. :type: datetime """ @@ -165,10 +165,10 @@ def create_time(self, create_time): @property def mod_time(self): """ - Gets the mod_time of this HclNote. + Gets the mod_time of this TelemetryTimeSeries. The time when this managed object was last modified. - :return: The mod_time of this HclNote. + :return: The mod_time of this TelemetryTimeSeries. :rtype: datetime """ return self._mod_time @@ -176,10 +176,10 @@ def mod_time(self): @mod_time.setter def mod_time(self, mod_time): """ - Sets the mod_time of this HclNote. + Sets the mod_time of this TelemetryTimeSeries. The time when this managed object was last modified. - :param mod_time: The mod_time of this HclNote. + :param mod_time: The mod_time of this TelemetryTimeSeries. :type: datetime """ @@ -188,10 +188,10 @@ def mod_time(self, mod_time): @property def moid(self): """ - Gets the moid of this HclNote. + Gets the moid of this TelemetryTimeSeries. A unique identifier of this Managed Object instance. - :return: The moid of this HclNote. + :return: The moid of this TelemetryTimeSeries. :rtype: str """ return self._moid @@ -199,10 +199,10 @@ def moid(self): @moid.setter def moid(self, moid): """ - Sets the moid of this HclNote. + Sets the moid of this TelemetryTimeSeries. A unique identifier of this Managed Object instance. - :param moid: The moid of this HclNote. + :param moid: The moid of this TelemetryTimeSeries. :type: str """ @@ -211,10 +211,10 @@ def moid(self, moid): @property def object_type(self): """ - Gets the object_type of this HclNote. + Gets the object_type of this TelemetryTimeSeries. The fully-qualified type of this managed object, e.g. the class name. - :return: The object_type of this HclNote. + :return: The object_type of this TelemetryTimeSeries. :rtype: str """ return self._object_type @@ -222,10 +222,10 @@ def object_type(self): @object_type.setter def object_type(self, object_type): """ - Sets the object_type of this HclNote. + Sets the object_type of this TelemetryTimeSeries. The fully-qualified type of this managed object, e.g. the class name. - :param object_type: The object_type of this HclNote. + :param object_type: The object_type of this TelemetryTimeSeries. :type: str """ @@ -234,10 +234,10 @@ def object_type(self, object_type): @property def owners(self): """ - Gets the owners of this HclNote. + Gets the owners of this TelemetryTimeSeries. An array of owners which represent effective ownership of this object. - :return: The owners of this HclNote. + :return: The owners of this TelemetryTimeSeries. :rtype: list[str] """ return self._owners @@ -245,10 +245,10 @@ def owners(self): @owners.setter def owners(self, owners): """ - Sets the owners of this HclNote. + Sets the owners of this TelemetryTimeSeries. An array of owners which represent effective ownership of this object. - :param owners: The owners of this HclNote. + :param owners: The owners of this TelemetryTimeSeries. :type: list[str] """ @@ -257,22 +257,22 @@ def owners(self, owners): @property def parent(self): """ - Gets the parent of this HclNote. + Gets the parent of this TelemetryTimeSeries. The direct ancestor of this managed object in the containment hierarchy. - :return: The parent of this HclNote. - :rtype: MoMoRef + :return: The parent of this TelemetryTimeSeries. + :rtype: MoBaseMoRef """ return self._parent @parent.setter def parent(self, parent): """ - Sets the parent of this HclNote. + Sets the parent of this TelemetryTimeSeries. The direct ancestor of this managed object in the containment hierarchy. - :param parent: The parent of this HclNote. - :type: MoMoRef + :param parent: The parent of this TelemetryTimeSeries. + :type: MoBaseMoRef """ self._parent = parent @@ -280,10 +280,10 @@ def parent(self, parent): @property def tags(self): """ - Gets the tags of this HclNote. - An array of tags, which allow to add key, value meta-data to managed objects. + Gets the tags of this TelemetryTimeSeries. + An array of tags, which allow to add key, value meta-data to managed objects. - :return: The tags of this HclNote. + :return: The tags of this TelemetryTimeSeries. :rtype: list[MoTag] """ return self._tags @@ -291,37 +291,37 @@ def tags(self): @tags.setter def tags(self, tags): """ - Sets the tags of this HclNote. - An array of tags, which allow to add key, value meta-data to managed objects. + Sets the tags of this TelemetryTimeSeries. + An array of tags, which allow to add key, value meta-data to managed objects. - :param tags: The tags of this HclNote. + :param tags: The tags of this TelemetryTimeSeries. :type: list[MoTag] """ self._tags = tags @property - def note(self): + def version_context(self): """ - Gets the note of this HclNote. - a note which would give more info on a CompatiblityInfo + Gets the version_context of this TelemetryTimeSeries. + The versioning info for this managed object - :return: The note of this HclNote. - :rtype: str + :return: The version_context of this TelemetryTimeSeries. + :rtype: MoVersionContext """ - return self._note + return self._version_context - @note.setter - def note(self, note): + @version_context.setter + def version_context(self, version_context): """ - Sets the note of this HclNote. - a note which would give more info on a CompatiblityInfo + Sets the version_context of this TelemetryTimeSeries. + The versioning info for this managed object - :param note: The note of this HclNote. - :type: str + :param version_context: The version_context of this TelemetryTimeSeries. + :type: MoVersionContext """ - self._note = note + self._version_context = version_context def to_dict(self): """ @@ -365,7 +365,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, HclNote): + if not isinstance(other, TelemetryTimeSeries): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/telemetry_time_series_ref.py b/intersight/models/telemetry_time_series_ref.py new file mode 100644 index 00000000..11ae8220 --- /dev/null +++ b/intersight/models/telemetry_time_series_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TelemetryTimeSeriesRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TelemetryTimeSeriesRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TelemetryTimeSeriesRef. + + :return: The moid of this TelemetryTimeSeriesRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TelemetryTimeSeriesRef. + + :param moid: The moid of this TelemetryTimeSeriesRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TelemetryTimeSeriesRef. + + :return: The object_type of this TelemetryTimeSeriesRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TelemetryTimeSeriesRef. + + :param object_type: The object_type of this TelemetryTimeSeriesRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TelemetryTimeSeriesRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/terminal_audit_log.py b/intersight/models/terminal_audit_log.py index 61f62f39..cba7d0e8 100644 --- a/intersight/models/terminal_audit_log.py +++ b/intersight/models/terminal_audit_log.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,18 +32,19 @@ class TerminalAuditLog(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'device_registration': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'device_registration': 'AssetDeviceConnectionRef', 'end_time': 'datetime', 'start_time': 'datetime', - 'user': 'MoMoRef' + 'user': 'IamUserRef' } attribute_map = { @@ -56,13 +57,14 @@ class TerminalAuditLog(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_registration': 'DeviceRegistration', 'end_time': 'EndTime', 'start_time': 'StartTime', 'user': 'User' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_registration=None, end_time=None, start_time=None, user=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_registration=None, end_time=None, start_time=None, user=None): """ TerminalAuditLog - a model defined in Swagger """ @@ -76,6 +78,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_registration = None self._end_time = None self._start_time = None @@ -99,6 +102,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_registration is not None: self.device_registration = device_registration if end_time is not None: @@ -138,7 +143,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this TerminalAuditLog. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -149,7 +154,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this TerminalAuditLog. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -276,7 +281,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this TerminalAuditLog. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -287,7 +292,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this TerminalAuditLog. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -296,7 +301,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this TerminalAuditLog. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this TerminalAuditLog. :rtype: list[MoTag] @@ -307,7 +312,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this TerminalAuditLog. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this TerminalAuditLog. :type: list[MoTag] @@ -315,13 +320,36 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this TerminalAuditLog. + The versioning info for this managed object + + :return: The version_context of this TerminalAuditLog. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this TerminalAuditLog. + The versioning info for this managed object + + :param version_context: The version_context of this TerminalAuditLog. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_registration(self): """ Gets the device_registration of this TerminalAuditLog. :return: The device_registration of this TerminalAuditLog. - :rtype: MoMoRef + :rtype: AssetDeviceConnectionRef """ return self._device_registration @@ -331,7 +359,7 @@ def device_registration(self, device_registration): Sets the device_registration of this TerminalAuditLog. :param device_registration: The device_registration of this TerminalAuditLog. - :type: MoMoRef + :type: AssetDeviceConnectionRef """ self._device_registration = device_registration @@ -388,7 +416,7 @@ def user(self): Gets the user of this TerminalAuditLog. :return: The user of this TerminalAuditLog. - :rtype: MoMoRef + :rtype: IamUserRef """ return self._user @@ -398,7 +426,7 @@ def user(self, user): Sets the user of this TerminalAuditLog. :param user: The user of this TerminalAuditLog. - :type: MoMoRef + :type: IamUserRef """ self._user = user diff --git a/intersight/models/terminal_audit_log_list.py b/intersight/models/terminal_audit_log_list.py index cfdc51d7..a2baee2b 100644 --- a/intersight/models/terminal_audit_log_list.py +++ b/intersight/models/terminal_audit_log_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/terminal_audit_log_ref.py b/intersight/models/terminal_audit_log_ref.py new file mode 100644 index 00000000..4ef79cbd --- /dev/null +++ b/intersight/models/terminal_audit_log_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TerminalAuditLogRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TerminalAuditLogRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TerminalAuditLogRef. + + :return: The moid of this TerminalAuditLogRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TerminalAuditLogRef. + + :param moid: The moid of this TerminalAuditLogRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TerminalAuditLogRef. + + :return: The object_type of this TerminalAuditLogRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TerminalAuditLogRef. + + :param object_type: The object_type of this TerminalAuditLogRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TerminalAuditLogRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/packagemanagement_connector_image.py b/intersight/models/testcrypt_administrator.py similarity index 61% rename from intersight/models/packagemanagement_connector_image.py rename to intersight/models/testcrypt_administrator.py index bc81fe92..c751f97b 100644 --- a/intersight/models/packagemanagement_connector_image.py +++ b/intersight/models/testcrypt_administrator.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class PackagemanagementConnectorImage(object): +class TestcryptAdministrator(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,17 +32,17 @@ class PackagemanagementConnectorImage(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', - 'type': 'str', - 'version': 'str' + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', + 'admin': 'TestcryptUser' } attribute_map = { @@ -55,14 +55,14 @@ class PackagemanagementConnectorImage(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account': 'Account', - 'type': 'Type', - 'version': 'Version' + 'admin': 'Admin' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, type=None, version=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, admin=None): """ - PackagemanagementConnectorImage - a model defined in Swagger + TestcryptAdministrator - a model defined in Swagger """ self._account_moid = None @@ -74,9 +74,9 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account = None - self._type = None - self._version = None + self._admin = None if account_moid is not None: self.account_moid = account_moid @@ -96,20 +96,20 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account is not None: self.account = account - if type is not None: - self.type = type - if version is not None: - self.version = version + if admin is not None: + self.admin = admin @property def account_moid(self): """ - Gets the account_moid of this PackagemanagementConnectorImage. + Gets the account_moid of this TestcryptAdministrator. The Account ID for this managed object. - :return: The account_moid of this PackagemanagementConnectorImage. + :return: The account_moid of this TestcryptAdministrator. :rtype: str """ return self._account_moid @@ -117,10 +117,10 @@ def account_moid(self): @account_moid.setter def account_moid(self, account_moid): """ - Sets the account_moid of this PackagemanagementConnectorImage. + Sets the account_moid of this TestcryptAdministrator. The Account ID for this managed object. - :param account_moid: The account_moid of this PackagemanagementConnectorImage. + :param account_moid: The account_moid of this TestcryptAdministrator. :type: str """ @@ -129,22 +129,22 @@ def account_moid(self, account_moid): @property def ancestors(self): """ - Gets the ancestors of this PackagemanagementConnectorImage. + Gets the ancestors of this TestcryptAdministrator. Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - :return: The ancestors of this PackagemanagementConnectorImage. - :rtype: list[MoMoRef] + :return: The ancestors of this TestcryptAdministrator. + :rtype: list[MoBaseMoRef] """ return self._ancestors @ancestors.setter def ancestors(self, ancestors): """ - Sets the ancestors of this PackagemanagementConnectorImage. + Sets the ancestors of this TestcryptAdministrator. Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - :param ancestors: The ancestors of this PackagemanagementConnectorImage. - :type: list[MoMoRef] + :param ancestors: The ancestors of this TestcryptAdministrator. + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -152,10 +152,10 @@ def ancestors(self, ancestors): @property def create_time(self): """ - Gets the create_time of this PackagemanagementConnectorImage. + Gets the create_time of this TestcryptAdministrator. The time when this managed object was created. - :return: The create_time of this PackagemanagementConnectorImage. + :return: The create_time of this TestcryptAdministrator. :rtype: datetime """ return self._create_time @@ -163,10 +163,10 @@ def create_time(self): @create_time.setter def create_time(self, create_time): """ - Sets the create_time of this PackagemanagementConnectorImage. + Sets the create_time of this TestcryptAdministrator. The time when this managed object was created. - :param create_time: The create_time of this PackagemanagementConnectorImage. + :param create_time: The create_time of this TestcryptAdministrator. :type: datetime """ @@ -175,10 +175,10 @@ def create_time(self, create_time): @property def mod_time(self): """ - Gets the mod_time of this PackagemanagementConnectorImage. + Gets the mod_time of this TestcryptAdministrator. The time when this managed object was last modified. - :return: The mod_time of this PackagemanagementConnectorImage. + :return: The mod_time of this TestcryptAdministrator. :rtype: datetime """ return self._mod_time @@ -186,10 +186,10 @@ def mod_time(self): @mod_time.setter def mod_time(self, mod_time): """ - Sets the mod_time of this PackagemanagementConnectorImage. + Sets the mod_time of this TestcryptAdministrator. The time when this managed object was last modified. - :param mod_time: The mod_time of this PackagemanagementConnectorImage. + :param mod_time: The mod_time of this TestcryptAdministrator. :type: datetime """ @@ -198,10 +198,10 @@ def mod_time(self, mod_time): @property def moid(self): """ - Gets the moid of this PackagemanagementConnectorImage. + Gets the moid of this TestcryptAdministrator. A unique identifier of this Managed Object instance. - :return: The moid of this PackagemanagementConnectorImage. + :return: The moid of this TestcryptAdministrator. :rtype: str """ return self._moid @@ -209,10 +209,10 @@ def moid(self): @moid.setter def moid(self, moid): """ - Sets the moid of this PackagemanagementConnectorImage. + Sets the moid of this TestcryptAdministrator. A unique identifier of this Managed Object instance. - :param moid: The moid of this PackagemanagementConnectorImage. + :param moid: The moid of this TestcryptAdministrator. :type: str """ @@ -221,10 +221,10 @@ def moid(self, moid): @property def object_type(self): """ - Gets the object_type of this PackagemanagementConnectorImage. + Gets the object_type of this TestcryptAdministrator. The fully-qualified type of this managed object, e.g. the class name. - :return: The object_type of this PackagemanagementConnectorImage. + :return: The object_type of this TestcryptAdministrator. :rtype: str """ return self._object_type @@ -232,10 +232,10 @@ def object_type(self): @object_type.setter def object_type(self, object_type): """ - Sets the object_type of this PackagemanagementConnectorImage. + Sets the object_type of this TestcryptAdministrator. The fully-qualified type of this managed object, e.g. the class name. - :param object_type: The object_type of this PackagemanagementConnectorImage. + :param object_type: The object_type of this TestcryptAdministrator. :type: str """ @@ -244,10 +244,10 @@ def object_type(self, object_type): @property def owners(self): """ - Gets the owners of this PackagemanagementConnectorImage. + Gets the owners of this TestcryptAdministrator. An array of owners which represent effective ownership of this object. - :return: The owners of this PackagemanagementConnectorImage. + :return: The owners of this TestcryptAdministrator. :rtype: list[str] """ return self._owners @@ -255,10 +255,10 @@ def owners(self): @owners.setter def owners(self, owners): """ - Sets the owners of this PackagemanagementConnectorImage. + Sets the owners of this TestcryptAdministrator. An array of owners which represent effective ownership of this object. - :param owners: The owners of this PackagemanagementConnectorImage. + :param owners: The owners of this TestcryptAdministrator. :type: list[str] """ @@ -267,22 +267,22 @@ def owners(self, owners): @property def parent(self): """ - Gets the parent of this PackagemanagementConnectorImage. + Gets the parent of this TestcryptAdministrator. The direct ancestor of this managed object in the containment hierarchy. - :return: The parent of this PackagemanagementConnectorImage. - :rtype: MoMoRef + :return: The parent of this TestcryptAdministrator. + :rtype: MoBaseMoRef """ return self._parent @parent.setter def parent(self, parent): """ - Sets the parent of this PackagemanagementConnectorImage. + Sets the parent of this TestcryptAdministrator. The direct ancestor of this managed object in the containment hierarchy. - :param parent: The parent of this PackagemanagementConnectorImage. - :type: MoMoRef + :param parent: The parent of this TestcryptAdministrator. + :type: MoBaseMoRef """ self._parent = parent @@ -290,10 +290,10 @@ def parent(self, parent): @property def tags(self): """ - Gets the tags of this PackagemanagementConnectorImage. - An array of tags, which allow to add key, value meta-data to managed objects. + Gets the tags of this TestcryptAdministrator. + An array of tags, which allow to add key, value meta-data to managed objects. - :return: The tags of this PackagemanagementConnectorImage. + :return: The tags of this TestcryptAdministrator. :rtype: list[MoTag] """ return self._tags @@ -301,81 +301,79 @@ def tags(self): @tags.setter def tags(self, tags): """ - Sets the tags of this PackagemanagementConnectorImage. - An array of tags, which allow to add key, value meta-data to managed objects. + Sets the tags of this TestcryptAdministrator. + An array of tags, which allow to add key, value meta-data to managed objects. - :param tags: The tags of this PackagemanagementConnectorImage. + :param tags: The tags of this TestcryptAdministrator. :type: list[MoTag] """ self._tags = tags @property - def account(self): + def version_context(self): """ - Gets the account of this PackagemanagementConnectorImage. + Gets the version_context of this TestcryptAdministrator. + The versioning info for this managed object - :return: The account of this PackagemanagementConnectorImage. - :rtype: MoMoRef + :return: The version_context of this TestcryptAdministrator. + :rtype: MoVersionContext """ - return self._account + return self._version_context - @account.setter - def account(self, account): + @version_context.setter + def version_context(self, version_context): """ - Sets the account of this PackagemanagementConnectorImage. + Sets the version_context of this TestcryptAdministrator. + The versioning info for this managed object - :param account: The account of this PackagemanagementConnectorImage. - :type: MoMoRef + :param version_context: The version_context of this TestcryptAdministrator. + :type: MoVersionContext """ - self._account = account + self._version_context = version_context @property - def type(self): + def account(self): """ - Gets the type of this PackagemanagementConnectorImage. - Endpoint type (e.g ucsm,bmc,hxdp) + Gets the account of this TestcryptAdministrator. - :return: The type of this PackagemanagementConnectorImage. - :rtype: str + :return: The account of this TestcryptAdministrator. + :rtype: IamAccountRef """ - return self._type + return self._account - @type.setter - def type(self, type): + @account.setter + def account(self, account): """ - Sets the type of this PackagemanagementConnectorImage. - Endpoint type (e.g ucsm,bmc,hxdp) + Sets the account of this TestcryptAdministrator. - :param type: The type of this PackagemanagementConnectorImage. - :type: str + :param account: The account of this TestcryptAdministrator. + :type: IamAccountRef """ - self._type = type + self._account = account @property - def version(self): + def admin(self): """ - Gets the version of this PackagemanagementConnectorImage. - Version string. e.g 1.0.1-700 + Gets the admin of this TestcryptAdministrator. - :return: The version of this PackagemanagementConnectorImage. - :rtype: str + :return: The admin of this TestcryptAdministrator. + :rtype: TestcryptUser """ - return self._version + return self._admin - @version.setter - def version(self, version): + @admin.setter + def admin(self, admin): """ - Sets the version of this PackagemanagementConnectorImage. - Version string. e.g 1.0.1-700 + Sets the admin of this TestcryptAdministrator. - :param version: The version of this PackagemanagementConnectorImage. - :type: str + :param admin: The admin of this TestcryptAdministrator. + :type: TestcryptUser """ - self._version = version + self._admin = admin def to_dict(self): """ @@ -419,7 +417,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, PackagemanagementConnectorImage): + if not isinstance(other, TestcryptAdministrator): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/testcrypt_administrator_list.py b/intersight/models/testcrypt_administrator_list.py new file mode 100644 index 00000000..2fa6e1af --- /dev/null +++ b/intersight/models/testcrypt_administrator_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TestcryptAdministratorList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[TestcryptAdministrator]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + TestcryptAdministratorList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this TestcryptAdministratorList. + The number of testcryptAdministrators matching your request in total for all pages. + + :return: The count of this TestcryptAdministratorList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this TestcryptAdministratorList. + The number of testcryptAdministrators matching your request in total for all pages. + + :param count: The count of this TestcryptAdministratorList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this TestcryptAdministratorList. + The array of testcryptAdministrators matching your request. + + :return: The results of this TestcryptAdministratorList. + :rtype: list[TestcryptAdministrator] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this TestcryptAdministratorList. + The array of testcryptAdministrators matching your request. + + :param results: The results of this TestcryptAdministratorList. + :type: list[TestcryptAdministrator] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TestcryptAdministratorList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/testcrypt_administrator_ref.py b/intersight/models/testcrypt_administrator_ref.py new file mode 100644 index 00000000..caebc996 --- /dev/null +++ b/intersight/models/testcrypt_administrator_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TestcryptAdministratorRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TestcryptAdministratorRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TestcryptAdministratorRef. + + :return: The moid of this TestcryptAdministratorRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TestcryptAdministratorRef. + + :param moid: The moid of this TestcryptAdministratorRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TestcryptAdministratorRef. + + :return: The object_type of this TestcryptAdministratorRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TestcryptAdministratorRef. + + :param object_type: The object_type of this TestcryptAdministratorRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TestcryptAdministratorRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/testcrypt_credential.py b/intersight/models/testcrypt_credential.py new file mode 100644 index 00000000..f69fae36 --- /dev/null +++ b/intersight/models/testcrypt_credential.py @@ -0,0 +1,481 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TestcryptCredential(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', + 'is_password_set': 'bool', + 'password': 'str', + 'username': 'str' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'account': 'Account', + 'is_password_set': 'IsPasswordSet', + 'password': 'Password', + 'username': 'Username' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, is_password_set=None, password=None, username=None): + """ + TestcryptCredential - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._account = None + self._is_password_set = None + self._password = None + self._username = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if account is not None: + self.account = account + if is_password_set is not None: + self.is_password_set = is_password_set + if password is not None: + self.password = password + if username is not None: + self.username = username + + @property + def account_moid(self): + """ + Gets the account_moid of this TestcryptCredential. + The Account ID for this managed object. + + :return: The account_moid of this TestcryptCredential. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this TestcryptCredential. + The Account ID for this managed object. + + :param account_moid: The account_moid of this TestcryptCredential. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this TestcryptCredential. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this TestcryptCredential. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this TestcryptCredential. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this TestcryptCredential. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this TestcryptCredential. + The time when this managed object was created. + + :return: The create_time of this TestcryptCredential. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this TestcryptCredential. + The time when this managed object was created. + + :param create_time: The create_time of this TestcryptCredential. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this TestcryptCredential. + The time when this managed object was last modified. + + :return: The mod_time of this TestcryptCredential. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this TestcryptCredential. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this TestcryptCredential. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this TestcryptCredential. + A unique identifier of this Managed Object instance. + + :return: The moid of this TestcryptCredential. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TestcryptCredential. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this TestcryptCredential. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TestcryptCredential. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this TestcryptCredential. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TestcryptCredential. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this TestcryptCredential. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this TestcryptCredential. + An array of owners which represent effective ownership of this object. + + :return: The owners of this TestcryptCredential. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this TestcryptCredential. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this TestcryptCredential. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this TestcryptCredential. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this TestcryptCredential. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this TestcryptCredential. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this TestcryptCredential. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this TestcryptCredential. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this TestcryptCredential. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this TestcryptCredential. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this TestcryptCredential. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this TestcryptCredential. + The versioning info for this managed object + + :return: The version_context of this TestcryptCredential. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this TestcryptCredential. + The versioning info for this managed object + + :param version_context: The version_context of this TestcryptCredential. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def account(self): + """ + Gets the account of this TestcryptCredential. + + :return: The account of this TestcryptCredential. + :rtype: IamAccountRef + """ + return self._account + + @account.setter + def account(self, account): + """ + Sets the account of this TestcryptCredential. + + :param account: The account of this TestcryptCredential. + :type: IamAccountRef + """ + + self._account = account + + @property + def is_password_set(self): + """ + Gets the is_password_set of this TestcryptCredential. + + :return: The is_password_set of this TestcryptCredential. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this TestcryptCredential. + + :param is_password_set: The is_password_set of this TestcryptCredential. + :type: bool + """ + + self._is_password_set = is_password_set + + @property + def password(self): + """ + Gets the password of this TestcryptCredential. + + :return: The password of this TestcryptCredential. + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """ + Sets the password of this TestcryptCredential. + + :param password: The password of this TestcryptCredential. + :type: str + """ + + self._password = password + + @property + def username(self): + """ + Gets the username of this TestcryptCredential. + + :return: The username of this TestcryptCredential. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """ + Sets the username of this TestcryptCredential. + + :param username: The username of this TestcryptCredential. + :type: str + """ + + self._username = username + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TestcryptCredential): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/testcrypt_credential_list.py b/intersight/models/testcrypt_credential_list.py new file mode 100644 index 00000000..e238160d --- /dev/null +++ b/intersight/models/testcrypt_credential_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TestcryptCredentialList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[TestcryptCredential]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + TestcryptCredentialList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this TestcryptCredentialList. + The number of testcryptCredentials matching your request in total for all pages. + + :return: The count of this TestcryptCredentialList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this TestcryptCredentialList. + The number of testcryptCredentials matching your request in total for all pages. + + :param count: The count of this TestcryptCredentialList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this TestcryptCredentialList. + The array of testcryptCredentials matching your request. + + :return: The results of this TestcryptCredentialList. + :rtype: list[TestcryptCredential] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this TestcryptCredentialList. + The array of testcryptCredentials matching your request. + + :param results: The results of this TestcryptCredentialList. + :type: list[TestcryptCredential] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TestcryptCredentialList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/testcrypt_credential_ref.py b/intersight/models/testcrypt_credential_ref.py new file mode 100644 index 00000000..a05fec62 --- /dev/null +++ b/intersight/models/testcrypt_credential_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TestcryptCredentialRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TestcryptCredentialRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TestcryptCredentialRef. + + :return: The moid of this TestcryptCredentialRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TestcryptCredentialRef. + + :param moid: The moid of this TestcryptCredentialRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TestcryptCredentialRef. + + :return: The object_type of this TestcryptCredentialRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TestcryptCredentialRef. + + :param object_type: The object_type of this TestcryptCredentialRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TestcryptCredentialRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/testcrypt_read_only_user.py b/intersight/models/testcrypt_read_only_user.py new file mode 100644 index 00000000..4a8429c2 --- /dev/null +++ b/intersight/models/testcrypt_read_only_user.py @@ -0,0 +1,429 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TestcryptReadOnlyUser(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', + 'rouser': 'list[TestcryptUser]' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'account': 'Account', + 'rouser': 'Rouser' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, rouser=None): + """ + TestcryptReadOnlyUser - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._account = None + self._rouser = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if account is not None: + self.account = account + if rouser is not None: + self.rouser = rouser + + @property + def account_moid(self): + """ + Gets the account_moid of this TestcryptReadOnlyUser. + The Account ID for this managed object. + + :return: The account_moid of this TestcryptReadOnlyUser. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this TestcryptReadOnlyUser. + The Account ID for this managed object. + + :param account_moid: The account_moid of this TestcryptReadOnlyUser. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this TestcryptReadOnlyUser. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this TestcryptReadOnlyUser. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this TestcryptReadOnlyUser. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this TestcryptReadOnlyUser. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this TestcryptReadOnlyUser. + The time when this managed object was created. + + :return: The create_time of this TestcryptReadOnlyUser. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this TestcryptReadOnlyUser. + The time when this managed object was created. + + :param create_time: The create_time of this TestcryptReadOnlyUser. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this TestcryptReadOnlyUser. + The time when this managed object was last modified. + + :return: The mod_time of this TestcryptReadOnlyUser. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this TestcryptReadOnlyUser. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this TestcryptReadOnlyUser. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this TestcryptReadOnlyUser. + A unique identifier of this Managed Object instance. + + :return: The moid of this TestcryptReadOnlyUser. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TestcryptReadOnlyUser. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this TestcryptReadOnlyUser. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TestcryptReadOnlyUser. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this TestcryptReadOnlyUser. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TestcryptReadOnlyUser. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this TestcryptReadOnlyUser. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this TestcryptReadOnlyUser. + An array of owners which represent effective ownership of this object. + + :return: The owners of this TestcryptReadOnlyUser. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this TestcryptReadOnlyUser. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this TestcryptReadOnlyUser. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this TestcryptReadOnlyUser. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this TestcryptReadOnlyUser. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this TestcryptReadOnlyUser. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this TestcryptReadOnlyUser. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this TestcryptReadOnlyUser. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this TestcryptReadOnlyUser. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this TestcryptReadOnlyUser. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this TestcryptReadOnlyUser. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this TestcryptReadOnlyUser. + The versioning info for this managed object + + :return: The version_context of this TestcryptReadOnlyUser. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this TestcryptReadOnlyUser. + The versioning info for this managed object + + :param version_context: The version_context of this TestcryptReadOnlyUser. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def account(self): + """ + Gets the account of this TestcryptReadOnlyUser. + + :return: The account of this TestcryptReadOnlyUser. + :rtype: IamAccountRef + """ + return self._account + + @account.setter + def account(self, account): + """ + Sets the account of this TestcryptReadOnlyUser. + + :param account: The account of this TestcryptReadOnlyUser. + :type: IamAccountRef + """ + + self._account = account + + @property + def rouser(self): + """ + Gets the rouser of this TestcryptReadOnlyUser. + + :return: The rouser of this TestcryptReadOnlyUser. + :rtype: list[TestcryptUser] + """ + return self._rouser + + @rouser.setter + def rouser(self, rouser): + """ + Sets the rouser of this TestcryptReadOnlyUser. + + :param rouser: The rouser of this TestcryptReadOnlyUser. + :type: list[TestcryptUser] + """ + + self._rouser = rouser + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TestcryptReadOnlyUser): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/testcrypt_read_only_user_list.py b/intersight/models/testcrypt_read_only_user_list.py new file mode 100644 index 00000000..347dec49 --- /dev/null +++ b/intersight/models/testcrypt_read_only_user_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TestcryptReadOnlyUserList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[TestcryptReadOnlyUser]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + TestcryptReadOnlyUserList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this TestcryptReadOnlyUserList. + The number of testcryptReadOnlyUsers matching your request in total for all pages. + + :return: The count of this TestcryptReadOnlyUserList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this TestcryptReadOnlyUserList. + The number of testcryptReadOnlyUsers matching your request in total for all pages. + + :param count: The count of this TestcryptReadOnlyUserList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this TestcryptReadOnlyUserList. + The array of testcryptReadOnlyUsers matching your request. + + :return: The results of this TestcryptReadOnlyUserList. + :rtype: list[TestcryptReadOnlyUser] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this TestcryptReadOnlyUserList. + The array of testcryptReadOnlyUsers matching your request. + + :param results: The results of this TestcryptReadOnlyUserList. + :type: list[TestcryptReadOnlyUser] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TestcryptReadOnlyUserList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/testcrypt_read_only_user_ref.py b/intersight/models/testcrypt_read_only_user_ref.py new file mode 100644 index 00000000..c09422bb --- /dev/null +++ b/intersight/models/testcrypt_read_only_user_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TestcryptReadOnlyUserRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TestcryptReadOnlyUserRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TestcryptReadOnlyUserRef. + + :return: The moid of this TestcryptReadOnlyUserRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TestcryptReadOnlyUserRef. + + :param moid: The moid of this TestcryptReadOnlyUserRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TestcryptReadOnlyUserRef. + + :return: The object_type of this TestcryptReadOnlyUserRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TestcryptReadOnlyUserRef. + + :param object_type: The object_type of this TestcryptReadOnlyUserRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TestcryptReadOnlyUserRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/externalsite_auth_profile.py b/intersight/models/testcrypt_shadow_credential.py similarity index 60% rename from intersight/models/externalsite_auth_profile.py rename to intersight/models/testcrypt_shadow_credential.py index 4c722d38..f2bb1f5c 100644 --- a/intersight/models/externalsite_auth_profile.py +++ b/intersight/models/testcrypt_shadow_credential.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -16,7 +16,7 @@ import re -class ExternalsiteAuthProfile(object): +class TestcryptShadowCredential(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,18 +32,18 @@ class ExternalsiteAuthProfile(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', 'password': 'str', - 'repository_type': 'str', - 'user_id': 'str' + 'username': 'str' } attribute_map = { @@ -56,15 +56,15 @@ class ExternalsiteAuthProfile(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account': 'Account', 'password': 'Password', - 'repository_type': 'RepositoryType', - 'user_id': 'UserId' + 'username': 'Username' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, password=None, repository_type='cisco', user_id=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, password=None, username=None): """ - ExternalsiteAuthProfile - a model defined in Swagger + TestcryptShadowCredential - a model defined in Swagger """ self._account_moid = None @@ -76,10 +76,10 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account = None self._password = None - self._repository_type = None - self._user_id = None + self._username = None if account_moid is not None: self.account_moid = account_moid @@ -99,22 +99,22 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account is not None: self.account = account if password is not None: self.password = password - if repository_type is not None: - self.repository_type = repository_type - if user_id is not None: - self.user_id = user_id + if username is not None: + self.username = username @property def account_moid(self): """ - Gets the account_moid of this ExternalsiteAuthProfile. + Gets the account_moid of this TestcryptShadowCredential. The Account ID for this managed object. - :return: The account_moid of this ExternalsiteAuthProfile. + :return: The account_moid of this TestcryptShadowCredential. :rtype: str """ return self._account_moid @@ -122,10 +122,10 @@ def account_moid(self): @account_moid.setter def account_moid(self, account_moid): """ - Sets the account_moid of this ExternalsiteAuthProfile. + Sets the account_moid of this TestcryptShadowCredential. The Account ID for this managed object. - :param account_moid: The account_moid of this ExternalsiteAuthProfile. + :param account_moid: The account_moid of this TestcryptShadowCredential. :type: str """ @@ -134,22 +134,22 @@ def account_moid(self, account_moid): @property def ancestors(self): """ - Gets the ancestors of this ExternalsiteAuthProfile. + Gets the ancestors of this TestcryptShadowCredential. Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - :return: The ancestors of this ExternalsiteAuthProfile. - :rtype: list[MoMoRef] + :return: The ancestors of this TestcryptShadowCredential. + :rtype: list[MoBaseMoRef] """ return self._ancestors @ancestors.setter def ancestors(self, ancestors): """ - Sets the ancestors of this ExternalsiteAuthProfile. + Sets the ancestors of this TestcryptShadowCredential. Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. - :param ancestors: The ancestors of this ExternalsiteAuthProfile. - :type: list[MoMoRef] + :param ancestors: The ancestors of this TestcryptShadowCredential. + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -157,10 +157,10 @@ def ancestors(self, ancestors): @property def create_time(self): """ - Gets the create_time of this ExternalsiteAuthProfile. + Gets the create_time of this TestcryptShadowCredential. The time when this managed object was created. - :return: The create_time of this ExternalsiteAuthProfile. + :return: The create_time of this TestcryptShadowCredential. :rtype: datetime """ return self._create_time @@ -168,10 +168,10 @@ def create_time(self): @create_time.setter def create_time(self, create_time): """ - Sets the create_time of this ExternalsiteAuthProfile. + Sets the create_time of this TestcryptShadowCredential. The time when this managed object was created. - :param create_time: The create_time of this ExternalsiteAuthProfile. + :param create_time: The create_time of this TestcryptShadowCredential. :type: datetime """ @@ -180,10 +180,10 @@ def create_time(self, create_time): @property def mod_time(self): """ - Gets the mod_time of this ExternalsiteAuthProfile. + Gets the mod_time of this TestcryptShadowCredential. The time when this managed object was last modified. - :return: The mod_time of this ExternalsiteAuthProfile. + :return: The mod_time of this TestcryptShadowCredential. :rtype: datetime """ return self._mod_time @@ -191,10 +191,10 @@ def mod_time(self): @mod_time.setter def mod_time(self, mod_time): """ - Sets the mod_time of this ExternalsiteAuthProfile. + Sets the mod_time of this TestcryptShadowCredential. The time when this managed object was last modified. - :param mod_time: The mod_time of this ExternalsiteAuthProfile. + :param mod_time: The mod_time of this TestcryptShadowCredential. :type: datetime """ @@ -203,10 +203,10 @@ def mod_time(self, mod_time): @property def moid(self): """ - Gets the moid of this ExternalsiteAuthProfile. + Gets the moid of this TestcryptShadowCredential. A unique identifier of this Managed Object instance. - :return: The moid of this ExternalsiteAuthProfile. + :return: The moid of this TestcryptShadowCredential. :rtype: str """ return self._moid @@ -214,10 +214,10 @@ def moid(self): @moid.setter def moid(self, moid): """ - Sets the moid of this ExternalsiteAuthProfile. + Sets the moid of this TestcryptShadowCredential. A unique identifier of this Managed Object instance. - :param moid: The moid of this ExternalsiteAuthProfile. + :param moid: The moid of this TestcryptShadowCredential. :type: str """ @@ -226,10 +226,10 @@ def moid(self, moid): @property def object_type(self): """ - Gets the object_type of this ExternalsiteAuthProfile. + Gets the object_type of this TestcryptShadowCredential. The fully-qualified type of this managed object, e.g. the class name. - :return: The object_type of this ExternalsiteAuthProfile. + :return: The object_type of this TestcryptShadowCredential. :rtype: str """ return self._object_type @@ -237,10 +237,10 @@ def object_type(self): @object_type.setter def object_type(self, object_type): """ - Sets the object_type of this ExternalsiteAuthProfile. + Sets the object_type of this TestcryptShadowCredential. The fully-qualified type of this managed object, e.g. the class name. - :param object_type: The object_type of this ExternalsiteAuthProfile. + :param object_type: The object_type of this TestcryptShadowCredential. :type: str """ @@ -249,10 +249,10 @@ def object_type(self, object_type): @property def owners(self): """ - Gets the owners of this ExternalsiteAuthProfile. + Gets the owners of this TestcryptShadowCredential. An array of owners which represent effective ownership of this object. - :return: The owners of this ExternalsiteAuthProfile. + :return: The owners of this TestcryptShadowCredential. :rtype: list[str] """ return self._owners @@ -260,10 +260,10 @@ def owners(self): @owners.setter def owners(self, owners): """ - Sets the owners of this ExternalsiteAuthProfile. + Sets the owners of this TestcryptShadowCredential. An array of owners which represent effective ownership of this object. - :param owners: The owners of this ExternalsiteAuthProfile. + :param owners: The owners of this TestcryptShadowCredential. :type: list[str] """ @@ -272,22 +272,22 @@ def owners(self, owners): @property def parent(self): """ - Gets the parent of this ExternalsiteAuthProfile. + Gets the parent of this TestcryptShadowCredential. The direct ancestor of this managed object in the containment hierarchy. - :return: The parent of this ExternalsiteAuthProfile. - :rtype: MoMoRef + :return: The parent of this TestcryptShadowCredential. + :rtype: MoBaseMoRef """ return self._parent @parent.setter def parent(self, parent): """ - Sets the parent of this ExternalsiteAuthProfile. + Sets the parent of this TestcryptShadowCredential. The direct ancestor of this managed object in the containment hierarchy. - :param parent: The parent of this ExternalsiteAuthProfile. - :type: MoMoRef + :param parent: The parent of this TestcryptShadowCredential. + :type: MoBaseMoRef """ self._parent = parent @@ -295,10 +295,10 @@ def parent(self, parent): @property def tags(self): """ - Gets the tags of this ExternalsiteAuthProfile. - An array of tags, which allow to add key, value meta-data to managed objects. + Gets the tags of this TestcryptShadowCredential. + An array of tags, which allow to add key, value meta-data to managed objects. - :return: The tags of this ExternalsiteAuthProfile. + :return: The tags of this TestcryptShadowCredential. :rtype: list[MoTag] """ return self._tags @@ -306,112 +306,100 @@ def tags(self): @tags.setter def tags(self, tags): """ - Sets the tags of this ExternalsiteAuthProfile. - An array of tags, which allow to add key, value meta-data to managed objects. + Sets the tags of this TestcryptShadowCredential. + An array of tags, which allow to add key, value meta-data to managed objects. - :param tags: The tags of this ExternalsiteAuthProfile. + :param tags: The tags of this TestcryptShadowCredential. :type: list[MoTag] """ self._tags = tags @property - def account(self): + def version_context(self): """ - Gets the account of this ExternalsiteAuthProfile. - Account relation + Gets the version_context of this TestcryptShadowCredential. + The versioning info for this managed object - :return: The account of this ExternalsiteAuthProfile. - :rtype: MoMoRef + :return: The version_context of this TestcryptShadowCredential. + :rtype: MoVersionContext """ - return self._account + return self._version_context - @account.setter - def account(self, account): + @version_context.setter + def version_context(self, version_context): """ - Sets the account of this ExternalsiteAuthProfile. - Account relation + Sets the version_context of this TestcryptShadowCredential. + The versioning info for this managed object - :param account: The account of this ExternalsiteAuthProfile. - :type: MoMoRef + :param version_context: The version_context of this TestcryptShadowCredential. + :type: MoVersionContext """ - self._account = account + self._version_context = version_context @property - def password(self): + def account(self): """ - Gets the password of this ExternalsiteAuthProfile. - User password for the external site + Gets the account of this TestcryptShadowCredential. - :return: The password of this ExternalsiteAuthProfile. - :rtype: str + :return: The account of this TestcryptShadowCredential. + :rtype: IamAccountRef """ - return self._password + return self._account - @password.setter - def password(self, password): + @account.setter + def account(self, account): """ - Sets the password of this ExternalsiteAuthProfile. - User password for the external site + Sets the account of this TestcryptShadowCredential. - :param password: The password of this ExternalsiteAuthProfile. - :type: str + :param account: The account of this TestcryptShadowCredential. + :type: IamAccountRef """ - self._password = password + self._account = account @property - def repository_type(self): + def password(self): """ - Gets the repository_type of this ExternalsiteAuthProfile. - External site the user credentials are for + Gets the password of this TestcryptShadowCredential. - :return: The repository_type of this ExternalsiteAuthProfile. + :return: The password of this TestcryptShadowCredential. :rtype: str """ - return self._repository_type + return self._password - @repository_type.setter - def repository_type(self, repository_type): + @password.setter + def password(self, password): """ - Sets the repository_type of this ExternalsiteAuthProfile. - External site the user credentials are for + Sets the password of this TestcryptShadowCredential. - :param repository_type: The repository_type of this ExternalsiteAuthProfile. + :param password: The password of this TestcryptShadowCredential. :type: str """ - allowed_values = ["cisco"] - if repository_type not in allowed_values: - raise ValueError( - "Invalid value for `repository_type` ({0}), must be one of {1}" - .format(repository_type, allowed_values) - ) - self._repository_type = repository_type + self._password = password @property - def user_id(self): + def username(self): """ - Gets the user_id of this ExternalsiteAuthProfile. - User id for the external site + Gets the username of this TestcryptShadowCredential. - :return: The user_id of this ExternalsiteAuthProfile. + :return: The username of this TestcryptShadowCredential. :rtype: str """ - return self._user_id + return self._username - @user_id.setter - def user_id(self, user_id): + @username.setter + def username(self, username): """ - Sets the user_id of this ExternalsiteAuthProfile. - User id for the external site + Sets the username of this TestcryptShadowCredential. - :param user_id: The user_id of this ExternalsiteAuthProfile. + :param username: The username of this TestcryptShadowCredential. :type: str """ - self._user_id = user_id + self._username = username def to_dict(self): """ @@ -455,7 +443,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, ExternalsiteAuthProfile): + if not isinstance(other, TestcryptShadowCredential): return False return self.__dict__ == other.__dict__ diff --git a/intersight/models/testcrypt_shadow_credential_list.py b/intersight/models/testcrypt_shadow_credential_list.py new file mode 100644 index 00000000..638220c4 --- /dev/null +++ b/intersight/models/testcrypt_shadow_credential_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TestcryptShadowCredentialList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[TestcryptShadowCredential]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + TestcryptShadowCredentialList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this TestcryptShadowCredentialList. + The number of testcryptShadowCredentials matching your request in total for all pages. + + :return: The count of this TestcryptShadowCredentialList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this TestcryptShadowCredentialList. + The number of testcryptShadowCredentials matching your request in total for all pages. + + :param count: The count of this TestcryptShadowCredentialList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this TestcryptShadowCredentialList. + The array of testcryptShadowCredentials matching your request. + + :return: The results of this TestcryptShadowCredentialList. + :rtype: list[TestcryptShadowCredential] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this TestcryptShadowCredentialList. + The array of testcryptShadowCredentials matching your request. + + :param results: The results of this TestcryptShadowCredentialList. + :type: list[TestcryptShadowCredential] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TestcryptShadowCredentialList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/testcrypt_shadow_credential_ref.py b/intersight/models/testcrypt_shadow_credential_ref.py new file mode 100644 index 00000000..f907655b --- /dev/null +++ b/intersight/models/testcrypt_shadow_credential_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TestcryptShadowCredentialRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TestcryptShadowCredentialRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TestcryptShadowCredentialRef. + + :return: The moid of this TestcryptShadowCredentialRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TestcryptShadowCredentialRef. + + :param moid: The moid of this TestcryptShadowCredentialRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TestcryptShadowCredentialRef. + + :return: The object_type of this TestcryptShadowCredentialRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TestcryptShadowCredentialRef. + + :param object_type: The object_type of this TestcryptShadowCredentialRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TestcryptShadowCredentialRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/testcrypt_user.py b/intersight/models/testcrypt_user.py new file mode 100644 index 00000000..29fbeda7 --- /dev/null +++ b/intersight/models/testcrypt_user.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TestcryptUser(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'is_password_set': 'bool', + 'password': 'str', + 'username': 'str' + } + + attribute_map = { + 'is_password_set': 'IsPasswordSet', + 'password': 'Password', + 'username': 'Username' + } + + def __init__(self, is_password_set=None, password=None, username=None): + """ + TestcryptUser - a model defined in Swagger + """ + + self._is_password_set = None + self._password = None + self._username = None + + if is_password_set is not None: + self.is_password_set = is_password_set + if password is not None: + self.password = password + if username is not None: + self.username = username + + @property + def is_password_set(self): + """ + Gets the is_password_set of this TestcryptUser. + + :return: The is_password_set of this TestcryptUser. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this TestcryptUser. + + :param is_password_set: The is_password_set of this TestcryptUser. + :type: bool + """ + + self._is_password_set = is_password_set + + @property + def password(self): + """ + Gets the password of this TestcryptUser. + + :return: The password of this TestcryptUser. + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """ + Sets the password of this TestcryptUser. + + :param password: The password of this TestcryptUser. + :type: str + """ + + self._password = password + + @property + def username(self): + """ + Gets the username of this TestcryptUser. + + :return: The username of this TestcryptUser. + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """ + Sets the username of this TestcryptUser. + + :param username: The username of this TestcryptUser. + :type: str + """ + + self._username = username + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TestcryptUser): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/testcrypt_user_ref.py b/intersight/models/testcrypt_user_ref.py new file mode 100644 index 00000000..025dadfe --- /dev/null +++ b/intersight/models/testcrypt_user_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TestcryptUserRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TestcryptUserRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TestcryptUserRef. + + :return: The moid of this TestcryptUserRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TestcryptUserRef. + + :param moid: The moid of this TestcryptUserRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TestcryptUserRef. + + :return: The object_type of this TestcryptUserRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TestcryptUserRef. + + :param object_type: The object_type of this TestcryptUserRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TestcryptUserRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/top_system.py b/intersight/models/top_system.py index b7e17de8..82b54a3f 100644 --- a/intersight/models/top_system.py +++ b/intersight/models/top_system.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,26 +32,28 @@ class TopSystem(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'device_mo_id': 'str', 'dn': 'str', 'rn': 'str', - 'compute_blades': 'list[MoMoRef]', - 'compute_rack_units': 'list[MoMoRef]', + 'compute_blades': 'list[ComputeBladeRef]', + 'compute_rack_units': 'list[ComputeRackUnitRef]', 'ipv4_address': 'str', 'ipv6_address': 'str', - 'management_controller': 'MoMoRef', + 'management_controller': 'ManagementControllerRef', 'mode': 'str', 'name': 'str', - 'network_elements': 'list[MoMoRef]', - 'registered_device': 'MoMoRef' + 'network_elements': 'list[NetworkElementRef]', + 'registered_device': 'AssetDeviceRegistrationRef', + 'time_zone': 'str' } attribute_map = { @@ -64,6 +66,7 @@ class TopSystem(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'device_mo_id': 'DeviceMoId', 'dn': 'Dn', 'rn': 'Rn', @@ -75,10 +78,11 @@ class TopSystem(object): 'mode': 'Mode', 'name': 'Name', 'network_elements': 'NetworkElements', - 'registered_device': 'RegisteredDevice' + 'registered_device': 'RegisteredDevice', + 'time_zone': 'TimeZone' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, device_mo_id=None, dn=None, rn=None, compute_blades=None, compute_rack_units=None, ipv4_address=None, ipv6_address=None, management_controller=None, mode=None, name=None, network_elements=None, registered_device=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, device_mo_id=None, dn=None, rn=None, compute_blades=None, compute_rack_units=None, ipv4_address=None, ipv6_address=None, management_controller=None, mode=None, name=None, network_elements=None, registered_device=None, time_zone=None): """ TopSystem - a model defined in Swagger """ @@ -92,6 +96,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._device_mo_id = None self._dn = None self._rn = None @@ -104,6 +109,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._name = None self._network_elements = None self._registered_device = None + self._time_zone = None if account_moid is not None: self.account_moid = account_moid @@ -123,6 +129,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if device_mo_id is not None: self.device_mo_id = device_mo_id if dn is not None: @@ -147,6 +155,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.network_elements = network_elements if registered_device is not None: self.registered_device = registered_device + if time_zone is not None: + self.time_zone = time_zone @property def account_moid(self): @@ -178,7 +188,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this TopSystem. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -189,7 +199,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this TopSystem. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -316,7 +326,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this TopSystem. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -327,7 +337,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this TopSystem. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -336,7 +346,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this TopSystem. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this TopSystem. :rtype: list[MoTag] @@ -347,7 +357,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this TopSystem. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this TopSystem. :type: list[MoTag] @@ -355,6 +365,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this TopSystem. + The versioning info for this managed object + + :return: The version_context of this TopSystem. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this TopSystem. + The versioning info for this managed object + + :param version_context: The version_context of this TopSystem. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def device_mo_id(self): """ @@ -424,7 +457,7 @@ def compute_blades(self): Gets the compute_blades of this TopSystem. :return: The compute_blades of this TopSystem. - :rtype: list[MoMoRef] + :rtype: list[ComputeBladeRef] """ return self._compute_blades @@ -434,7 +467,7 @@ def compute_blades(self, compute_blades): Sets the compute_blades of this TopSystem. :param compute_blades: The compute_blades of this TopSystem. - :type: list[MoMoRef] + :type: list[ComputeBladeRef] """ self._compute_blades = compute_blades @@ -445,7 +478,7 @@ def compute_rack_units(self): Gets the compute_rack_units of this TopSystem. :return: The compute_rack_units of this TopSystem. - :rtype: list[MoMoRef] + :rtype: list[ComputeRackUnitRef] """ return self._compute_rack_units @@ -455,7 +488,7 @@ def compute_rack_units(self, compute_rack_units): Sets the compute_rack_units of this TopSystem. :param compute_rack_units: The compute_rack_units of this TopSystem. - :type: list[MoMoRef] + :type: list[ComputeRackUnitRef] """ self._compute_rack_units = compute_rack_units @@ -508,7 +541,7 @@ def management_controller(self): Gets the management_controller of this TopSystem. :return: The management_controller of this TopSystem. - :rtype: MoMoRef + :rtype: ManagementControllerRef """ return self._management_controller @@ -518,7 +551,7 @@ def management_controller(self, management_controller): Sets the management_controller of this TopSystem. :param management_controller: The management_controller of this TopSystem. - :type: MoMoRef + :type: ManagementControllerRef """ self._management_controller = management_controller @@ -571,7 +604,7 @@ def network_elements(self): Gets the network_elements of this TopSystem. :return: The network_elements of this TopSystem. - :rtype: list[MoMoRef] + :rtype: list[NetworkElementRef] """ return self._network_elements @@ -581,7 +614,7 @@ def network_elements(self, network_elements): Sets the network_elements of this TopSystem. :param network_elements: The network_elements of this TopSystem. - :type: list[MoMoRef] + :type: list[NetworkElementRef] """ self._network_elements = network_elements @@ -592,7 +625,7 @@ def registered_device(self): Gets the registered_device of this TopSystem. :return: The registered_device of this TopSystem. - :rtype: MoMoRef + :rtype: AssetDeviceRegistrationRef """ return self._registered_device @@ -602,11 +635,34 @@ def registered_device(self, registered_device): Sets the registered_device of this TopSystem. :param registered_device: The registered_device of this TopSystem. - :type: MoMoRef + :type: AssetDeviceRegistrationRef """ self._registered_device = registered_device + @property + def time_zone(self): + """ + Gets the time_zone of this TopSystem. + The operational timezone of the system, empty indicates no timezone has been set specifically. + + :return: The time_zone of this TopSystem. + :rtype: str + """ + return self._time_zone + + @time_zone.setter + def time_zone(self, time_zone): + """ + Sets the time_zone of this TopSystem. + The operational timezone of the system, empty indicates no timezone has been set specifically. + + :param time_zone: The time_zone of this TopSystem. + :type: str + """ + + self._time_zone = time_zone + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/top_system_list.py b/intersight/models/top_system_list.py index e3ea8434..c851ff17 100644 --- a/intersight/models/top_system_list.py +++ b/intersight/models/top_system_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/top_system_ref.py b/intersight/models/top_system_ref.py new file mode 100644 index 00000000..ae2485cc --- /dev/null +++ b/intersight/models/top_system_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class TopSystemRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + TopSystemRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this TopSystemRef. + + :return: The moid of this TopSystemRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this TopSystemRef. + + :param moid: The moid of this TopSystemRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this TopSystemRef. + + :return: The object_type of this TopSystemRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this TopSystemRef. + + :param object_type: The object_type of this TopSystemRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, TopSystemRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ucsdconnector_field_query.py b/intersight/models/ucsdconnector_field_query.py new file mode 100644 index 00000000..bdb97104 --- /dev/null +++ b/intersight/models/ucsdconnector_field_query.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UcsdconnectorFieldQuery(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'field_name': 'str', + 'query': 'UcsdconnectorSqlQuery' + } + + attribute_map = { + 'field_name': 'FieldName', + 'query': 'Query' + } + + def __init__(self, field_name=None, query=None): + """ + UcsdconnectorFieldQuery - a model defined in Swagger + """ + + self._field_name = None + self._query = None + + if field_name is not None: + self.field_name = field_name + if query is not None: + self.query = query + + @property + def field_name(self): + """ + Gets the field_name of this UcsdconnectorFieldQuery. + FieldName corresponds to property name of Fanwood Mo + + :return: The field_name of this UcsdconnectorFieldQuery. + :rtype: str + """ + return self._field_name + + @field_name.setter + def field_name(self, field_name): + """ + Sets the field_name of this UcsdconnectorFieldQuery. + FieldName corresponds to property name of Fanwood Mo + + :param field_name: The field_name of this UcsdconnectorFieldQuery. + :type: str + """ + + self._field_name = field_name + + @property + def query(self): + """ + Gets the query of this UcsdconnectorFieldQuery. + SQL query string + + :return: The query of this UcsdconnectorFieldQuery. + :rtype: UcsdconnectorSqlQuery + """ + return self._query + + @query.setter + def query(self, query): + """ + Sets the query of this UcsdconnectorFieldQuery. + SQL query string + + :param query: The query of this UcsdconnectorFieldQuery. + :type: UcsdconnectorSqlQuery + """ + + self._query = query + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, UcsdconnectorFieldQuery): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ucsdconnector_field_query_ref.py b/intersight/models/ucsdconnector_field_query_ref.py new file mode 100644 index 00000000..12808ad1 --- /dev/null +++ b/intersight/models/ucsdconnector_field_query_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UcsdconnectorFieldQueryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + UcsdconnectorFieldQueryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this UcsdconnectorFieldQueryRef. + + :return: The moid of this UcsdconnectorFieldQueryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this UcsdconnectorFieldQueryRef. + + :param moid: The moid of this UcsdconnectorFieldQueryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this UcsdconnectorFieldQueryRef. + + :return: The object_type of this UcsdconnectorFieldQueryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this UcsdconnectorFieldQueryRef. + + :param object_type: The object_type of this UcsdconnectorFieldQueryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, UcsdconnectorFieldQueryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ucsdconnector_inventory_message_ref.py b/intersight/models/ucsdconnector_inventory_message_ref.py new file mode 100644 index 00000000..36c0b831 --- /dev/null +++ b/intersight/models/ucsdconnector_inventory_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UcsdconnectorInventoryMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + UcsdconnectorInventoryMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this UcsdconnectorInventoryMessageRef. + + :return: The moid of this UcsdconnectorInventoryMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this UcsdconnectorInventoryMessageRef. + + :param moid: The moid of this UcsdconnectorInventoryMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this UcsdconnectorInventoryMessageRef. + + :return: The object_type of this UcsdconnectorInventoryMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this UcsdconnectorInventoryMessageRef. + + :param object_type: The object_type of this UcsdconnectorInventoryMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, UcsdconnectorInventoryMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ucsdconnector_sql_query.py b/intersight/models/ucsdconnector_sql_query.py new file mode 100644 index 00000000..dd90e4f5 --- /dev/null +++ b/intersight/models/ucsdconnector_sql_query.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UcsdconnectorSqlQuery(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'params': 'object', + 'query': 'str' + } + + attribute_map = { + 'params': 'Params', + 'query': 'Query' + } + + def __init__(self, params=None, query=None): + """ + UcsdconnectorSqlQuery - a model defined in Swagger + """ + + self._params = None + self._query = None + + if params is not None: + self.params = params + if query is not None: + self.query = query + + @property + def params(self): + """ + Gets the params of this UcsdconnectorSqlQuery. + Parameters in query string + + :return: The params of this UcsdconnectorSqlQuery. + :rtype: object + """ + return self._params + + @params.setter + def params(self, params): + """ + Sets the params of this UcsdconnectorSqlQuery. + Parameters in query string + + :param params: The params of this UcsdconnectorSqlQuery. + :type: object + """ + + self._params = params + + @property + def query(self): + """ + Gets the query of this UcsdconnectorSqlQuery. + query string + + :return: The query of this UcsdconnectorSqlQuery. + :rtype: str + """ + return self._query + + @query.setter + def query(self, query): + """ + Sets the query of this UcsdconnectorSqlQuery. + query string + + :param query: The query of this UcsdconnectorSqlQuery. + :type: str + """ + + self._query = query + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, UcsdconnectorSqlQuery): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ucsdconnector_sql_query_ref.py b/intersight/models/ucsdconnector_sql_query_ref.py new file mode 100644 index 00000000..937baef1 --- /dev/null +++ b/intersight/models/ucsdconnector_sql_query_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UcsdconnectorSqlQueryRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + UcsdconnectorSqlQueryRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this UcsdconnectorSqlQueryRef. + + :return: The moid of this UcsdconnectorSqlQueryRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this UcsdconnectorSqlQueryRef. + + :param moid: The moid of this UcsdconnectorSqlQueryRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this UcsdconnectorSqlQueryRef. + + :return: The object_type of this UcsdconnectorSqlQueryRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this UcsdconnectorSqlQueryRef. + + :param object_type: The object_type of this UcsdconnectorSqlQueryRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, UcsdconnectorSqlQueryRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ucsdconnector_telemetry_message_ref.py b/intersight/models/ucsdconnector_telemetry_message_ref.py new file mode 100644 index 00000000..febb6d43 --- /dev/null +++ b/intersight/models/ucsdconnector_telemetry_message_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UcsdconnectorTelemetryMessageRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + UcsdconnectorTelemetryMessageRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this UcsdconnectorTelemetryMessageRef. + + :return: The moid of this UcsdconnectorTelemetryMessageRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this UcsdconnectorTelemetryMessageRef. + + :param moid: The moid of this UcsdconnectorTelemetryMessageRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this UcsdconnectorTelemetryMessageRef. + + :return: The object_type of this UcsdconnectorTelemetryMessageRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this UcsdconnectorTelemetryMessageRef. + + :param object_type: The object_type of this UcsdconnectorTelemetryMessageRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, UcsdconnectorTelemetryMessageRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ucsdconnector_telemetry_mo.py b/intersight/models/ucsdconnector_telemetry_mo.py new file mode 100644 index 00000000..b871a6b0 --- /dev/null +++ b/intersight/models/ucsdconnector_telemetry_mo.py @@ -0,0 +1,181 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UcsdconnectorTelemetryMo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'field_queries': 'list[UcsdconnectorFieldQuery]', + 'mo_name': 'str', + 'object_query': 'UcsdconnectorSqlQuery' + } + + attribute_map = { + 'field_queries': 'FieldQueries', + 'mo_name': 'MoName', + 'object_query': 'ObjectQuery' + } + + def __init__(self, field_queries=None, mo_name=None, object_query=None): + """ + UcsdconnectorTelemetryMo - a model defined in Swagger + """ + + self._field_queries = None + self._mo_name = None + self._object_query = None + + if field_queries is not None: + self.field_queries = field_queries + if mo_name is not None: + self.mo_name = mo_name + if object_query is not None: + self.object_query = object_query + + @property + def field_queries(self): + """ + Gets the field_queries of this UcsdconnectorTelemetryMo. + Its a collection of FieldQuery objects + + :return: The field_queries of this UcsdconnectorTelemetryMo. + :rtype: list[UcsdconnectorFieldQuery] + """ + return self._field_queries + + @field_queries.setter + def field_queries(self, field_queries): + """ + Sets the field_queries of this UcsdconnectorTelemetryMo. + Its a collection of FieldQuery objects + + :param field_queries: The field_queries of this UcsdconnectorTelemetryMo. + :type: list[UcsdconnectorFieldQuery] + """ + + self._field_queries = field_queries + + @property + def mo_name(self): + """ + Gets the mo_name of this UcsdconnectorTelemetryMo. + MoName corresponds to Fanwood telemetry Mo + + :return: The mo_name of this UcsdconnectorTelemetryMo. + :rtype: str + """ + return self._mo_name + + @mo_name.setter + def mo_name(self, mo_name): + """ + Sets the mo_name of this UcsdconnectorTelemetryMo. + MoName corresponds to Fanwood telemetry Mo + + :param mo_name: The mo_name of this UcsdconnectorTelemetryMo. + :type: str + """ + + self._mo_name = mo_name + + @property + def object_query(self): + """ + Gets the object_query of this UcsdconnectorTelemetryMo. + It contains a single SQL Query that collects all the properties of a Mo + + :return: The object_query of this UcsdconnectorTelemetryMo. + :rtype: UcsdconnectorSqlQuery + """ + return self._object_query + + @object_query.setter + def object_query(self, object_query): + """ + Sets the object_query of this UcsdconnectorTelemetryMo. + It contains a single SQL Query that collects all the properties of a Mo + + :param object_query: The object_query of this UcsdconnectorTelemetryMo. + :type: UcsdconnectorSqlQuery + """ + + self._object_query = object_query + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, UcsdconnectorTelemetryMo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/ucsdconnector_telemetry_mo_ref.py b/intersight/models/ucsdconnector_telemetry_mo_ref.py new file mode 100644 index 00000000..7fac656b --- /dev/null +++ b/intersight/models/ucsdconnector_telemetry_mo_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class UcsdconnectorTelemetryMoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + UcsdconnectorTelemetryMoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this UcsdconnectorTelemetryMoRef. + + :return: The moid of this UcsdconnectorTelemetryMoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this UcsdconnectorTelemetryMoRef. + + :param moid: The moid of this UcsdconnectorTelemetryMoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this UcsdconnectorTelemetryMoRef. + + :return: The object_type of this UcsdconnectorTelemetryMoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this UcsdconnectorTelemetryMoRef. + + :param object_type: The object_type of this UcsdconnectorTelemetryMoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, UcsdconnectorTelemetryMoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/views_view.py b/intersight/models/views_view.py index 9498c9bb..a0ace909 100644 --- a/intersight/models/views_view.py +++ b/intersight/models/views_view.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,14 +32,15 @@ class ViewsView(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', - 'tags': 'list[MoTag]' + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext' } attribute_map = { @@ -51,10 +52,11 @@ class ViewsView(object): 'object_type': 'ObjectType', 'owners': 'Owners', 'parent': 'Parent', - 'tags': 'Tags' + 'tags': 'Tags', + 'version_context': 'VersionContext' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None): """ ViewsView - a model defined in Swagger """ @@ -68,6 +70,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None if account_moid is not None: self.account_moid = account_moid @@ -87,6 +90,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context @property def account_moid(self): @@ -118,7 +123,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this ViewsView. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -129,7 +134,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this ViewsView. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -256,7 +261,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this ViewsView. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -267,7 +272,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this ViewsView. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -276,7 +281,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this ViewsView. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this ViewsView. :rtype: list[MoTag] @@ -287,7 +292,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this ViewsView. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this ViewsView. :type: list[MoTag] @@ -295,6 +300,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this ViewsView. + The versioning info for this managed object + + :return: The version_context of this ViewsView. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this ViewsView. + The versioning info for this managed object + + :param version_context: The version_context of this ViewsView. + :type: MoVersionContext + """ + + self._version_context = version_context + def to_dict(self): """ Returns the model properties as a dict diff --git a/intersight/models/views_view_ref.py b/intersight/models/views_view_ref.py new file mode 100644 index 00000000..1846c65b --- /dev/null +++ b/intersight/models/views_view_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class ViewsViewRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + ViewsViewRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this ViewsViewRef. + + :return: The moid of this ViewsViewRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this ViewsViewRef. + + :param moid: The moid of this ViewsViewRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this ViewsViewRef. + + :return: The object_type of this ViewsViewRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this ViewsViewRef. + + :param object_type: The object_type of this ViewsViewRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, ViewsViewRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/vmedia_deploy_task_ref.py b/intersight/models/vmedia_deploy_task_ref.py new file mode 100644 index 00000000..ca59e32e --- /dev/null +++ b/intersight/models/vmedia_deploy_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class VmediaDeployTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + VmediaDeployTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this VmediaDeployTaskRef. + + :return: The moid of this VmediaDeployTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this VmediaDeployTaskRef. + + :param moid: The moid of this VmediaDeployTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this VmediaDeployTaskRef. + + :return: The object_type of this VmediaDeployTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this VmediaDeployTaskRef. + + :param object_type: The object_type of this VmediaDeployTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, VmediaDeployTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/vmedia_mapping.py b/intersight/models/vmedia_mapping.py index 88e9f369..bc648517 100644 --- a/intersight/models/vmedia_mapping.py +++ b/intersight/models/vmedia_mapping.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -34,6 +34,7 @@ class VmediaMapping(object): 'authentication_protocol': 'str', 'device_type': 'str', 'host_name': 'str', + 'is_password_set': 'bool', 'mount_options': 'str', 'mount_protocol': 'str', 'password': 'str', @@ -47,6 +48,7 @@ class VmediaMapping(object): 'authentication_protocol': 'AuthenticationProtocol', 'device_type': 'DeviceType', 'host_name': 'HostName', + 'is_password_set': 'IsPasswordSet', 'mount_options': 'MountOptions', 'mount_protocol': 'MountProtocol', 'password': 'Password', @@ -56,7 +58,7 @@ class VmediaMapping(object): 'volume_name': 'VolumeName' } - def __init__(self, authentication_protocol='none', device_type='Cdd', host_name=None, mount_options=None, mount_protocol='Nfs', password=None, remote_file=None, remote_path=None, username=None, volume_name=None): + def __init__(self, authentication_protocol='none', device_type='cdd', host_name=None, is_password_set=None, mount_options=None, mount_protocol='nfs', password=None, remote_file=None, remote_path=None, username=None, volume_name=None): """ VmediaMapping - a model defined in Swagger """ @@ -64,6 +66,7 @@ def __init__(self, authentication_protocol='none', device_type='Cdd', host_name= self._authentication_protocol = None self._device_type = None self._host_name = None + self._is_password_set = None self._mount_options = None self._mount_protocol = None self._password = None @@ -78,6 +81,8 @@ def __init__(self, authentication_protocol='none', device_type='Cdd', host_name= self.device_type = device_type if host_name is not None: self.host_name = host_name + if is_password_set is not None: + self.is_password_set = is_password_set if mount_options is not None: self.mount_options = mount_options if mount_protocol is not None: @@ -126,7 +131,7 @@ def authentication_protocol(self, authentication_protocol): def device_type(self): """ Gets the device_type of this VmediaMapping. - Type of remote vMedia device. Accepted values are CDD, HDD + Type of remote Virtual Media device :return: The device_type of this VmediaMapping. :rtype: str @@ -137,12 +142,12 @@ def device_type(self): def device_type(self, device_type): """ Sets the device_type of this VmediaMapping. - Type of remote vMedia device. Accepted values are CDD, HDD + Type of remote Virtual Media device :param device_type: The device_type of this VmediaMapping. :type: str """ - allowed_values = ["Cdd", "Hdd"] + allowed_values = ["cdd", "hdd"] if device_type not in allowed_values: raise ValueError( "Invalid value for `device_type` ({0}), must be one of {1}" @@ -174,11 +179,32 @@ def host_name(self, host_name): self._host_name = host_name + @property + def is_password_set(self): + """ + Gets the is_password_set of this VmediaMapping. + + :return: The is_password_set of this VmediaMapping. + :rtype: bool + """ + return self._is_password_set + + @is_password_set.setter + def is_password_set(self, is_password_set): + """ + Sets the is_password_set of this VmediaMapping. + + :param is_password_set: The is_password_set of this VmediaMapping. + :type: bool + """ + + self._is_password_set = is_password_set + @property def mount_options(self): """ Gets the mount_options of this VmediaMapping. - Mount options for the vMedia mount type + Mount options for the Virtual Media mapping. The field can be left blank or filled in a comma separated list with the following options.\\n For NFS, supported options are ro, rw, nolock, noexec, soft, port=VALUE, timeo=VALUE, retry=VALUE.\\n For CIFS, supported options are soft, nounix, noserverino, guest.\\n For HTTP/HTTPS, the only supported option is noauto. :return: The mount_options of this VmediaMapping. :rtype: str @@ -189,7 +215,7 @@ def mount_options(self): def mount_options(self, mount_options): """ Sets the mount_options of this VmediaMapping. - Mount options for the vMedia mount type + Mount options for the Virtual Media mapping. The field can be left blank or filled in a comma separated list with the following options.\\n For NFS, supported options are ro, rw, nolock, noexec, soft, port=VALUE, timeo=VALUE, retry=VALUE.\\n For CIFS, supported options are soft, nounix, noserverino, guest.\\n For HTTP/HTTPS, the only supported option is noauto. :param mount_options: The mount_options of this VmediaMapping. :type: str @@ -201,7 +227,7 @@ def mount_options(self, mount_options): def mount_protocol(self): """ Gets the mount_protocol of this VmediaMapping. - Protocol to use to communicate with the remote server. Accepted values are NFS, CIFS, HTTP, HTTPS + Protocol to use to communicate with the remote server :return: The mount_protocol of this VmediaMapping. :rtype: str @@ -212,12 +238,12 @@ def mount_protocol(self): def mount_protocol(self, mount_protocol): """ Sets the mount_protocol of this VmediaMapping. - Protocol to use to communicate with the remote server. Accepted values are NFS, CIFS, HTTP, HTTPS + Protocol to use to communicate with the remote server :param mount_protocol: The mount_protocol of this VmediaMapping. :type: str """ - allowed_values = ["Nfs", "Cifs", "Http", "Https"] + allowed_values = ["nfs", "cifs", "http", "https"] if mount_protocol not in allowed_values: raise ValueError( "Invalid value for `mount_protocol` ({0}), must be one of {1}" @@ -253,7 +279,7 @@ def password(self, password): def remote_file(self): """ Gets the remote_file of this VmediaMapping. - Name of the ISO or other images + Name of the remote file. It should be of .img format for HDD Virtual Media mapping and .iso format for CDD Virtual Media mapping. :return: The remote_file of this VmediaMapping. :rtype: str @@ -264,7 +290,7 @@ def remote_file(self): def remote_file(self, remote_file): """ Sets the remote_file of this VmediaMapping. - Name of the ISO or other images + Name of the remote file. It should be of .img format for HDD Virtual Media mapping and .iso format for CDD Virtual Media mapping. :param remote_file: The remote_file of this VmediaMapping. :type: str @@ -276,7 +302,7 @@ def remote_file(self, remote_file): def remote_path(self): """ Gets the remote_path of this VmediaMapping. - Path to the location of the image on the remote server + Path to the location of the image on the remote server. Preferred format is /path/. :return: The remote_path of this VmediaMapping. :rtype: str @@ -287,7 +313,7 @@ def remote_path(self): def remote_path(self, remote_path): """ Sets the remote_path of this VmediaMapping. - Path to the location of the image on the remote server + Path to the location of the image on the remote server. Preferred format is /path/. :param remote_path: The remote_path of this VmediaMapping. :type: str @@ -322,7 +348,7 @@ def username(self, username): def volume_name(self): """ Gets the volume_name of this VmediaMapping. - Identity of the image for vMedia mapping + Identity of the image for Virtual Media mapping :return: The volume_name of this VmediaMapping. :rtype: str @@ -333,7 +359,7 @@ def volume_name(self): def volume_name(self, volume_name): """ Sets the volume_name of this VmediaMapping. - Identity of the image for vMedia mapping + Identity of the image for Virtual Media mapping :param volume_name: The volume_name of this VmediaMapping. :type: str diff --git a/intersight/models/vmedia_mapping_ref.py b/intersight/models/vmedia_mapping_ref.py new file mode 100644 index 00000000..f32fc420 --- /dev/null +++ b/intersight/models/vmedia_mapping_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class VmediaMappingRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + VmediaMappingRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this VmediaMappingRef. + + :return: The moid of this VmediaMappingRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this VmediaMappingRef. + + :param moid: The moid of this VmediaMappingRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this VmediaMappingRef. + + :return: The object_type of this VmediaMappingRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this VmediaMappingRef. + + :param object_type: The object_type of this VmediaMappingRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, VmediaMappingRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/vmedia_policy.py b/intersight/models/vmedia_policy.py index 69284226..a4a2d4ec 100644 --- a/intersight/models/vmedia_policy.py +++ b/intersight/models/vmedia_policy.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,22 +32,23 @@ class VmediaPolicy(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'description': 'str', 'name': 'str', 'enabled': 'bool', 'encryption': 'bool', 'low_power_usb': 'bool', 'mappings': 'list[VmediaMapping]', - 'organization': 'MoMoRef', - 'profiles': 'list[MoMoRef]' + 'organization': 'IamAccountRef', + 'profiles': 'list[PolicyAbstractConfigProfileRef]' } attribute_map = { @@ -60,6 +61,7 @@ class VmediaPolicy(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'description': 'Description', 'name': 'Name', 'enabled': 'Enabled', @@ -70,7 +72,7 @@ class VmediaPolicy(object): 'profiles': 'Profiles' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, description=None, name=None, enabled=None, encryption=None, low_power_usb=None, mappings=None, organization=None, profiles=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, description=None, name=None, enabled=None, encryption=None, low_power_usb=None, mappings=None, organization=None, profiles=None): """ VmediaPolicy - a model defined in Swagger """ @@ -84,6 +86,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._description = None self._name = None self._enabled = None @@ -111,6 +114,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if description is not None: self.description = description if name is not None: @@ -158,7 +163,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this VmediaPolicy. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -169,7 +174,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this VmediaPolicy. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -296,7 +301,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this VmediaPolicy. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -307,7 +312,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this VmediaPolicy. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -316,7 +321,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this VmediaPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this VmediaPolicy. :rtype: list[MoTag] @@ -327,7 +332,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this VmediaPolicy. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this VmediaPolicy. :type: list[MoTag] @@ -335,6 +340,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this VmediaPolicy. + The versioning info for this managed object + + :return: The version_context of this VmediaPolicy. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this VmediaPolicy. + The versioning info for this managed object + + :param version_context: The version_context of this VmediaPolicy. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def description(self): """ @@ -385,7 +413,7 @@ def name(self, name): def enabled(self): """ Gets the enabled of this VmediaPolicy. - State of the vMedia service on the endpoint + State of the Virtual Media service on the endpoint :return: The enabled of this VmediaPolicy. :rtype: bool @@ -396,7 +424,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this VmediaPolicy. - State of the vMedia service on the endpoint + State of the Virtual Media service on the endpoint :param enabled: The enabled of this VmediaPolicy. :type: bool @@ -408,7 +436,7 @@ def enabled(self, enabled): def encryption(self): """ Gets the encryption of this VmediaPolicy. - If enabled, allows encryption of all vMedia communications + If enabled, allows encryption of all Virtual Media communications :return: The encryption of this VmediaPolicy. :rtype: bool @@ -419,7 +447,7 @@ def encryption(self): def encryption(self, encryption): """ Sets the encryption of this VmediaPolicy. - If enabled, allows encryption of all vMedia communications + If enabled, allows encryption of all Virtual Media communications :param encryption: The encryption of this VmediaPolicy. :type: bool @@ -431,7 +459,7 @@ def encryption(self, encryption): def low_power_usb(self): """ Gets the low_power_usb of this VmediaPolicy. - Enables Low power USB + If enabled, the virtual drives appear on the boot selection menu after mapping the image and rebooting the host :return: The low_power_usb of this VmediaPolicy. :rtype: bool @@ -442,7 +470,7 @@ def low_power_usb(self): def low_power_usb(self, low_power_usb): """ Sets the low_power_usb of this VmediaPolicy. - Enables Low power USB + If enabled, the virtual drives appear on the boot selection menu after mapping the image and rebooting the host :param low_power_usb: The low_power_usb of this VmediaPolicy. :type: bool @@ -454,7 +482,7 @@ def low_power_usb(self, low_power_usb): def mappings(self): """ Gets the mappings of this VmediaPolicy. - Adds a new vMedia mapping for images + Adds a new Virtual Media mapping for images :return: The mappings of this VmediaPolicy. :rtype: list[VmediaMapping] @@ -465,7 +493,7 @@ def mappings(self): def mappings(self, mappings): """ Sets the mappings of this VmediaPolicy. - Adds a new vMedia mapping for images + Adds a new Virtual Media mapping for images :param mappings: The mappings of this VmediaPolicy. :type: list[VmediaMapping] @@ -480,7 +508,7 @@ def organization(self): Organization :return: The organization of this VmediaPolicy. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._organization @@ -491,7 +519,7 @@ def organization(self, organization): Organization :param organization: The organization of this VmediaPolicy. - :type: MoMoRef + :type: IamAccountRef """ self._organization = organization @@ -503,7 +531,7 @@ def profiles(self): Relationship to the profile object :return: The profiles of this VmediaPolicy. - :rtype: list[MoMoRef] + :rtype: list[PolicyAbstractConfigProfileRef] """ return self._profiles @@ -514,7 +542,7 @@ def profiles(self, profiles): Relationship to the profile object :param profiles: The profiles of this VmediaPolicy. - :type: list[MoMoRef] + :type: list[PolicyAbstractConfigProfileRef] """ self._profiles = profiles diff --git a/intersight/models/vmedia_policy_list.py b/intersight/models/vmedia_policy_list.py index 553c70ca..e392bc15 100644 --- a/intersight/models/vmedia_policy_list.py +++ b/intersight/models/vmedia_policy_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/vmedia_policy_ref.py b/intersight/models/vmedia_policy_ref.py new file mode 100644 index 00000000..7671961b --- /dev/null +++ b/intersight/models/vmedia_policy_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class VmediaPolicyRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + VmediaPolicyRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this VmediaPolicyRef. + + :return: The moid of this VmediaPolicyRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this VmediaPolicyRef. + + :param moid: The moid of this VmediaPolicyRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this VmediaPolicyRef. + + :return: The object_type of this VmediaPolicyRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this VmediaPolicyRef. + + :param object_type: The object_type of this VmediaPolicyRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, VmediaPolicyRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/vmedia_validation_task_ref.py b/intersight/models/vmedia_validation_task_ref.py new file mode 100644 index 00000000..11412090 --- /dev/null +++ b/intersight/models/vmedia_validation_task_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class VmediaValidationTaskRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + VmediaValidationTaskRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this VmediaValidationTaskRef. + + :return: The moid of this VmediaValidationTaskRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this VmediaValidationTaskRef. + + :param moid: The moid of this VmediaValidationTaskRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this VmediaValidationTaskRef. + + :return: The object_type of this VmediaValidationTaskRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this VmediaValidationTaskRef. + + :param object_type: The object_type of this VmediaValidationTaskRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, VmediaValidationTaskRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_build_task_meta.py b/intersight/models/workflow_build_task_meta.py index cf9a2886..dc2b6d38 100644 --- a/intersight/models/workflow_build_task_meta.py +++ b/intersight/models/workflow_build_task_meta.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,15 @@ class WorkflowBuildTaskMeta(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'version_context': 'MoVersionContext', 'name': 'str', 'src': 'str', 'task_list': 'object', @@ -58,7 +58,7 @@ class WorkflowBuildTaskMeta(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', - 'account': 'Account', + 'version_context': 'VersionContext', 'name': 'Name', 'src': 'Src', 'task_list': 'TaskList', @@ -66,7 +66,7 @@ class WorkflowBuildTaskMeta(object): 'workflow_type': 'WorkflowType' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, name=None, src=None, task_list=None, task_type=None, workflow_type=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, name=None, src=None, task_list=None, task_type=None, workflow_type=None): """ WorkflowBuildTaskMeta - a model defined in Swagger """ @@ -80,7 +80,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None - self._account = None + self._version_context = None self._name = None self._src = None self._task_list = None @@ -105,8 +105,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags - if account is not None: - self.account = account + if version_context is not None: + self.version_context = version_context if name is not None: self.name = name if src is not None: @@ -148,7 +148,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this WorkflowBuildTaskMeta. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -159,7 +159,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this WorkflowBuildTaskMeta. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -286,7 +286,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this WorkflowBuildTaskMeta. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -297,7 +297,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this WorkflowBuildTaskMeta. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -306,7 +306,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this WorkflowBuildTaskMeta. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this WorkflowBuildTaskMeta. :rtype: list[MoTag] @@ -317,7 +317,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this WorkflowBuildTaskMeta. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this WorkflowBuildTaskMeta. :type: list[MoTag] @@ -326,25 +326,27 @@ def tags(self, tags): self._tags = tags @property - def account(self): + def version_context(self): """ - Gets the account of this WorkflowBuildTaskMeta. + Gets the version_context of this WorkflowBuildTaskMeta. + The versioning info for this managed object - :return: The account of this WorkflowBuildTaskMeta. - :rtype: MoMoRef + :return: The version_context of this WorkflowBuildTaskMeta. + :rtype: MoVersionContext """ - return self._account + return self._version_context - @account.setter - def account(self, account): + @version_context.setter + def version_context(self, version_context): """ - Sets the account of this WorkflowBuildTaskMeta. + Sets the version_context of this WorkflowBuildTaskMeta. + The versioning info for this managed object - :param account: The account of this WorkflowBuildTaskMeta. - :type: MoMoRef + :param version_context: The version_context of this WorkflowBuildTaskMeta. + :type: MoVersionContext """ - self._account = account + self._version_context = version_context @property def name(self): diff --git a/intersight/models/workflow_build_task_meta_list.py b/intersight/models/workflow_build_task_meta_list.py index 46c61399..44b7d4e9 100644 --- a/intersight/models/workflow_build_task_meta_list.py +++ b/intersight/models/workflow_build_task_meta_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/workflow_build_task_meta_owner.py b/intersight/models/workflow_build_task_meta_owner.py new file mode 100644 index 00000000..f216c929 --- /dev/null +++ b/intersight/models/workflow_build_task_meta_owner.py @@ -0,0 +1,429 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowBuildTaskMetaOwner(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'service': 'str', + 'workflow_types': 'list[str]' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'service': 'Service', + 'workflow_types': 'WorkflowTypes' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, service=None, workflow_types=None): + """ + WorkflowBuildTaskMetaOwner - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._service = None + self._workflow_types = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if service is not None: + self.service = service + if workflow_types is not None: + self.workflow_types = workflow_types + + @property + def account_moid(self): + """ + Gets the account_moid of this WorkflowBuildTaskMetaOwner. + The Account ID for this managed object. + + :return: The account_moid of this WorkflowBuildTaskMetaOwner. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this WorkflowBuildTaskMetaOwner. + The Account ID for this managed object. + + :param account_moid: The account_moid of this WorkflowBuildTaskMetaOwner. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this WorkflowBuildTaskMetaOwner. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this WorkflowBuildTaskMetaOwner. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this WorkflowBuildTaskMetaOwner. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this WorkflowBuildTaskMetaOwner. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this WorkflowBuildTaskMetaOwner. + The time when this managed object was created. + + :return: The create_time of this WorkflowBuildTaskMetaOwner. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this WorkflowBuildTaskMetaOwner. + The time when this managed object was created. + + :param create_time: The create_time of this WorkflowBuildTaskMetaOwner. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this WorkflowBuildTaskMetaOwner. + The time when this managed object was last modified. + + :return: The mod_time of this WorkflowBuildTaskMetaOwner. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this WorkflowBuildTaskMetaOwner. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this WorkflowBuildTaskMetaOwner. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this WorkflowBuildTaskMetaOwner. + A unique identifier of this Managed Object instance. + + :return: The moid of this WorkflowBuildTaskMetaOwner. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowBuildTaskMetaOwner. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this WorkflowBuildTaskMetaOwner. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowBuildTaskMetaOwner. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this WorkflowBuildTaskMetaOwner. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowBuildTaskMetaOwner. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this WorkflowBuildTaskMetaOwner. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this WorkflowBuildTaskMetaOwner. + An array of owners which represent effective ownership of this object. + + :return: The owners of this WorkflowBuildTaskMetaOwner. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this WorkflowBuildTaskMetaOwner. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this WorkflowBuildTaskMetaOwner. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this WorkflowBuildTaskMetaOwner. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this WorkflowBuildTaskMetaOwner. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this WorkflowBuildTaskMetaOwner. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this WorkflowBuildTaskMetaOwner. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this WorkflowBuildTaskMetaOwner. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this WorkflowBuildTaskMetaOwner. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this WorkflowBuildTaskMetaOwner. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this WorkflowBuildTaskMetaOwner. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this WorkflowBuildTaskMetaOwner. + The versioning info for this managed object + + :return: The version_context of this WorkflowBuildTaskMetaOwner. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this WorkflowBuildTaskMetaOwner. + The versioning info for this managed object + + :param version_context: The version_context of this WorkflowBuildTaskMetaOwner. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def service(self): + """ + Gets the service of this WorkflowBuildTaskMetaOwner. + + :return: The service of this WorkflowBuildTaskMetaOwner. + :rtype: str + """ + return self._service + + @service.setter + def service(self, service): + """ + Sets the service of this WorkflowBuildTaskMetaOwner. + + :param service: The service of this WorkflowBuildTaskMetaOwner. + :type: str + """ + + self._service = service + + @property + def workflow_types(self): + """ + Gets the workflow_types of this WorkflowBuildTaskMetaOwner. + + :return: The workflow_types of this WorkflowBuildTaskMetaOwner. + :rtype: list[str] + """ + return self._workflow_types + + @workflow_types.setter + def workflow_types(self, workflow_types): + """ + Sets the workflow_types of this WorkflowBuildTaskMetaOwner. + + :param workflow_types: The workflow_types of this WorkflowBuildTaskMetaOwner. + :type: list[str] + """ + + self._workflow_types = workflow_types + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowBuildTaskMetaOwner): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_build_task_meta_owner_list.py b/intersight/models/workflow_build_task_meta_owner_list.py new file mode 100644 index 00000000..8b9c9390 --- /dev/null +++ b/intersight/models/workflow_build_task_meta_owner_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowBuildTaskMetaOwnerList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[WorkflowBuildTaskMetaOwner]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + WorkflowBuildTaskMetaOwnerList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this WorkflowBuildTaskMetaOwnerList. + The number of workflowBuildTaskMetaOwners matching your request in total for all pages. + + :return: The count of this WorkflowBuildTaskMetaOwnerList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this WorkflowBuildTaskMetaOwnerList. + The number of workflowBuildTaskMetaOwners matching your request in total for all pages. + + :param count: The count of this WorkflowBuildTaskMetaOwnerList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this WorkflowBuildTaskMetaOwnerList. + The array of workflowBuildTaskMetaOwners matching your request. + + :return: The results of this WorkflowBuildTaskMetaOwnerList. + :rtype: list[WorkflowBuildTaskMetaOwner] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this WorkflowBuildTaskMetaOwnerList. + The array of workflowBuildTaskMetaOwners matching your request. + + :param results: The results of this WorkflowBuildTaskMetaOwnerList. + :type: list[WorkflowBuildTaskMetaOwner] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowBuildTaskMetaOwnerList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_build_task_meta_owner_ref.py b/intersight/models/workflow_build_task_meta_owner_ref.py new file mode 100644 index 00000000..ced21e7c --- /dev/null +++ b/intersight/models/workflow_build_task_meta_owner_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowBuildTaskMetaOwnerRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + WorkflowBuildTaskMetaOwnerRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this WorkflowBuildTaskMetaOwnerRef. + + :return: The moid of this WorkflowBuildTaskMetaOwnerRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowBuildTaskMetaOwnerRef. + + :param moid: The moid of this WorkflowBuildTaskMetaOwnerRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowBuildTaskMetaOwnerRef. + + :return: The object_type of this WorkflowBuildTaskMetaOwnerRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowBuildTaskMetaOwnerRef. + + :param object_type: The object_type of this WorkflowBuildTaskMetaOwnerRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowBuildTaskMetaOwnerRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_build_task_meta_ref.py b/intersight/models/workflow_build_task_meta_ref.py new file mode 100644 index 00000000..4d653237 --- /dev/null +++ b/intersight/models/workflow_build_task_meta_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowBuildTaskMetaRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + WorkflowBuildTaskMetaRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this WorkflowBuildTaskMetaRef. + + :return: The moid of this WorkflowBuildTaskMetaRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowBuildTaskMetaRef. + + :param moid: The moid of this WorkflowBuildTaskMetaRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowBuildTaskMetaRef. + + :return: The object_type of this WorkflowBuildTaskMetaRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowBuildTaskMetaRef. + + :param object_type: The object_type of this WorkflowBuildTaskMetaRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowBuildTaskMetaRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_dynamic_workflow_action_task_list.py b/intersight/models/workflow_dynamic_workflow_action_task_list.py new file mode 100644 index 00000000..72d4b305 --- /dev/null +++ b/intersight/models/workflow_dynamic_workflow_action_task_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowDynamicWorkflowActionTaskList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'action': 'str', + 'tasks': 'object' + } + + attribute_map = { + 'action': 'Action', + 'tasks': 'Tasks' + } + + def __init__(self, action=None, tasks=None): + """ + WorkflowDynamicWorkflowActionTaskList - a model defined in Swagger + """ + + self._action = None + self._tasks = None + + if action is not None: + self.action = action + if tasks is not None: + self.tasks = tasks + + @property + def action(self): + """ + Gets the action of this WorkflowDynamicWorkflowActionTaskList. + The action of the Dynamic Workflow + + :return: The action of this WorkflowDynamicWorkflowActionTaskList. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """ + Sets the action of this WorkflowDynamicWorkflowActionTaskList. + The action of the Dynamic Workflow + + :param action: The action of this WorkflowDynamicWorkflowActionTaskList. + :type: str + """ + + self._action = action + + @property + def tasks(self): + """ + Gets the tasks of this WorkflowDynamicWorkflowActionTaskList. + The task list that has precedences as well. + + :return: The tasks of this WorkflowDynamicWorkflowActionTaskList. + :rtype: object + """ + return self._tasks + + @tasks.setter + def tasks(self, tasks): + """ + Sets the tasks of this WorkflowDynamicWorkflowActionTaskList. + The task list that has precedences as well. + + :param tasks: The tasks of this WorkflowDynamicWorkflowActionTaskList. + :type: object + """ + + self._tasks = tasks + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowDynamicWorkflowActionTaskList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_dynamic_workflow_action_task_list_ref.py b/intersight/models/workflow_dynamic_workflow_action_task_list_ref.py new file mode 100644 index 00000000..3ae15659 --- /dev/null +++ b/intersight/models/workflow_dynamic_workflow_action_task_list_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowDynamicWorkflowActionTaskListRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + WorkflowDynamicWorkflowActionTaskListRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this WorkflowDynamicWorkflowActionTaskListRef. + + :return: The moid of this WorkflowDynamicWorkflowActionTaskListRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowDynamicWorkflowActionTaskListRef. + + :param moid: The moid of this WorkflowDynamicWorkflowActionTaskListRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowDynamicWorkflowActionTaskListRef. + + :return: The object_type of this WorkflowDynamicWorkflowActionTaskListRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowDynamicWorkflowActionTaskListRef. + + :param object_type: The object_type of this WorkflowDynamicWorkflowActionTaskListRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowDynamicWorkflowActionTaskListRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_input_definition_ref.py b/intersight/models/workflow_input_definition_ref.py new file mode 100644 index 00000000..9452f3e7 --- /dev/null +++ b/intersight/models/workflow_input_definition_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowInputDefinitionRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + WorkflowInputDefinitionRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this WorkflowInputDefinitionRef. + + :return: The moid of this WorkflowInputDefinitionRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowInputDefinitionRef. + + :param moid: The moid of this WorkflowInputDefinitionRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowInputDefinitionRef. + + :return: The object_type of this WorkflowInputDefinitionRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowInputDefinitionRef. + + :param object_type: The object_type of this WorkflowInputDefinitionRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowInputDefinitionRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_input_parameter_ref.py b/intersight/models/workflow_input_parameter_ref.py new file mode 100644 index 00000000..bc89b8b0 --- /dev/null +++ b/intersight/models/workflow_input_parameter_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowInputParameterRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + WorkflowInputParameterRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this WorkflowInputParameterRef. + + :return: The moid of this WorkflowInputParameterRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowInputParameterRef. + + :param moid: The moid of this WorkflowInputParameterRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowInputParameterRef. + + :return: The object_type of this WorkflowInputParameterRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowInputParameterRef. + + :param object_type: The object_type of this WorkflowInputParameterRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowInputParameterRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_pending_dynamic_workflow_info.py b/intersight/models/workflow_pending_dynamic_workflow_info.py new file mode 100644 index 00000000..58199fef --- /dev/null +++ b/intersight/models/workflow_pending_dynamic_workflow_info.py @@ -0,0 +1,717 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowPendingDynamicWorkflowInfo(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'account_moid': 'str', + 'ancestors': 'list[MoBaseMoRef]', + 'create_time': 'datetime', + 'mod_time': 'datetime', + 'moid': 'str', + 'object_type': 'str', + 'owners': 'list[str]', + 'parent': 'MoBaseMoRef', + 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', + 'input': 'object', + 'name': 'str', + 'pending_services': 'list[str]', + 'src': 'str', + 'status': 'str', + 'wait_on_duplicate': 'bool', + 'workflow_action_task_lists': 'list[WorkflowDynamicWorkflowActionTaskList]', + 'workflow_ctx': 'object', + 'workflow_info': 'WorkflowWorkflowInfoRef', + 'workflow_key': 'str', + 'workflow_meta': 'object' + } + + attribute_map = { + 'account_moid': 'AccountMoid', + 'ancestors': 'Ancestors', + 'create_time': 'CreateTime', + 'mod_time': 'ModTime', + 'moid': 'Moid', + 'object_type': 'ObjectType', + 'owners': 'Owners', + 'parent': 'Parent', + 'tags': 'Tags', + 'version_context': 'VersionContext', + 'account': 'Account', + 'input': 'Input', + 'name': 'Name', + 'pending_services': 'PendingServices', + 'src': 'Src', + 'status': 'Status', + 'wait_on_duplicate': 'WaitOnDuplicate', + 'workflow_action_task_lists': 'WorkflowActionTaskLists', + 'workflow_ctx': 'WorkflowCtx', + 'workflow_info': 'WorkflowInfo', + 'workflow_key': 'WorkflowKey', + 'workflow_meta': 'WorkflowMeta' + } + + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, input=None, name=None, pending_services=None, src=None, status='GatheringTasks', wait_on_duplicate=None, workflow_action_task_lists=None, workflow_ctx=None, workflow_info=None, workflow_key=None, workflow_meta=None): + """ + WorkflowPendingDynamicWorkflowInfo - a model defined in Swagger + """ + + self._account_moid = None + self._ancestors = None + self._create_time = None + self._mod_time = None + self._moid = None + self._object_type = None + self._owners = None + self._parent = None + self._tags = None + self._version_context = None + self._account = None + self._input = None + self._name = None + self._pending_services = None + self._src = None + self._status = None + self._wait_on_duplicate = None + self._workflow_action_task_lists = None + self._workflow_ctx = None + self._workflow_info = None + self._workflow_key = None + self._workflow_meta = None + + if account_moid is not None: + self.account_moid = account_moid + if ancestors is not None: + self.ancestors = ancestors + if create_time is not None: + self.create_time = create_time + if mod_time is not None: + self.mod_time = mod_time + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + if owners is not None: + self.owners = owners + if parent is not None: + self.parent = parent + if tags is not None: + self.tags = tags + if version_context is not None: + self.version_context = version_context + if account is not None: + self.account = account + if input is not None: + self.input = input + if name is not None: + self.name = name + if pending_services is not None: + self.pending_services = pending_services + if src is not None: + self.src = src + if status is not None: + self.status = status + if wait_on_duplicate is not None: + self.wait_on_duplicate = wait_on_duplicate + if workflow_action_task_lists is not None: + self.workflow_action_task_lists = workflow_action_task_lists + if workflow_ctx is not None: + self.workflow_ctx = workflow_ctx + if workflow_info is not None: + self.workflow_info = workflow_info + if workflow_key is not None: + self.workflow_key = workflow_key + if workflow_meta is not None: + self.workflow_meta = workflow_meta + + @property + def account_moid(self): + """ + Gets the account_moid of this WorkflowPendingDynamicWorkflowInfo. + The Account ID for this managed object. + + :return: The account_moid of this WorkflowPendingDynamicWorkflowInfo. + :rtype: str + """ + return self._account_moid + + @account_moid.setter + def account_moid(self, account_moid): + """ + Sets the account_moid of this WorkflowPendingDynamicWorkflowInfo. + The Account ID for this managed object. + + :param account_moid: The account_moid of this WorkflowPendingDynamicWorkflowInfo. + :type: str + """ + + self._account_moid = account_moid + + @property + def ancestors(self): + """ + Gets the ancestors of this WorkflowPendingDynamicWorkflowInfo. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :return: The ancestors of this WorkflowPendingDynamicWorkflowInfo. + :rtype: list[MoBaseMoRef] + """ + return self._ancestors + + @ancestors.setter + def ancestors(self, ancestors): + """ + Sets the ancestors of this WorkflowPendingDynamicWorkflowInfo. + Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. + + :param ancestors: The ancestors of this WorkflowPendingDynamicWorkflowInfo. + :type: list[MoBaseMoRef] + """ + + self._ancestors = ancestors + + @property + def create_time(self): + """ + Gets the create_time of this WorkflowPendingDynamicWorkflowInfo. + The time when this managed object was created. + + :return: The create_time of this WorkflowPendingDynamicWorkflowInfo. + :rtype: datetime + """ + return self._create_time + + @create_time.setter + def create_time(self, create_time): + """ + Sets the create_time of this WorkflowPendingDynamicWorkflowInfo. + The time when this managed object was created. + + :param create_time: The create_time of this WorkflowPendingDynamicWorkflowInfo. + :type: datetime + """ + + self._create_time = create_time + + @property + def mod_time(self): + """ + Gets the mod_time of this WorkflowPendingDynamicWorkflowInfo. + The time when this managed object was last modified. + + :return: The mod_time of this WorkflowPendingDynamicWorkflowInfo. + :rtype: datetime + """ + return self._mod_time + + @mod_time.setter + def mod_time(self, mod_time): + """ + Sets the mod_time of this WorkflowPendingDynamicWorkflowInfo. + The time when this managed object was last modified. + + :param mod_time: The mod_time of this WorkflowPendingDynamicWorkflowInfo. + :type: datetime + """ + + self._mod_time = mod_time + + @property + def moid(self): + """ + Gets the moid of this WorkflowPendingDynamicWorkflowInfo. + A unique identifier of this Managed Object instance. + + :return: The moid of this WorkflowPendingDynamicWorkflowInfo. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowPendingDynamicWorkflowInfo. + A unique identifier of this Managed Object instance. + + :param moid: The moid of this WorkflowPendingDynamicWorkflowInfo. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowPendingDynamicWorkflowInfo. + The fully-qualified type of this managed object, e.g. the class name. + + :return: The object_type of this WorkflowPendingDynamicWorkflowInfo. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowPendingDynamicWorkflowInfo. + The fully-qualified type of this managed object, e.g. the class name. + + :param object_type: The object_type of this WorkflowPendingDynamicWorkflowInfo. + :type: str + """ + + self._object_type = object_type + + @property + def owners(self): + """ + Gets the owners of this WorkflowPendingDynamicWorkflowInfo. + An array of owners which represent effective ownership of this object. + + :return: The owners of this WorkflowPendingDynamicWorkflowInfo. + :rtype: list[str] + """ + return self._owners + + @owners.setter + def owners(self, owners): + """ + Sets the owners of this WorkflowPendingDynamicWorkflowInfo. + An array of owners which represent effective ownership of this object. + + :param owners: The owners of this WorkflowPendingDynamicWorkflowInfo. + :type: list[str] + """ + + self._owners = owners + + @property + def parent(self): + """ + Gets the parent of this WorkflowPendingDynamicWorkflowInfo. + The direct ancestor of this managed object in the containment hierarchy. + + :return: The parent of this WorkflowPendingDynamicWorkflowInfo. + :rtype: MoBaseMoRef + """ + return self._parent + + @parent.setter + def parent(self, parent): + """ + Sets the parent of this WorkflowPendingDynamicWorkflowInfo. + The direct ancestor of this managed object in the containment hierarchy. + + :param parent: The parent of this WorkflowPendingDynamicWorkflowInfo. + :type: MoBaseMoRef + """ + + self._parent = parent + + @property + def tags(self): + """ + Gets the tags of this WorkflowPendingDynamicWorkflowInfo. + An array of tags, which allow to add key, value meta-data to managed objects. + + :return: The tags of this WorkflowPendingDynamicWorkflowInfo. + :rtype: list[MoTag] + """ + return self._tags + + @tags.setter + def tags(self, tags): + """ + Sets the tags of this WorkflowPendingDynamicWorkflowInfo. + An array of tags, which allow to add key, value meta-data to managed objects. + + :param tags: The tags of this WorkflowPendingDynamicWorkflowInfo. + :type: list[MoTag] + """ + + self._tags = tags + + @property + def version_context(self): + """ + Gets the version_context of this WorkflowPendingDynamicWorkflowInfo. + The versioning info for this managed object + + :return: The version_context of this WorkflowPendingDynamicWorkflowInfo. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this WorkflowPendingDynamicWorkflowInfo. + The versioning info for this managed object + + :param version_context: The version_context of this WorkflowPendingDynamicWorkflowInfo. + :type: MoVersionContext + """ + + self._version_context = version_context + + @property + def account(self): + """ + Gets the account of this WorkflowPendingDynamicWorkflowInfo. + An account owns the workflow instance + + :return: The account of this WorkflowPendingDynamicWorkflowInfo. + :rtype: IamAccountRef + """ + return self._account + + @account.setter + def account(self, account): + """ + Sets the account of this WorkflowPendingDynamicWorkflowInfo. + An account owns the workflow instance + + :param account: The account of this WorkflowPendingDynamicWorkflowInfo. + :type: IamAccountRef + """ + + self._account = account + + @property + def input(self): + """ + Gets the input of this WorkflowPendingDynamicWorkflowInfo. + The input of the workflow + + :return: The input of this WorkflowPendingDynamicWorkflowInfo. + :rtype: object + """ + return self._input + + @input.setter + def input(self, input): + """ + Sets the input of this WorkflowPendingDynamicWorkflowInfo. + The input of the workflow + + :param input: The input of this WorkflowPendingDynamicWorkflowInfo. + :type: object + """ + + self._input = input + + @property + def name(self): + """ + Gets the name of this WorkflowPendingDynamicWorkflowInfo. + A name of the workflow + + :return: The name of this WorkflowPendingDynamicWorkflowInfo. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this WorkflowPendingDynamicWorkflowInfo. + A name of the workflow + + :param name: The name of this WorkflowPendingDynamicWorkflowInfo. + :type: str + """ + + self._name = name + + @property + def pending_services(self): + """ + Gets the pending_services of this WorkflowPendingDynamicWorkflowInfo. + The pending services the dynamic workflow is waiting for to return the task list + + :return: The pending_services of this WorkflowPendingDynamicWorkflowInfo. + :rtype: list[str] + """ + return self._pending_services + + @pending_services.setter + def pending_services(self, pending_services): + """ + Sets the pending_services of this WorkflowPendingDynamicWorkflowInfo. + The pending services the dynamic workflow is waiting for to return the task list + + :param pending_services: The pending_services of this WorkflowPendingDynamicWorkflowInfo. + :type: list[str] + """ + + self._pending_services = pending_services + + @property + def src(self): + """ + Gets the src of this WorkflowPendingDynamicWorkflowInfo. + The src is workflow owner service + + :return: The src of this WorkflowPendingDynamicWorkflowInfo. + :rtype: str + """ + return self._src + + @src.setter + def src(self, src): + """ + Sets the src of this WorkflowPendingDynamicWorkflowInfo. + The src is workflow owner service + + :param src: The src of this WorkflowPendingDynamicWorkflowInfo. + :type: str + """ + + self._src = src + + @property + def status(self): + """ + Gets the status of this WorkflowPendingDynamicWorkflowInfo. + The current status of the PendingDynamicWorkflowInfo. + + :return: The status of this WorkflowPendingDynamicWorkflowInfo. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this WorkflowPendingDynamicWorkflowInfo. + The current status of the PendingDynamicWorkflowInfo. + + :param status: The status of this WorkflowPendingDynamicWorkflowInfo. + :type: str + """ + allowed_values = ["GatheringTasks", "Waiting"] + if status not in allowed_values: + raise ValueError( + "Invalid value for `status` ({0}), must be one of {1}" + .format(status, allowed_values) + ) + + self._status = status + + @property + def wait_on_duplicate(self): + """ + Gets the wait_on_duplicate of this WorkflowPendingDynamicWorkflowInfo. + This parameter decides if workflows will wait for a duplicate to finish before starting a new one + + :return: The wait_on_duplicate of this WorkflowPendingDynamicWorkflowInfo. + :rtype: bool + """ + return self._wait_on_duplicate + + @wait_on_duplicate.setter + def wait_on_duplicate(self, wait_on_duplicate): + """ + Sets the wait_on_duplicate of this WorkflowPendingDynamicWorkflowInfo. + This parameter decides if workflows will wait for a duplicate to finish before starting a new one + + :param wait_on_duplicate: The wait_on_duplicate of this WorkflowPendingDynamicWorkflowInfo. + :type: bool + """ + + self._wait_on_duplicate = wait_on_duplicate + + @property + def workflow_action_task_lists(self): + """ + Gets the workflow_action_task_lists of this WorkflowPendingDynamicWorkflowInfo. + The task lists returned by services for building dynamic workflows. There will be an entry for every different workflow action. + + :return: The workflow_action_task_lists of this WorkflowPendingDynamicWorkflowInfo. + :rtype: list[WorkflowDynamicWorkflowActionTaskList] + """ + return self._workflow_action_task_lists + + @workflow_action_task_lists.setter + def workflow_action_task_lists(self, workflow_action_task_lists): + """ + Sets the workflow_action_task_lists of this WorkflowPendingDynamicWorkflowInfo. + The task lists returned by services for building dynamic workflows. There will be an entry for every different workflow action. + + :param workflow_action_task_lists: The workflow_action_task_lists of this WorkflowPendingDynamicWorkflowInfo. + :type: list[WorkflowDynamicWorkflowActionTaskList] + """ + + self._workflow_action_task_lists = workflow_action_task_lists + + @property + def workflow_ctx(self): + """ + Gets the workflow_ctx of this WorkflowPendingDynamicWorkflowInfo. + The workflow's workflow context which contains initiator and target information + + :return: The workflow_ctx of this WorkflowPendingDynamicWorkflowInfo. + :rtype: object + """ + return self._workflow_ctx + + @workflow_ctx.setter + def workflow_ctx(self, workflow_ctx): + """ + Sets the workflow_ctx of this WorkflowPendingDynamicWorkflowInfo. + The workflow's workflow context which contains initiator and target information + + :param workflow_ctx: The workflow_ctx of this WorkflowPendingDynamicWorkflowInfo. + :type: object + """ + + self._workflow_ctx = workflow_ctx + + @property + def workflow_info(self): + """ + Gets the workflow_info of this WorkflowPendingDynamicWorkflowInfo. + + :return: The workflow_info of this WorkflowPendingDynamicWorkflowInfo. + :rtype: WorkflowWorkflowInfoRef + """ + return self._workflow_info + + @workflow_info.setter + def workflow_info(self, workflow_info): + """ + Sets the workflow_info of this WorkflowPendingDynamicWorkflowInfo. + + :param workflow_info: The workflow_info of this WorkflowPendingDynamicWorkflowInfo. + :type: WorkflowWorkflowInfoRef + """ + + self._workflow_info = workflow_info + + @property + def workflow_key(self): + """ + Gets the workflow_key of this WorkflowPendingDynamicWorkflowInfo. + This key contains workflow, initiator and target name. Fusion uses the key to do workflow dedup + + :return: The workflow_key of this WorkflowPendingDynamicWorkflowInfo. + :rtype: str + """ + return self._workflow_key + + @workflow_key.setter + def workflow_key(self, workflow_key): + """ + Sets the workflow_key of this WorkflowPendingDynamicWorkflowInfo. + This key contains workflow, initiator and target name. Fusion uses the key to do workflow dedup + + :param workflow_key: The workflow_key of this WorkflowPendingDynamicWorkflowInfo. + :type: str + """ + + self._workflow_key = workflow_key + + @property + def workflow_meta(self): + """ + Gets the workflow_meta of this WorkflowPendingDynamicWorkflowInfo. + The metadata of the workflow + + :return: The workflow_meta of this WorkflowPendingDynamicWorkflowInfo. + :rtype: object + """ + return self._workflow_meta + + @workflow_meta.setter + def workflow_meta(self, workflow_meta): + """ + Sets the workflow_meta of this WorkflowPendingDynamicWorkflowInfo. + The metadata of the workflow + + :param workflow_meta: The workflow_meta of this WorkflowPendingDynamicWorkflowInfo. + :type: object + """ + + self._workflow_meta = workflow_meta + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowPendingDynamicWorkflowInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_pending_dynamic_workflow_info_list.py b/intersight/models/workflow_pending_dynamic_workflow_info_list.py new file mode 100644 index 00000000..0b5ab76a --- /dev/null +++ b/intersight/models/workflow_pending_dynamic_workflow_info_list.py @@ -0,0 +1,153 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowPendingDynamicWorkflowInfoList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'results': 'list[WorkflowPendingDynamicWorkflowInfo]' + } + + attribute_map = { + 'count': 'Count', + 'results': 'Results' + } + + def __init__(self, count=None, results=None): + """ + WorkflowPendingDynamicWorkflowInfoList - a model defined in Swagger + """ + + self._count = None + self._results = None + + if count is not None: + self.count = count + if results is not None: + self.results = results + + @property + def count(self): + """ + Gets the count of this WorkflowPendingDynamicWorkflowInfoList. + The number of workflowPendingDynamicWorkflowInfos matching your request in total for all pages. + + :return: The count of this WorkflowPendingDynamicWorkflowInfoList. + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """ + Sets the count of this WorkflowPendingDynamicWorkflowInfoList. + The number of workflowPendingDynamicWorkflowInfos matching your request in total for all pages. + + :param count: The count of this WorkflowPendingDynamicWorkflowInfoList. + :type: int + """ + + self._count = count + + @property + def results(self): + """ + Gets the results of this WorkflowPendingDynamicWorkflowInfoList. + The array of workflowPendingDynamicWorkflowInfos matching your request. + + :return: The results of this WorkflowPendingDynamicWorkflowInfoList. + :rtype: list[WorkflowPendingDynamicWorkflowInfo] + """ + return self._results + + @results.setter + def results(self, results): + """ + Sets the results of this WorkflowPendingDynamicWorkflowInfoList. + The array of workflowPendingDynamicWorkflowInfos matching your request. + + :param results: The results of this WorkflowPendingDynamicWorkflowInfoList. + :type: list[WorkflowPendingDynamicWorkflowInfo] + """ + + self._results = results + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowPendingDynamicWorkflowInfoList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_pending_dynamic_workflow_info_ref.py b/intersight/models/workflow_pending_dynamic_workflow_info_ref.py new file mode 100644 index 00000000..cf6a47a0 --- /dev/null +++ b/intersight/models/workflow_pending_dynamic_workflow_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowPendingDynamicWorkflowInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + WorkflowPendingDynamicWorkflowInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this WorkflowPendingDynamicWorkflowInfoRef. + + :return: The moid of this WorkflowPendingDynamicWorkflowInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowPendingDynamicWorkflowInfoRef. + + :param moid: The moid of this WorkflowPendingDynamicWorkflowInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowPendingDynamicWorkflowInfoRef. + + :return: The object_type of this WorkflowPendingDynamicWorkflowInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowPendingDynamicWorkflowInfoRef. + + :param object_type: The object_type of this WorkflowPendingDynamicWorkflowInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowPendingDynamicWorkflowInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_task_info.py b/intersight/models/workflow_task_info.py index 076f1a0a..daf91717 100644 --- a/intersight/models/workflow_task_info.py +++ b/intersight/models/workflow_task_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,19 +32,21 @@ class WorkflowTaskInfo(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', + 'version_context': 'MoVersionContext', 'descr': 'str', 'end_time': 'datetime', 'failure_reason': 'str', 'input': 'object', 'inst_id': 'str', + 'internal': 'bool', 'name': 'str', 'output': 'object', 'ref_name': 'str', @@ -52,7 +54,7 @@ class WorkflowTaskInfo(object): 'start_time': 'datetime', 'status': 'str', 'task_inst_id_list': 'list[WorkflowTaskRetryInfo]', - 'workflow_info': 'MoMoRef' + 'workflow_info': 'WorkflowWorkflowInfoRef' } attribute_map = { @@ -65,11 +67,13 @@ class WorkflowTaskInfo(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'descr': 'Descr', 'end_time': 'EndTime', 'failure_reason': 'FailureReason', 'input': 'Input', 'inst_id': 'InstId', + 'internal': 'Internal', 'name': 'Name', 'output': 'Output', 'ref_name': 'RefName', @@ -80,7 +84,7 @@ class WorkflowTaskInfo(object): 'workflow_info': 'WorkflowInfo' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, descr=None, end_time=None, failure_reason=None, input=None, inst_id=None, name=None, output=None, ref_name=None, retry_count=None, start_time=None, status=None, task_inst_id_list=None, workflow_info=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, descr=None, end_time=None, failure_reason=None, input=None, inst_id=None, internal=None, name=None, output=None, ref_name=None, retry_count=None, start_time=None, status=None, task_inst_id_list=None, workflow_info=None): """ WorkflowTaskInfo - a model defined in Swagger """ @@ -94,11 +98,13 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._descr = None self._end_time = None self._failure_reason = None self._input = None self._inst_id = None + self._internal = None self._name = None self._output = None self._ref_name = None @@ -126,6 +132,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if descr is not None: self.descr = descr if end_time is not None: @@ -136,6 +144,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.input = input if inst_id is not None: self.inst_id = inst_id + if internal is not None: + self.internal = internal if name is not None: self.name = name if output is not None: @@ -183,7 +193,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this WorkflowTaskInfo. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -194,7 +204,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this WorkflowTaskInfo. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -321,7 +331,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this WorkflowTaskInfo. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -332,7 +342,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this WorkflowTaskInfo. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -341,7 +351,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this WorkflowTaskInfo. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this WorkflowTaskInfo. :rtype: list[MoTag] @@ -352,7 +362,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this WorkflowTaskInfo. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this WorkflowTaskInfo. :type: list[MoTag] @@ -360,6 +370,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this WorkflowTaskInfo. + The versioning info for this managed object + + :return: The version_context of this WorkflowTaskInfo. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this WorkflowTaskInfo. + The versioning info for this managed object + + :param version_context: The version_context of this WorkflowTaskInfo. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def descr(self): """ @@ -475,6 +508,29 @@ def inst_id(self, inst_id): self._inst_id = inst_id + @property + def internal(self): + """ + Gets the internal of this WorkflowTaskInfo. + Denotes whether or not this is an internal task. Internal tasks will be hidden from the UI within a workflow. + + :return: The internal of this WorkflowTaskInfo. + :rtype: bool + """ + return self._internal + + @internal.setter + def internal(self, internal): + """ + Sets the internal of this WorkflowTaskInfo. + Denotes whether or not this is an internal task. Internal tasks will be hidden from the UI within a workflow. + + :param internal: The internal of this WorkflowTaskInfo. + :type: bool + """ + + self._internal = internal + @property def name(self): """ @@ -640,7 +696,7 @@ def workflow_info(self): Gets the workflow_info of this WorkflowTaskInfo. :return: The workflow_info of this WorkflowTaskInfo. - :rtype: MoMoRef + :rtype: WorkflowWorkflowInfoRef """ return self._workflow_info @@ -650,7 +706,7 @@ def workflow_info(self, workflow_info): Sets the workflow_info of this WorkflowTaskInfo. :param workflow_info: The workflow_info of this WorkflowTaskInfo. - :type: MoMoRef + :type: WorkflowWorkflowInfoRef """ self._workflow_info = workflow_info diff --git a/intersight/models/workflow_task_info_list.py b/intersight/models/workflow_task_info_list.py index 9336b03c..aaa46afb 100644 --- a/intersight/models/workflow_task_info_list.py +++ b/intersight/models/workflow_task_info_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/workflow_task_info_ref.py b/intersight/models/workflow_task_info_ref.py new file mode 100644 index 00000000..9081421c --- /dev/null +++ b/intersight/models/workflow_task_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowTaskInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + WorkflowTaskInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this WorkflowTaskInfoRef. + + :return: The moid of this WorkflowTaskInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowTaskInfoRef. + + :param moid: The moid of this WorkflowTaskInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowTaskInfoRef. + + :return: The object_type of this WorkflowTaskInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowTaskInfoRef. + + :param object_type: The object_type of this WorkflowTaskInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowTaskInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_task_meta.py b/intersight/models/workflow_task_meta.py index 1556b55f..b46bff74 100644 --- a/intersight/models/workflow_task_meta.py +++ b/intersight/models/workflow_task_meta.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,18 +32,19 @@ class WorkflowTaskMeta(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'version_context': 'MoVersionContext', 'action_type': 'str', 'description': 'str', 'input_keys': 'list[str]', + 'internal': 'bool', 'name': 'str', 'output_keys': 'list[str]', 'response_timeout_sec': 'int', @@ -65,10 +66,11 @@ class WorkflowTaskMeta(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', - 'account': 'Account', + 'version_context': 'VersionContext', 'action_type': 'ActionType', 'description': 'Description', 'input_keys': 'InputKeys', + 'internal': 'Internal', 'name': 'Name', 'output_keys': 'OutputKeys', 'response_timeout_sec': 'ResponseTimeoutSec', @@ -80,7 +82,7 @@ class WorkflowTaskMeta(object): 'timeout_sec': 'TimeoutSec' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, action_type=None, description=None, input_keys=None, name=None, output_keys=None, response_timeout_sec=None, retry_count=None, retry_delay_sec=None, retry_logic=None, src=None, timeout_policy=None, timeout_sec=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, action_type=None, description=None, input_keys=None, internal=None, name=None, output_keys=None, response_timeout_sec=None, retry_count=None, retry_delay_sec=None, retry_logic=None, src=None, timeout_policy=None, timeout_sec=None): """ WorkflowTaskMeta - a model defined in Swagger """ @@ -94,10 +96,11 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None - self._account = None + self._version_context = None self._action_type = None self._description = None self._input_keys = None + self._internal = None self._name = None self._output_keys = None self._response_timeout_sec = None @@ -126,14 +129,16 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags - if account is not None: - self.account = account + if version_context is not None: + self.version_context = version_context if action_type is not None: self.action_type = action_type if description is not None: self.description = description if input_keys is not None: self.input_keys = input_keys + if internal is not None: + self.internal = internal if name is not None: self.name = name if output_keys is not None: @@ -183,7 +188,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this WorkflowTaskMeta. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -194,7 +199,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this WorkflowTaskMeta. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -321,7 +326,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this WorkflowTaskMeta. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -332,7 +337,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this WorkflowTaskMeta. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -341,7 +346,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this WorkflowTaskMeta. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this WorkflowTaskMeta. :rtype: list[MoTag] @@ -352,7 +357,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this WorkflowTaskMeta. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this WorkflowTaskMeta. :type: list[MoTag] @@ -361,25 +366,27 @@ def tags(self, tags): self._tags = tags @property - def account(self): + def version_context(self): """ - Gets the account of this WorkflowTaskMeta. + Gets the version_context of this WorkflowTaskMeta. + The versioning info for this managed object - :return: The account of this WorkflowTaskMeta. - :rtype: MoMoRef + :return: The version_context of this WorkflowTaskMeta. + :rtype: MoVersionContext """ - return self._account + return self._version_context - @account.setter - def account(self, account): + @version_context.setter + def version_context(self, version_context): """ - Sets the account of this WorkflowTaskMeta. + Sets the version_context of this WorkflowTaskMeta. + The versioning info for this managed object - :param account: The account of this WorkflowTaskMeta. - :type: MoMoRef + :param version_context: The version_context of this WorkflowTaskMeta. + :type: MoVersionContext """ - self._account = account + self._version_context = version_context @property def action_type(self): @@ -450,6 +457,29 @@ def input_keys(self, input_keys): self._input_keys = input_keys + @property + def internal(self): + """ + Gets the internal of this WorkflowTaskMeta. + Denotes whether or not this is an internal task. Internal tasks will be hidden from the UI within a workflow. + + :return: The internal of this WorkflowTaskMeta. + :rtype: bool + """ + return self._internal + + @internal.setter + def internal(self, internal): + """ + Sets the internal of this WorkflowTaskMeta. + Denotes whether or not this is an internal task. Internal tasks will be hidden from the UI within a workflow. + + :param internal: The internal of this WorkflowTaskMeta. + :type: bool + """ + + self._internal = internal + @property def name(self): """ diff --git a/intersight/models/workflow_task_meta_list.py b/intersight/models/workflow_task_meta_list.py index 3f9d942d..c3a5e12b 100644 --- a/intersight/models/workflow_task_meta_list.py +++ b/intersight/models/workflow_task_meta_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/workflow_task_meta_ref.py b/intersight/models/workflow_task_meta_ref.py new file mode 100644 index 00000000..09abfacb --- /dev/null +++ b/intersight/models/workflow_task_meta_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowTaskMetaRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + WorkflowTaskMetaRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this WorkflowTaskMetaRef. + + :return: The moid of this WorkflowTaskMetaRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowTaskMetaRef. + + :param moid: The moid of this WorkflowTaskMetaRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowTaskMetaRef. + + :return: The object_type of this WorkflowTaskMetaRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowTaskMetaRef. + + :param object_type: The object_type of this WorkflowTaskMetaRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowTaskMetaRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_task_retry_info.py b/intersight/models/workflow_task_retry_info.py index 79565620..8255860a 100644 --- a/intersight/models/workflow_task_retry_info.py +++ b/intersight/models/workflow_task_retry_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/workflow_task_retry_info_ref.py b/intersight/models/workflow_task_retry_info_ref.py new file mode 100644 index 00000000..2c8e6318 --- /dev/null +++ b/intersight/models/workflow_task_retry_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowTaskRetryInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + WorkflowTaskRetryInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this WorkflowTaskRetryInfoRef. + + :return: The moid of this WorkflowTaskRetryInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowTaskRetryInfoRef. + + :param moid: The moid of this WorkflowTaskRetryInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowTaskRetryInfoRef. + + :return: The object_type of this WorkflowTaskRetryInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowTaskRetryInfoRef. + + :param object_type: The object_type of this WorkflowTaskRetryInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowTaskRetryInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_workflow_info.py b/intersight/models/workflow_workflow_info.py index 32e3be66..f683dcd0 100644 --- a/intersight/models/workflow_workflow_info.py +++ b/intersight/models/workflow_workflow_info.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,29 +32,36 @@ class WorkflowWorkflowInfo(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', + 'action': 'str', + 'dynamic': 'bool', 'end_time': 'datetime', 'input': 'object', 'inst_id': 'str', - 'meta_version': 'str', + 'internal': 'bool', + 'meta_version': 'int', 'name': 'str', 'output': 'object', + 'pending_dynamic_workflow_info': 'WorkflowPendingDynamicWorkflowInfoRef', 'progress': 'float', + 'src': 'str', 'start_time': 'datetime', 'status': 'str', - 'task_infos': 'list[MoMoRef]', + 'task_infos': 'list[WorkflowTaskInfoRef]', 'type': 'str', 'user_id': 'str', 'workflow_ctx': 'object', 'workflow_key': 'str', + 'workflow_meta_type': 'str', 'workflow_task_count': 'int' } @@ -68,14 +75,20 @@ class WorkflowWorkflowInfo(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account': 'Account', + 'action': 'Action', + 'dynamic': 'Dynamic', 'end_time': 'EndTime', 'input': 'Input', 'inst_id': 'InstId', + 'internal': 'Internal', 'meta_version': 'MetaVersion', 'name': 'Name', 'output': 'Output', + 'pending_dynamic_workflow_info': 'PendingDynamicWorkflowInfo', 'progress': 'Progress', + 'src': 'Src', 'start_time': 'StartTime', 'status': 'Status', 'task_infos': 'TaskInfos', @@ -83,10 +96,11 @@ class WorkflowWorkflowInfo(object): 'user_id': 'UserId', 'workflow_ctx': 'WorkflowCtx', 'workflow_key': 'WorkflowKey', + 'workflow_meta_type': 'WorkflowMetaType', 'workflow_task_count': 'WorkflowTaskCount' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, end_time=None, input=None, inst_id=None, meta_version=None, name=None, output=None, progress=None, start_time=None, status=None, task_infos=None, type=None, user_id=None, workflow_ctx=None, workflow_key=None, workflow_task_count=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, action='Start', dynamic=None, end_time=None, input=None, inst_id=None, internal=None, meta_version=None, name=None, output=None, pending_dynamic_workflow_info=None, progress=None, src=None, start_time=None, status=None, task_infos=None, type=None, user_id=None, workflow_ctx=None, workflow_key=None, workflow_meta_type='SystemDefined', workflow_task_count=None): """ WorkflowWorkflowInfo - a model defined in Swagger """ @@ -100,14 +114,20 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account = None + self._action = None + self._dynamic = None self._end_time = None self._input = None self._inst_id = None + self._internal = None self._meta_version = None self._name = None self._output = None + self._pending_dynamic_workflow_info = None self._progress = None + self._src = None self._start_time = None self._status = None self._task_infos = None @@ -115,6 +135,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._user_id = None self._workflow_ctx = None self._workflow_key = None + self._workflow_meta_type = None self._workflow_task_count = None if account_moid is not None: @@ -135,22 +156,34 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account is not None: self.account = account + if action is not None: + self.action = action + if dynamic is not None: + self.dynamic = dynamic if end_time is not None: self.end_time = end_time if input is not None: self.input = input if inst_id is not None: self.inst_id = inst_id + if internal is not None: + self.internal = internal if meta_version is not None: self.meta_version = meta_version if name is not None: self.name = name if output is not None: self.output = output + if pending_dynamic_workflow_info is not None: + self.pending_dynamic_workflow_info = pending_dynamic_workflow_info if progress is not None: self.progress = progress + if src is not None: + self.src = src if start_time is not None: self.start_time = start_time if status is not None: @@ -165,6 +198,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.workflow_ctx = workflow_ctx if workflow_key is not None: self.workflow_key = workflow_key + if workflow_meta_type is not None: + self.workflow_meta_type = workflow_meta_type if workflow_task_count is not None: self.workflow_task_count = workflow_task_count @@ -198,7 +233,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this WorkflowWorkflowInfo. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -209,7 +244,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this WorkflowWorkflowInfo. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -336,7 +371,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this WorkflowWorkflowInfo. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -347,7 +382,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this WorkflowWorkflowInfo. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -356,7 +391,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this WorkflowWorkflowInfo. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this WorkflowWorkflowInfo. :rtype: list[MoTag] @@ -367,7 +402,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this WorkflowWorkflowInfo. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this WorkflowWorkflowInfo. :type: list[MoTag] @@ -375,14 +410,37 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this WorkflowWorkflowInfo. + The versioning info for this managed object + + :return: The version_context of this WorkflowWorkflowInfo. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this WorkflowWorkflowInfo. + The versioning info for this managed object + + :param version_context: The version_context of this WorkflowWorkflowInfo. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def account(self): """ Gets the account of this WorkflowWorkflowInfo. - An account owns the workflow instatnce + An account owns the workflow instance :return: The account of this WorkflowWorkflowInfo. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -390,14 +448,66 @@ def account(self): def account(self, account): """ Sets the account of this WorkflowWorkflowInfo. - An account owns the workflow instatnce + An account owns the workflow instance :param account: The account of this WorkflowWorkflowInfo. - :type: MoMoRef + :type: IamAccountRef """ self._account = account + @property + def action(self): + """ + Gets the action of this WorkflowWorkflowInfo. + The action of the workflow such as start, cancel, retry, pause + + :return: The action of this WorkflowWorkflowInfo. + :rtype: str + """ + return self._action + + @action.setter + def action(self, action): + """ + Sets the action of this WorkflowWorkflowInfo. + The action of the workflow such as start, cancel, retry, pause + + :param action: The action of this WorkflowWorkflowInfo. + :type: str + """ + allowed_values = ["Start", "Pause", "Resume", "Retry", "Cancel"] + if action not in allowed_values: + raise ValueError( + "Invalid value for `action` ({0}), must be one of {1}" + .format(action, allowed_values) + ) + + self._action = action + + @property + def dynamic(self): + """ + Gets the dynamic of this WorkflowWorkflowInfo. + Denotes if this WorkflowInfo is for a dynamic workflow + + :return: The dynamic of this WorkflowWorkflowInfo. + :rtype: bool + """ + return self._dynamic + + @dynamic.setter + def dynamic(self, dynamic): + """ + Sets the dynamic of this WorkflowWorkflowInfo. + Denotes if this WorkflowInfo is for a dynamic workflow + + :param dynamic: The dynamic of this WorkflowWorkflowInfo. + :type: bool + """ + + self._dynamic = dynamic + @property def end_time(self): """ @@ -467,6 +577,29 @@ def inst_id(self, inst_id): self._inst_id = inst_id + @property + def internal(self): + """ + Gets the internal of this WorkflowWorkflowInfo. + Denotes if this workflow is internal and should be hidden from user view + + :return: The internal of this WorkflowWorkflowInfo. + :rtype: bool + """ + return self._internal + + @internal.setter + def internal(self, internal): + """ + Sets the internal of this WorkflowWorkflowInfo. + Denotes if this workflow is internal and should be hidden from user view + + :param internal: The internal of this WorkflowWorkflowInfo. + :type: bool + """ + + self._internal = internal + @property def meta_version(self): """ @@ -474,7 +607,7 @@ def meta_version(self): This is version of the workflow metadata :return: The meta_version of this WorkflowWorkflowInfo. - :rtype: str + :rtype: int """ return self._meta_version @@ -485,7 +618,7 @@ def meta_version(self, meta_version): This is version of the workflow metadata :param meta_version: The meta_version of this WorkflowWorkflowInfo. - :type: str + :type: int """ self._meta_version = meta_version @@ -536,11 +669,32 @@ def output(self, output): self._output = output + @property + def pending_dynamic_workflow_info(self): + """ + Gets the pending_dynamic_workflow_info of this WorkflowWorkflowInfo. + + :return: The pending_dynamic_workflow_info of this WorkflowWorkflowInfo. + :rtype: WorkflowPendingDynamicWorkflowInfoRef + """ + return self._pending_dynamic_workflow_info + + @pending_dynamic_workflow_info.setter + def pending_dynamic_workflow_info(self, pending_dynamic_workflow_info): + """ + Sets the pending_dynamic_workflow_info of this WorkflowWorkflowInfo. + + :param pending_dynamic_workflow_info: The pending_dynamic_workflow_info of this WorkflowWorkflowInfo. + :type: WorkflowPendingDynamicWorkflowInfoRef + """ + + self._pending_dynamic_workflow_info = pending_dynamic_workflow_info + @property def progress(self): """ Gets the progress of this WorkflowWorkflowInfo. - This field indicates percetage of workflow task execution + This field indicates percetage of workflow task execution :return: The progress of this WorkflowWorkflowInfo. :rtype: float @@ -551,7 +705,7 @@ def progress(self): def progress(self, progress): """ Sets the progress of this WorkflowWorkflowInfo. - This field indicates percetage of workflow task execution + This field indicates percetage of workflow task execution :param progress: The progress of this WorkflowWorkflowInfo. :type: float @@ -559,6 +713,29 @@ def progress(self, progress): self._progress = progress + @property + def src(self): + """ + Gets the src of this WorkflowWorkflowInfo. + The source microservice name + + :return: The src of this WorkflowWorkflowInfo. + :rtype: str + """ + return self._src + + @src.setter + def src(self, src): + """ + Sets the src of this WorkflowWorkflowInfo. + The source microservice name + + :param src: The src of this WorkflowWorkflowInfo. + :type: str + """ + + self._src = src + @property def start_time(self): """ @@ -611,7 +788,7 @@ def task_infos(self): Gets the task_infos of this WorkflowWorkflowInfo. :return: The task_infos of this WorkflowWorkflowInfo. - :rtype: list[MoMoRef] + :rtype: list[WorkflowTaskInfoRef] """ return self._task_infos @@ -621,7 +798,7 @@ def task_infos(self, task_infos): Sets the task_infos of this WorkflowWorkflowInfo. :param task_infos: The task_infos of this WorkflowWorkflowInfo. - :type: list[MoMoRef] + :type: list[WorkflowTaskInfoRef] """ self._task_infos = task_infos @@ -716,6 +893,35 @@ def workflow_key(self, workflow_key): self._workflow_key = workflow_key + @property + def workflow_meta_type(self): + """ + Gets the workflow_meta_type of this WorkflowWorkflowInfo. + The type of workflow met. This is derived from the workflow meta this WorkflowInfo refers to + + :return: The workflow_meta_type of this WorkflowWorkflowInfo. + :rtype: str + """ + return self._workflow_meta_type + + @workflow_meta_type.setter + def workflow_meta_type(self, workflow_meta_type): + """ + Sets the workflow_meta_type of this WorkflowWorkflowInfo. + The type of workflow met. This is derived from the workflow meta this WorkflowInfo refers to + + :param workflow_meta_type: The workflow_meta_type of this WorkflowWorkflowInfo. + :type: str + """ + allowed_values = ["SystemDefined", "UserDefined", "Dynamic"] + if workflow_meta_type not in allowed_values: + raise ValueError( + "Invalid value for `workflow_meta_type` ({0}), must be one of {1}" + .format(workflow_meta_type, allowed_values) + ) + + self._workflow_meta_type = workflow_meta_type + @property def workflow_task_count(self): """ diff --git a/intersight/models/workflow_workflow_info_list.py b/intersight/models/workflow_workflow_info_list.py index 0c5cbf49..eeef6dc6 100644 --- a/intersight/models/workflow_workflow_info_list.py +++ b/intersight/models/workflow_workflow_info_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/workflow_workflow_info_ref.py b/intersight/models/workflow_workflow_info_ref.py new file mode 100644 index 00000000..ffac276e --- /dev/null +++ b/intersight/models/workflow_workflow_info_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowWorkflowInfoRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + WorkflowWorkflowInfoRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this WorkflowWorkflowInfoRef. + + :return: The moid of this WorkflowWorkflowInfoRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowWorkflowInfoRef. + + :param moid: The moid of this WorkflowWorkflowInfoRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowWorkflowInfoRef. + + :return: The object_type of this WorkflowWorkflowInfoRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowWorkflowInfoRef. + + :param object_type: The object_type of this WorkflowWorkflowInfoRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowWorkflowInfoRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/models/workflow_workflow_meta.py b/intersight/models/workflow_workflow_meta.py index 84516d16..904e2509 100644 --- a/intersight/models/workflow_workflow_meta.py +++ b/intersight/models/workflow_workflow_meta.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ @@ -32,15 +32,16 @@ class WorkflowWorkflowMeta(object): """ swagger_types = { 'account_moid': 'str', - 'ancestors': 'list[MoMoRef]', + 'ancestors': 'list[MoBaseMoRef]', 'create_time': 'datetime', 'mod_time': 'datetime', 'moid': 'str', 'object_type': 'str', 'owners': 'list[str]', - 'parent': 'MoMoRef', + 'parent': 'MoBaseMoRef', 'tags': 'list[MoTag]', - 'account': 'MoMoRef', + 'version_context': 'MoVersionContext', + 'account': 'IamAccountRef', 'description': 'str', 'input_parameters': 'list[str]', 'name': 'str', @@ -48,8 +49,9 @@ class WorkflowWorkflowMeta(object): 'schema_version': 'int', 'src': 'str', 'tasks': 'object', + 'type': 'str', 'version': 'int', - 'workflow_tasks': 'list[MoMoRef]' + 'wait_on_duplicate': 'bool' } attribute_map = { @@ -62,6 +64,7 @@ class WorkflowWorkflowMeta(object): 'owners': 'Owners', 'parent': 'Parent', 'tags': 'Tags', + 'version_context': 'VersionContext', 'account': 'Account', 'description': 'Description', 'input_parameters': 'InputParameters', @@ -70,11 +73,12 @@ class WorkflowWorkflowMeta(object): 'schema_version': 'SchemaVersion', 'src': 'Src', 'tasks': 'Tasks', + 'type': 'Type', 'version': 'Version', - 'workflow_tasks': 'WorkflowTasks' + 'wait_on_duplicate': 'WaitOnDuplicate' } - def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, account=None, description=None, input_parameters=None, name=None, output_parameters=None, schema_version=None, src=None, tasks=None, version=None, workflow_tasks=None): + def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time=None, moid=None, object_type=None, owners=None, parent=None, tags=None, version_context=None, account=None, description=None, input_parameters=None, name=None, output_parameters=None, schema_version=None, src=None, tasks=None, type='SystemDefined', version=None, wait_on_duplicate=None): """ WorkflowWorkflowMeta - a model defined in Swagger """ @@ -88,6 +92,7 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._owners = None self._parent = None self._tags = None + self._version_context = None self._account = None self._description = None self._input_parameters = None @@ -96,8 +101,9 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self._schema_version = None self._src = None self._tasks = None + self._type = None self._version = None - self._workflow_tasks = None + self._wait_on_duplicate = None if account_moid is not None: self.account_moid = account_moid @@ -117,6 +123,8 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.parent = parent if tags is not None: self.tags = tags + if version_context is not None: + self.version_context = version_context if account is not None: self.account = account if description is not None: @@ -133,10 +141,12 @@ def __init__(self, account_moid=None, ancestors=None, create_time=None, mod_time self.src = src if tasks is not None: self.tasks = tasks + if type is not None: + self.type = type if version is not None: self.version = version - if workflow_tasks is not None: - self.workflow_tasks = workflow_tasks + if wait_on_duplicate is not None: + self.wait_on_duplicate = wait_on_duplicate @property def account_moid(self): @@ -168,7 +178,7 @@ def ancestors(self): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :return: The ancestors of this WorkflowWorkflowMeta. - :rtype: list[MoMoRef] + :rtype: list[MoBaseMoRef] """ return self._ancestors @@ -179,7 +189,7 @@ def ancestors(self, ancestors): Ancestors is an array containing the MO references of the ancestors in the object containment hierarchy. :param ancestors: The ancestors of this WorkflowWorkflowMeta. - :type: list[MoMoRef] + :type: list[MoBaseMoRef] """ self._ancestors = ancestors @@ -306,7 +316,7 @@ def parent(self): The direct ancestor of this managed object in the containment hierarchy. :return: The parent of this WorkflowWorkflowMeta. - :rtype: MoMoRef + :rtype: MoBaseMoRef """ return self._parent @@ -317,7 +327,7 @@ def parent(self, parent): The direct ancestor of this managed object in the containment hierarchy. :param parent: The parent of this WorkflowWorkflowMeta. - :type: MoMoRef + :type: MoBaseMoRef """ self._parent = parent @@ -326,7 +336,7 @@ def parent(self, parent): def tags(self): """ Gets the tags of this WorkflowWorkflowMeta. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :return: The tags of this WorkflowWorkflowMeta. :rtype: list[MoTag] @@ -337,7 +347,7 @@ def tags(self): def tags(self, tags): """ Sets the tags of this WorkflowWorkflowMeta. - An array of tags, which allow to add key, value meta-data to managed objects. + An array of tags, which allow to add key, value meta-data to managed objects. :param tags: The tags of this WorkflowWorkflowMeta. :type: list[MoTag] @@ -345,6 +355,29 @@ def tags(self, tags): self._tags = tags + @property + def version_context(self): + """ + Gets the version_context of this WorkflowWorkflowMeta. + The versioning info for this managed object + + :return: The version_context of this WorkflowWorkflowMeta. + :rtype: MoVersionContext + """ + return self._version_context + + @version_context.setter + def version_context(self, version_context): + """ + Sets the version_context of this WorkflowWorkflowMeta. + The versioning info for this managed object + + :param version_context: The version_context of this WorkflowWorkflowMeta. + :type: MoVersionContext + """ + + self._version_context = version_context + @property def account(self): """ @@ -352,7 +385,7 @@ def account(self): The account creates the workflow meta :return: The account of this WorkflowWorkflowMeta. - :rtype: MoMoRef + :rtype: IamAccountRef """ return self._account @@ -363,7 +396,7 @@ def account(self, account): The account creates the workflow meta :param account: The account of this WorkflowWorkflowMeta. - :type: MoMoRef + :type: IamAccountRef """ self._account = account @@ -529,11 +562,40 @@ def tasks(self, tasks): self._tasks = tasks + @property + def type(self): + """ + Gets the type of this WorkflowWorkflowMeta. + The type of workflow + + :return: The type of this WorkflowWorkflowMeta. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this WorkflowWorkflowMeta. + The type of workflow + + :param type: The type of this WorkflowWorkflowMeta. + :type: str + """ + allowed_values = ["SystemDefined", "UserDefined", "Dynamic"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" + .format(type, allowed_values) + ) + + self._type = type + @property def version(self): """ Gets the version of this WorkflowWorkflowMeta. - The workflow version which indicate the workflow meta changes + The workflow version which indicate the workflow meta changes :return: The version of this WorkflowWorkflowMeta. :rtype: int @@ -544,7 +606,7 @@ def version(self): def version(self, version): """ Sets the version of this WorkflowWorkflowMeta. - The workflow version which indicate the workflow meta changes + The workflow version which indicate the workflow meta changes :param version: The version of this WorkflowWorkflowMeta. :type: int @@ -553,27 +615,27 @@ def version(self, version): self._version = version @property - def workflow_tasks(self): + def wait_on_duplicate(self): """ - Gets the workflow_tasks of this WorkflowWorkflowMeta. - The list of tasks contained inside the workflow + Gets the wait_on_duplicate of this WorkflowWorkflowMeta. + This parameter decides if workflows will wait for a duplicate to finish before starting a new one - :return: The workflow_tasks of this WorkflowWorkflowMeta. - :rtype: list[MoMoRef] + :return: The wait_on_duplicate of this WorkflowWorkflowMeta. + :rtype: bool """ - return self._workflow_tasks + return self._wait_on_duplicate - @workflow_tasks.setter - def workflow_tasks(self, workflow_tasks): + @wait_on_duplicate.setter + def wait_on_duplicate(self, wait_on_duplicate): """ - Sets the workflow_tasks of this WorkflowWorkflowMeta. - The list of tasks contained inside the workflow + Sets the wait_on_duplicate of this WorkflowWorkflowMeta. + This parameter decides if workflows will wait for a duplicate to finish before starting a new one - :param workflow_tasks: The workflow_tasks of this WorkflowWorkflowMeta. - :type: list[MoMoRef] + :param wait_on_duplicate: The wait_on_duplicate of this WorkflowWorkflowMeta. + :type: bool """ - self._workflow_tasks = workflow_tasks + self._wait_on_duplicate = wait_on_duplicate def to_dict(self): """ diff --git a/intersight/models/workflow_workflow_meta_list.py b/intersight/models/workflow_workflow_meta_list.py index ac949e2c..f7816dbf 100644 --- a/intersight/models/workflow_workflow_meta_list.py +++ b/intersight/models/workflow_workflow_meta_list.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/intersight/models/workflow_workflow_meta_ref.py b/intersight/models/workflow_workflow_meta_ref.py new file mode 100644 index 00000000..779a6f5c --- /dev/null +++ b/intersight/models/workflow_workflow_meta_ref.py @@ -0,0 +1,149 @@ +# coding: utf-8 + +""" + Intersight REST API + + This is Intersight REST API + + OpenAPI spec version: 1.0.9-255 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class WorkflowWorkflowMetaRef(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'moid': 'str', + 'object_type': 'str' + } + + attribute_map = { + 'moid': 'Moid', + 'object_type': 'ObjectType' + } + + def __init__(self, moid=None, object_type=None): + """ + WorkflowWorkflowMetaRef - a model defined in Swagger + """ + + self._moid = None + self._object_type = None + + if moid is not None: + self.moid = moid + if object_type is not None: + self.object_type = object_type + + @property + def moid(self): + """ + Gets the moid of this WorkflowWorkflowMetaRef. + + :return: The moid of this WorkflowWorkflowMetaRef. + :rtype: str + """ + return self._moid + + @moid.setter + def moid(self, moid): + """ + Sets the moid of this WorkflowWorkflowMetaRef. + + :param moid: The moid of this WorkflowWorkflowMetaRef. + :type: str + """ + + self._moid = moid + + @property + def object_type(self): + """ + Gets the object_type of this WorkflowWorkflowMetaRef. + + :return: The object_type of this WorkflowWorkflowMetaRef. + :rtype: str + """ + return self._object_type + + @object_type.setter + def object_type(self, object_type): + """ + Sets the object_type of this WorkflowWorkflowMetaRef. + + :param object_type: The object_type of this WorkflowWorkflowMetaRef. + :type: str + """ + + self._object_type = object_type + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, WorkflowWorkflowMetaRef): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/intersight/rest.py b/intersight/rest.py index 38da3bf2..e7ae313f 100644 --- a/intersight/rest.py +++ b/intersight/rest.py @@ -1,11 +1,11 @@ # coding: utf-8 """ - UCS Starship API + Intersight REST API - This is the UCS Starship REST API + This is Intersight REST API - OpenAPI spec version: 1.0.0 + OpenAPI spec version: 1.0.9-255 Generated by: https://github.com/swagger-api/swagger-codegen.git """ diff --git a/os-discovery-tool/README.md b/os-discovery-tool/README.md new file mode 100644 index 00000000..96f6b550 --- /dev/null +++ b/os-discovery-tool/README.md @@ -0,0 +1,424 @@ +## **ODT (OS Discovery Toolset) scripts** + +## Introduction +#### *This toolset enables Cisco Intersight account holders to push server OS inventory to Intersight in order to evaluate the server's HCL validity as it pertains to http://ucshcltool.cisco.com* + +![image](./odt-linux-overview.png) +--- +## File list +```Bash + +[odt-user@host: ~/intersight-python/os-discovery-tool]$ ls -l +total 468 +-rwxr-xr-x. 1 odt-user odt-user 72 Feb 5 15:07 centos-os-name-legacy.sh +-rwxr-xr-x. 1 odt-user odt-user 103 Nov 30 11:46 centos-os-name.sh +-rwxr-xr-x. 1 odt-user odt-user 125 Nov 30 11:38 debian-os-name.sh +-rwxr-xr-x. 1 odt-user odt-user 135 Jan 23 15:05 debian-os-version.sh +-rw-rw-r--. 1 odt-user odt-user 150 Jan 7 17:44 discovery_config_linux.json +-rwxr-xr-x. 1 odt-user odt-user 294 Jan 17 16:52 fcdev.sh +-rwxr-xr-x. 1 odt-user odt-user 200 Jan 28 12:34 fcdriver.sh +-rwxr-xr-x. 1 odt-user odt-user 263 Jan 30 15:34 fcversions.sh +-rwxrwxr-x. 1 odt-user odt-user 26176 Apr 3 17:23 get_linux_inv_to_intersight.py +-rwxr-xr-x. 1 odt-user odt-user 291 Jan 17 16:57 gpu.sh +-rw-r--r--. 1 odt-user odt-user 48 Feb 21 11:11 hosts +-rwxr-xr-x. 1 odt-user odt-user 287 Jan 17 16:58 netdev.sh +-rwxr-xr-x. 1 odt-user odt-user 291 Jan 17 16:59 netdriver.sh +-rwxr-xr-x. 1 odt-user odt-user 412 Jan 30 15:34 netversions.sh +-rw-rw-r--. 1 odt-user odt-user 316722 Feb 25 12:38 odt-linux-overview.png +-rwxr-xr-x. 1 odt-user odt-user 82 Feb 5 15:07 osvendor-legacy.sh +-rwxrwxr-x. 1 odt-user odt-user 101 Apr 3 16:40 osvendor.sh +-rw-rw-r--. 1 odt-user odt-user 19729 Apr 3 16:40 README.md +-rwxr-xr-x. 1 odt-user odt-user 88 Feb 5 15:07 redhat-os-name.sh +-rwxr-xr-x. 1 odt-user odt-user 286 Jan 17 17:00 storagedev.sh +-rwxr-xr-x. 1 odt-user odt-user 291 Jan 17 17:01 storagedriver.sh +-rwxr-xr-x. 1 odt-user odt-user 407 Jan 30 15:34 storageversions.sh +-rwxrwxr-x. 1 odt-user odt-user 238 Apr 3 16:40 suse-netdev.sh +-rwxrwxr-x. 1 odt-user odt-user 129 Apr 3 16:40 suse-netdriver.sh +-rwxrwxr-x. 1 odt-user odt-user 234 Apr 3 16:40 suse-netversions.sh +-rwxrwxr-x. 1 odt-user odt-user 84 Apr 3 16:40 suse-os-version.sh +-rwxrwxr-x. 1 odt-user odt-user 235 Apr 3 16:40 suse-storagedev.sh +-rwxrwxr-x. 1 odt-user odt-user 129 Apr 3 16:40 suse-storagedriver.sh +-rwxrwxr-x. 1 odt-user odt-user 231 Apr 3 16:40 suse-storageversions.sh +-rwxr-xr-x. 1 odt-user odt-user 313 Jan 25 11:00 validate-tools.sh + +``` +--- +## Setup Steps +--- + ### I. Pre-requisites/dependent components for setting up the Control Node + 1. A Linux machine (Virtual/Physical) with access to your on-prem network. We will call this the **Control Node**. Check that you have the latest version of python 2 (2.7 or later) installed. + - Please NOTE: This utility does not support python 3. + 2. **Generate Intersight API keys** with your user account from the Cisco Intersight GUI and use them as described in the next section. + 3. **Install Intersight Python SDK**: Clone this repository on the **Control Node** as described below and follow the build instructions available here: https://github.com/CiscoUcs/intersight-python. + ```Bash + $ git clone https://github.com/CiscoUcs/intersight-python.git + ``` + --- + ### II. Pre-requisites/dependent components for Target Servers + 1. **Claim your servers:** Ensure that all your linux servers are claimed in Cisco Intersight. We will call these **Target Servers**. This toolset validates only the claimed servers by their serial numbers and their connectivity to Intersight. + 2. **Install necessary packages:** Make sure the **lsmod**, **lspci** (pci-utils) and **lshw** (**hwinfo** for SuSE) commands are installed and available on the **Target servers**. Supported Linux flavors: RHEL, SLES, Ubuntu Sever and CentOS + 3. **User access**: Ensure that the odt-user has sudo access to **Target Servers** using the ssh **authorized keys** listing the odt-user's public key (sudoer access must be password-less). + --- + ### III. Setup configurations + Edit discovery_config_linux.json to include details as described below. Refer to the comments for additional help. NOTE: Comments are not supported in JSON; please don't leave comments in your configuration files. + ```Bash + [odt-user@host: ~/intersight-python/os-discovery-tool]$ cat discovery_config_linux.json + { + "config": { + # hosts file for the list of hosts to discover + "hosts_file_path": "/home/odt-user/hosts", + # intersight URL to be used to push inventory + "intersight_url": "https://intersight.com/api/v1", + # public intersight API key + "intersight_api_key": "59552af60b1905000195be54/59552aec0b1905000195bde5/5becc002673738387ab2cc1b", + # path of private intersight API key file + "intersight_secret_file": "/home/odt-user/Downloads/SecretKey.txt", + # path or location where log files will be created + "logfile_path": "/tmp" + } + } + ``` + --- + You can either edit the hosts file included in the branch to include the FQDN hostname of each target server on separate lines or create a new hosts file with a different name. Make sure that the correct hosts file is added in the discovery_config_linux.json file. + ### IV. Run toolset + #### i. get_linux_inv_to_intersight.py + ```Bash + [odt-user@host: ~/intersight-python/os-discovery-tool]$ ./get_linux_inv_to_intersight.py --help + Usage: get_linux_inv_to_intersight.py [options] + + Options: + -h, --help show this help message and exit + -l, --log-inventory [OPTIONAL] Log OS Inventory to log file location + configured + -f CONFIGFILE, --configfile=CONFIGFILE + [MANDATORY] Filesystem path to configuration file for + ODT + ``` + + #### Example run of get_linux_inv_to_intersight.py + ```Bash + [odt-user@host: ~/intersight-python/os-discovery-tool]$ ./get_linux_inv_to_intersight.py --log-inventory --configfile=discovery_config_linux.json + [INFO]: Starting ODT for list of hosts in hosts file + [INFO]: Using logging mode... + [INFO]: Using log file: /tmp/intersight_os_discovery_2018-12-10T19:48:08.114636.log + [INFO]: Found 2 hosts in ./hosts + -------------------------------------------------------------- + [INFO]: Processing host: ubuntu-server + -------------------------------------------------------------- + -------------------------------------------------------------- + [ubuntu-server]: Extracting OS Inventory... + -------------------------------------------------------------- + [ubuntu-server]: Extracting driver Inventory... + [ubuntu-server]: Extracting Server Serial Number... + Connection to ubuntu-server closed. + [ubuntu-server]: Host Serial Number: FLM2042NYYM + [ubuntu-server]: Extracting Server MO Identity from Intersight... + [ubuntu-server]: Server MO Identity: 5bce7116683663343218ed92 + [ubuntu-server]: No Changes detected in OS Inventory, skipping... + -------------------------------------------------------------- + [INFO]: Processing host: centos-server + -------------------------------------------------------------- + -------------------------------------------------------------- + [centos-server]: Extracting OS Inventory... + -------------------------------------------------------------- + [centos-server]: Extracting driver Inventory... + [centos-server]: Extracting Server Serial Number... + Connection to centos-server closed. + [centos-server]: Host Serial Number: FCH17427P4K + [centos-server]: Extracting Server MO Identity from Intersight... + [centos-server]: Server MO Identity: 5bce7116683663343218ed96 + [centos-server]: Changes detected in OS Inventory, pushing to intersight... + -------------------------------------------------------------- + [INFO]: Processing host: suse-server + -------------------------------------------------------------- + [suse-server]: Extracting Server Serial Number... + [suse-server]: Host Serial Number: FCH17427P4K + [suse-server]: Host Model: UCSB-B22-M3 + [suse-server]: Extracting Server MO Identity from Intersight... + [suse-server]: Server MO Identity: 5c8ae0426176752d31a99718 + [suse-server]: Extracting OS Inventory... + [suse-server]: Extracting driver Inventory... + [suse-server]: Changes detected in OS Inventory, pushing to intersight... + [suse-server]: Patching Server MO with OS Inventory... + -------------------------------------------------------------- + -------------------------------------------------------------- + [INFO]: ODT push to Intersight competed! + -------------------------------------------------------------- + + ``` + #### Example log file + ```Bash + [odt-user@host: ~/intersight-python/os-discovery-tool]$ cat /tmp/intersight_os_discovery_2018-12-10T19\:48\:08.114636.log + [2018-12-10 20:25:01.541247]------------------------START-TIMESTAMP-------------------------- + [2018-12-10 20:25:16.237309][ubuntu-server]: Intersight MO Identifier: 5bce7116683663343218ed92 + [2018-12-10 20:25:16.237327][ubuntu-server]: Building OS Inventory Collection... + [2018-12-10 20:25:16.237515][ + { + "Key": "intersight.server.os.updateTimestamp", + "Value": "2018-12-10T20:25:10.438Z" + }, + { + "Key": "intersight.server.os.updateVersionString", + "Value": "" + }, + { + "Key": "intersight.server.os.kernelVersionString", + "Value": "Ubuntu Server 16.04.5 LTS" + }, + { + "Key": "intersight.server.os.releaseVersionString", + "Value": "4.4.0-140-generic" + }, + { + "Key": "intersight.server.os.type", + "Value": "Linux" + }, + { + "Key": "intersight.server.os.vendor", + "Value": "Ubuntu" + }, + { + "Key": "intersight.server.os.name", + "Value": "Ubuntu" + }, + { + "Key": "intersight.server.os.arch", + "Value": "x86_64" + }, + { + "Key": "intersight.server.os.driver.0.name", + "Value": "enic" + }, + { + "Key": "intersight.server.os.driver.0.version", + "Value": "2.3.0.20" + }, + { + "Key": "intersight.server.os.driver.0.description", + "Value": "Cisco Systems Inc VIC 1340 MLOM Ethernet NIC" + }, + { + "Key": "intersight.server.os.driver.1.name", + "Value": "RAID" + }, + { + "Key": "intersight.server.os.driver.1.version", + "Value": "6.810.09.00-rc1" + }, + { + "Key": "intersight.server.os.driver.1.description", + "Value": "Cisco Systems Inc MegaRAID SAS-3 3108 [Invader]" + } + ] + [2018-12-10 20:25:16.237529]-------------------------------------------------------------- + [2018-12-10 20:25:25.879935][centos-server]: Intersight MO Identifier: 5bce7116683663343218ed96 + [2018-12-10 20:25:25.879968][centos-server]: Building OS Inventory Collection... + [2018-12-10 20:25:25.880316][ + { + "Key": "intersight.server.os.updateTimestamp", + "Value": "2018-12-10T20:25:19.612Z" + }, + { + "Key": "intersight.server.os.updateVersionString", + "Value": "" + }, + { + "Key": "intersight.server.os.kernelVersionString", + "Value": "CentOS 7.6" + }, + { + "Key": "intersight.server.os.releaseVersionString", + "Value": "3.10.0-957.1.3.el7.x86_64" + }, + { + "Key": "intersight.server.os.type", + "Value": "Linux" + }, + { + "Key": "intersight.server.os.vendor", + "Value": "CentOS" + }, + { + "Key": "intersight.server.os.name", + "Value": "CentOS 7.6" + }, + { + "Key": "intersight.server.os.arch", + "Value": "x86_64" + }, + { + "Key": "intersight.server.os.driver.0.name", + "Value": "enic" + }, + { + "Key": "intersight.server.os.driver.0.version", + "Value": "2.3.0.53" + }, + { + "Key": "intersight.server.os.driver.0.description", + "Value": "Cisco Systems Inc VIC 1240 MLOM Ethernet NIC" + }, + { + "Key": "intersight.server.os.driver.1.name", + "Value": "RAID" + }, + { + "Key": "intersight.server.os.driver.1.version", + "Value": "7.705.02.00-rh1" + }, + { + "Key": "intersight.server.os.driver.1.description", + "Value": "Cisco Systems Inc Device 008f" + } + ] + [2018-12-10 20:25:25.880344]-------------------------------------------------------------- + [2019-04-04 00:40:09.486403][suse-server]: Intersight MO Identifier: 5c8ae0426176752d31a99718 + [2019-04-04 00:40:09.486506][suse-server]: Building OS Inventory Collection... + [2019-04-04 00:40:09.487065][ + { + "Key": "intersight.server.os.updateTimestamp", + "Value": "2019-04-04T00:39:59.484Z" + }, + { + "Key": "intersight.server.os.kernelVersionString", + "Value": "SUSE Linux Enterprise Server 15" + }, + { + "Key": "intersight.server.os.releaseVersionString", + "Value": "4.12.14-23-default" + }, + { + "Key": "intersight.server.os.type", + "Value": "Linux" + }, + { + "Key": "intersight.server.os.vendor", + "Value": "SuSE" + }, + { + "Key": "intersight.server.os.name", + "Value": "SuSE" + }, + { + "Key": "intersight.server.os.arch", + "Value": "x86_64" + }, + { + "Key": "intersight.server.os.driver.0.name", + "Value": "enic" + }, + { + "Key": "intersight.server.os.driver.0.version", + "Value": "2.3.0.45" + }, + { + "Key": "intersight.server.os.driver.0.description", + "Value": "Cisco VIC Ethernet NIC Driver" + }, + { + "Key": "intersight.server.os.driver.1.name", + "Value": "fnic" + }, + { + "Key": "intersight.server.os.driver.1.version", + "Value": "1.6.0.34" + }, + { + "Key": "intersight.server.os.driver.1.description", + "Value": "Cisco FCoE HBA Driver" + }, + { + "Key": "intersight.server.os.driver.2.name", + "Value": "RAID" + }, + { + "Key": "intersight.server.os.driver.2.version", + "Value": "7.704.04.00-rc1" + }, + { + "Key": "intersight.server.os.driver.2.description", + "Value": "Avago MegaRAID SAS Driver" + } + ] + [2019-04-04 00:40:09.487141]-------------------------------------------------------------- + [2019-04-04 00:40:09.489029]-----------------------END-TIMESTAMP-------------------------- + ``` + --- + ## Troubleshooting common issues + #### I. Serial Number not found in Intersight + If you forget to claim your devices in Intersight, their Serial numbers will not appear in your account. Please verify that you've claimed all your relevant devices using the correct account login. + + ```Bash + ====================================================== + [INFO]: Processing host: spark-server-0 + -------------------------------------------------------------- + [spark-server-0]: Extracting Server Serial Number... + [spark-server-0]: Host Serial Number: VMware-42 0c 8b 51 36 4d cb e8-8e d2 be de 8e 21 34 9e + [spark-server-0]: Host Model: VMware Virtual Platform + [spark-server-0]: Extracting Server MO Identity from Intersight... + [spark-server-0]: Server 'spark-server-0' look up by SERIAL number did not return any results. + [ERROR-DETAIL]: Please ensure that 'spark-server-0' is connected and claimed in Intersight. + -------------------------------------------------------------- + ``` + + #### II. SSH communication not available to **Target Servers** + This could happen due to several reasons. The most common would be as follows: + 1. SSH daemon is not running on the target server. + 2. Firewall rule does not permit connections on the SSH port on the target server. + 3. Your public SSH key is not authorized to access the target server. You may be prompted for a password. + 4. You're not a **sudoer** on the target server. + ```Bash + ====================================================== + [INFO]: Processing host: centos-server + -------------------------------------------------------------- + [centos-server]: Extracting Server Serial Number... + bash: centos-server: Permission denied + [ERROR-DETAIL]: SSH Communication with server failed with response: Command '['bash', '-c', u'ssh -t 2>/dev/null centos-server sudo /usr/sbin/dmidecode -s system-product-name']' returned non-zero exit status 1 + [ERROR]: Could not complete ODT update (ssh communication failed) for server: centos-server + -------------------------------------------------------------- + ``` + + #### III. Communication with Intersight returns an error code + This could happen due to several reasons. This could warrant escalations to TAC. Ensure the following before escalating: + 1. Your client (**Control Node** in this case) has its time and timezone properly set. Preferably use NTP. + 2. Do not create user TAGs with the following prefix 'intersight.server.os.'. This prefix is reserved for system HCL computation. + 3. Double check that your API keys are valid by navigating to settings in Intersight. + 4. For opening a case, make sure you have the following handy: + - MO Identifier (Server MO Identity: 5bce7116683663343218ed96) + - Trace Identifier ("traceId":"NB1fad0ec8fec41f5aa6d059c479529e66"). + ```Bash + ====================================================== + [INFO]: Processing host: centos-server + -------------------------------------------------------------- + [centos-server]: Extracting Server Serial Number... + [centos-server]: Host Serial Number: FCH17427P4K + [centos-server]: Host Model: UCSB-B22-M3 + [centos-server]: Extracting Server MO Identity from Intersight... + [centos-server]: Server MO Identity: 5bce7116683663343218ed96 + [centos-server]: Changes detected in OS Inventory, pushing to intersight... + ERROR]: Communication with Intersight failed with return code. + [ERROR-DETAIL]: Communication with Intersight failed with response: (400) + Reason: Bad Request + HTTP response headers: HTTPHeaderDict({'Content-Length': '400', 'X-XSS-Protection': '1; mode=block;', 'X-Cache': 'Error from cloudfront', 'X-Content-Type-Options': 'nosniff', 'Set-Cookie': 'AWSALB=/7FTcJcaTQ9jomfiCgxrXudCRdj647LVh03E/xOIh+H0elvnkm47hkCTwV4XTJ9wiSX69WxU/RYnBJA8Ob912dphx+MiYGPrdW93NUkMEEUmkWP1gbQVsPUqHZF7; Expires=Sat, 23 Feb 2019 00:31:11 GMT; Path=/', 'Strict-Transport-Security': 'max-age=63072000; includeSubDomains', 'Server': 'nginx', 'Connection': 'keep-alive', 'Via': '1.1 063a9ddbb93cf698306df937132cd318.cloudfront.net (CloudFront)', 'X-Amz-Cf-Id': 'KLhB_iHaDTc7KpP5NBpl36hIGapd0NLitF6OhY2u1SDjc7Rfep4KZw==', 'Pragma': 'no-cache', 'Cache-Control': 'no-cache, no-store, must-revalidate', 'Date': 'Sat, 16 Feb 2019 00:31:12 GMT', 'X-Starship-TraceId': 'NB1fad0ec8fec41f5aa6d059c479529e66', 'Content-Type': 'application/json; charset=utf-8'}) + HTTP response body: {"code":"InvalidRequest","message":"The tag key 'intersight.server.os.driver.0.description' is set more than once in the managed object '5c3d2bb56176752d318df607'. A managed object cannot have duplicate tag keys.","messageId":"barcelona_duplicate_tag_key","messageParams":{"1":"intersight.server.os.driver.0.description","2":"5c3d2bb56176752d318df607"},"traceId":"NB1fad0ec8fec41f5aa6d059c479529e66"} + + [ERROR]: Could not complete ODT update (Intersight API failed) for server: centos-server + ``` + + --- + ## Other applications + #### Scheduling with CRON Jobs + This toolset can be configured to run periodically to ensure changes are captured and sent to Cisco Intersight for + evaluation using CRON jobs in Linux. Please refer to corresponding documentation: + - https://access.redhat.com/documentation/en-us/openshift_container_platform/3.5/html/developer_guide/dev-guide-cron-jobs + - https://access.redhat.com/documentation/en-us/openshift_enterprise/2/html/user_guide/scheduling_cron_jobs + + #### Example crontab entry to run daily at 23:55 hrs (we recommend a minimum of daily and maximum of hourly frequency to run this utility) + ```Bash + $ crontab -l +55 23 * * * /home/odt-user/intersight-python/os-discovery-tool/get_linux_inv_to_intersight.py --log-inventory --configfile=/home/odt-user/Documents/discovery_config_linux.json >> /tmp/odt_out.log + $ + + + ``` + diff --git a/os-discovery-tool/centos-os-name-legacy.sh b/os-discovery-tool/centos-os-name-legacy.sh new file mode 100755 index 00000000..e0ba0722 --- /dev/null +++ b/os-discovery-tool/centos-os-name-legacy.sh @@ -0,0 +1,2 @@ +#!/bin/bash +cat /etc/centos-release 2>/dev/null | awk '{print $1" "$3}' diff --git a/os-discovery-tool/centos-os-name.sh b/os-discovery-tool/centos-os-name.sh new file mode 100755 index 00000000..82c01cd1 --- /dev/null +++ b/os-discovery-tool/centos-os-name.sh @@ -0,0 +1,2 @@ +#!/bin/bash +cat /etc/centos-release 2>/dev/null | awk '{print $1" "$4}' | awk 'BEGIN{FS=OFS="."} NF--' diff --git a/os-discovery-tool/debian-os-name.sh b/os-discovery-tool/debian-os-name.sh new file mode 100755 index 00000000..7e0c2373 --- /dev/null +++ b/os-discovery-tool/debian-os-name.sh @@ -0,0 +1,2 @@ +#!/bin/bash +cat /etc/lsb-release | grep VERSION | head -n1 | awk -F"=" '{print $2}' | xargs | awk '{print "Ubuntu "$1" "$2}' diff --git a/os-discovery-tool/debian-os-version.sh b/os-discovery-tool/debian-os-version.sh new file mode 100755 index 00000000..70d234e6 --- /dev/null +++ b/os-discovery-tool/debian-os-version.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cat /etc/*-release | grep VERSION | head -n1 | awk -F"=" '{print $2}' | xargs | \ +awk '{print "Ubuntu Server "$1" "$2}'; diff --git a/os-discovery-tool/discovery_config_linux.json b/os-discovery-tool/discovery_config_linux.json new file mode 100644 index 00000000..35e666e0 --- /dev/null +++ b/os-discovery-tool/discovery_config_linux.json @@ -0,0 +1,9 @@ +{ + "config": { + "hosts_file_path": "", + "intersight_url": "", + "intersight_api_key": "", + "intersight_secret_file": "", + "logfile_path": "" + } +} diff --git a/os-discovery-tool/fcdev.sh b/os-discovery-tool/fcdev.sh new file mode 100755 index 00000000..0371e082 --- /dev/null +++ b/os-discovery-tool/fcdev.sh @@ -0,0 +1,9 @@ +#!/bin/bash +export PATH=$PATH:/sbin:/usr/sbin +lshwcmd=`which lshw` +lspcicmd=`which lspci` +modinfocmd=`which modinfo` +found_fnic=`sudo ${lshwcmd} -C bus | grep fnic | wc -l`; +if [[ ${found_fnic} -ne 0 ]]; + then ${modinfocmd} fnic | grep "^description: "| awk '{print $2" "$3" "$4" " $5}'; +fi diff --git a/os-discovery-tool/fcdriver.sh b/os-discovery-tool/fcdriver.sh new file mode 100755 index 00000000..c8bac0d1 --- /dev/null +++ b/os-discovery-tool/fcdriver.sh @@ -0,0 +1,4 @@ +#!/bin/bash +export PATH=$PATH:/sbin:/usr/sbin +lshwcmd=`which lshw` +sudo ${lshwcmd} -C bus | awk '$1=="configuration:"{$1=""; print}' | grep fnic | awk '{print $1}' | awk -F"=" '{print $2}'| head -n 1 diff --git a/os-discovery-tool/fcversions.sh b/os-discovery-tool/fcversions.sh new file mode 100755 index 00000000..f4ddbcff --- /dev/null +++ b/os-discovery-tool/fcversions.sh @@ -0,0 +1,8 @@ +#!/bin/bash +export PATH=$PATH:/sbin:/usr/sbin +modinfocmd=`which modinfo` +lshwcmd=`which lshw` +found_fnic=`sudo ${lshwcmd} -C bus | grep fnic | wc -l`; +if [[ ${found_fnic} -ne 0 ]]; + then ${modinfocmd} fnic 2>/dev/null | grep "^version: "| awk '{print $2}'; +fi diff --git a/os-discovery-tool/get_linux_inv_to_intersight.py b/os-discovery-tool/get_linux_inv_to_intersight.py new file mode 100755 index 00000000..d93ec2e9 --- /dev/null +++ b/os-discovery-tool/get_linux_inv_to_intersight.py @@ -0,0 +1,556 @@ +#!/usr/bin/python +""" +OS Discovery Tool (ODT) is a scripted/automated way to get the OS Inventory of Servers running in your +on-premise network to Intersight. It uses ssh access via 'authorized_keys' to extract the data from the Server OS. +Once the OS Inventory is extracted, it verifies if there are differences between what was extracted and what Intersight +sees. If there are differences, it used Intersight python SDK to upload the OS Inventory to intersight. +""" +import os +import sys +import codecs +import subprocess +import json +import datetime +import argparse +from enum import Enum + + +class Bcolors: + """This class is used for background color decorations of console output lines.""" + HEADER = '\033[95m' + OKBLUE = '\033[94m' + OKGREEN = '\033[92m' + WARNING = '\033[93m' + FAIL = '\033[91m' + ENDC = '\033[0m' + BOLD = '\033[1m' + UNDERLINE = '\033[4m' + + +try: + import intersight + from intersight.intersight_api_client import IntersightApiClient + from intersight.apis import compute_blade_api as computeBlade + from intersight.apis import compute_rack_unit_api as computeRackUnit + from intersight.rest import ApiException +except ImportError as import_error: + print(Bcolors.FAIL + "[ERROR]: Import for Intersight SDK modules failed. " + Bcolors.ENDC) + print(Bcolors.BOLD + "[ERROR-DETAIL]: " + import_error.__str__() + Bcolors.ENDC) + print(Bcolors.BOLD + "[ERROR-DETAIL]: Try re-installing it: " + "'pip install git+https://github.com/CiscoUcs/intersight-python.git'" + Bcolors.ENDC) + exit() + + +class ExecType(Enum): + """This class identifies whether this is command, script or sudo command to be remotely executed.""" + COMMAND = 'command' + SCRIPT = 'script' + SUDO = 'sudo' + + +class QueryType(Enum): + """This class identifies whether this is an os version or driver version query.""" + OS = 'os' + DRIVER = 'driver' + + +class OsType: + """This class broadly identifies OS categories.""" + SUSE = ["Suse", "Sles"] + DEBIAN = ["Ubuntu"] + REDHAT = ["Red Hat", "Rhel", "Centos"] + + +class ValidationResult(Enum): + """Support for validation result codes.""" + FAILURE = 'VALIDATION_FAILED' + SUCCESS = 'VALIDATION_SUCCESS' + + +class HostManager: + """Blueprint of interaction with the Host OS of Servers listed in the hosts file.""" + def __init__(self, hosts_file): + self.hosts_file = hosts_file.strip() + self.hosts = [] + self.num_hosts = 0 + + def get_hosts(self): + """Extract a list of hosts from the specified hosts file.""" + hosts_file = codecs.open(self.hosts_file, "r") + for host in hosts_file.readlines(): + if host.strip(): + self.hosts.append(host.strip()) + self.num_hosts = len(self.hosts) + + @staticmethod + def host_tools_validated(host, os_type): + """Validates that the necessary tools are installed on the target servers.""" + if os_type == OsType.SUSE: + cmd = "ssh " + host.strip() + " \'bash -s\' < suse-validate-tools.sh" + else: + cmd = "ssh " + host.strip() + " \'bash -s\' < validate-tools.sh" + validation_result = (subprocess.check_output(['bash', '-c', cmd])).strip() + if validation_result == ValidationResult.FAILURE: + return False + return True + + def process_hosts(self, intersight_connection, env_config): + """Core function to process hosts i.e., collect inventory, diff and push changes to Intersight.""" + for host in self.hosts: + print("--------------------------------------------------------------") + print(Bcolors.BOLD + "[INFO]: Processing host: " + host.strip() + Bcolors.ENDC) + print("--------------------------------------------------------------") + try: + server_moid = intersight_connection.lookup_server_by_serial(host) + os_inv_reader = OsInvReader(host) + os_inv_reader.get_os_inv() + if server_moid and HostManager.host_tools_validated(host, os_inv_reader.os_type): + driver_inv_reader = DriverInvReader(host, os_inv_reader.os_type, intersight_connection.host_type) + driver_inv_reader.get_driver_inv() + os_inv_collection = os_inv_reader.os_inv_collection + driver_inv_reader.os_inv_collection + + if env_config.logging: + env_config.write_log("[" + host.strip() + "]: Intersight MO Identifier: " + str(server_moid)) + env_config.write_log("[" + host.strip() + "]: Building OS Inventory Collection... ") + env_config.write_log(json.dumps(os_inv_collection, + indent=4, + sort_keys=True, + separators=(',', ': '), + ensure_ascii=True)) + env_config.write_log("--------------------------------------------------------------") + else: + print("[" + host.strip() + "]: Intersight MO Identifier: " + str(server_moid)) + print("[" + host.strip() + "]: Building OS Inventory Collection... ") + print(json.dumps(os_inv_collection, + indent=4, + sort_keys=True, + separators=(',', ': '), + ensure_ascii=True)) + print("--------------------------------------------------------------") + + if intersight_connection.server_tags_differ(os_inv_collection): + print(Bcolors.OKBLUE + "[" + host.strip() + + "]: Changes detected in OS Inventory, pushing to intersight..." + Bcolors.ENDC) + intersight_connection.patch_server_by_moid(host, server_moid, os_inv_collection) + else: + print(Bcolors.WARNING + "[" + host.strip() + + "]: No Changes detected in OS Inventory, skipping..." + Bcolors.ENDC) + elif not server_moid: + print(Bcolors.FAIL + "[" + host.strip() + "]: Server '" + host.strip() + + "' look up by SERIAL number did not return any results." + Bcolors.ENDC) + print(Bcolors.BOLD + "[ERROR-DETAIL]: Please verify that '" + host.strip() + + "' is connected and claimed in Intersight." + Bcolors.ENDC) + else: + print(Bcolors.FAIL + "[ERROR]: Tools validation for host failed: " + host.strip() + Bcolors.ENDC) + print(Bcolors.BOLD + "[ERROR-DETAIL]: Please ensure that '" + host.strip() + + "' has 'lshw'(RHEL/Ubuntu/Centos)/'hwinfo'(SLES), 'pci-utils(lspci)' " + "and 'modinfo' installed and available." + Bcolors.ENDC) + continue + + except ApiException as api_error: + print(Bcolors.FAIL + "[ERROR]: Communication with Intersight failed with return code." + Bcolors.ENDC) + print(Bcolors.BOLD + "[ERROR-DETAIL]: Communication with Intersight failed with response: " + + api_error.__str__() + Bcolors.ENDC) + print(Bcolors.FAIL + + "[ERROR]: Could not complete ODT update (Intersight API returned errors) for server: " + + host.strip() + Bcolors.ENDC) + continue + + except subprocess.CalledProcessError as subprocess_error: + print(Bcolors.BOLD + "[ERROR-DETAIL]: SSH Communication with server failed with response: " + + subprocess_error.__str__() + Bcolors.ENDC) + print(Bcolors.FAIL + "[ERROR]: Could not complete ODT update (ssh communication failed) for server: " + + host.strip() + Bcolors.ENDC) + continue + + except KeyboardInterrupt: + print(Bcolors.BOLD + "[ERROR-DETAIL]: User initiated ABORT! " + Bcolors.ENDC) + print(Bcolors.FAIL + "[ERROR]: Something didn't add up! Give the ODT another try?" + Bcolors.ENDC) + exit() + + +class InvReader: + """Base class for reading the Inventopry.""" + def __init__(self): + self.host = "" + self.os_type = "" + self.os_inv_collection = [] + + @property + def tag_prefix(self): + """Tag prefix for internal tags that are used for HCL validation.""" + return "intersight.server.os." + + @property + def iso_8601_time(self): + """Compute Timestamp to use for the updateTimestamp tag.""" + date_str = str(datetime.datetime.utcnow().isoformat()) + date_str = date_str[:-3] + "Z" # type: str + return date_str + + def invoke_shell(self, exec_type, query_type, name): + """Invoke remote shell command.""" + output = None + if exec_type == ExecType.SCRIPT: + cmd = "ssh " + self.host.strip() + " \'bash -s\' < " + name + elif exec_type == ExecType.COMMAND: + cmd = "ssh " + self.host.strip() + " " + name + elif exec_type == ExecType.SUDO: + cmd = "ssh -t 2>/dev/null " + self.host.strip() + " \'bash -s\' " + name + if query_type == QueryType.OS: + output = subprocess.check_output(['bash', '-c', cmd]).strip() + elif query_type == QueryType.DRIVER: + output = subprocess.check_output(['bash', '-c', cmd]).split("\n") + return output + + def add_item(self, item_type, key, value): + """Add tag item.""" + full_key = self.tag_prefix + key + if item_type == QueryType.OS: + os_inv = dict() + os_inv["Key"] = full_key + os_inv["Value"] = value + self.os_inv_collection.append(os_inv.copy()) + elif item_type == QueryType.DRIVER: + driver_inv = dict() + driver_inv["Key"] = full_key + driver_inv["Value"] = value + self.os_inv_collection.append(driver_inv.copy()) + + +class OsInvReader(InvReader): + """Collect OS specific data (other that device and driver data).""" + def __init__(self, host_name): + InvReader.__init__(self) + self.host = host_name + + def get_os_inv(self): + """Collect OS specific data (other that device and driver data).""" + print("["+self.host.strip() + "]: Extracting OS Inventory... ") + kernel_version = self.invoke_shell(ExecType.COMMAND, QueryType.OS, " uname -r | awk '{print $1}'") + os_type = self.invoke_shell(ExecType.COMMAND, QueryType.OS, " uname -s | awk '{print $1}'") + os_arch = self.invoke_shell(ExecType.COMMAND, QueryType.OS, " uname -m | awk '{print $1}'") + os_vendor = (self.invoke_shell(ExecType.SCRIPT, QueryType.OS, "osvendor.sh")).lower().title() + os_flavor = os_vendor + + if os_vendor in OsType.DEBIAN: + self.os_type = OsType.DEBIAN + os_flavor = (self.invoke_shell(ExecType.SCRIPT, QueryType.OS, "debian-os-version.sh")).rstrip(",") + elif os_vendor in OsType.SUSE: + self.os_type = OsType.SUSE + os_flavor = (self.invoke_shell(ExecType.SCRIPT, QueryType.OS, "suse-os-version.sh")) + elif not os_vendor: + os_vendor = (self.invoke_shell(ExecType.SCRIPT, QueryType.OS, "osvendor-legacy.sh")).lower().title() + self.os_type = OsType.REDHAT + else: + self.os_type = OsType.REDHAT + + if os_vendor in OsType.REDHAT: + if os_vendor == "Centos": + os_name = self.invoke_shell(ExecType.SCRIPT, QueryType.OS, "centos-os-name.sh") + else: + os_name = self.invoke_shell(ExecType.SCRIPT, QueryType.OS, "redhat-os-name.sh") + elif self.os_type == OsType.DEBIAN: + os_name = self.invoke_shell(ExecType.SCRIPT, QueryType.OS, "debian-os-name.sh") + else: + os_name = "SuSE" + + if not os_name and os_vendor in OsType.REDHAT: + os_name = self.invoke_shell(ExecType.SCRIPT, QueryType.OS, "centos-os-name-legacy.sh") + + if os_vendor == "Rhel": + os_vendor = "Red Hat" + elif os_vendor == "Centos": + os_vendor = "CentOS" + elif os_vendor == "Sles": + os_vendor = "SuSE" + + self.add_item(QueryType.OS, "updateTimestamp", self.iso_8601_time) + self.add_item(QueryType.OS, "kernelVersionString", + os_name if os_vendor.lower().title() in OsType.REDHAT else os_flavor) + self.add_item(QueryType.OS, "releaseVersionString", kernel_version) + self.add_item(QueryType.OS, "type", os_type) + self.add_item(QueryType.OS, "vendor", os_vendor) + self.add_item(QueryType.OS, "name", os_name) + self.add_item(QueryType.OS, "arch", os_arch) + + +class DriverInvReader(InvReader): + """Collect device and driver data.""" + def __init__(self, hostname, os_type, host_type): + InvReader.__init__(self) + self.host = hostname + self.os_type = os_type + self.host_type = host_type + + def get_driver_inv(self): + """Collect device and driver data.""" + print("[" + self.host.strip() + "]: Extracting driver Inventory... ") + if self.os_type == OsType.SUSE: + drivers = self.invoke_shell(ExecType.SCRIPT, QueryType.DRIVER, "suse-netdriver.sh") + versions = self.invoke_shell(ExecType.SCRIPT, QueryType.DRIVER, "suse-netversions.sh") + descriptions = self.invoke_shell(ExecType.SCRIPT, QueryType.DRIVER, "suse-netdev.sh") + + drivers += self.invoke_shell(ExecType.SCRIPT, QueryType.DRIVER, "suse-storagedriver.sh") + versions += self.invoke_shell(ExecType.SCRIPT, QueryType.DRIVER, "suse-storageversions.sh") + descriptions += self.invoke_shell(ExecType.SCRIPT, QueryType.DRIVER, "suse-storagedev.sh") + else: + drivers = self.invoke_shell(ExecType.SCRIPT, QueryType.DRIVER, "netdriver.sh") + versions = self.invoke_shell(ExecType.SCRIPT, QueryType.DRIVER, "netversions.sh") + descriptions = self.invoke_shell(ExecType.SCRIPT, QueryType.DRIVER, "netdev.sh") + fc_dev = self.invoke_shell(ExecType.SCRIPT, QueryType.DRIVER, "fcdev.sh") + + if fc_dev: + descriptions += fc_dev + drivers += self.invoke_shell(ExecType.SCRIPT, QueryType.DRIVER, "fcdriver.sh") + versions += self.invoke_shell(ExecType.SCRIPT, QueryType.DRIVER, "fcversions.sh") + + drivers += self.invoke_shell(ExecType.SCRIPT, QueryType.DRIVER, "storagedriver.sh") + versions += self.invoke_shell(ExecType.SCRIPT, QueryType.DRIVER, "storageversions.sh") + descriptions += self.invoke_shell(ExecType.SCRIPT, QueryType.DRIVER, "storagedev.sh") + added_drivers = set() + driver_count = 0 + + for i, value in enumerate(drivers): + if not value: + continue + + if drivers[i] not in added_drivers: + added_drivers.add(value) + else: + continue + + self.add_item(QueryType.DRIVER, + "driver." + str(driver_count) + ".name", + "RAID" if "megaraid_sas" in drivers[i] and "UCSB" in self.host_type + else value.replace('"', '')) + self.add_item(QueryType.DRIVER, "driver." + str(driver_count) + ".version", versions[i].lstrip("0")) + self.add_item(QueryType.DRIVER, "driver." + str(driver_count) + ".description", descriptions[i]) + driver_count += 1 + + +class IntersightConnectionManager: + """high level support for doing this and that.""" + def __init__(self, api_key, api_secret_path, intersight_url): + self.api_key = api_key + self.api_secret_path = api_secret_path + self.intersight_url = intersight_url + self.server_tags = None + self.user_tags = None + self.host_type = None + self.serial_number = None + self.api_instance = None + self.server_api = None + self.results = None + + def connect(self): + """Connect to Intersight.""" + self.api_instance = IntersightApiClient( + host=self.intersight_url, + private_key=self.api_secret_path, + api_key_id=self.api_key) + + def disconnect(self): + """Disconnect from intersight.""" + pass + + def lookup_server_by_serial(self, hostname): + """Lookup if server is claimed in intersight.""" + print("[" + hostname.strip() + "]: Extracting Server Serial Number... ") + cmd = "ssh -t 2>/dev/null " + hostname.strip() + " sudo /usr/sbin/dmidecode -s system-serial-number" + host_serial = (subprocess.check_output(['bash', '-c', cmd])).split("\n") + if len(host_serial) > 1: + for serial in host_serial: + if serial and "#" not in serial: + self.serial_number = serial.strip() + else: + self.serial_number = host_serial.strip() + + print("[" + hostname.strip() + "]: Host Serial Number: " + self.serial_number) + cmd = "ssh -t 2>/dev/null " + hostname.strip() + " sudo /usr/sbin/dmidecode -s system-product-name" + host_type = (subprocess.check_output(['bash', '-c', cmd])).split("\n") + if len(host_type) > 1: + for htype in host_type: + if htype and "#" not in htype: + self.host_type = htype.strip() + else: + self.host_type = host_type[0].strip() + + print("[" + hostname.strip() + "]: Host Model: " + self.host_type) + if host_serial != "": + print("[" + hostname.strip() + "]: Extracting Server MO Identity from Intersight... ") + if 'UCSB' in self.host_type: + self.server_api = computeBlade.ComputeBladeApi(self.api_instance) + self.results = self.server_api.compute_blades_get(inlinecount='allpages', + top=100, filter='Serial eq ' + self.serial_number) + elif 'UCSC' in self.host_type or 'HX' in self.host_type: + self.server_api = computeRackUnit.ComputeRackUnitApi(self.api_instance) + self.results = self.server_api.compute_rack_units_get(inlinecount='allpages', + top=100, filter='Serial eq ' + self.serial_number) + + if self.results: + print("[" + hostname.strip() + "]: Server MO Identity: " + self.results.results[0].moid) + self.server_tags = [elem for elem in self.results.results[0].tags + if 'intersight.server.os.' in elem.to_dict()['key']] + self.user_tags = [elem for elem in self.results.results[0].tags + if 'intersight.server.os.' not in elem.to_dict()['key']] + return self.results.results[0].moid + return 0 + else: + print("[" + hostname.strip() + "]: Server SERIAL number invalid: " + self.serial_number) + return 0 + + def patch_server_by_moid(self, hostname, moid, os_inv_collection): + """Push Os Inventory changes to Intersight.""" + compute = intersight.ComputeBlade() + compute.tags = os_inv_collection + self.user_tags + print("[" + hostname.strip() + "]: Patching Server MO with OS Inventory... ") + if 'UCSB' in self.host_type: + result = self.server_api.compute_blades_moid_patch(moid, compute) + elif 'UCSC' in self.host_type or 'HX' in self.host_type: + result = self.server_api.compute_rack_units_moid_patch(moid, compute) + else: + result = None + + if result is None: + print("--------------------------------------------------------------") + print(Bcolors.OKGREEN + "[" + hostname.strip() + + "]: OS Inventory push to Intersight completed!" + Bcolors.ENDC) + print("--------------------------------------------------------------") + else: + print("--------------------------------------------------------------") + print(Bcolors.FAIL + "[" + hostname.strip() + + "]: {" + result + "}, OS Inventory push to Intersight failed!" + Bcolors.ENDC) + print("--------------------------------------------------------------") + + def server_tags_differ(self, os_inv_collection): + """Check if OS Inventory collected and OS Inventory seen by Intersight differ.""" + changed = False + if len(self.server_tags) != len(os_inv_collection): + changed = True + else: + for new_elem in os_inv_collection: + if new_elem['Key'] != 'intersight.server.os.updateTimestamp': + old_elem = [elem for elem in self.server_tags if elem.to_dict()['key'] == new_elem['Key']][0] + if old_elem is None or old_elem.to_dict()['value'] != new_elem['Value']: + changed = True + break + return changed + + +class EnvironmentConfigurator: + """Class for Managing Environment context.""" + def __init__(self, logging, configs): + self.hosts_file = configs['config']['hosts_file_path'] + self.logfile_path = configs['config']['logfile_path'] + "/" + \ + 'intersight_os_discovery_' + datetime.datetime.utcnow().isoformat() + '.log' + self.api_key = configs['config']['intersight_api_key'] + self.secret_key_path = configs['config']['intersight_secret_file'] + self.intersight_url = configs['config']['intersight_url'] + self.logging = logging + self.log_file = None + self.options = None + + def init_log_file(self): + """Open log file in specified location.""" + if self.logging is not None and self.logging is True: + print(Bcolors.WARNING + '[INFO]: Using logging mode...' + Bcolors.ENDC) + print(Bcolors.WARNING + '[INFO]: Using log file: ' + self.logfile_path + Bcolors.ENDC) + self.log_file = codecs.open(self.logfile_path, 'w', encoding='utf-8') + else: + print(Bcolors.WARNING + '[INFO]: Logging disabled...' + Bcolors.ENDC) + + def close_log_file(self): + """Close already opened log file.""" + self.log_file.close() + + def write_log(self, log_line): + """Write a log file entried prefixed by timestamp.""" + timestamped_log_line = "[" + str(datetime.datetime.utcnow()) + "]" + log_line + '\n' + self.log_file.write(timestamped_log_line.encode('utf8')) + + @staticmethod + def set_exec_path(): + """Set Execution path.""" + abspath = os.path.abspath(__file__) + dname = os.path.dirname(abspath) + os.chdir(dname) + + @staticmethod + def check_python_ver(): + """Check Python version (this utility only supports python2)""" + if sys.version_info[0] > 2: + print(Bcolors.FAIL + "[ERROR]: Must use Python 2 (2.7 or higher), " + "this utility does not support Python 3" + Bcolors.ENDC) + exit() + + @staticmethod + def process_command_args(): + """Process arguments and setup environment context.""" + parser = argparse.ArgumentParser(description= + 'ODT: Utility to import OS Inventory of your Linux Environment to Intersight.') + parser.add_argument("-l", "--log-inventory", action="store_true", dest="logging", + help="[OPTIONAL] Log OS Inventory to log file location configured") + parser.add_argument("-f", "--configfile", dest="configfile", + help="[MANDATORY] Filesystem path to configuration file for ODT") + args = parser.parse_args() + if args.configfile is None: + print(args) + print(Bcolors.FAIL + "[ERROR]: Please provide MANDATORY arguments" + Bcolors.ENDC) + print(Bcolors.WARNING + "[HINT]: try $ ./get_linux_inv_to_intersight.py --help" + Bcolors.ENDC) + exit() + + return args + + @staticmethod + def read_configs(configfile): + """Read configuration from specified config file.""" + json_data = codecs.open(configfile.strip()).read() + configs = json.loads(json_data) + return configs + + +def do_discovery(): + """Main Execution flow for ODT.""" + print(Bcolors.OKGREEN + "[ODT: START-TIMESTAMP: " + str(datetime.datetime.utcnow()) + "]" + Bcolors.ENDC) + + EnvironmentConfigurator.check_python_ver() + options = EnvironmentConfigurator.process_command_args() + configs = EnvironmentConfigurator.read_configs(options.configfile.strip()) + + EnvironmentConfigurator.set_exec_path() + + env_config = EnvironmentConfigurator(options.logging, configs) + + if env_config.logging: + env_config.init_log_file() + env_config.write_log("------------------------START-TIMESTAMP--------------------------") + else: + print(Bcolors.WARNING + '[INFO]: Logging disabled...'+ Bcolors.ENDC) + + host_manager = HostManager(env_config.hosts_file) + host_manager.get_hosts() + + print("[INFO]: Found " + str(host_manager.num_hosts) + " hosts in " + env_config.hosts_file) + + intersight_connection = IntersightConnectionManager(env_config.api_key.strip(), + env_config.secret_key_path.strip(), + env_config.intersight_url.strip()) + + intersight_connection.connect() + + host_manager.process_hosts(intersight_connection, env_config) + + print("--------------------------------------------------------------") + print(Bcolors.BOLD + "[INFO]: ODT push to Intersight completed!" + Bcolors.ENDC) + print("--------------------------------------------------------------") + + if env_config.logging: + env_config.write_log("-----------------------END-TIMESTAMP--------------------------") + env_config.close_log_file() + + print(Bcolors.OKGREEN + "[ODT: END-TIMESTAMP: " + str(datetime.datetime.utcnow()) + "]" + Bcolors.ENDC) + + +if __name__ == '__main__': + do_discovery() diff --git a/os-discovery-tool/gpu.sh b/os-discovery-tool/gpu.sh new file mode 100755 index 00000000..8e26353a --- /dev/null +++ b/os-discovery-tool/gpu.sh @@ -0,0 +1,10 @@ +#!/bin/bash +export PATH=$PATH:/sbin:/usr/sbin +lshwcmd=`which lshw` +lspcicmd=`which lspci` + +for pciaddress in $(${lshwcmd} -C Display 2>/dev/null | grep "pci@" | awk -F":" '{print $3":"$4}'); +do + ${lspcicmd} -v -s ${pciaddress} | grep "Kernel driver" | awk -F":" '{print $2}' | xargs; +done + diff --git a/os-discovery-tool/hosts b/os-discovery-tool/hosts new file mode 100644 index 00000000..99ac8cdb --- /dev/null +++ b/os-discovery-tool/hosts @@ -0,0 +1,2 @@ +example-hostname-or-ip1 +example-hostname-or-ip2 diff --git a/os-discovery-tool/netdev.sh b/os-discovery-tool/netdev.sh new file mode 100755 index 00000000..abfdd5eb --- /dev/null +++ b/os-discovery-tool/netdev.sh @@ -0,0 +1,9 @@ +#!/bin/bash +export PATH=$PATH:/sbin:/usr/sbin +lshwcmd=`which lshw` +lspcicmd=`which lspci` +for pciaddress in $(${lshwcmd} -C Network 2>/dev/null | grep "pci@" | awk -F":" '{print $3":"$4}'); +do + ${lspcicmd} -v -s ${pciaddress} | grep "Subsystem" | awk -F":" '{print $2}'| xargs; +done + diff --git a/os-discovery-tool/netdriver.sh b/os-discovery-tool/netdriver.sh new file mode 100755 index 00000000..d0aef9f4 --- /dev/null +++ b/os-discovery-tool/netdriver.sh @@ -0,0 +1,8 @@ +#!/bin/bash +export PATH=$PATH:/sbin:/usr/sbin +lshwcmd=`which lshw` +lspcicmd=`which lspci` +for pciaddress in $(${lshwcmd} -C Network 2>/dev/null | grep "pci@" | awk -F":" '{print $3":"$4}'); +do + ${lspcicmd} -v -s ${pciaddress} | grep "Kernel driver" | awk -F":" '{print $2}' | xargs; +done diff --git a/os-discovery-tool/netversions.sh b/os-discovery-tool/netversions.sh new file mode 100755 index 00000000..c37068f2 --- /dev/null +++ b/os-discovery-tool/netversions.sh @@ -0,0 +1,11 @@ +#!/bin/bash +export PATH=$PATH:/sbin:/usr/sbin +lshwcmd=`which lshw` +lspcicmd=`which lspci` +modinfocmd=`which modinfo` +for pciaddress in $(${lshwcmd} -C Network 2>/dev/null | grep "pci@" | awk -F":" '{print $3":"$4}'); +do + ${lspcicmd} -v -s $pciaddress | grep "Kernel driver" | \ + awk -F":" '{print $2}' | xargs ${modinfocmd} 2>/dev/null | grep -i "version" | \ + head -n1 | awk '{print $2}' | xargs; +done diff --git a/os-discovery-tool/odt-linux-overview.png b/os-discovery-tool/odt-linux-overview.png new file mode 100644 index 00000000..bd801aa8 Binary files /dev/null and b/os-discovery-tool/odt-linux-overview.png differ diff --git a/os-discovery-tool/osvendor-legacy.sh b/os-discovery-tool/osvendor-legacy.sh new file mode 100755 index 00000000..49b51c9b --- /dev/null +++ b/os-discovery-tool/osvendor-legacy.sh @@ -0,0 +1,2 @@ +#!/bin/bash +cat /etc/*-release | grep "Linux" | head -n 1 | awk '{print $1" "$2}' diff --git a/os-discovery-tool/osvendor.sh b/os-discovery-tool/osvendor.sh new file mode 100755 index 00000000..048b6506 --- /dev/null +++ b/os-discovery-tool/osvendor.sh @@ -0,0 +1,2 @@ +#!/bin/bash +cat /etc/*-release 2>/dev/null | grep -i ^ID= | head -n1 | awk -F"=" '{print $2}'| xargs diff --git a/os-discovery-tool/redhat-os-name.sh b/os-discovery-tool/redhat-os-name.sh new file mode 100755 index 00000000..f96b5e77 --- /dev/null +++ b/os-discovery-tool/redhat-os-name.sh @@ -0,0 +1,2 @@ +#!/bin/bash +cat /etc/redhat-release 2>/dev/null | awk '{print $1" "$2" "$3" "$4" "$7}' diff --git a/os-discovery-tool/storagedev.sh b/os-discovery-tool/storagedev.sh new file mode 100755 index 00000000..5a8e8828 --- /dev/null +++ b/os-discovery-tool/storagedev.sh @@ -0,0 +1,8 @@ +#!/bin/bash +export PATH=$PATH:/sbin:/usr/sbin +lshwcmd=`which lshw` +lspcicmd=`which lspci` +for pciaddress in $(${lshwcmd} -C Storage 2>/dev/null | grep "pci@" | awk -F":" '{print $3":"$4}'); +do + ${lspcicmd} -v -s ${pciaddress} | grep "Subsystem" | awk -F":" '{print $2}'| xargs; +done diff --git a/os-discovery-tool/storagedriver.sh b/os-discovery-tool/storagedriver.sh new file mode 100755 index 00000000..2d7a0abf --- /dev/null +++ b/os-discovery-tool/storagedriver.sh @@ -0,0 +1,8 @@ +#!/bin/bash +export PATH=$PATH:/sbin:/usr/sbin +lshwcmd=`which lshw` +lspcicmd=`which lspci` +for pciaddress in $(${lshwcmd} -C Storage 2>/dev/null | grep "pci@" | awk -F":" '{print $3":"$4}'); +do + ${lspcicmd} -v -s ${pciaddress} | grep "Kernel driver" | awk -F":" '{print $2}' | xargs; +done diff --git a/os-discovery-tool/storageversions.sh b/os-discovery-tool/storageversions.sh new file mode 100755 index 00000000..8c3c84b8 --- /dev/null +++ b/os-discovery-tool/storageversions.sh @@ -0,0 +1,10 @@ +#!/bin/bash +export PATH=$PATH:/sbin:/usr/sbin +lshwcmd=`which lshw` +lspcicmd=`which lspci` +modinfocmd=`which modinfo` +for pciaddress in $(${lshwcmd} -C Storage 2>/dev/null | grep "pci@" | awk -F":" '{print $3":"$4}'); +do + ${lspcicmd} -v -s ${pciaddress} | grep "Kernel driver" | awk -F":" '{print $2}' | \ + xargs ${modinfocmd} 2>/dev/null| grep -i "version" | head -n1 | awk '{print $2}' | xargs; +done diff --git a/os-discovery-tool/suse-netdev.sh b/os-discovery-tool/suse-netdev.sh new file mode 100755 index 00000000..4b6d552b --- /dev/null +++ b/os-discovery-tool/suse-netdev.sh @@ -0,0 +1,6 @@ +#!/bin/bash +export PATH=$PATH:/sbin:/usr/sbin +hwinfocmd=`which hwinfo` +modinfocmd=`which modinfo` +${hwinfocmd} --network | grep Driver: | awk '{print $2}' | xargs ${modinfocmd} | \ + grep ^description: | awk -F":[[:space:]]+" '{print $2}' diff --git a/os-discovery-tool/suse-netdriver.sh b/os-discovery-tool/suse-netdriver.sh new file mode 100755 index 00000000..d556bdb8 --- /dev/null +++ b/os-discovery-tool/suse-netdriver.sh @@ -0,0 +1,4 @@ +#!/bin/bash +export PATH=$PATH:/sbin:/usr/sbin +hwinfocmd=`which hwinfo` +${hwinfocmd} --network | grep Driver: | awk '{print $2}' diff --git a/os-discovery-tool/suse-netversions.sh b/os-discovery-tool/suse-netversions.sh new file mode 100755 index 00000000..1ac26ad0 --- /dev/null +++ b/os-discovery-tool/suse-netversions.sh @@ -0,0 +1,6 @@ +#!/bin/bash +export PATH=$PATH:/sbin:/usr/sbin +hwinfocmd=`which hwinfo` +modinfocmd=`which modinfo` +${hwinfocmd} --network | grep Driver: | awk '{print $2}' | xargs ${modinfocmd} | \ + grep ^version: | awk -F":[[:space:]]+" '{print $2}' diff --git a/os-discovery-tool/suse-os-version.sh b/os-discovery-tool/suse-os-version.sh new file mode 100755 index 00000000..e4159a3e --- /dev/null +++ b/os-discovery-tool/suse-os-version.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +cat /etc/*-release | grep PRETTY_NAME | awk -F"=" '{print $2}' | xargs diff --git a/os-discovery-tool/suse-storagedev.sh b/os-discovery-tool/suse-storagedev.sh new file mode 100755 index 00000000..786ca3f8 --- /dev/null +++ b/os-discovery-tool/suse-storagedev.sh @@ -0,0 +1,5 @@ +#!/bin/bash +export PATH=$PATH:/sbin:/usr/sbin +hwinfocmd=`which hwinfo` +modinfocmd=`which modinfo` +${hwinfocmd} --storage | grep Driver: | awk '{print $2}' | xargs ${modinfocmd} | grep ^description: | awk -F":[[:space:]]+" '{print $2}' diff --git a/os-discovery-tool/suse-storagedriver.sh b/os-discovery-tool/suse-storagedriver.sh new file mode 100755 index 00000000..cc8f2568 --- /dev/null +++ b/os-discovery-tool/suse-storagedriver.sh @@ -0,0 +1,4 @@ +#!/bin/bash +export PATH=$PATH:/sbin:/usr/sbin +hwinfocmd=`which hwinfo` +${hwinfocmd} --storage | grep Driver: | awk '{print $2}' diff --git a/os-discovery-tool/suse-storageversions.sh b/os-discovery-tool/suse-storageversions.sh new file mode 100755 index 00000000..ecb30a92 --- /dev/null +++ b/os-discovery-tool/suse-storageversions.sh @@ -0,0 +1,5 @@ +#!/bin/bash +export PATH=$PATH:/sbin:/usr/sbin +hwinfocmd=`which hwinfo` +modinfocmd=`which modinfo` +${hwinfocmd} --storage | grep Driver: | awk '{print $2}' | xargs ${modinfocmd} | grep ^version: | awk -F":[[:space:]]+" '{print $2}' diff --git a/os-discovery-tool/suse-validate-tools.sh b/os-discovery-tool/suse-validate-tools.sh new file mode 100755 index 00000000..e97e3c69 --- /dev/null +++ b/os-discovery-tool/suse-validate-tools.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +export PATH=$PATH:/sbin:/usr/sbin + +hwinfocmd=`which hwinfo 2>&1` +modinfocmd=`which modinfo 2>&1` + +invalid=" |'" +if [[ $hwinfocmd =~ $invalid ]] || [[ $modinfocmd =~ $invalid ]]; +then + echo "VALIDATION_FAILED"; +else + echo "VALIDATION_SUCCESS"; +fi + diff --git a/os-discovery-tool/validate-tools.sh b/os-discovery-tool/validate-tools.sh new file mode 100755 index 00000000..fe780637 --- /dev/null +++ b/os-discovery-tool/validate-tools.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +export PATH=$PATH:/sbin:/usr/sbin + +lshwcmd=`which lshw 2>&1` +lspcicmd=`which lspci 2>&1` +modinfocmd=`which modinfo 2>&1` + +invalid=" |'" +if [[ $lshwcmd =~ $invalid ]] || [[ $lspcicmd =~ $invalid ]] || [[ $modinfocmd =~ $invalid ]]; +then + echo "VALIDATION_FAILED"; +else + echo "VALIDATION_SUCCESS"; +fi + diff --git a/requirements.txt b/requirements.txt index 4c87294b..9aa55dba 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ -certifi >= 14.05.14 -pycrypto >= 2.6.1 -six >= 1.10 -python_dateutil >= 2.5.3 -setuptools >= 21.0.0 -urllib3 >= 1.15.1 -requests >= 2.17.0 +certifi >= 14.05.14 +six +python_dateutil >= 2.5.3 +setuptools >= 21.0.0 +urllib3 >= 1.23 +pycryptodome >= 3.6.1 +requests diff --git a/setup.py b/setup.py index 2dc5ba7e..41694dc1 100644 --- a/setup.py +++ b/setup.py @@ -1,41 +1,41 @@ -# coding: utf-8 - -""" - UCS Starship API - - This is the UCS Starship REST API - - OpenAPI spec version: 1.0.0 - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import sys -from setuptools import setup, find_packages - -NAME = "intersight" -VERSION = "1.0.0" -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil", "pycrypto >= 2.6.1", "requests"] - -setup( - name=NAME, - version=VERSION, - description="UCS Starship API", - author_email="", - url="", - keywords=["Swagger", "UCS Starship API"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - This is the UCS Starship REST API - """ -) +# coding: utf-8 + +""" + Intersight API + + This is the Intersight REST API + + OpenAPI spec version: 1.0.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import sys +from setuptools import setup, find_packages + +NAME = "intersight" +VERSION = "1.0.9-255" +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["pycryptodome >= 3.6.1", "urllib3 >= 1.23", "six", "certifi", "python-dateutil", "requests"] + +setup( + name=NAME, + version=VERSION, + description="Intersight API", + author_email="", + url="", + keywords=["Swagger", "Intersight API"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + This is the Intersight REST API + """ +)